Skip to content

ICML papers

Search ICML papers by title, author, or track. Open a paper’s abstract to read more.

Explore the ICML analysis

Search results

461–480 of 532

  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    TEMPO: Scaling Test-time Training for Large Reasoning Models

    Qingyang Zhang, Xinke Kong, Haitao Wu, Qinghua Hu, Minghao Wu, Baosong Yang, Yu Cheng, Yun Luo, Ganqu Cui, Changqing Zhang

    Abstract

    Large reasoning models (LRMs) remain static after training, limiting their ability to adapt to novel problems. Test-time training (TTT) addresses this by adapting model parameters on unlabeled test instances, continuously extending capabilities beyond offline training. However, existing TTT methods that rely on self-generated reward signals plateau quickly: without external grounding, the reward signal drifts as the policy evolves, causing both performance saturation and diversity collapse. We propose TEMPO, a dual-agent self-evolution framework that interleaves policy refinement by a reasoning agent on unlabeled questions with periodic recalibration of a verification agent (critic) on a labeled dataset. By formalizing this alternating procedure through the Expectation-Maximization (EM) algorithm, we reveal that prior single-agent self-rewarding methods are incomplete EM variants that omit the crucial verification step. Restoring this step tightens the evidence lower bound (ELBO) and enables sustained self-evolution. Across diverse model families (Qwen3 and OLMO3) and reasoning tasks, TEMPO improves OLMO3-7B on AIME 2024 from 33.0\% to 51.1\% and Qwen3-14B from 42.3\% to 65.8\%, while maintaining high output diversity. These results demonstrate that collaborative dual-agent self-evolution can push LRMs substantially beyond their static training boundaries. Code is available at \url{https://anonymous.4open.science/r/TEMPO-3A56}.

    Abstract source
  • ICML · Workshop · Forecasting as a New Frontier of Intelligence

    (Oral) Forecasting Emerges from Auto-Regressive Pretraining: Latent Predictive Structure in Language Models

    Alexis Roger, Prateek Humane, Zhenghan Tai, Gwen Legate, Andrei Mircea, Vasilii Feofanov, Irina Rish

    Abstract

    Predicting how a sequence will continue is a basic problem for intelligent systems. We show that large language models contain usable forecasting structure before any explicit time-series supervision. A single linear readout from frozen Qwen3-0.6B hidden states maps ordinary text sequences to numerical trajectories that resemble real time series, and those trajectories can be used for straightforward forecasts. The distribution over output tokens also gives coherent, non-crossing probabilistic forecasts in a single forward pass. After time-series specialization, pretrained models show aligned gradients and improve immediately, whereas randomly initialized models spend early training in a destructive-interference regime. These findings suggest that auto-regressive pretraining already shapes representations around temporal continuation; and finetuning adapts that structure to numerical forecasting rather than creating it from scratch.

    Abstract source
  • ICML · Workshop · AI for Science: AI Scientists -- Tools, Co-authors, or Founders?

    Beyond Adam: SOAP and Muon for Faster, Label-Efficient Training of Machine Learning Interatomic Potentials

    Gil Harari, Yoel Zimmermann, Ola T Kulseng, Laura Zichi, Chuin W Tan, Marc L Descoteaux, Boris Kozinsky

    Abstract

    Machine learning interatomic potentials (MLIPs) have become a hallmark of AI for scientific simulation. While efforts on new architectures and datasets have led to increasingly accurate and general models, the choice of optimizer for training has largely remained unexplored, defaulting to Adam and its variants in the community. Here, we implement and systematically compare a class of recently proposed matrix-structured optimizers, including Muon, SOAP, and the hybrid SOAP-Muon, for training NequIP and Allegro MLIP models. We find that these optimizers can substantially outperform Adam in both convergence speed and final accuracy. SOAP and SOAP-Muon emerge as robust and consistently strong methods, while Muon only provides partial gains relative to Adam. The improvements are particularly pronounced under partial force supervision. Our results indicate that optimizer choice is an overlooked yet impactful design axis for MLIPs.

    Abstract source
  • ICML · Workshop · AI for Science: AI Scientists -- Tools, Co-authors, or Founders?

    Pre-training on noncovalent interactions from synthetic protein-ligand structures to better predict binding affinity

    Arun Raja, Garrett A Stevenson, Garrett Morris, Jonathan Allen, Hyojin Kim

    Abstract

    Accurate prediction of protein-ligand binding affinity is a central challenge in computational drug discovery, yet existing graph neural network approaches typically represent protein-ligand complexes as homogeneous atom-level graphs, neglecting the role of aromatic ring systems and the rich hierarchy of noncovalent interactions that govern binding. In this work, we introduce the Protein-Ligand Interaction Pre-training or PLIP approach, a heterogeneous equivariant graph transformer that explicitly encodes four node types - ligand atoms, protein atoms, ligand rings, and protein rings connected by interaction- specific edge relations such as hydrogen bonds, hydrophobic contacts, π-π stacking, and cation-π interactions. We pretrain on interactions found in 5.1 million synthetic protein-ligand structures from the Structural and Interaction Repository (SAIR) using a multi-task self-supervised objective comprising interaction-type classification, interatomic distance regression, and binding affinity prediction. Systematic evaluation on four drug targets - acetylcholinesterase (AChE), SARS- CoV-2 main protease (SARS-Mpro), Zika protease, and μ-opioid receptor - demonstrates that multi-task pretraining on all three pretraining objectives (interaction type, distance and affinity) achieves Pearson correlations of 0.667 on AChE (+26% over training from scratch), 0.490 on Zika (+6%), 0.374 on μ-opioid receptor (+32%), and 0.255 on SARS-Mpro (+39%). Comparisons against competing baselines demonstrate the benefits of pre-training on protein-ligand interactions for structure-based binding affinity prediction.

    Abstract source
  • ICML · Workshop · AI for Science: AI Scientists -- Tools, Co-authors, or Founders?

    In silico evaluation of pre-training strategies based on synthetic data for functional DNA generation

    Ivan Golovkin, Stepan Druzhininskii, Daniil Litunovskiy, Amir Taldaev, Brilenkov Evgeny, Nikita Serov

    Abstract

    Deoxyribozymes (DNAzymes) are catalytic single-stranded DNA molecules with a broad range of therapeutic and biotechnological applications, yet their rational design remains severely constrained. The catalytic core is typically limited to a few consensus sequences whose activity is context-dependent and unpredictable, while target-site inaccessibility and a critical lack of large, curated datasets have impeded the application of machine learning (ML) for de novo design. This work proposes a robust multi-stage computational and experimental pipeline for DNAzyme discovery, which includes: i) domain-grounded DNAzyme-centric parametric constraints for synthetic data generation, model training, and candidate sequence evaluation, ii) pre-training strategies based on two main synthetic data generation approaches, namely, pre-training on sequences with minimal free energy (MFE) boundaries matching stable structures as well as on sequences matching property distributions evaluated based on the ability to produce sequences, which are structurally similar to real DNAzymes and iii) a hierarchical screening approach based on ML models and structural priors for the effective selection of candidates for validation under laboratory conditions considering plausible cofactors crucial for catalytic activity. Overall, this pipeline provides a resource‑efficient strategy for exploring novel DNAzyme catalytic cores and enabling predictable DNAzyme activity.

    Abstract source
  • ICML · Workshop · Efficient Multimodal Question Answering

    Data-Efficient Curation for Multimodal Reasoning under Fixed Training Protocols

    Yosub Shin, Michael Buriek, Boris Sobolev, Pavel Bushuyeu, Vikas Kumar, Samuel Watson, Haoyang Xu, Igor Molybog

    Abstract

    We study data curation for multimodal reasoning in a fixed-protocol fine-tuning regime, where the base model, optimizer, training schedule, and evaluation pipeline are held constant and the main degree of freedom is the training data. Using the NeurIPS 2025 Data Curation for Vision--Language Reasoning (DCVLR) challenge as a controlled testbed, we analyze how source-dataset alignment, model-relative difficulty, dataset size, diversity heuristics, and rewritten synthetic mixtures affect downstream reasoning accuracy. Among the tested interventions, difficulty filtering on an aligned source corpus provides the strongest gains at matched scale. The effect is not explained only by LiveXivTQA weighting: a per-benchmark decomposition shows that much of the improvement over random sampling comes from OlympiadBench, the largest non-LiveXivTQA benchmark. Qwen-derived difficulty scores also transfer to some additional model families, though the benefit is architecture-dependent. In contrast, increasing dataset size beyond roughly 1k aligned examples mainly reduces run-to-run variance under the fixed recipe, while the diversity and rewritten CoSyn mixtures we tested do not improve over the difficulty-filtered baseline. These results provide a scoped empirical recipe for data-constrained multimodal reasoning fine-tuning, rather than a universal claim about data selection across all training regimes.

    Abstract source
  • ICML · Workshop · Efficient Multimodal Question Answering

    Stop Thinking, Start Looking: Efficient Post-Training for Multimodal Document Question Answering via Reasoning-Free Alignment [Archival]

    HARIKRISHNAN PUTHAN MADATHIL, Goutham Vignesh, Ganesh Parab, Saisubramaniam Gopalakrishnan, Vishal Vaddina, Varun V, Rohit Agrawal

    Abstract

    Efficient multimodal document question answering with explicit visual grounding, locating the precise document region that supports each answer remains an open challenge. Current approaches bifurcate into Supervised Fine-Tuning (SFT), which requires large annotated datasets and reaches optimization plateaus, and reasoning-centric Reinforcement Learning (RL), which depends on verbose intermediate traces that inflate inference token cost without clear benefit. We introduce Perception-RFT, a training framework that applies Group Relative Policy Optimization (GRPO) to multimodal document QA, bypassing intermediate reasoning tokens to directly align visual features with structured grounding outputs. To rigorously evaluate the necessity of reasoning, we construct a reasoning-enabled variant under identical reward settings. We find that reasoning-enabled models progressively compress and eliminate their reasoning traces during training, converging to direct perception-based policies at the 4B parameter scale reducing per-query inference token length by more than 60\% while reasoning-enabled RL underperforms perception-only training. Through a fine-grained analysis of Qwen3-VL-4B optimization dynamics, we confirm that SFT saturation and cold-start RL instability established in text-domain post-training extend to multimodal, and identify a previously uncharacterized Grounding Divergence: a selective trade-off between semantic robustness and geometric precision on two out of distribution (OOD) benchmarks (4,828 samples) under joint RL optimization. We further show that an early SFT$\rightarrow$RL transition achieves comparable precision with 65\% less training data.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    Training Fair Tabular Foundation Models

    Patrik Kenfack, Jesse Cresswell, Anthony Caterini, Samira Ebrahimi Kahou, Ulrich Aïvodji

    Abstract

    Tabular Foundation Models (TFMs) have emerged as leading methods for tabular predictive tasks, leveraging in-context learning to predict on new data without task-specific training. Despite the increased use of TFMs in high-stakes decision-making, their fairness properties remain largely unexplored. In this work, we incorporate fairness constraints directly into TFM training, enabling fair predictions in a single forward pass. Our approach addresses two key challenges: limited access to sensitive attributes in training data, and the incompatibility of existing fairness techniques with the in-context learning paradigm. We propose FairTFM, a scalable training strategy based on synthetic fairness tasks and a fairness-aware architecture using a gradient reversal layer, which encourages the model to learn representations invariant to sensitive attributes. Experiments on 120 fairness tasks show consistent improvements in fairness while maintaining competitive accuracy.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    SOHET: Sequence Of Heterogeneous Events Transformer with Self-Supervised Pre-Training

    Kees Jan de Vries, Mustafa Radha, Mathijs de Jong

    Abstract

    Many machine learning applications rely on heterogeneous event streams to make predictions, either causally as events arrive or bidirectionally over complete sequences. We propose SOHET (Sequence Of Heterogeneous Events Transformer), a hierarchical architecture combining event-type-specific tabular encoders with temporal and type embeddings, processed by a causal or bidirectional transformer. We introduce three self-supervised pre-training objectives for the causal setting. On a proprietary large-scale real-world fraud detection task with 17 event types, SOHET outperforms FlexTPP, NAPPT, and CIPPT by 6.6%. Pre-training yields an additional 5.9% gain and 20× faster convergence. On the EBES benchmark, bidirectional SOHET achieves state-of-the-art on 6 out of 8 tasks.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    Mix, Don’t Pick: Why Synthetic Corpus Composition Matters for Time Series Foundation Model Pretraining

    Aaryan Nagpal, Debdeep Sanyal, Dhruv Kumar, Murari Mandal, Saurabh Deshpande

    Abstract

    Choosing the wrong synthetic generator for time-series foundation model pretraining is costly: under identical training budgets, the best and worst generators produce up to a $2\times$ gap in forecasting error, yet the field has no principled way to make this choice. The problem is compounded by the fact that generator rankings are not stable across architectures: across 11 generator families evaluated on Chronos-T5-Mini and Moirai-Small trained from scratch, we find that which generators are useful depends on the model architecture. Rather than solving the generator selection problem, we sidestep it: a simple equal-weight mixture of all generators matches or beats the best individual generator for both architectures, and composing this mixture with real data yields the strongest pretraining corpora overall. Synthetic pretraining is therefore a corpus composition problem, not a generator selection problem, and composition choices should be validated per model family rather than assumed to transfer.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    CausalTab: Pretraining Across Causal Environments for Tabular Causal Discovery

    Zi-Rong Li, Si-Yang Liu, Tian-Zuo Wang, Han-Jia Ye

    Abstract

    Tabular causal discovery seeks directed structure from observational and optionally interventional samples. Causal discovery foundation models amortize this problem by mapping a dataset---values plus optional intervention masks---to graph hypotheses in one forward pass, yet often trail strong classical methods when pretraining coverage is narrow. We introduce CausalTab, a structured-tabular model with axial attention over variables and samples and asymmetric edge scoring, trained under broad causal pretraining over diverse graph priors, mechanisms, noise laws, dimensionalities, sample budgets, and observational versus mixed-interventional layouts, composed dynamically into episodes. We evaluate on seven synthetic benchmark families and a complementary semantic SCM benchmark with authored domains (still simulator-grounded). CausalTab achieves strong aggregate recovery with the largest gains when interventional evidence is available; a qualitative PCA on an administrative-workflow scenario suggests embeddings partially separate interpretable workflow roles, complementing synthetic scores. Together, these results highlight environment-rich pretraining as a practical ingredient for amortized causal discovery.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    Large-Scale Pretraining unlocks Few-Shot Prediction for Relational Data

    Rishabh Ranjan, Vignesh Kothapalli, Harshvardhan Agarwal, Charilaos Kanatsoulis, Roshan R Upendra, Tom Palczewski, Carlos Guestrin, Jure Leskovec

    Abstract

    Few-shot adaptation has been crucial to the success of foundation models for language and vision, but foundation models for structured relational data still require thousands of labeled examples to perform well. We show that, when pretrained at scale with the right recipe, a Relational Transformer (RT) becomes a strong few-shot predictor across diverse databases. Our recipe has three ingredients: THE JOIN, the largest open relational pretraining corpus to date, with 6,255 forecasting tasks across 650 real-world databases; a pretraining procedure that mixes context sizes, masks many cells per window, and fills the context via random-walk retrieval; and test-time compute scaling via context ensembling and per-task context tuning. On RelBench, the resulting model matches the strongest in-context learning pipelines (RDBLearn + TabICLv2 and an LLM Agent + TabICLv2) using 23–32× fewer in-context labels, and exceeds the prior fully-supervised state of the art (RelGNN) without any task-specific training. Ablations show that schema semantics, multi-cell masking, random-walk retrieval, and mixed task pretraining each contribute materially to the regime.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    Towards Pretraining Text Encoders for TabPFN

    Mustafa Tajjar, Alexander Tobias Pfefferle, Lennart Purucker, Frank Hutter

    Abstract

    Tabular foundation models, such as TabPFN, achieve strong performance on tabular datasets with numerical and categorical data, but do not natively handle high-cardinality text features. Standard pipelines, therefore, embed text with a language model and compress the resulting vectors with PCA into a small number of scalar features before inputting them into TabPFN. This creates an information bottleneck: most embedding dimensions are discarded, and the compressed representation must then be expanded again by TabPFN's feature encoder. End-to-end alternatives can avoid PCA, but they require large amounts of pretraining data containing text cells and usually perform subpar compared to tabular foundation models that were pretrained on large amounts of synthetic data. Inspired by modality-alignment approaches like LLaVA (vision-to-LLM token projection) and TableGPT-style systems (table-to-LLM token projection), we introduce the TabPFN Text Adapter (text-to-TFM token projection). We freeze both the sentence encoder and TabPFN, and train only a lightweight adapter that maps text embeddings into a short sequence of tokens in TabPFN's embedding space. This design removes the PCA bottleneck, preserves TabPFN's numerical strengths, and is more efficient to train than end-to-end text-tabular pipelines.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    \plurel-to-\rdbpfn: Schema-Guided Synthetic Relational Pretraining

    Mohammad S Abolhasani, Viswanath Ganapathy

    Abstract

    Relational Foundation Models (RFMs) require large-scale synthetic relational databases for pretraining, but existing approaches tightly couple data generation with the model training pipeline. We study whether \plurel{}, a general-purpose synthetic relational database generator, can serve as an external data source for \rdbpfn{}, a relational in-context learner originally pretrained on its own specialized synthetic prior using ${\sim}1.8$M tasks across two stages. We build a conversion pipeline that maps \plurel{}-generated databases—including externally constructed binary prediction tasks—into the \rdbpfn{} training format and evaluate three curriculum strategies: \sgf{} (real-world schema then fully synthetic), \fs{} (diverse synthetic schemas throughout), and \sgl{} (fully synthetic then real-world schema). Using only ${\sim}5{,}500$ relational databases (${\sim}33$K tasks)—roughly $55\times$ fewer tasks than the original protocol—and no single-table warm-up, our best curriculum (\sgf{}) achieves $0.6346$ average ROC-AUC across 19 real benchmark tasks at 1024-shot context, recovering 87.6\% of the published \rdbpfn{} performance ($0.7245$). At 64-shot context, the gap narrows to 93.8\% ($0.6116$ vs.\ $0.6517$). Our results demonstrate that external synthetic generators can provide useful pretraining signals for RFMs when combined with appropriate curriculum design and that exposure to a real-world schema early in training is substantially more effective than late-stage schema adaptation.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    Language Pretraining Gives Structured Forecasters a Sequential Prior

    Zhenghan Tai, Alexis Roger, Prateek Humane, Gwen Legate, Andrei Mircea, Vasilii Feofanov, Irina Rish

    Abstract

    Structured-data foundation models now target transfer across time series, tabular data, text, and other sequential domains, but it remains unclear what language pretraining contributes to forecasting beyond a generic transformer architecture. We study this question by adapting Qwen3-0.6B to probabilistic time-series forecasting on GiftEval and comparing language-pretrained models with identical randomly initialized models under full and parameter-efficient finetuning. Language pretraining gives a large early optimization advantage, especially in limited-adaptation regimes: LoRA attention updates recover most of the effective transfer benefit of full finetuning. Frozen-state probes, retrieval forecasts, gradient coherence, and effective-rank dynamics indicate that language models already contain reusable sequential structure before time-series supervision. These results frame language-to-time-series transfer as efficient low-rank specialization of a pretrained sequential inductive bias, with implications for future structured-data foundation models.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    Optimizing Pre-Training of Tabular Foundation Models by Shaping Geometry

    Humzah Merchant, Sriniketh Vangaru, Randall Balestriero

    Abstract

    Tabular foundation models (TFMs) are trained to solve new supervised learning problems in-context, despite not knowing the downstream table, feature distribution, or label rule during pretraining. This suggests that successful classifier TFMs might learn broad, well-spread intermediate representations that later layers can adapt to task-specific decision boundaries. We test this hypothesis in supervised TabPFN-style pretraining and find that it does not hold: while the model learns in-context prediction, its intermediate embeddings do not naturally become more isotropic or well dispersed. We therefore introduce row- and column-wise Sketched Isotropic Gaussian Regularization (SIGReg) for tabular transformer hidden states and use it to directly shape representation geometry. Early-layer SIGReg reorganizes the model across depth, producing better-distributed early embeddings while preserving later layers for task-specific decision structure. This improves convergence speed, classification performance, and seed-to-seed stability with little additional overhead.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    Implicit Reward Alignment For Training Causally-Coherent Tabular Data Generators

    Matea Gjika, Giuseppe Iannone, Luca Sfragara, Pavithra Harsha, Georgia Perakis

    Abstract

    Foundation models for structured data are increasingly being used as queryable generators for scenario planning and counterfactual analysis, requiring models that are statistically realistic, causally coherent, and capable of conditional querying from partial inputs. Yet existing approaches to tabular data generation either optimize solely for distributional fidelity, or impose causality through explicit structural assumptions, which are untenable in a real-world setting. We argue that counterfactual queryability is a key missing reliability axis, for tabular FMs and introduce Causal Reward Aligned Fine-Tuning (CRAFT), a reinforcement learning framework where language models are trained to produce causally-consistent samples only through implicit reward signals. Across multiple semi-synthetic and benchmark settings, we compare against 15 baseline models spanning LLM-, diffusion-, VAE-, and GAN-based generators, using multiple metrics along both realism and causal coherence dimensions, and show that reward-based alignment improves counterfactual accuracy and treatment-effect estimation, even in settings where baseline models achieve comparable distributional realism. More broadly, these findings suggest that intervention-consistent generative behavior can emerge from alignment objectives alone, without strong architectural priors or explicit encoding of the causal graph.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    On the Uncertainty in Prior-Data Fitted Network Pretraining

    Manuel Hülskamp, Julius Kobialka, Emanuel Sommer, David Rügamer

    Abstract

    Prior-data fitted networks (PFNs) have recently emerged as a new paradigm for supervised machine learning by approximating Bayesian posterior predictive distributions via in-context learning. While leading to state-of-the-art predictive performance across a wide range of benchmarks, quantifying the approach's uncertainty is challenging. Using an empirical risk minimization perspective, we characterize possible sources of uncertainty in PFN predictions and empirically show that certain uncertainties cannot be reduced by simply scaling the model size or pretraining. To explicitly address these overlooked sources of uncertainty, we study deep ensembles of PFNs and formulate a Bayesian neural network version of PFNs for which we obtain samples from an approximate posterior via Markov chain Monte Carlo.

    Abstract source
  • ICML · Workshop · Foundation Models for Structured Data

    EveryQuery: Zero-Shot Clinical Prediction via Task-Conditioned Pretraining

    Payal Chandak, Gregory Kondas, Isaac S Kohane, Matthew McDermott

    Abstract

    Foundation models pretrained on electronic health records (EHR) have demonstrated zero-shot clinical prediction. They use an autoregressive procedure to generate synthetic patient futures and aggregate statistics over sampled trajectories, which is computationally expensive, statistically noisy for rare events, and not natively promptable. We introduce EveryQuery, an EHR foundation model that achieves zero-shot inference through task-conditioned pretraining over a structured query language. Rather than generating future trajectories, EveryQuery takes a patient's history and a query $q = (c, \Delta t)$ specifying a target code and a prediction horizon, and directly estimates the outcome probability via a single forward pass. On MIMIC-IV, EveryQuery outperforms an autoregressive baseline on 85% of 200 (code, duration) prediction tasks (mean $\Delta$AUC $+0.17$, 95\% CI $[0.14, 0.19]$). The advantage is most pronounced for rare events as autoregressive performance is strongly coupled to event prevalence, while EveryQuery's is prevalence-invariant. EveryQuery also generalizes to held-out codes and to held-out durations, including extrapolation beyond the longest training horizon. Together, these results suggest that task-conditioned pretraining is a viable paradigm for EHR foundation models.

    Abstract source
  • ICML · Workshop · Structured Data for Health

    EveryQuery: Zero-Shot Clinical Prediction via Task-Conditioned Pretraining

    Payal Chandak, Gregory Kondas, Isaac S Kohane, Matthew McDermott

    Abstract

    Foundation models pretrained on electronic health records (EHR) have demonstrated zero-shot clinical prediction. They use an autoregressive procedure to generate synthetic patient futures and aggregate statistics over sampled trajectories, which is computationally expensive, statistically noisy for rare events, and not natively promptable. We introduce EveryQuery, an EHR foundation model that achieves zero-shot inference through task-conditioned pretraining over a structured query language. Rather than generating future trajectories, EveryQuery takes a patient's history and a query $q = (c, \Delta t)$ specifying a target code and a prediction horizon, and directly estimates the outcome probability via a single forward pass. On MIMIC-IV, EveryQuery outperforms an autoregressive baseline on 85% of 200 (code, duration) prediction tasks (mean $\Delta$AUC $+0.17$, 95\% CI $[0.14, 0.19]$). The advantage is most pronounced for rare events as autoregressive performance is strongly coupled to event prevalence, while EveryQuery's is prevalence-invariant. EveryQuery also generalizes to held-out codes and to held-out durations, including extrapolation beyond the longest training horizon. Together, these results suggest that task-conditioned pretraining is a viable paradigm for EHR foundation models.

    Abstract source