betaFeedback

WorksComputer Science

A Theoretical Framework for Understanding and Building "Any-task inference" Capable Foundation Models

Abstract

In this work, we provide a formal framework and mathematical definition for the subset of foundation models focused on enabling the property of "any-task inference" (ATI) (similar to zero-shot inference), rather than those designed for pre-training fine-tuning. To achieve this mathematical definition, we formalize the notion of a "space of tasks of interest," which we include in the problem domain, then provide an interface-based formal definition for ATI foundation models as those that map samples of data xx and tasks tt to predictions over the space of labels directly. While simple, this definition allows us to show that all ATI foundation models can be decomposed through a "universal task reduction" lens into encoder, model, and decoder aspects. We can leverage this decomposition to also decompose foundation model error into terms corresponding to different aspects of this reduction, stratified into a collection of "design terms," which are theoretical properties that can inform one of whether a particular proposed ATI foundation model can achieve optimality or not due to the structure of the proposed task reduction, and "realized model excess" terms which capture interactions between learned and programmatic components of foundation model systems. Lastly, we can use this perspective to offer two "prototypical" recipes for realizing ATI foundation models in diverse domains, which we term generative and discriminative variants of ATI foundation models. This exercise is grounded throughout by 5 real-world examples of foundation models in different settings, varying greatly in how these capabilities are realized, showing the applicability of this definition to real-world settings.

Introduction

This work aims to provide a formal definition of the subset of “foundation models” that are designed to enable the practical property typically called “zero-shot inference,” which we recognize more directly as the ability to use the foundation model to perform inference for any arbitrary task in a given domain, on any input sample, with no additional training required. A formal definition for this class of foundation models will reduce ambiguity when this term is used in research, allow for more comprehensive theoretical understanding of these foundation models, and help us see how we can build them in diverse domains.

Focusing on Foundation Models that enable Direct “Any-task inference.”

The term “foundation model” was originally introduced by Bommasani et al. [6] as “models … trained on broad data (generally using self-supervision at scale) that can be adapted to a wide range of downstream tasks” [6]. This definition has since been applied to many different kinds of models that share different traits and usage goals. In this work, we assume that the key property in this definition, and the property that matters most for something to be a “foundation model” is that of its data-efficient utility on a “wide range of downstream tasks.” In the modern era, this utility is best epitomized through models that permit immediate, no-fine-tuning required inference across an arbitrary range of reasonable tasks over a domain of interest. We will use the term “any-task inference (ATI) capability” to refer to this ability – being able to immediately perform inference on an arbitrary task of interest without any additional fine-tuning.1

In this work, we will focus our analyses specifically on foundation models that are capable of ATI, which we will call ATI foundation models, rather than other kinds of foundation models. In so doing, we are explicitly not studying other notions of what may make something a “foundation model” that are commonly used today. In particular, in this work we will take the following positions:

  1. We will assume that foundation models need not be generative models. Instead, the focus on downstream task utility is paramount, not their ability to estimate the likelihood of or generate samples from the data domain.

  1. We will assume that foundation models need not be trained with any particular style of self-supervision or neural network architecture. What makes foundation models unique is how they can be used at inference time, not how they were trained.

  1. We will focus our analyses on ATI foundation models, rather than foundation models that require fine-tuning and do not permit ATI.

  1. We will assume that foundation models need not solve problems of distribution shift over their domains, provided they still show any-task adaptability to diverse downstream tasks in the domain of interest. Critically, as we will formalize later in the work, any-task adaptability itself need not require distribution shift, so this is not in conflict.

Note that we do not argue that these topics are not interesting, useful, and important in their own right – just that we can separate them from the concept of an “ATI foundation model,” (and arguably from the term “foundation model” more generally) and reserve this new term to refer more specifically to these any-task capable models. The established terms for each of these capabilities (e.g., generative modeling, self-supervised modeling, transfer learning, and distribution shift) can instead be used to refer to those specific areas individually. Note that we may at times just use the term “foundation model” in the text, but we will near universally use this to mean an ATI foundation model unless otherwise specified.

This Definition Permits Meaningful Theoretical Contributions

With this narrowed focus, we can provide a formal mathematical definition of ATI foundation models that permits us to make several theoretical advances. Concretely, to summarize the contributions of this work:

  1. We re-introduce the notion of a “distribution of tasks” over a space T\mathcal{T} that is jointly distributed with one’s data over X\mathcal{X} and labels over Y\mathcal{Y}.2 We further introduce the notion of stochastic representations

ρ\rho of tasks that map from the (potentially intractable and unobserved) space T\mathcal{T} to a usable space for modeling.

  1. Given this joint domain, we define any-task inference capable foundation models as procedures that operate jointly over pairs of data samples and tasks to predict the target label: P:X×T→P(Y)\mathcal{P} : \mathcal{X} \times\mathcal{T} \to\mathcal{P}(\mathcal{Y}).

  1. We show that any foundation model under this definition can be decomposed into “encoder”, “model”, and “decoder” stages, which formalize the view that foundation models enable any-task inference by performing an algorithmic reduction in the space of tasks to some “universal task.”

  1. We further show that this decomposition gives rise to a clear decomposition of the sources of error any foundation model has, across terms dependent on each of these components, including the following error terms:

  • Irreducible additional uncertainty due to low fidelity representations of the input task.

  • Limitations in how effectively the universal task can approximate the true task.

  • Error in how effectively the model component actually models the universal task.

  • Error arising from the choice of labeling function used to translate universal-task outputs into downstream labels.

  • Error arising from imperfect approximation of the target decoding distribution by the realized decoder.

  1. We give two practical recipes for how to build foundation models in diverse domains.

  1. We show that foundation model evaluation is mathematically analogous to evaluation in the context of algorithmic fairness, yielding identical impossibility criteria.

Running examples

We will use several running examples of ATI foundation models in the literature today throughout this work, including the following:

Large language models We will consider large language models (LLMs) as ATI foundation models in the sense that, through prompting and/or specific decoding strategies, diverse (and arguably all) tasks in natural language processing (NLP) can be reframed as next-token prediction problems, and thus a well trained LLM arguably should be useful for solving arbitrary examples of such tasks in NLP. Examples include Radford et al. [22]; Brown et al. [7]; Achiam et al. [1]. We separate these any-task capable examples from PT/FT LLMs such as BERT (Devlin et al., [11]), which we will not consider here (though we note that masked language models can in theory be used for any-task inference as well, though this is less well explored in practice).

Autoregressive Foundation Models for Electronic Health Record Data An emerging area of foundation models today concerns autoregressive (AR) sequence models applied over longitudinal electronic health record (EHR) datasets (typically expressed in event-stream format, e.g., in the MEDS standard (McDermott et al., [19]) which is then tokenized into some categorical sequence (Guo et al., [12]; Lee et al. [16]; Attrach et al. [4])). These models appear superficially similar to LLMs, but perform any-task inference in a distinct pathway. Whereas LLMs use prompting to modify the “input” for an any-task problem in some controlled fashion, EHR AR FMs do not modify the input (a stream of patient level data) at all (and are generally not capable of prompting). Instead, they simply forecast possible “simulated futures” of the patient data, then infer the task label via some statistical form (e.g., Monte Carlo sampling) over those simulated futures directly. Examples include Renc et al. [24]; Waxler et al. [26].

Prior Fitted Networks Another emerging area of foundation models concerns prior fitted networks (Müller et al., [20]), which frame foundation models as a Bayesian inference problem to learn arbitrary posteriors given samples of that posterior learned through a dataset derived from a prior over distributions. Recent works such as TabPFN (Hollmann et al., [13]) have realized that these models can be used as powerful foundation models over, e.g., tabular data, though further recent work has also applied this method to other data modalities, such as imaging data [27]. Unlike other foundation model variants, the input for a PFN looks quite different from a traditional model that maps xx to yy. In particular, PFNs explicitly take as input a sequence of sampled pairs (x,y)(x,y) that represent the task of interest at inference time, followed by a final, unpaired xx sample for which the target label yy should be inferred. During pre-training, these sampled sequences are generated from a defined “prior” over possible tasks, enabling many diverse relationships between xx and yy to be learned. This makes PFNs extremely flexible, but also imposes computational resource limitations on when they can be used given a sequence of many pairs (x,y)(x,y) must fit on the GPU for a single sample. While one may argue that this sequence of (x,y)(x,y) pairs used as input to the model violates the “any-task” contract of interest here, we will permit this, and justify it more formally later in the work.

Task-conditioned or Multi-task Foundation Models over an Explicit Task Space Classically, multi-task learning [18] or even single-task (but typically multi-class) supervised pre-training have been widely used in representation learning settings [10]. More recently, many variants of multi-task pre-training algorithms have been presented as “foundation models”, in particular in health domains [25, 15]. A superficially related approach, in which task-conditioned labels are produced, rather than producing labels for multiple tasks simultaneously, has also recently been proposed as an alternative to AR foundation models in the health domain [8].

In multi-task models, a model outputs a separate prediction for a finite set of tasks simultaneously. In task-conditioned models, the model takes as input a sample xx but also some “representation of the task of interest” in some structured form, then outputs a prediction solely for that task and input. In this way, it takes many inference steps for a task-conditioned model to produce the same output as a multi-task model, but the task-conditioned model can model a much larger (potentially infinite) set of tasks simultaneously, in contrast to the finite set of tasks expressible by a multi-task model. These models realize “any-task” capabilities over the structured space of tasks over which labels are produced. If either this space is sufficiently broad or a procedure on how to adapt other tasks into this structured space of tasks is provided, it is reasonable to consider these models as “foundation models” in our more restricted sense (though we note that often these models are presented in a manner requiring PT/FT or transfer learning).

A summary of the key characteristics of these examples is provided in § 6.3 and Table 3.

Clinical LLMEHR ARPFNEQMultitask
ρE\rho_E Encoder task repr.Natural-language prompt / instruction∅\varnothingContext set {(xi,yi)}i=1n\{(x_i,y_i)\}_{i=1}^{n}Structured program / queryCategorical task index
E EncoderPair EHR input xx with prompt / instructionForward EHR input xxPair query xx with context setPair EHR input xx with structured queryPair EHR input xx with task index
V\mathcal{V} / vv Universal-task inputX×RE\mathcal{X} \times\mathcal{R}_EX\mathcal{X}X×RE\mathcal{X} \times\mathcal{R}_EX×RE\mathcal{X} \times\mathcal{R}_EX×RE\mathcal{X} \times\mathcal{R}_E
Training data Typical pretraining dataClinical text / EHR notesLongitudinal structured EHR event sequencesTask episodes sampled from a prior: context set plus query xxEHR examples paired with structured tasks and labelsEHR examples with labels for a fixed finite task set
ff ModelAutoregressive clinical language modelAutoregressive patient-trajectory modelPFN predictorTask-conditioned EHR predictorShared multitask predictor
Z\mathcal{Z} / zz Universal-task outputGenerated clinical text / answer sequenceGenerated EHR trajectoryPrediction in Y\mathcal{Y}Prediction in Y\mathcal{Y}Prediction in Y\mathcal{Y}
ρD\rho_D Decoder task repr.∅\varnothing, or output schema / formatStructured task program∅\varnothing∅\varnothing∅\varnothing
D DecoderIdentity, or parse generated text into task outputApply task program to generated trajectory distributionIdentityIdentityIdentity
T\mathcal{T} Task spaceNatural-language clinical tasks / instructionsEHR prediction / extraction tasksSupervised prediction tasks / data-generating distributionsStructured EHR queries / programsFinite discrete task set
Example papers Representative works[21][24][13][8][25]
Recipe Closest Sec. 5 constructionHybrid: Recipe 2-like input, Recipe 1-like outputRecipe 1 (Generative)Recipe 2-likeRecipe 2 (Task-conditioned)Recipe 2-like

Table 3. Illustrative decompositions of several foundation-model paradigms under the universal-task reduction framework. Here, x∈Xx \in\mathcal{X} denotes the original input, y∈Yy \in\mathcal{Y} the downstream label, rE∈REr_E \in\mathcal{R}_E and rD∈RDr_D \in\mathcal{R}_D the encoder- and decoder-side task representations, v∈Vv \in\mathcal{V} the universal-task input, and z∈Zz \in\mathcal{Z} the universal-task output. We use a minimal functional decomposition in which E only assembles the original input and encoder-side task representation, while D only performs the task-specific transformation needed to map universal-task predictions into the downstream label space. Preprocessing, tokenization, embeddings, and architectural encoder or decoder components are therefore absorbed into ff. The “Training data” and “Example papers” rows are included for comparison and are not themselves components of the formal reduction. These decompositions are not unique. The “Recipe” row indicates the closest structural correspondence to the constructions in Section 5 rather than an exact identification with a particular recipe. In particular, clinical LLMs are shown as hybrid constructions: task information enters on the encoder side through natural-language prompting, as in Recipe 2, while the model generates a general text output that may subsequently be mapped into the downstream label space, as in Recipe 1.

Outline of the Rest of the Work

Our notation uses precise conventions for typeface and notational elements in several places: for example, we write random variables in sans-serif typeface and distinguish them from their values, write Markov kernels as ρ:T⇝R\rho: \mathcal{T} \rightsquigarrow\mathcal{R}, and use push-forward distributions f#qf_{\#}q. These conventions, together with the standing assumptions we rely on, are collected in Appendix A. We strongly recommend that readers review Appendix A before proceeding to the rest of the work, as the formal development begins there and uses this notation without further introduction.

In the rest of this work, we will first formalize the notion of the “distribution of tasks” and of “task representations” in § 2. Then, in § 3, we will formally define ATI foundation models and demonstrate that this definition universally permits a decomposition through a “universal task reduction” lens. Building on this definition, in § 4, we will decompose the error of any given foundation model into meaningful terms dictated by the universal task decomposition. In § 6, we will further show that we can define two concrete recipes to build foundation models, building on the same basic assumptions and describe how they translate error across these different error sources. Finally, in § 7, we will discuss evaluating foundation models, and show that it is mathematically equivalent to evaluation of supervised models under fairness constraints.

Formalizing Tasks in Our Notation and Problem Formulation

A key ingredient of our eventual ATI foundation model definition will be the elevation of a “task” to a part of the input to the procedure, and thus to the probabilistic formulation of the problem. In this section, we provide the necessary mathematical and notational set-up to do this formally.

The Extended Task-Data Domain

Let X\mathcal{X} be some data domain. Let Y\mathcal{Y} be a label domain, such as {0,1}\{0,1\} for binary classification, though Y\mathcal{Y} need not be discrete. Typically, in machine learning, we assume that we have random variables x,yx,y over X×Y\mathcal{X}\times\mathcal{Y} that define our space of interest. In this work, we argue this view is insufficient. As was first introduced (to the best of our knowledge) by Baxter, we argue that we should also include a notion of a standard Borel space T\mathcal{T} of “tasks” requiring us to predict Y\mathcal{Y} from X3\mathcal{X}^{3}.3 This notion requires us to similarly extend our (joint) distribution to x,y,tx,y,t over data inputs xx, labels yy and the task to which that label corresponds tt. We will explicitly assume that this joint random variable is well defined for any valid domain, and further that the random variable tt always has full support over T\mathcal{T}.

To make our notion of a task t∈Tt\in\mathcal{T} clear, we will identify a task tt with its associated posterior distribution of labels given data by assuming that there exists a jointly measurable kernel η:X×T⇝Y\eta:\mathcal{X}\times\mathcal{T}\leadsto\mathcal{Y}, such that y∣x=x,t=t∼η(⋅∣x,t)y\mid x=x,t=t\sim\eta(\cdot\mid x,t). We will further assume that the mapping t↦ηt=η(⋅∣⋅,t)t\mapsto\eta_t=\eta(\cdot\mid\cdot,t) is injective – i.e., each task defines a unique posterior distribution of yt∣xy_t\mid x. Note that while, mathematically, we assert that η\eta exists, we are not claiming that it is ever known – indeed, if η\eta were known, we would not need to do any learning as it defines the true posterior distributions.

Distribution Shift in the Task Space Note that formalizing this space of tasks T\mathcal{T} and distribution over tasks tt implies we may observe distribution shift over tasks between training and evaluation. This is an important area of study, but not, we argue, essential to “any-task inference” capabilities or to “foundation models,” and we leave it as an area of future work.

Existence of Trivial Task Distributions Note that we are not claiming that there is only “one” true task space T\mathcal{T} or task distribution tt. Instead, just as we have many data domains X\mathcal{X} or data distributions, we can have many task domains or distributions, and define new ones to suit certain applications or contexts. This does mean that we can define some “trivial” task spaces – e.g., a single element task distribution T={t}\mathcal{T}=\{t\}. This is valid in much the same way that it is valid to define my data domain as a single point X={x}\mathcal{X}=\{x\}. It is technically true, but neither interesting nor useful. Given this flexibility, specifying T\mathcal{T} is therefore an important part of specifying the domain of interest for any claims made about associated foundation models.

Single-task Models in this Extended Domain Note that this formulation does not preclude us from studying single-task models for a given task t∈Tt\in\mathcal{T}. In this setting, we are interested solely in modeling xt,ytx_t,y_t (in either a generative or discriminative yt∣xy_t\mid x setting). In such a setting, we can safely discard tt entirely, define our “effective” variables x,yx,y to be given by xt,ytx_t,y_t, and model as normal without issue.

Any-task Inference Capabilities in this Extended Domain If we are not interested in a single-task model, however, and instead interested in models that display “any-task inference capabilities,” then this extended domain is precisely the machinery we need to formalize this capability. In particular, for a model to support any-task inference over X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} it is clear that this model must permit, through some procedural form, one to map any pair (x,t)∈X×T(x,t)\in\mathcal{X}\times\mathcal{T} to some prediction distribution over Y\mathcal{Y} – e.g., the model must be usable through a procedure that lives in P(Y)(X×T)\mathcal{P}(\mathcal{Y})^{(\mathcal{X}\times\mathcal{T})}.

Critically, note here that we are not asserting anything about the model’s actual performance. It may, for example, yield terrible performance over every task t∈Tt\in\mathcal{T}, or be constant in its predictions across all t∈Tt\in\mathcal{T}, and that need not violate its ability to perform “any-task inference.” Instead, the claim we make here is operational – if someone describes their model as being able to make inference over any task within this extended domain, then there must be a mechanism by which you can perform inference for any task t∈Tt \in\mathcal{T}, which we can formalize in this functional form.

Note that we are also not requiring that T\mathcal{T} be directly observable for a model to support any-task inference – instead, the only requirement is that if you have access to a task t∈Tt \in\mathcal{T} or some representation of such a task, you must somehow be able to use the model to make inference for that task tt. Note that this definition shares many similarities with the informal definition of “zero-shot” learning; for more commentary on why we use “any-task inference” vs “zero-shot learning” here, see Appendix § 11.

Task Representations

In general, T\mathcal{T} will be an unobserved, latent space which is not represented in a tractable format. This will make it challenging to operationalize how we will realize these “procedures” defined on X×T\mathcal{X} \times\mathcal{T} referenced above. Instead, in practice, where “tasks” are used today in an operational manner, we instead must “represent” a task t∈Tt \in\mathcal{T} in some more tractable manner. We formalize this through the notion of a Markov Kernel (i.e., a stochastic function) from T\mathcal{T} into a space R\mathcal{R} via ρ:T⇝R\rho: \mathcal{T} \rightsquigarrow\mathcal{R}. As this kernel defines a probability distribution for each t∈Tt \in\mathcal{T}, we can introduce the notion of a random variable rr, jointly distributed with x,y,tx,y,t such that the conditional random variable rt=r∣t=tr_t = r|t = t is given precisely by the action of ρ\rho on tt. If we wish for ρ\rho to be given by a deterministic function g:T→Rg : \mathcal{T} \to\mathcal{R}, we can represent that with a point mass distribution, such that ρ(t)=δg(t)\rho(t) = \delta_{g(t)}. In this case, we may (at a slight abuse in notation) use ρ(t)=g(t)\rho(t) = g(t) as well when this distinction is clear from context. Note that even in the case that ρ\rho is deterministic, rr may still be stochastic given the stochasticity of tt. Below, we list some general properties and/or definitional requirements of task representations (all of which are assumed to be held in the context of a joint domain over x,t,yx,t,y).

Given a representation ρ:T⇝R\rho: \mathcal{T} \rightsquigarrow\mathcal{R}, we can also define several induced kernels that will help with further results. In particular, Definition 2.1 defines κρ:R⇝T\kappa_\rho: \mathcal{R} \rightsquigarrow\mathcal{T} to be the posterior kernel of tasks given representations and Definition 2.2 defines the kernel ϕρ:X×R⇝Y\phi_\rho: \mathcal{X} \times\mathcal{R} \rightsquigarrow\mathcal{Y} to be the distribution of labels conditioned on a data sample and a represented task (much as η\eta is the kernel for true tasks).

Definition 2.1. Given extended domain X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y}, ρ:T⇝R\rho: \mathcal{T} \rightsquigarrow\mathcal{R} a representation of T\mathcal{T}, and associated joint random variables x,t,y,rx,t,y,r, we can define the induced kernel κρ:R⇝T\kappa_\rho: \mathcal{R} \rightsquigarrow\mathcal{T} to be the posterior distribution of t∣rt|r.

Definition 2.2. Given extended domain X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y}, ρ:T⇝R\rho: \mathcal{T} \rightsquigarrow\mathcal{R} a representation of T\mathcal{T}, and associated joint random variables x,t,y,rx,t,y,r, we can define the induced kernel ϕρ:X×R⇝Y\phi_\rho: \mathcal{X} \times\mathcal{R} \rightsquigarrow\mathcal{Y} to be the induced distribution of y∣x,ry|x,r.

To maximize the utility of these task representations, there are some basic properties, assumptions, and definitions we will introduce. Concretely, we take as a definitional assumption that r⊥x,y∣tr \perp x,y|t. Similarly, if we have two distinct representations ρ1\rho_1 and ρ2\rho_2, then we will likewise assume that r1⊥r2∣tr_1 \perp r_2|t. Given two such representations, we may also define a composite representation ρ=ρ1⊗ρ2\rho= \rho_1 \otimes\rho_2 such that ρ:T⇝R1×R2\rho: \mathcal{T} \rightsquigarrow\mathcal{R}_1 \times\mathcal{R}_2 yields a random variable rr taking values (r1,r2)(r_1,r_2) such that each component of rtr_t is independent of one another and defined by ρ1(⋅∣t)\rho_1(\cdot|t) and ρ2(⋅∣t)\rho_2(\cdot|t) respectively. Additionally, some representations ρ\rho may be “degenerate” in the sense that they may offer no information about the task in question, such that r⊥tr \perp t. For example ρ(t)=δ0\rho(t) = \delta_0 (ρ\rho maps all tasks to a point-mass at 0) is degenerate.

Conversely, a representation ρ\rho will be called “complete” if it contains all the information about the task. Concretely, ρ\rho is complete if κρ(⋅∣r)=δt\kappa_\rho(\cdot|r) = \delta_t almost everywhere. For example, t↦δtt \mapsto\delta_t is complete.

A graphical model of the relationship between data, tasks, labels, and representations can be shown in Figure 1.

A graphical model of data samples x, tasks t, labels y, and representations of tasks induced by ρ, r

Figure 1. A graphical model of data samples xx, tasks tt, labels yy, and representations of tasks induced by ρ\rho, rr.

Examples. While it may seem counterintuitive at first, all task spaces permit tractable representations through a variety of means. Concretely, as we will explore in more depth below, each of our running examples leverages distinct tractable representations of tasks to achieve their foundation model behaviors. In particular, LLMs represent tasks via free-text prompts and natural language questions. AR foundation models for EHR data represent tasks in the form of structured programs they use to extract labels from generated trajectories during inference. PFNs represent a task tt stochastically via samples (assumed to be iid) drawn from the distribution of x,y∣t=tx,y|t = t, which are directly passed to models as a sequence of (x,y)(x,y) pairs. Task-conditioned, direct prediction foundation models like EveryQuery [8] directly represent tasks via structured programs (much like AR EHR FMs use), and, finally, multi-task foundation models consider only a discrete space of tasks and represent them via categorical indices.

Irreducible Error due to Task Representation Ambiguity

It is important to note that ρ\rho will often produce “lossy” representations of tasks. In particular, it is clear by the data processing inequality and the fact that x,y→t→rx, y \to t \to r is a Markov chain, then I(x,y;t)≥I(x,y;r)I(x,y;t) \ge I(x,y;r). In other words, a representation of a task has less mutual information with the joint distribution of x,yx,y than does the true task.

We can generalize this notion slightly to apply to arbitrary generalized entropies and divergences by introducing the strictly proper scoring loss ℓ\ell over Y\mathcal{Y} and the associated generalized entropies introduced in Appendix § 8, through Definition 2.3.

Definition 2.3. Given ℓ\ell, ρ\rho as defined above, let Δρ\Delta_\rho (implicitly dependent on ℓ\ell, which we will assume is specified in context) to be the increase in the generalized ℓ\ell-entropy hℓh_\ell of y∣xy|x when conditioning on rr rather than tt:

Δρ=hℓ(y∣x,r)−hℓ(y∣x,t)=hℓ(y∣x,r)−hℓ(y∣x,t,r)=Iℓ(y;t∣x,r)≥0\begin{aligned} \Delta_\rho&= h_\ell(y|x,r) - h_\ell(y|x,t) \\ &= h_\ell(y|x,r) - h_\ell(y|x,t,r) \\ &= I_\ell(y;t|x,r) \\ &\ge0 \end{aligned}

Definition 2.3 shows that Δρ\Delta_\rho is precisely (1) the amount of information that remains between yy and tt when conditioning on rr and xx, and (2) the increase in Bayes-optimal error were we forced to predict yy from xx and rr alone vs. if we could use the true tt directly.

Note that we can see that if ρ\rho is complete, then hℓ(y∣x,r)=hℓ(y∣x,t)h_\ell(y|x,r) = h_\ell(y|x,t), so Δρ=0\Delta_\rho= 0. Conversely, if ρ\rho is degenerate, then Δρ=Iℓ(y;t∣x)\Delta_\rho= I_\ell(y;t|x) and is maximized. Additionally, suppose that ρ=ρ1⊗ρ2\rho= \rho_1 \otimes\rho_2. Then, by independence of ρ1\rho_1 and ρ2\rho_2 and the construction of the composite representation ρ\rho, we have that Δρ≤Δℓ(ρ1)\Delta_\rho\le\Delta_\ell(\rho_1) and Δρ≤Δℓ(ρ2)\Delta_\rho\le\Delta_\ell(\rho_2).

Example Consider two tasks: predicting whether a patient will be readmitted within 7 days or within 30 days. If both are represented simply as “predict readmission,” the time horizon is lost. A readmission on day 20 would have different labels under the two tasks. Thus, even a Bayes-optimal predictor cannot fully resolve this ambiguity, resulting in irreducible representation error Δρ\Delta_\rho.

Defining Foundation Models

With this machinery in place, we can now define an ATI foundation model formally. In fact, in this work, we will make the property of “any-task inference capable” identical with being a “foundation model,” as this aligns precisely with the desiderata introduced in the Introduction and the spirit of maximally data-efficient adaptability introduced by Bommasani et al. We will first introduce a direct definition based on any-task inference capability in Subsection 3.1, then further show that we can equivalently define foundation models as reductions to a universal task and establish some basic properties of this definition in Subsection 3.2.

Formal Definition of an ATI Foundation Model

We first define ATI foundation models formally in Definition 3.1.

Definition 3.1 (Foundation Model). Let X,T,Y\mathcal{X}, \mathcal{T}, \mathcal{Y} be an extended data, task, label domain of interest, satisfying the normal, previously mentioned assumptions. We will define an “ATI foundation model” over this domain to be a procedure4 P:X×T→P(Y)P : \mathcal{X} \times\mathcal{T} \to\mathcal{P}(\mathcal{Y}). Implicitly, if one is interested in an ATI foundation model over this domain, but is only permitted to access tasks through a single-draw of a representation ρ:T⇝R\rho: \mathcal{T} \rightsquigarrow\mathcal{R}, then we should understand this as a procedure over X×R\mathcal{X} \times\mathcal{R} instead of X×T\mathcal{X} \times\mathcal{T} to reflect this single-draw requirement.

Much as we said for “any-task inference capability,” Definition 3.1 does not assert a specific performance guarantee, nor does it require generalization outside of the specified domain X,T,Y\mathcal{X}, \mathcal{T}, \mathcal{Y}. It does, however, assert that there must be an operational manner by which one can map an input xx and a given task tt to a predicted distribution over Y\mathcal{Y}. Note that we also do not assert that the foundation model will be able to access the raw task tt – instead, as we will introduce later, we will assume there is a specific representation of the task that the foundation model can leverage, which will factor into eventual error decompositions.

While Definition 3.1 may seem weak, we will see in this section that it permits meaningful theoretical and practical results. Concretely, in what remains of this section we will first remark that this definition trivially demonstrates what the “Bayes-optimal” foundation model is over this domain, and the implications of this, then we will show that all foundation models under this definition can be decomposed into terms under a “universal-task reduction” lens.

Bayes-optimal Foundation Models It is clear from Definition 3.1 that over a given domain with joint random variables x,t,yx,t,y, the Bayes-optimal foundation model P∗P^* under any strictly proper scoring loss ℓ\ell is given by the true posterior of yy given x,tx,t:

P∗:(x,t)↦η(x,t).P^* : (x,t) \mapsto\eta(x,t).

We can also use this to see, near trivially, that the best possible foundation model cannot outperform the best possible single-task model for a task t∈Tt \in\mathcal{T}, both in general and when under matched model-permissibility constraints, thereby formally clarifying that foundation model improvements over supervised models must come from other mechanisms (Appendix C).

Foundation Models over Represented Task Spaces Definition 3.1 defines a foundation model over an extended X,T,Y\mathcal{X}, \mathcal{T}, \mathcal{Y} domain and over the X,R,Y\mathcal{X}, \mathcal{R}, \mathcal{Y} space where R\mathcal{R} is the representation space of some representation ρ:T⇝R\rho: \mathcal{T} \rightsquigarrow\mathcal{R} in the case that the user is only allowed to access a single-draw of ρ\rho for any task t∈Tt \in\mathcal{T}. Note that even in this single-draw case, we still consider the foundation model to be “over the X,T,Y\mathcal{X}, \mathcal{T}, \mathcal{Y} domain” not for the purposes of its definition/API, but instead for the purposes of optimality, as were the user to use a different representation ρ′:T⇝R′\rho' : \mathcal{T} \rightsquigarrow\mathcal{R}' for the root space of X,T,Y\mathcal{X}, \mathcal{T}, \mathcal{Y}, they might be able to obtain a “better” model than is obtainable under the original ρ\rho in a manner that is lost if we consider optimality to be in the X,R,Y\mathcal{X}, \mathcal{R}, \mathcal{Y} space. We will show later that the cost of a given choice ρ\rho in this single-draw case is precisely the irreducible representation error Δρ\Delta_\rho as defined in Definition 2.3.

Example A multi-task model predicting a fixed set of clinical outcomes satisfies Definition 3.1 when T\mathcal{T} is restricted to those outcomes: given a task index, the corresponding prediction can be returned without retraining. However, this guarantees no inference capability beyond the specified task space, emphasizing that the expressiveness of T\mathcal{T} is central to interpreting foundation model claims.

Foundation Models as Universal Task Reductions

Building on only Definition 3.1, we can decompose any foundation model into a procedure that leverages a form of reduction in the space of tasks to achieve any-task inference capabilities. Concretely, we will break a foundation model PP down into an “encoder”, a “universal task” and associated predictive “model”, and a “decoder”, such that the encoder, limited by an encoder-specific task representation, converts inputs to PP into universal task model inputs, the predictive model attempts to solve the universal task over the modified inputs, and the decoder (similarly limited by a decoder-specific task representation) converts predictions for the universal task into predictions over the true labels YY.

To define this decomposition formally, we introduce the following variables, introduced in Notation 1. Notation 1. Let X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} be the normal extended domain, with x,t,y\mathbf{x},\mathbf{t},\mathbf{y} the normal jointly distributed random variables. Then, define the following terminology and notational elements:

Encoder and Decoder Task Representations Let RE\mathcal{R}_{E} and RD\mathcal{R}_{D} be encoder and decoder specific task representation spaces, with ρE:T⇝RE\rho_{E}:\mathcal{T}\rightsquigarrow\mathcal{R}_{E} and ρD:T⇝RD\rho_{D}:\mathcal{T}\rightsquigarrow\mathcal{R}_{D} defining encoder and decoder representations, and rE\mathbf{r}_{E} and rD\mathbf{r}_{D} the induced encoder/decoder representation random variables, respectively.

Global Representation Define ρ=ρE⊗ρD\rho=\rho_{E}\otimes\rho_{D}, with r\mathbf{r} the induced random variable.

Universal-task Domain Let V,Z\mathcal{V},\mathcal{Z} be alternative, standard-Borel spaces. Intuitively, V\mathcal{V} and Z\mathcal{Z} define the input and output spaces of the universal prediction problem to which the original task is reduced: the encoder maps the original input and task representation into V\mathcal{V}, and predictions in Z\mathcal{Z} can subsequently be transformed by the decoder into predictions over the original label space Y\mathcal{Y}.

Encoder Let E:X×RE→VE:\mathcal{X}\times\mathcal{R}_{E}\to\mathcal{V}. In the context of a known encoder EE, we can introduce a random variable v\mathbf{v} defined as E(x,rE)E(\mathbf{x},\mathbf{r}_{E}), jointly distributed with all others.

Universal Task Let uu define a probability distribution for a “universal task” predicting elements from Z\mathcal{Z} given inputs from V\mathcal{V}, such that u:V⇝Zu:\mathcal{V}\rightsquigarrow\mathcal{Z}. In the context of a defined task uu and encoder EE, we will let the random variable z\mathbf{z} denote the random variable induced from u(v)u(\mathbf{v}), jointly distributed and independent of all others given v\mathbf{v}.

Labeler Define a per-task deterministic labeler d:RD×Z→Yd:\mathcal{R}_{D}\times\mathcal{Z}\to\mathcal{Y}, a measurable function that maps a universal-task output z∈Z\mathbf{z}\in\mathcal{Z} to a downstream label for any represented task rD∈RD\mathbf{r}_{D}\in\mathcal{R}_{D}. We write drD(⋅)=d(rD,⋅)d_{\mathbf{r}_{D}}(\cdot)=d(\mathbf{r}_{D},\cdot).

Model Let f:V→P(Z)f:\mathcal{V}\to\mathcal{P}(\mathcal{Z}). In the context of a known EE we can define a random variable induced by ff as z^\hat{\mathbf{z}} sampled via f(v)f(\mathbf{v}), jointly distributed and independent with all others given v\mathbf{v}.

Decoder Let D:P(Z)×RD→P(Y)D:\mathcal{P}(\mathcal{Z})\times\mathcal{R}_{D}\to\mathcal{P}(\mathcal{Y}) be the realized decoder. It is intended to approximate the target decoder D⋆:P(Z)×RD→P(Y)D^{\star}:\mathcal{P}(\mathcal{Z})\times\mathcal{R}_{D}\to\mathcal{P}(\mathcal{Y}) induced by the labeler,

D⋆(q,rD)=drD#q,D^{\star}(q,\mathbf{r}_{D})=d_{\mathbf{r}_{D}\#}q,

i.e., the distribution of drD(z)d_{\mathbf{r}_{D}}(\mathbf{z}) for z∼q\mathbf{z}\sim q.

Unlike the model ff and decoder DD, which can be compared respectively to the target universal task uu and the stochastic labeling operation induced by dd, we do not posit a target encoder. Rather, the choice of encoder EE is part of the specification of the universal-task reduction itself and therefore jointly determines, together with uu, the universal prediction problem.

With these introduced, we can formally state and prove Theorem 3.2, which informally states that all foundation models permit a reduction through this universal task lens.

Theorem 3.2 (All Foundation Models are Universal Task Reductions). Let PP be a foundation model over an extended domain X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y}. Then there exists a representation, encoder, model, and decoder (in the sense of the previously introduced terminology), such that almost surely

P(x,t)=D(f(E(x,rE)),rD).P(\mathbf{x},\mathbf{t})=D\bigl(f(E(\mathbf{x},\mathbf{r}_{E})),\mathbf{r}_{D}\bigr).

Proof. We can realize this trivially by construction. For t∈T\mathbf{t}\in\mathcal{T}, let the encoder representation ρE(t)=δt\rho_{E}(\mathbf{t})=\delta_{\mathbf{t}} be complete, let V=X×T\mathcal{V}=\mathcal{X}\times\mathcal{T}, Z=Y\mathcal{Z}=\mathcal{Y}, E=IE=I be the identity, f=Pf=P directly, and let D(q,⋅)=qD(q,\cdot)=q return the first argument only. Then this equality holds almost surely. □

Note that Theorem 3.2 does not suggest that all foundation models uniquely decompose among these components – merely that there exists a decomposition of this form. Additionally, note that Theorem 3.2 leverages a consistent, deterministic representation ρ\rho, and thus does not permit us to say that we can decompose a generic foundation model over T\mathcal{T} in a manner leveraging an inconsistent or stochastic representation. However, in such settings, if we assume the user is only permitted a single draw from the given representation ρ\rho (which we generally will), then we really are operating over the induced domain of X,R,Y\mathcal{X}, \mathcal{R}, \mathcal{Y} (rather than X,T,Y\mathcal{X}, \mathcal{T}, \mathcal{Y}) with a consistent, deterministic representation without loss of generality. Finally, and most critically, note that the construction used in Theorem 3.2 is trivial, and does not assign any special properties to any components in a particular sense. However, it does show that we can, without loss of generality almost surely, use this decomposed view of a foundation model as a general definition. In particular, we can use Definition 3.3 instead of Definition 3.1 as our working definition of ATI foundation models, and conclude by Theorem 3.2 that this is almost surely without loss of generality.

Definition 3.3 (Foundation Models as Reductions). Define ρ\rho, E\mathrm{E}, ff, D\mathrm{D} in the prior terminology block. Then a foundation model P:X×T→P(Y)\mathrm{P} : \mathcal{X} \times\mathcal{T} \to\mathcal{P}(\mathcal{Y}) can be defined as the tuple (ρ,E,f,D)(\rho, \mathrm{E}, f, \mathrm{D}), realizing the function

P(x,t)=D(f(E(x,rE)),rD).\mathrm{P}(x,t) = \mathrm{D}(f(\mathrm{E}(x,r_{\mathrm{E}})),r_{\mathrm{D}}).

Example A nontrivial instance of Theorem 3.2 and Definition 3.3 is given by autoregressive foundation models for longitudinal EHR data [24]. Here, the model need not receive the downstream task as input. Instead, we may take ρE\rho_{\mathrm{E}} to be degenerate and let E(x,⋅)=x\mathrm{E}(x,\cdot)=x, while choosing the universal task uu to be prediction of a future patient trajectory zz given the observed history xx. The learned model ff approximates this trajectory distribution. A downstream task tt, such as predicting whether a particular clinical event occurs within a specified time horizon, is represented on the decoder side through ρD\rho_{\mathrm{D}}, and D\mathrm{D} maps the predicted trajectory distribution to a distribution over the corresponding task label. Thus, many distinct task-specific predictions are obtained by reducing them to the same universal task of forecasting future patient trajectories.

Optimality Relative To a Target Universal Task uu And Labeler dd Note that thus far, we have not explicitly used the universal task uu or the labeler dd. To incorporate these into our definitions, we will define the notions of uu or dd-optimal foundation models in Definition 3.4. Informally, a foundation model is uu-optimal if ff perfectly reflects the distribution uu (i.e., f(v)=u(v)f(v)=u(v)). It is dd-optimal if the realized decoder coincides with the target decoder, D=D⋆\mathrm{D}=\mathrm{D}^{\star}, i.e., D(q,rD)=drDq\mathrm{D}(q,r_{\mathrm{D}})=d_{r_{\mathrm{D}}}q.

Definition 3.4 (Foundation Model Optimality). Let (ρ,E,f,D)(\rho,\mathrm{E},f,\mathrm{D}) define a foundation model P\mathrm{P}, with uu, dd and the induced target decoder D⋆\mathrm{D}^{\star} as defined previously. Then P\mathrm{P} is uu-optimal if f=uf=u (if ff perfectly models the universal task) and dd-optimal if D(q,rD)=D⋆(q,rD)\mathrm{D}(q,r_{\mathrm{D}})=\mathrm{D}^{\star}(q,r_{\mathrm{D}}) for all (q,rD)(q,r_{\mathrm{D}}) (if D\mathrm{D} exactly implements the labeler dd).

In general, uu and dd-optimality are only meaningful for a pre-specified uu or dd; e.g., the construction used in Theorem 3.2 actually establishes uu-optimality for uu being the kernel for P(x,t)\mathrm{P}(x,t) and dd-optimality with drD(z)=zd_{r_{\mathrm{D}}}(z)=z (the identity, since Z=Y\mathcal{Z}=\mathcal{Y}), thus showing that one can always choose a uu and dd to establish optimality. However, this will not imply that for any uu and dd, a given foundation model is optimal.

Notational Elements for the Decomposed Foundation Model In addition to the variables introduced in Notation 1, now that we have introduced uu and dd optimality, it makes sense to introduce explicit random variables for the various combinations of the components of P\mathrm{P} under Definition 3.3, as they will ultimately help us describe P\mathrm{P} in more precise ways. These elements are defined in Notation 2 and are represented as an augmented graphical model in Figure 2. Table 1 and Table 2 summarize all the introduced objects and how they relate to each other.

SpaceElements / random variableInterpretation
Input space X\mathcal{X}x∼x,x∈Xx \sim x,\quad x \in\mathcal{X}Original data/input space.
Task space T\mathcal{T}t∼t,t∈Tt \sim t,\quad t \in\mathcal{T}Space of downstream tasks of interest.
Label space Y\mathcal{Y}y∼y,y∈Yy \sim y,\quad y \in\mathcal{Y}Downstream label space.
Encoder representation space RE\mathcal{R}_{E}rE∼rE,rE∈REr_{E} \sim r_{E},\quad r_{E} \in\mathcal{R}_{E}Space in which encoder-side representations of the task live.
Decoder representation space RD\mathcal{R}_{D}rD∼rD,rD∈RDr_{D} \sim r_{D},\quad r_{D} \in\mathcal{R}_{D}Space in which decoder-side representations of the task live.
Global representation space RE×RD\mathcal{R}_{E} \times\mathcal{R}_{D}r=(rE,rD)∼rr = (r_{E},r_{D}) \sim rJoint task-representation space combining the information used by the encoder and decoder.
Universal-task input space V\mathcal{V}v∼v,v∈Vv \sim v,\quad v \in\mathcal{V}Input space of the universal task.
Universal-task output space Z\mathcal{Z}z∼z,z∈Zz \sim z,\quad z \in\mathcal{Z}Output space of the universal task.

Table 1. Spaces used in the universal-task reduction and their associated realizations and random variables.

Figure 2. An augmented schematic graphical representation of the random variables and distribution-level operations induced by different combinations of our foundation model components. Blue circular nodes correspond to random variables and orange nodes correspond to stochastic or deterministic kernels or procedures. Solid directed edges through kernels indicate sample-level generation. Dashed edges from universal-task output random variables to D⋆D^\star or DD indicate dependence on the corresponding conditional distribution rather than pointwise application to the realized random variable. Each decoder (target D⋆D^\star or realized DD) separately receives the decoder-side task representation rDr_D. This figure should be interpreted as a probabilistic graphical representation rather than a causal DAG.

RoleObjectDefinition / typeInduced object(s)Interpretation
Base problem and reduction
BaseTask kernel η\etaη:X×T⇝Y\eta: \mathcal{X} \times\mathcal{T} \rightsquigarrow\mathcal{Y}y∣x=x,t=t∼η(⋅∣x,t)y \mid x = x, t = t \sim\eta(\cdot\mid x,t)True task-specific conditional distribution of labels.
ReductionEncoder task representation ρE\rho_EρE:T⇝RE\rho_E : \mathcal{T} \rightsquigarrow\mathcal{R}_ErE∣t=t∼ρE(t)r_E \mid t = t \sim\rho_E(t)Represents the task for the purpose of constructing the universal-task input.
ReductionDecoder task representation ρD\rho_DρD:T⇝RD\rho_D : \mathcal{T} \rightsquigarrow\mathcal{R}_DrD∣t=t∼ρD(t)r_D \mid t = t \sim\rho_D(t)Represents the task for the purpose of interpreting universal-task outputs in the original label space.
ReductionGlobal representation ρ\rhoρ=ρE⊗ρD:T⇝RE×RD\rho= \rho_E \otimes\rho_D : \mathcal{T} \rightsquigarrow\mathcal{R}_E \times\mathcal{R}_Dr=(rE,rD)r = (r_E,r_D)Joint representation containing the encoder- and decoder-side task representations.
ReductionEncoder EEE:X×RE→VE : \mathcal{X} \times\mathcal{R}_E \to\mathcal{V}v=E(x,rE)v = E(x,r_E)Maps the original input and encoder-side task representation into the input space of the universal task.
Universal task
TargetUniversal task uuu:V⇝Zu : \mathcal{V} \rightsquigarrow\mathcal{Z}z∣v=v∼u(v)z \mid v = v \sim u(v)Target conditional distribution defining the universal task.
RealizedModel fff:V→P(Z)f : \mathcal{V} \to\mathcal{P}(\mathcal{Z})z^∣v=v∼f(v)\hat{z} \mid v = v \sim f(v)Realized predictive model intended to approximate the universal task uu.
Task-specific labeling and decoding
TargetLabeler ddd:RD×Z→Yd : \mathcal{R}_D \times\mathcal{Z} \to\mathcal{Y}drD(z)=d(rD,z)d_{r_D}(z) = d(r_D,z)Task-specific deterministic map from a universal-task outcome to a downstream label.
TargetTarget decoder D⋆D^\starD⋆:P(Z)×RD→P(Y)D^\star: \mathcal{P}(\mathcal{Z}) \times\mathcal{R}_D \to\mathcal{P}(\mathcal{Y}); D⋆(q,rD)=drD♯qD^\star(q,r_D)=d_{r_D\sharp}qw∼D⋆(u(v),rD)w \sim D^\star(u(v),r_D), w^∼D⋆(f(v),rD)\hat{w} \sim D^\star(f(v),r_D)Decoding operation implied by the target labeler.
RealizedDecoder DDD:P(Z)×RD→P(Y)D : \mathcal{P}(\mathcal{Z}) \times\mathcal{R}_D \to\mathcal{P}(\mathcal{Y})w~∼D(u(v),rD)\widetilde{w} \sim D(u(v),r_D), y^∼D(f(v),rD)\hat{y} \sim D(f(v),r_D)Realized decoder intended to approximate the target decoder D⋆D^\star.
Complete foundation model
RealizedFoundation model PPP:X×T→P(Y)P : \mathcal{X} \times\mathcal{T} \to\mathcal{P}(\mathcal{Y})y^∼P(x,t)\hat{y} \sim P(x,t), P(x,t)=D(f(E(x,rE)),rD)P(x,t)=D(f(E(x,r_E)),r_D)Complete any-task inference procedure obtained by composing the task representations, encoder, realized universal-task model, and decoder.

Table 2. Components of the universal-task reduction. Reduction components specify how the original task and input are mapped into the universal-task domain. Target components, shown in blue, specify the intended universal task, labeler, and the target decoder they induce; realized components, shown in orange, denote their implemented counterparts.

Notation 2. Recall the notation introduced in Notation 1. We further introduce the following notational conventions: (1) The use of a ⋅^\hat{\cdot} will indicate a random variable that has been approximated via ff rather than the true universal task uu – this is consistent with z^\hat{z} already introduced in Notation 1. (2) The use of a ⋅~\tilde{\cdot} will indicate a distribution being approximated through the action of the realized decoder D\mathrm{D} rather than the target decoder D⋆\mathrm{D}^{\star}.

Consistent with these, we have: Input Variables x,t,y,rE,rDx,t,y,r_{E},r_{D} as defined in Notation 1.

Encoder Action Let v=E(x,rE)v = E(x,r_{E}) be the random variable induced by EE.

Universal Task Outputs Let zz be the true universal task label drawn from u(v)u(v), and z^\hat{z} be the approximated universal task label drawn from f(v)f(v). A uu-optimal model has z∣vz\mid v and z^∣v\hat{z}\mid v identically distributed.

Decoded Outputs We will let the “w” character represent the Y\mathcal{Y} valued random variable obtained by applying the target decoder D⋆D^{\star} or the realized decoder DD to a distribution over Z\mathcal{Z}. Concretely,

  • Let ww represent the random variable obtained by applying the target decoder to the true universal-task distribution:

w∼D⋆(u(v),rD).w \sim D^{\star}(u(v),r_{D}).
  • Let w~\tilde{w} represent the random variable obtained by applying the realized decoder to the true universal-task distribution:

w~∼D(u(v),rD).\tilde{w} \sim D(u(v),r_{D}).
  • Let w^\hat{w} represent the random variable obtained by applying the target decoder to the model-approximated universal-task distribution:

w^∼D⋆(f(v),rD).\hat{w} \sim D^{\star}(f(v),r_{D}).
  • Instead of using the awkward notation w~^\hat{\tilde{w}} for our final term, we use y^\hat{y} to represent the true output of PP, obtained by applying the realized decoder to the realized model output:

y^∼D(f(v),rD).\hat{y} \sim D(f(v),r_{D}).

Note that a dd-optimal model has w∣x,rw\mid x,r and w~∣x,r\tilde{w}\mid x,r identically distributed, and likewise w^∣x,r\hat{w}\mid x,r and y^∣x,r\hat{y}\mid x,r. If ff is uu-optimal and DD is dd-optimal, then

w∣x,r=w~∣x,r=w^∣x,r=y^∣x,ra.s.w\mid x,r = \tilde{w}\mid x,r = \hat{w}\mid x,r = \hat{y}\mid x,r \quad\text{a.s.}

The conditional independence relationships between these random variables, and their generating kernels/relationships, are shown via the augmented graphical model in Figure 2.

Decomposing Foundation Model Error

In this section, we will use Definition 3.3 to decompose foundation model errors into terms corresponding to different aspects of this decomposition. There are many such decompositions possible, and as we will define them here, many are near-trivial in complexity, as we will define individual error terms such that by

construction they sum to the total foundation model error. Nevertheless, the decompositions we introduce will allow us to understand what parts of the error we can optimize and control under different algorithms. For example, suppose a foundation model is trained in a “typical” manner, where the developer’s intent is to train the model ff to approximate a pre-specified universal task uu and the decoder DD to approximate the target decoder D⋆D^\star, while the other components of the process are held fixed. A typical training procedure in this setting would then optimize ff to better approximate uu and/or DD to better approximate D⋆D^\star. By separating such error components out from other aspects of the error, we can identify what remaining components exist in the total error and when they can be bounded or identified to be zero.

To decompose error in this way, we will first formally define what we mean by “foundation model error” in Subsection 4.1, then introduce a large set of terms quantifying different aspects of the total error in Subsection 4.2, before finally formally introducing our error decompositions and arguing for their utility in Subsection 4.3.

Defining Error for a Single-Draw Model

We define the error of a foundation model under strictly proper scoring loss ℓ\ell formally in Definition 4.1.

Definition 4.1 (Foundation Model ℓ\ell-Error). Let X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} be an extended domain, ρ:T⇝R\rho:\mathcal{T}\rightsquigarrow\mathcal{R} be a task representation, x,t,r,yx,t,r,y be the normal joint random variables, and let ℓ\ell be a strictly proper scoring loss. Let PP be a single-ρ\rho-draw foundation model over this domain, defined therefore via Definition 3.1 as a procedure over X×R\mathcal{X}\times\mathcal{R}. Let y^\hat{y} be a random variable induced by P(x,r)P(x,r), which we can therefore understand to be jointly distributed with all other random variables. We define the foundation model PP’s ℓ\ell error over X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} as the normal regret divergence for ℓ\ell between the predicted distribution given by PP and the true distribution given by P∗=ηP^*=\eta in expectation over samples and tasks:

Err⁡ℓ(P):=dℓ(η(x,t),P(x,r∣t))=Ex,t[Er∣t=t[dℓ(η(x,t),P(x,r))]]\operatorname{Err}_{\ell}(P) := d_{\ell}(\eta(x,t),P(x,r\mid t)) = \mathbb{E}_{x,t}\left[\mathbb{E}_{r\mid t=t}\left[d_{\ell}(\eta(x,t),P(x,r))\right]\right]

Definition 4.1 introduces the error of the X×R\mathcal{X}\times\mathcal{R} procedure against the ideal model achievable over X×T\mathcal{X}\times\mathcal{T} (to respect the single-draw constraint). To capture the impact the single-draw criteria has, Lemma 4.2 decomposes Err⁡ℓ(P)\operatorname{Err}_{\ell}(P) into a term describing the error in comparison to the achievable error of P vs. the ideal predictor over X×R\mathcal{X}\times\mathcal{R} (not X×T\mathcal{X}\times\mathcal{T}) and a term capturing remaining error due to task-representation error.

Lemma 4.2. Given Definition 4.1 and ϕρ:X×R⇝Y\phi_{\rho}:\mathcal{X}\times\mathcal{R}\rightsquigarrow\mathcal{Y} introduced in Definition 2.2, we can re-organize Err⁡ℓ(P)\operatorname{Err}_{\ell}(P) as defined in Definition 4.1 as follows:

Err⁡ℓ(P)=dℓ(ϕρ;P)⏟achievable error+Δρ=dℓ(y;y^∣x,r)⏟achievable error+Δρ\begin{aligned} \operatorname{Err}_{\ell}(P) &= \underbrace{d_{\ell}(\phi_{\rho};P)}_{\text{achievable error}}+\Delta_{\rho}\\ &= \underbrace{d_{\ell}(y;\hat{y}\mid x,r)}_{\text{achievable error}}+\Delta_{\rho} \end{aligned}

Proof.

Err⁡ℓ(P)=Ex,t[Er∣t=t[dℓ(η(x,t),P(x,r))]]=Ex,t[Er∣t=t[Ey∣x=x,t=t,r=r[ℓ(P(x,r),y)−ℓ(η(x,t),y)]]]=Ex,t[Er∣t=t[Ey∣x=x,t=t,r=r[ℓ(P(x,r),y)]]−Ey∣x=x,t=t[ℓ(η(x,t),y)]]=Ex,t[Er∣t=t,x=x[Ey∣x=x,r=r[ℓ(P(x,r),y)]]]−Ex,t[Ey∣x=x,t=t[ℓ(η(x,t),y)]]=Et[Er,x∣t=t[dℓ(ϕρ(x,r),P(x,r))+hℓ(ϕρ(x,r))]]−hℓ(y∣x,t)=Er,x[Et=t∣r=r,x=x[dℓ(ϕρ(x,r),P(x,r))+hℓ(ϕρ(x,r))]]−hℓ(y∣x,t)=dℓ(ϕρ(x,r);P(x,r))+hℓ(y∣x,r)−hℓ(y∣x,t)=dℓ(ϕρ;P)+Δρ,\begin{aligned} \operatorname{Err}_{\ell}(P) &= \mathbb{E}_{x,t}\left[\mathbb{E}_{r\mid t=t}\left[d_{\ell}(\eta(x,t),P(x,r))\right]\right]\\ &= \mathbb{E}_{x,t}\left[\mathbb{E}_{r\mid t=t}\left[\mathbb{E}_{y\mid x=x,t=t,r=r}\left[\ell(P(x,r),y)-\ell(\eta(x,t),y)\right]\right]\right]\\ &= \mathbb{E}_{x,t}\left[\mathbb{E}_{r\mid t=t}\left[\mathbb{E}_{y\mid x=x,t=t,r=r}\left[\ell(P(x,r),y)\right]\right]-\mathbb{E}_{y\mid x=x,t=t}\left[\ell(\eta(x,t),y)\right]\right]\\ &= \mathbb{E}_{x,t}\left[\mathbb{E}_{r\mid t=t,x=x}\left[\mathbb{E}_{y\mid x=x,r=r}\left[\ell(P(x,r),y)\right]\right]\right]-\mathbb{E}_{x,t}\left[\mathbb{E}_{y\mid x=x,t=t}\left[\ell(\eta(x,t),y)\right]\right]\\ &= \mathbb{E}_{t}\left[\mathbb{E}_{r,x\mid t=t}\left[d_{\ell}(\phi_{\rho}(x,r),P(x,r))+h_{\ell}(\phi_{\rho}(x,r))\right]\right]-h_{\ell}(y\mid x,t)\\ &= \mathbb{E}_{r,x}\left[\mathbb{E}_{t=t\mid r=r,x=x}\left[d_{\ell}(\phi_{\rho}(x,r),P(x,r))+h_{\ell}(\phi_{\rho}(x,r))\right]\right]-h_{\ell}(y\mid x,t)\\ &= d_{\ell}(\phi_{\rho}(x,r);P(x,r))+h_{\ell}(y\mid x,r)-h_{\ell}(y\mid x,t)\\ &= d_{\ell}(\phi_{\rho};P)+\Delta_{\rho}, \end{aligned}

as desired.

Components of Foundation Model Error

To provide a useful decomposition of Err⁡ℓ(P)\operatorname{Err}_{\ell}(P), in this section we will introduce a variety of terms of different types of error which we will eventually combine in Theorem 4.11.

These terms will be organized to quantify the errors of different components of PP in various arrangements, motivated by the assumption that the developer is “intending” to approximate a pre-specified universal task uu and target decoder D∗D^*. For example, under the assumption that a model builder may be training the model ff to approximate a task uu, it would be of interest to compute the error of ff’s approximation of uu (to determine how well their training process worked) or how much error they would incur were they able to approximate uu perfectly, then use the rest of their foundation model as specified (to evaluate the choice of universal task uu).

We will introduce these terms in three sections. First, a section introducing “error” terms capturing unambiguous, strictly non-negative measures of error that would be obtained were elements of P\mathcal{P} isolated from the system and considered in a standalone manner. Second, a section introducing signed “excess” terms that capture how real-world interactions amongst these components in a full foundation model can either exacerbate or ameliorate total expected error. Finally, third, we will note that as ℓ\ell is a strictly proper scoring loss, there are natural, information-geometric, signed Bregman interaction terms canonical via the Bregman three-point identity between some combinations of our terms. All of these sections will rely heavily on the notation introduced in Appendix A and the specific random variables introduced to correspond to foundation model components defined in Notation 1 and 2 and Figure 2. In addition, all of these terms will judge the foundation model (for now) against the achievable total error, and thus condition on the observed (x,r)(x,r) pair rather than the base (x,t)(x,t) pair, consistent with the single-draw criteria.

Error Terms In Definition 4.3, we introduce various direct error measurements corresponding to parts of P\mathcal{P}. While we will combine each of these terms later, informally, they are all directly useful quantities when designing or evaluating a concrete foundation model. Specifically:

  • A target universal task uu that has large deficiency Δu\Delta_u is likely a poor target for foundation model development, as solving the task perfectly will still not enable production of a consistent, high-performance foundation model.

  • While often unmeasurable, the observed model deficiency Δf\Delta_f directly captures how much error is inescapable with a fixed model ff, and will be useful in our decomposition later.

  • If the model error εf\varepsilon_f is large, then the model poorly approximates uu, limiting internal validity if the choice of universal task uu is important.

  • If labeler error w.r.t. either uu or ff is large, then the choice of labeler dd can be seen to be problematic at a design level.

  • Finally, if the observed decoder error w.r.t. either uu or ff is large, it means that the realized decoder DD is unable to well approximate the target decoder D⋆D^{\star}, limiting internal validity if the choice of dd is important.

All terms will also be w.r.t. a strictly proper Y\mathcal{Y}-scoring loss ℓ\ell. In addition, we let ℓu:P(Z)×Z→R\ell_u : \mathcal{P}(\mathcal{Z}) \times\mathcal{Z} \to\mathbb{R} denote a strictly proper scoring loss over the universal-task output space Z\mathcal{Z}, which we use to measure discrepancies between the target universal task uu and the model ff.

Definition 4.3. Given the setup introduced previously, define the following error terms, which are all non-negative:

uu-deficiency Δu\Delta_u The universal-task deficiency is the minimal possible error a uu-optimal foundation model P\mathcal{P} could ever achieve when its decoder is restricted to a labeling step:5

Δu:=δℓ(y;z,rD∣x,r).\Delta_u := \delta_{\ell}(y; z, r_D \mid x,r).

ff-deficiency Δf\Delta_f The model-deficiency is analogous to Δu\Delta_u, but when we use the model ff rather than the target universal task uu:

Δf:=δℓ(y;z^,rD∣x,r).\Delta_f := \delta_{\ell}(y; \hat{z}, r_D \mid x,r).

Model Error εf\varepsilon_f The model-error captures how effectively ff models uu, in the typical way:

εf:=dℓu(z;z^∣x,r).\varepsilon_f := d_{\ell_u}(z; \hat{z} \mid x,r).

Labeler Error Δdu\Delta_d^u The labeler-error w.r.t. uu computes how much excess error is induced through the use of a specific labeler dd over the minimal error possible to obtain when predicting from the true universal task uu:

Δdu:=dℓ(y;w∣x,r)−Δu.\Delta_d^u := d_\ell(y;w\mid x,r)-\Delta_u.

Labeler Error Δdf\Delta_d^f Similarly, the labeler error w.r.t. ff computes the excess error due to dd when predicting from real model ff:

Δdf:=dℓ(y;w^∣x,r)−Δf.\Delta_d^f := d_\ell(y;\hat{w}\mid x,r)-\Delta_f.

Decoder-labeler Error w.r.t uu ΔDu\Delta_D^u The Decoder-error w.r.t. uu computes how well the realized decoder D approximates the target decoder D* on the outputs of the universal task uu:

ΔDu:=dℓ(w;w~∣x,r)\Delta_D^u := d_\ell(w;\widetilde{w}\mid x,r)

Decoder-labeler Error w.r.t ff ΔDf\Delta_D^f The Decoder-error w.r.t ff is analogous to ΔDu\Delta_D^u but over the outputs of realized model ff rather than uu6:

ΔDf:=dℓ(w^;y^∣x,r).\Delta_D^f := d_\ell(\hat{w};\hat{y}\mid x,r).

With these error terms, we can additionally introduce Definition 4.4, which states that a foundation model is well-founded w.r.t. either uu or dd if it has no universal-task deficiency or labeler error, respectively. Informally, this definition is advisable as if one can justify that a foundation model setup is well-founded, it indicates they have chosen a universal task and labeler that theoretically permit any-task inference at optimal achievable performance, in the event that one can learn a uu-optimal model ff and leverage a dd-optimal decoder D.

Definition 4.4. A foundation model P is well-founded w.r.t. uu if Δu=0\Delta_u=0. It is well-founded w.r.t. dd if Δdu=0\Delta_d^u=0. It is simply well-founded if it is well-founded w.r.t. both uu and dd.

In addition, Lemma 4.5 relates uu- and dd-optimality to the corresponding error terms, showing that uu-optimality is characterized by zero model error, while dd-optimality guarantees zero decoder error.

Lemma 4.5. Recall Definitions 3.4 and 4.3. Two properties hold:

  1. P is uu-optimal iff ϵf=0\epsilon_f=0.

  1. If P is dd-optimal, then ΔDf=ΔDu=0\Delta_D^f=\Delta_D^u=0.

Proof. The first property follows directly from the definition of uu-optimality meaning that f=uf=u and that ℓu\ell_u is strictly proper. The second follows from the definition of dd-optimality meaning that D = D*, so w~\widetilde{w} and ww (resp. y^\hat{y} and w^\hat{w}) have the same conditional distribution given (x,r)(x,r).

Excess Terms All of the direct error terms in Definition 4.3 are non-negative, and in a strict sense only a subset of them will directly contribute to total foundation model error. This discrepancy is because these error terms measure direct comparisons on individual components of P, and when these components are combined, the result can have greater or lesser error than that introduced by the sum of its parts. To capture these additional interactions, Definition 4.6 defines these signed “excess terms” which compute what remains between the true foundation model error and the direct error terms defined in Definition 4.3.

Definition 4.6. Given the setup introduced previously and the terms in Definition 4.3, define the following “excess terms”, which compare the relative errors that one obtains in reality (via model ff) vs. those they would expect during model design (via universal task uu):

Excess model deficiency Φf\Phi_f Even though ff is an imperfect approximator of uu, it may exacerbate or ameliorate the total possible error obtainable through a permissible foundation model in comparison to uu, and Φf\Phi_f captures this tradeoff:

Φf:=Δf−Δu.\Phi_f := \Delta_f-\Delta_u.

Excess labeler error Φd\Phi_d. Similarly, beyond the optimal possible discrepancy in error, ff may induce different observed error relative to the possible error in comparison to what would be expected at design time w.r.t. the universal task uu:

Φd:=Δdf−Δdu.\Phi_d := \Delta_d^f - \Delta_d^u.

Excess Decoder-labeler error ΦD\Phi_D. Similarly, the realized decoder can exacerbate or ameliorate error in matching the target decoder D⋆D^\star differently under ff in comparison to what would be expected at design time w.r.t uu:

ΦD:=ΔDf−ΔDu\Phi_D := \Delta_D^f - \Delta_D^u

Building on these definitions, Lemma 4.7 remarks that all excess terms Φ∗\Phi_* vanish under uu-optimality and ΦD\Phi_D vanishes under dd-optimality.

Lemma 4.7. If PP is uu-optimal, then Φf=Φd=ΦD=0\Phi_f = \Phi_d = \Phi_D = 0. If PP is dd-optimal, then ΦD=0\Phi_D = 0.

Proof. If PP is uu-optimal, then ff is precisely uu, so by construction these differences in response between ff and uu vanish. For point 2, Lemma 4.5 shows that under dd-optimality, both ΔDf=ΔDu=0\Delta_D^f = \Delta_D^u = 0, which implies that ΦD=0\Phi_D = 0, as desired. □

Bregman Interaction Terms Lastly, in Definition 4.8 we introduce some notation for the remaining signed Bregman interaction terms inherent from Bregman’s three-point identity and the fact that ℓ\ell is a strictly proper scoring loss.

Definition 4.8. We will explicitly use BDfB_D^f to denote the specific Bregman interaction term capturing the difference in divergence between yy and y^\hat{y} vs. that captured consecutively between yy then w^\hat{w} then y^\hat{y}:

BDf:=Bℓ(y;w^;y^∣x,r):=dℓ(y;y^∣x,r)−dℓ(y;w^∣x,r)−dℓ(w^;y^∣x,r)B_D^f := B_\ell(y;\hat{w};\hat{y}\mid x,r) := d_\ell(y;\hat{y}\mid x,r) - d_\ell(y;\hat{w}\mid x,r) - d_\ell(\hat{w};\hat{y}\mid x,r)

Building on this definition, Lemma 4.9 identifies that BDfB_D^f vanishes for dd-optimal models.

Lemma 4.9. If PP is dd-optimal, then BDf=0B_D^f = 0.

Proof. This follows directly from dd-optimality implying that w^\hat{w} will be identically distributed to y^\hat{y} given (x,r)(x,r), as D=D⋆D = D^\star. □

General Decompositions of Foundation Model Error

In this section, we leverage the terms defined in Definitions 4.3, 4.6, and 4.8 to formally decompose foundation model error. We will express this decomposed error first via Lemma 4.10, which shows a clear, telescoping error decomposition among our model error terms and our Bregman interaction term. However, our more ultimately useful result will be Theorem 4.11, which will leverage the excess terms as well to divide the error between design-space quantities dependent on uu, dd, and D – which can be analyzed even before a specific model ff is trained to motivate a foundation model design – and our signed Bregman and excess terms, which can adjust total error in either direction, but generally cannot be fully controlled, and can only be bounded or analyzed post training or in specific contexts.

Lemma 4.10. Given a single-draw foundation model PP using the notation/variable conventions introduced previously, then

Err⁡ℓ(P)=Δρ+Δf+Δdf+ΔDf+BDf.\operatorname{Err}_{\ell}(P) = \Delta_\rho+ \Delta_f + \Delta_d^f + \Delta_D^f + B_D^f.

Proof. Recall from Lemma 4.2 that Err⁡ℓ(P)−Δρ=dℓ(ϕρ;P)\operatorname{Err}_{\ell}(P) - \Delta_\rho= d_\ell(\phi_\rho;P), where dℓ(ϕρ;P)=dℓ(y;y^∣x,r)d_\ell(\phi_\rho;P) = d_\ell(y;\hat{y}\mid x,r). Further, by definition, BDf=dℓ(y;y^∣x,r)−ΔDf−(Δdf+Δf)B_D^f = d_\ell(y;\hat{y}\mid x,r) - \Delta_D^f - (\Delta_d^f + \Delta_f). Therefore, BDf+ΔDf+Δdf+Δf+Δρ=Err⁡ℓ(P)B_D^f + \Delta_D^f + \Delta_d^f + \Delta_f + \Delta_\rho= \operatorname{Err}_{\ell}(P), as desired. □anjeunna

Theorem 4.11 (Foundation Model Error Decomposition). Let PP be a foundation model with the usual notation. Then,

Err⁡ℓ(P)=ΔρRepresentation Error+(Δu+Δdu+ΔDu)Design Error+(Φf+Φd+ΦD)Model Excess+BDfGeometric Bregman Interaction Term.\operatorname{Err}_{\ell}(P) = \Delta_{\rho} \qquad\text{Representation Error} + (\Delta_{u} + \Delta_{d}^{u} + \Delta_{D}^{u}) \qquad\text{Design Error} + (\Phi_{f} + \Phi_{d} + \Phi_{D}) \qquad\text{Model Excess} + B_{D}^{f} \qquad\text{Geometric Bregman Interaction Term.}

Proof. This follows directly from Lemma 4.10 and the observation that the excess terms are precisely the difference between the model error terms used in Lemma 4.10 and the design-space error terms introduced here.

Note that Theorem 4.11 does not precisely tell us anything distinct from the generic expression of error. The terms used in its decomposition are constructed precisely to enable a decomposition of this form, and the model excess terms and the Bregman interaction terms are both signed, so it is not the case that we can even say that the design-space error terms lower bound total error in general (though by Lemma 4.2 we can say that Δρ\Delta_{\rho} does lower bound total error).

Nevertheless, when designing a foundation model algorithm, especially under current AI systems, we typically can only directly control the design error terms and cannot intentionally influence model excess or the Bregman interaction terms directly. E.g., if we design a foundation model with a fixed encoder EE and decoder DD and a target labeler dd and universal task uu in mind, then train a model ff to approximate uu, it is not the case that we will be able to directly or even indirectly dictate the sign or magnitude of the model excess or Bregman interaction terms at all – so identifying how they split from the design error terms, which we can control, allows us to meaningfully and transparently justify our design choices and their limitations. Beyond this benefit, in select settings we will be able to enforce more concrete bounds on some of these non-design terms, enabling us to bound or otherwise more richly understand the total error, which we will explore next.

Example The decomposition highlights distinct limitations across foundation model paradigms. An under-specified LLM prompt can induce representation error Δρ\Delta_{\rho}, while an autoregressive EHR model approximating task probabilities through finite Monte Carlo sampling may incur decoder error ΔDu\Delta_{D}^{u}. In contrast, task-conditioned models such as EveryQuery use an identity decoder, eliminating this decoder approximation error. Thus, different architectures can concentrate error in fundamentally different components of the same decomposition.

Practical Settings in Which Model Excess and Bregman Interaction Terms can be Bounded.

It is not practical to insist on uu-optimality, as this cannot be reliably achieved in settings where ff is learned (though we note trivially by Lemma 4.7 that this zeros all excess terms). However, it may be practical to insist upon a model being both well-founded and dd-optimal – e.g., were you able to perfectly learn the universal task uu, the total error would reduce to the irreducible representation error Δρ\Delta_{\rho}. Lemma 4.12 shows that in this setting, all error terms can be reduced solely to Δρ+Φf+Φd=Δρ+dℓ(y;w^∣x,r)\Delta_{\rho} + \Phi_{f} + \Phi_{d} = \Delta_{\rho} + d_{\ell}(y;\hat{w}|x,r).

Lemma 4.12. Let PP be a foundation model that is well-founded in the sense of Definition 4.4 and dd-optimal in sense of Definition 3.4. Then

Err⁡ℓ(P)=Δρ+Φf+Φd=Δρ+Δf+Δdf=Δρ+dℓ(y;w^∣x,r).\operatorname{Err}_{\ell}(P) = \Delta_{\rho} + \Phi_{f} + \Phi_{d} = \Delta_{\rho} + \Delta_{f} + \Delta_{d}^{f} = \Delta_{\rho} + d_{\ell}(y;\hat{w}|x,r).

Proof. The first equality follows directly from Definition 4.4 of well-founded (which sets Δu=Δdu=0\Delta_{u} = \Delta_{d}^{u} = 0), Lemma 4.7, which establishes that ΦD=0\Phi_{D} = 0, Lemma 4.5, which establishes that ΔDu=0\Delta_{D}^{u} = 0, and Lemma 4.9, which establishes that BDf=0B_{D}^{f} = 0, all given dd-optimality. The second two equalities simply expand the definitions of these excess terms and of Δdf\Delta_{d}^{f}.

However, in such a setting, we can do even better by re-introducing the model error εf\varepsilon_f. Recall from Definition 4.3 that εf\varepsilon_f may be measured via a different strictly proper scoring loss ℓu\ell_u than ℓ\ell, which can make it challenging to compare these two losses. To remedy this, Definition 4.13 first introduces the notion of a loss inflation term, ιℓ←ℓu\iota_{\ell\leftarrow\ell_u} that bounds how much a stochastic kernel can possibly inflate a loss in space ℓu\ell_u to one in space ℓ\ell.

Definition 4.13. Given (1) spaces Y\mathcal{Y} and Z\mathcal{Z}; (2) strictly proper scoring losses ℓ\ell and ℓu\ell_u over these spaces, respectively; and (3) a stochastic kernel λ:Z⇝Y\lambda:\mathcal{Z}\rightsquigarrow\mathcal{Y}, define the divergence inflation coefficient as

ιℓ←ℓu(λ):=inf⁡{C∈[0,∞):dℓ(λ∘p;λ∘q)≤Cdℓu(p;q),  ∀p,q∈P(Z)}.\iota_{\ell\leftarrow\ell_u}(\lambda) := \inf\left\{C \in[0,\infty) : d_\ell(\lambda\circ p;\lambda\circ q) \leq C d_{\ell_u}(p;q),\ \ \forall p,q \in\mathcal{P}(\mathcal{Z})\right\}.

with the convention inf⁡∅=∞\inf\varnothing= \infty.

Armed with Definition 4.13 and Lemma 4.12, Theorem 4.14 shows that in this well-founded, dd-optimal setting, we can leverage this to bound Err⁡ℓ(P)\operatorname{Err}_{\ell}(\mathsf{P}) in terms of Δρ\Delta_\rho and εf\varepsilon_f directly.

Theorem 4.14. Let P\mathsf{P} be a well-founded, dd-optimal foundation model, with ℓu\ell_u a strictly proper scoring loss over Z\mathcal{Z} in addition to the strictly proper scoring loss ℓ\ell over Y\mathcal{Y}. For rD∈RDr_D \in\mathcal{R}_D, let λrD:Z⇝Y\lambda_{r_D}:\mathcal{Z}\rightsquigarrow\mathcal{Y}, λrD(z):=δdrD(z)\lambda_{r_D}(z):=\delta_{d_{r_D}}(z), be the kernel induced by the labeler, and let Cd:=ess suprDιℓ←ℓu(λrD)C_d := \mathop{\mathrm{ess\,sup}}_{r_D}\iota_{\ell\leftarrow\ell_u}(\lambda_{r_D}).

Assume that εf<∞\varepsilon_f < \infty and Cd<∞C_d < \infty.

Then,

Err⁡ℓ(P)≤Δρ+Cdεf.\operatorname{Err}_{\ell}(\mathsf{P}) \leq\Delta_\rho+ C_d\varepsilon_f.

Proof. Let p:=u∘Ep := u\circ E and q:=f∘Eq := f\circ E, both kernels X×RE⇝Z\mathcal{X}\times\mathcal{R}_E\rightsquigarrow\mathcal{Z}. Then pp is the conditional kernel of z∣x,rEz|x,r_E and qq that of z^∣x,rE\hat{z}|x,r_E.

Note that by well-foundedness (Δu=Δdu=0\Delta_u=\Delta_d^u=0), y∣x=x,rE=rE,rD=rDy|x=x,r_E=r_E,r_D=r_D has law D∗(p(x,rE),rD)=λrD∘p(x,rE)D^*(p(x,r_E),r_D)=\lambda_{r_D}\circ p(x,r_E), and by definition w^∣x=x,rE=rE,rD=rD\hat{w}|x=x,r_E=r_E,r_D=r_D has law λrD∘q(x,rE)\lambda_{r_D}\circ q(x,r_E). Hence, by Definition 4.13,

dℓ(y;w^∣x,r)=Ex,rE,rD[dℓ(λrD∘p(x,rE);λrD∘q(x,rE))]≤Ex,rE,rD[ιℓ←ℓu(λrD)dℓu(p(x,rE);q(x,rE))]≤Ex,rE,rD[(ess suprDιℓ←ℓu(λrD))dℓu(p(x,rE);q(x,rE))]=CdEx,rE,rD[dℓu(p(x,rE);q(x,rE))]=Cdεf.\begin{aligned} d_\ell(y;\hat{w}|x,r) &= \mathbb{E}_{x,r_E,r_D}\left[d_\ell\left(\lambda_{r_D}\circ p(x,r_E);\lambda_{r_D}\circ q(x,r_E)\right)\right] \\ &\leq\mathbb{E}_{x,r_E,r_D}\left[\iota_{\ell\leftarrow\ell_u}(\lambda_{r_D})d_{\ell_u}\left(p(x,r_E);q(x,r_E)\right)\right] \\ &\leq\mathbb{E}_{x,r_E,r_D}\left[\left(\mathop{\mathrm{ess\,sup}}_{r_D}\iota_{\ell\leftarrow\ell_u}(\lambda_{r_D})\right)d_{\ell_u}\left(p(x,r_E);q(x,r_E)\right)\right] \\ &= C_d\mathbb{E}_{x,r_E,r_D}\left[d_{\ell_u}\left(p(x,r_E);q(x,r_E)\right)\right] \\ &= C_d\varepsilon_f. \end{aligned}

Combining with Lemma 4.12 gives the result.

We can go one step farther than Theorem 4.14 in settings where ℓu\ell_u is informally equivalent to ℓ\ell and are ff-divergences. In that setting, Lemma 4.15 states that ιℓ←ℓu≤1\iota_{\ell\leftarrow\ell_u}\leq1 for all possible kernels.

Lemma 4.15. Suppose ℓ:P(Y)×Y→R\ell:\mathcal{P}(\mathcal{Y})\times\mathcal{Y}\to\mathbb{R} and ℓu:P(Z)×Z→R\ell_u:\mathcal{P}(\mathcal{Z})\times\mathcal{Z}\to\mathbb{R} induce the same normalized ff-divergence over their respective families. Then for every Markov kernel λ:Z⇝Y\lambda:\mathcal{Z}\rightsquigarrow\mathcal{Y}, ιℓ←ℓu(λ)≤1\iota_{\ell\leftarrow\ell_u}(\lambda)\leq1.

Proof. This follows exactly from the well-established data-processing inequality, which states that the ff-divergence between two random variables must always be at least that formed through stochastic garbling of those random variables by the same kernel.

In settings where our strictly proper scoring losses can also satisfy this property, Lemma 4.15 would thus let us offer an even tighter, more natural bound. The log loss satisfies, as its regret divergence is the KL divergence; moreover, on label spaces with at least three elements, the KL divergence is the only divergence that is both a Bregman divergence (and hence the regret of a strictly proper scoring loss) and an ff-divergence ([3, 14]), so the log loss is essentially the only case in which Lemma 4.15 applies. Theorem 4.16 uses this to state that if ℓ\ell and ℓu\ell_u are the ordinary log loss and P\mathsf{P} is both well-founded and dd-optimal, then Err⁡ℓ(P)≤Δρ+εf\operatorname{Err}_{\ell}(\mathsf{P})\leq\Delta_\rho+\varepsilon_f.

Theorem 4.16. Let PP be a well-founded, dd-optimal foundation model and let ℓ\ell and ℓu\ell_u both be the ordinary log-loss. Then

Err⁡ℓ(P)≤Δρ+εf.\operatorname{Err}_{\ell}(P) \leq\Delta_{\rho} + \varepsilon_f.

Proof. The regret divergence of the log loss is the KL divergence, an ff-divergence, so Lemma 4.15 gives ιℓ←ℓu(λrD)≤1\iota_{\ell\leftarrow\ell_u}(\lambda_{r_D}) \leq1 for every rDr_D, hence Cd≤1C_d \leq1, and the result follows from Theorem 4.14.

Conclusion

In this Section, we have shown in Theorem 4.11 how to decompose single-draw foundation model error into the irreducible representation error; design-error terms corresponding to universal task uu, target labeler dd and realized decoder D\mathrm{D}; excess terms capturing how the approximate model ff interacts with the various system components to exacerbate or ameliorate design errors; and a Bregman interaction term dictated by the geometries induced by the strictly proper scoring loss ℓ\ell and distributions in use. This decomposition permits intentional, justifiable design choices when constructing foundation models and explains what aspects of the system contribute to overall error.

We further showed in Theorem 4.14 that in the case of a well-founded, dd-optimal model, we can further bound the total error by the sum of the irreducible representation error and a scaled version of the normal model error capturing how well ff approximates uu, where the scaling factor is dictated by geometric properties of both the target labeler dd and the different losses between the model target space Z\mathcal{Z} and the overall label space Y\mathcal{Y}. Next, in § 6, we will show how to use Definition 3.3 to realize practical recipes to build foundation models in the real world.

Recipes to Build Foundation Models

When considering building foundation models, an astute reader may observe that Definition 3.1 frames foundation models in a way that is identical to how one might frame a supervised-learning, single-task model to predict yy from the joint input domain (x,t)(x,t). This analogy would suggest that to train a foundation model, we should simply sample triples (x,t,y)(x,t,y) from X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} and train a model as we would normally, using all the advancements in ML/AI for supervised learning to power this endeavor. This is, of course, not possible in general because we rarely, if ever, have overt access to the ability to sample from X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} (though in some strange setting where this were possible, this would be a viable strategy). In general, we will not even be able to sample from X,R,Y\mathcal{X},\mathcal{R},\mathcal{Y}, which would also permit us to learn a (reduced) foundation model.

In this section, we instead ask, powered by Definitions 3.1 or 3.3, how we can practically construct a foundation model for a domain X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} when T\mathcal{T} may be latent and tt is unknown and cannot be sampled directly. To answer this question, we provide two recipes, that each build on the following assumptions.

Firstly, for the purposes of these recipes, we will assume that ρ\rho is complete (and in particular assume that T\mathcal{T} is naturally expressed in a tractable form, such that we can reliably use t∈Tt \in\mathcal{T} as an input to functions, etc.). As was shown in § 4, this is equivalent to simply acknowledging that there is irreducible error due to ρ\rho, then simply modeling over the X,R,Y\mathcal{X},\mathcal{R},\mathcal{Y} space instead of X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} and considering error in that lossy domain, so we can do this without loss of generality, and it will only serve to make algebra simpler.

In addition, we assume two properties:

  1. There exists a Z\mathcal{Z} valued random variable zz (jointly distributed with all others) such that x,zx,z is sampleable, such that x,t,y,zx,t,y,z are related via the Bayesian DAG shown in Figure 3.

An extended graphical model where labels y are generated from x through a random variable z.

Figure 3. An extended graphical model where labels y are generated from x through a random variable z.

  1. There exists a known, computable labeling function g:T×Z→Yg:\mathcal{T} \times\mathcal{Z} \to\mathcal{Y} such that y=g(t,z)y = g(t,z) almost surely. Note that z⊥t∣xz \perp t \mid x by Figure 3, so gg recovers the true task kernel through η(x,t)=g(t,⋅)#pZ∣X=x\eta(x,t) = g(t,\cdot)\#p_{Z\mid X=x}.7

(Recipe 1) ``Generative'' Foundation Models: Model z | x, and Decode Labels Explicitly

In Recipe 1, which we will call our “generative foundation model recipe,”8 we do the following:

  • Define the universal task uu to be predicting z∣xz \mid x, with V=X\mathcal{V} = \mathcal{X}.

  • Let E(x,⋅)=xE(x,\cdot)=x simply forward the first argument and discard the task.

  • Let ff be any model trained on samples of (x,z)(x,z) to approximate uu.

  • Let the decoder representation be complete, with the canonical choice ρD(t)=δt\rho_D(t)=\delta_t, so that rD=tr_D=t almost surely.

  • Let the labeler be the known labeling function, d(t,z):=g(t,z)d(t,z):=g(t,z). The target decoder is then D∗(q,t)=g(t,⋅)#qD^*(q,t)=g(t,\cdot)_\#q.

  • Let the decoder DD be any procedure to approximate D∗D^* (e.g., Monte Carlo: draw z∼qz\sim q and output g(t,z)g(t,z), up to some budget).

The autoregressive EHR foundation models discussed in § 3.2 illustrate this construction, with future patient trajectories serving as the universal-task output.

Then, as is shown in Theorem 5.1, the resulting foundation model given by (ρ,E,f,D)(\rho,E,f,D) is well-founded in the sense of Definition 4.4, which means that the only remaining sources of error will be the excess terms, which capture error introduced by ff’s poor approximation of uu, the Decoder-labeler Error ΔDu\Delta^u_D, capturing DD’s poor approximation of D∗D^*, and the Bregman interaction term.

Theorem 5.1. If a foundation model is built as in Recipe 1, then this model is well-founded.

Proof. By Assumption 2 and z⊥t∣xz \perp t \mid x, with probability one under the joint law of (x,t)(x,t),

D∗(u(x),t)=g(t,⋅)#pz∣x=x=g(t,⋅)#pz∣x=x,t=t=η(x,t).D^*(u(x),t)=g(t,\cdot)_\#p_{z\mid x=x}=g(t,\cdot)_\#p_{z\mid x=x,t=t}=\eta(x,t).

As rD=tr_D=t almost surely, w∣x,rw\mid x,r and y∣x,ry\mid x,r are identically distributed, so dℓ(y;w∣x,r)=0d_\ell(y;w\mid x,r)=0. Since ww is feasible in the deficiency defining Δu\Delta_u and deficiencies are non-negative, Δu=0\Delta_u=0, and therefore Δdu=0\Delta^u_d=0, establishing well-foundedness.

Advantages to Recipe 1 This recipe has multiple advantages. Firstly, it is guaranteed to be well-founded, and thus if f=uf=u and D=D∗D=D^*, the resulting procedure achieves Bayes-optimal predictions under the stated assumptions. In addition, if x,zx,z are sampleable, this model requires no additional assumptions to learn. Further, note that this model is universal in the sense that any task with a label inferrable from zz can be inferred from this foundation model – not just those tasks in T\mathcal{T}, which will differ from the capabilities of models in Recipe 2.

Because Recipe 1 models the full distribution of z∣xz\mid x, it can also answer conditional queries without retraining, by rejection sampling at inference time. For instance, given tasks t,t1,…,tk∈Tt,t_1,\ldots,t_k\in\mathcal{T} and labels y1,…,yk∈Yy_1,\ldots,y_k\in\mathcal{Y}, let E:={z:g(ti,z)=yi, i=1,…,k}⊆ZE := \{z : g(t_i,z) = y_i,\ i = 1,\ldots,k\} \subseteq\mathcal{Z}. Drawing z∼f(x)z \sim f(x), discarding draws outside EE, and labeling the accepted draws with g(t,⋅)g(t,\cdot) yields g(t,⋅)f(x)(⋅∣E)g(t,\cdot)_{f(x)}(\cdot\mid E) whenever f(x)(E)>0f(x)(E)>0, an approximation of the conditional label distribution g(t,⋅)u(x)(⋅∣E)g(t,\cdot)_{u(x)}(\cdot\mid E) of task tt given that tasks t1,…,tkt_1,\ldots,t_k take labels y1,…,yky_1,\ldots,y_k. Recipe 2 offers no analogous mechanism unless such conditional tasks are included in T\mathcal{T} during training. A formal treatment of conditional tasks, including how the acceptance probability u(x)(E)u(x)(E) affects the error bounds of § 4, is left to future work.

Detriments to Recipe 1 There are also several key disadvantages to this recipe. In particular, while this property of universality is nice, it also may induce needless inefficiency. If the only tasks of interest are those in T\mathcal{T}, then any additional learning effort spent on how to transform from xx to zz in a manner that does not benefit learning y∣t,xy\mid t,x is wasted.

In addition, while well-foundedness is nice, it is a relatively weak property. Without dd-optimality, which these models may not have, we cannot even relate total error to underlying model error in a principled manner, meaning that there may be interactions that exacerbate or ameliorate error between ff and D\mathsf{D} that we cannot predict in advance with this theory. More generally, the lack of dd-optimality and the requirement that gg be used at inference time to translate from zz to yy impose additional sources of error and computational costs to the user, which can be severe.

Non well-founded Generative Foundation Models Recipe 1 is constructed such that it is well-founded, by virtue of the assumed Bayesian DAG shown in Figure 3. We could, however, generalize our notion of this recipe to apply in settings even when there is an unobserved, “confounder” pathway to yy from xx independent of zz, thereby violating the assumption that y⊥x∣z,ty \perp x\mid z,t. In such a setting, we could still build a model as in Recipe 1 – let E(x,t)=xE(x,t)=x, set uu to be our task of predicting z∣xz\mid x, set ρD(t)=δt\rho_D(t)=\delta_t, and use gg as our labeler, with D\mathsf{D} approximating the induced target decoder. This model would still be a valid foundation model under Definition 3.1, but it would no longer be guaranteed to be well-founded, due precisely to the error induced by ignoring the pathway x→yx\to y independent of zz. We will use the term “generative foundation models” in general to refer to any model that satisfies this form – in particular have E(x,t)=xE(x,t)=x, which permits an interpretation of the model in this way, and reserve well-founded generative foundation model towards one that satisfies Recipe 1 as described fully (and is therefore well-founded).

(Recipe 2) “Discriminative” Foundation Models — Sample over a proxy distribution qt∈P(T)q_t\in\mathcal{P}(\mathcal{T}), then learn g(t′,z)∣x,t′g(t',z)\mid x,t' for t′∼qtt'\sim q_t

In this recipe, which we will call the “task-conditioned” recipe, we assume that we also have access to a proxy distribution qt∈P(T)q_t\in\mathcal{P}(\mathcal{T}), from which we sample t′t' independently of (x,z)(x,z). We assume that, with probability one over the input xx, the conditional distribution of tt given xx is absolutely continuous with respect to qtq_t. In other words, for such inputs, any measurable set of tasks assigned zero probability by qtq_t also has zero probability under the original conditional task distribution.

In this setting, we can sample (x,z,t′)(x,z,t') from x,z,t′x,z,t', then compute y′=g(t′,z)y'=g(t',z); we write y′:=g(t′,z)y':=g(t',z) for the induced label random variable. To construct a foundation model, we then

  • Define the universal task uu to be predicting y′∣x,t′y'\mid x,t', with V=X×T\mathcal{V}=\mathcal{X}\times\mathcal{T} and Z=Y\mathcal{Z}=\mathcal{Y}.

  • Let the encoder representation ρE\rho_E be complete (and canonically ρE(t)=δt\rho_E(t)=\delta_t), and E=IE=I be the identity.

  • Let ff be any model trained on samples (x,t′,y′)(x,t',y') to approximate uu.

  • Let the decoder representation be degenerate, the labeler be the identity, dD(y)=yd_{\mathsf{D}}(y)=y, and let the realized decoder simply return the output of ff directly: D(q,⋅)=q\mathsf{D}(q,\cdot)=q.

Task-conditioned models such as EveryQuery illustrate this construction, using structured task queries to directly predict downstream labels, subject to the stated assumptions on the proxy task distribution.

Then, as we will show in Theorem 5.2, this construction yields a foundation model that is not only well-founded but also dd-optimal, permitting us to reduce all error to model error through Theorem 4.14.

Theorem 5.2. If a foundation model is built as in Recipe 2, then this model will be both well-founded and dd-optimal.

Proof. dd-optimality is clear, as D∗(q,rD)=id⁡Qq=q=D(q,rD)D^*(q,r_D)=\operatorname{id}_{\mathcal{Q}}q=q=D(q,r_D).

Since t′t' is independent of (x,z)(x,z) and y′=g(t′,z)y'=g(t',z), the definition of uu gives

u(x,t)=g(t,⋅)μZ∣X=xu(x,t)=g(t,\cdot)\mu_{Z\mid X=x}

with probability one when (x,t)(x,t) is sampled from the joint law of (x,t′)(x,t').

By the absolute continuity assumption, this equality also holds with probability one when (x,t)(x,t) is sampled from the original joint law of (x,t)(x,t).

Since, by the labeling assumption, y=g(t,z)y=g(t,z) almost surely, and z⊥t∣xz\perp t\mid x, the right-hand side equals η(x,t)\eta(x,t) under that same joint law. Thus, u(x,t)=η(x,t)u(x,t)=\eta(x,t) almost surely.

Since the task representation is complete and the encoder and labeler are identities, dℓ(y;w∣x,r)=0d_{\ell}(y;w\mid x,r)=0. As ww is feasible in the deficiency defining Δu\Delta_u and deficiencies are non-negative, Δu=0\Delta_u=0, and therefore Δdu=0\Delta_d^u=0, establishing well-foundedness. ▫

Advantages of Recipe 2 Unlike Recipe 1, Recipe 2 is both well-founded and dd-optimal, meaning we can bound total error solely via model error, via Theorem 4.14. This means that we can rely on the extensive theory and practice of ordinary machine learning to learn foundation models via this recipe without concern for unmeasurable interactions between different error terms. It also has the significant benefit that there is no additional computational burden on users at inference time beyond the model ff itself, as D is trivial. It also does not waste learning energy on parts of z∣xz\mid x that do not matter for any task – though this efficiency gain may be counteracted by the distribution shift of qtq_t discussed more below.

Disadvantages of Recipe 2 The main detriment to this recipe is that this induces a source of distribution shift between training and testing, in that t′≠tt'\ne t. At optimality under the sampling distribution, the absolute continuity assumption transfers the almost-sure equality f=uf=u to the original joint law of (x,t)(x,t), where u=ηu=\eta almost surely by the proof of Theorem 5.2, but in a real-world setting, this means that we cannot actually measure εf\varepsilon_f in an unbiased manner without the ability to sample from tt directly, which we assume is impossible. As such, though we can bound total error in theory, in practice we may still be left with uncertainty around what the true inference time error will be in practice, though we may be able to rely on the existing literature around distribution shift and limited ability to sample from tt to ameliorate this in practice, which we leave as an area of future work. In addition, this recipe is only universal to TT – not to zz as Recipe 1 is.

Lastly, this recipe also has a source of learning inefficiency similar to Recipe 1 – but instead of learning parts of z∣xz\mid x that do not matter for any tasks, Recipe 2 may introduce learning inefficiency by requiring the model to learn labels for proxy pairs (x,t′)(x,t') that have very low probability under the original joint distribution of (x,t)(x,t), since t′t' is sampled independently of xx.

General Task-conditioned foundation models. Much like how we generalize our notion of a generative model to include any model with an unused encoder representation, we can generalize our notion of a task-conditioned model to non-well-founded settings by calling any foundation model with an unused decoder representation a “task-conditioned” foundation model.

Examples

Table 3 illustrates how the universal-task reduction applies to several representative foundation-model designs introduced earlier. For each example, the table gives one natural decomposition into encoder-side task representation ρE\rho_E, encoder EE, universal-task input space V\mathcal{V}, predictive model ff, universal-task output space Z\mathcal{Z}, decoder-side task representation ρD\rho_D, and decoder D. These decompositions are not unique: in particular, preprocessing steps such as serialization or tokenization, as well as architectural encoder or decoder components, may be absorbed into E or D depending on the level of abstraction chosen. The examples are therefore intended to illustrate how the framework can represent common foundation-model designs rather than to prescribe a unique decomposition for each architecture.

The designs in Table 3 are also not intended to exhaust the possible realizations of foundation models under our definition. Prompted language models provide one broad family of examples whenever natural-language task specifications support any-task inference over the domain of interest. At the other extreme, recent decision models such as JEV expose a more explicitly task-conditioned interface: a model is provided with an input state together with one or more structured, typed questions and returns probability distributions over their possible answers. JEV is additionally trained using reinforcement learning for calibrated decisions (RLCD), which explicitly optimizes the quality and calibration of these probabilistic decisions [2]. From the perspective of our framework, such systems are naturally interpreted as instances of, or closely related to, the task-conditioned construction of Recipe 2. These emerging designs further illustrate that foundation-model behavior need not be tied to autoregressive text generation, but can instead arise from models trained to directly answer a sufficiently expressive space of task specifications.

Foundation Model Evaluation is Mathematically Similar to Evaluation under Algorithmic Fairness

Given a foundation model P, we may also ask how we can evaluate P in a useful manner, given we care about all tasks in T\mathcal{T} in accordance with t. In fact, this evaluation shows a striking mathematical similarity to evaluation of supervised learners in settings with constraints on algorithmic fairness (Theorem 6.1). The motivation for this theorem is, informally, that many fairness results can be seen as general statements about how a model behaves over a partitioned input domain, where the sensitive attribute defines the partition, and we can realize that in evaluation of foundation models, we likewise care about a partitioned domain, where tasks determine the partition.

Theorem 6.1. Let P be a foundation model over extended domain X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} as defined throughout.

Additionally, suppose we have a distinct domain X′,Y′\mathcal{X}',\mathcal{Y}', such that a model f′:X′→P(Y′)f' : \mathcal{X}' \to\mathcal{P}(\mathcal{Y}') is a model of some task on that domain, with induced score s′:=f′(x′)s' := f'(x'). In this domain, suppose A defines a set of “attributes,” such that for each sample x′,y′x', y', we can identify a dictating the value of the “attribute” for this sample $x', realized through the random variables x′,y′,ax', y', a.

Suppose one can make a logical statement S or formal theoretical proof about properties of f′f' and its evaluation as dictated across the full partition of possible values a∈Aa \in A – e.g., splitting the dataset into separate partitions, each defined by the observation of a given value aa for a. Then one can make an analogous statement S about P over X,Y\mathcal{X},\mathcal{Y}, such that the partitions are induced by T\mathcal{T} instead of A, provided that any required assumptions for said logical statement also hold over the X,T,Y\mathcal{X},\mathcal{T},\mathcal{Y} domain with T\mathcal{T} standing in for A.

Proof. Such a statement is expressed entirely in terms of the joint distribution of the prediction, label, and partitioning variable. Replacing the attribute a by the task t, the label y' by y, and the score s' by the foundation-model score s preserves the form of all probabilities, conditional independences, and group-conditioned quantities, provided that any required assumptions for the theorem are likewise met over this space (as is an assumption in the theorem). Hence the same argument applies with tasks indexing the partitions instead of attributes. □

While basic, the utility of Theorem 6.1 is that many results stemming from the literature on algorithmic fairness can now be seen to have an analogous result for general foundation models, over “subpopulations” defined by disparate tasks, rather than protected attributes. For example, Lemma 6.2 establishes an analog of the Impossibility Theorem in fairness for foundation models:

Lemma 6.2. Suppose for simplicity that Y={0,1}\mathcal{Y} = \{0,1\}. Then, let s be the random variable corresponding to the induced output of a foundation model P(x, r) (or P(x, t) when ρ\rho is complete), realized as a distribution-valued

random variable jointly distributed with all other relevant variables, with ss being treated as analogous to a “score” of the output of PP. In analogy to algorithmic fairness, define sufficiency to mean that y⊥t∣sy \perp t \mid s and separation to mean that s⊥t∣ys \perp t \mid y.

Then, provided y⊥̸ty \not\perp t and PP is not a perfect predictor (H(y∣s)>0H(y\mid s) > 0), then PP cannot simultaneously satisfy sufficiency and separation.

Proof. This is a direct application of Theorem 6.1 to the well-established impossibility theorem in algorithmic fairness [9].

Example Consider a multi-task EHR model predicting outcomes with different prevalences, such as mortality and hospital readmission. Treating task identity as the partitioning variable reveals that, under the conditions of Lemma 6.2, sufficiency and separation cannot generally hold simultaneously across tasks. Thus, tradeoffs familiar from algorithmic fairness arise naturally when evaluating foundation models across heterogeneous prediction tasks.

The novelty of this section is therefore not a new impossibility theorem in itself, but rather the observation that known fairness-style tradeoffs can be reinterpreted as limitations of cross-task evaluation, and hence apply not only to foundation models but to multi-task evaluation more broadly.

Notation and Assumptions

Sets

  1. We will use the notation R\mathbb{R} to refer to the real numbers, R+\mathbb{R}_{+} to refer to the strictly positive real numbers, and R‾\overline{\mathbb{R}} to refer to the extended reals including ±∞\pm\infty.

Typefaces / Styling

  1. We will use a standard typeface (xx) to denote ordinary variables or functions. These may be scalars or vectors or functions depending on context, as that distinction will be less essential for our purposes.

  1. We will use a calligraphic font (X\mathcal{X}) to denote generic, measurable sets, which we will typically use as the domain over which we will construct random variables.

  1. We will use a sans-serif typeface (x\mathsf{x}) to denote random variables. As a general rule, if we define multiple random variables, they should be understood to be jointly defined, even when that joint relationship has not yet been defined.

  1. We will use the monospace typeface E\mathtt{E} to represent a “procedure”, which is, mathematically, simply a function like any other, but we will denote it differently to reflect functions that will often be realized through more traditional computational algorithms rather than models that we might train via ML/AI methods, which we will denote with the more traditional notation ff or gg.

Probability

  1. Given a set or boolean relationship f:X→{True,False}f:\mathcal{X}\to\{\mathrm{True},\mathrm{False}\}, we will use the notation Px(f)\mathbb{P}_{x}(f) to represent the ordinary probability that x∈f−1(True)x\in f^{-1}(\mathrm{True}).

  1. We will use the notation P(Y)\mathcal{P}(\mathcal{Y}) to denote the set of all probability density/measure functions over the set Y\mathcal{Y}. Note that if we state that q∈P(Y)q\in\mathcal{P}(\mathcal{Y}), that does not necessarily mean that we have easy ways to perform all operations over qq, such as sample or compute a conditional or expectation, but we will assume the ability to evaluate the probability law on given inputs.

  1. We will use the notation x∼xx\sim\mathsf{x} to denote that the value xx is drawn from the random variable x\mathsf{x}. At times, we may also use the notation x∼px\sim p for some p∈P(X)p\in\mathcal{P}(\mathcal{X}) to denote that xx is drawn from a random variable with probability density/mass function pp.

  1. Unless otherwise specified, we will use pxp_{\mathsf{x}} to denote the probability mass or density function of a random variable x\mathsf{x}.

  1. We will write L(x)\mathcal{L}(\mathsf{x}) for the law (probability distribution) of a random variable x\mathsf{x}, and L(x∣E)\mathcal{L}(\mathsf{x}\mid E) or L(x∣w=w,E)\mathcal{L}(\mathsf{x}\mid\mathsf{w}=w,E) for its conditional law given an event EE of positive probability (and, possibly, another random variable w\mathsf{w}).

  1. Given a function ff over the domain X\mathcal{X}, we will use the notation Ex[f(x)]\mathbb{E}_{\mathsf{x}}[f(\mathsf{x})] or Ex[f]\mathbb{E}_{\mathsf{x}}[f] to denote the expectation of a function ff that maps samples of x\mathsf{x} to a measurable output space over the random variable x\mathsf{x}. In the case that the random variable or distribution does not clearly delineate the function’s input variable, we can use the expanded notation Et∼x[f(t)]\mathbb{E}_{t\sim\mathsf{x}}[f(t)] to indicate how the input function is applied to samples drawn from the random variable.

  1. Given a suitably nice function ff over a domain X\mathcal{X} and an X\mathcal{X} valued random variable x\mathsf{x}, we will let f(x)f(\mathsf{x}) denote the random variable given by applying the function ff to samples drawn from x\mathsf{x}. Relatedly, if f:X→Yf:\mathcal{X}\to\mathcal{Y} and q∈P(X)q\in\mathcal{P}(\mathcal{X}) is a probability distribution over X\mathcal{X}, then we will use the pushforward notation f#q∈P(Y)f_{\#}q\in\mathcal{P}(\mathcal{Y}) to denote the distribution obtained were one to sample from qq then apply ff (equivalent to the distribution of f(x)f(x) if x∼qx\sim q).

  1. We will use a vertical bar to indicate conditional relationships, applied both to random variables (e.g., x∣t=tx|t=t indicates the conditional random variable of xx given the random variable tt takes value t∈Tt \in\mathcal{T}, defined over a joint distribution over x,tx,t) or probability density functions (e.g., px∣t=t(x)p_{x|t=t}(x)).

  1. Extending the conditional notation above to events, given q∈P(Y)q \in\mathcal{P}(\mathcal{Y}) and a measurable set S⊆YS \subseteq\mathcal{Y} with q(S)>0q(S)>0, we write q(⋅∣S)∈P(Y)q(\cdot\mid S) \in\mathcal{P}(\mathcal{Y}) for qq conditioned on SS, i.e., q(A∣S):=q(A∩S)/q(S)q(A \mid S) := q(A \cap S)/q(S) for any measurable A⊆YA \subseteq\mathcal{Y}.

  1. When it is clear from letter identity, we may simplify our conditional notation through the use of a subscript – e.g., let xt=x∣t=tx_t=x|t=t. If we do this for multiple random variables over the same conditional, they should be understood to be considered jointly conditioned with respect to the given variable, not two independently conditioned random variables – e.g., if we discuss xt,ytx_t,y_t, this is equivalent to x,y∣t=tx,y|t=t.

  1. When used without a target of the conditional, e.g., x∣tx|t, this should be understood to be a stochastic kernel from T\mathcal{T} to the space of probability distributions over X\mathcal{X}, such that on input t∈Tt \in\mathcal{T}, this evaluates to the typical x∣t=tx|t=t.

  1. Given an X\mathcal{X}-valued random variable xx, we will let ess sup⁡x\operatorname{ess\,sup}_{x} denote the essential supremum over x∼xx \sim x, which we can recall is defined for any measurable function f:X→Rf:\mathcal{X}\to\mathbb{R} to be

ess sup⁡xf:=inf⁡{M∈R‾:Px(f(x)>M)=0}.\operatorname{ess\,sup}_{x} f := \inf\left\{M \in\overline{\mathbb{R}} : \mathbb{P}_{x}\left(f(x)>M\right)=0\right\}.

Informally, this is the supremum over the values that ff can take on xx that will be observed with non-zero probability.

Information Theory

  1. We will use the traditional notation ρ:T⇝R\rho:\mathcal{T}\rightsquigarrow\mathcal{R} to denote that ρ\rho defines a jointly measurable Markov kernel from T\mathcal{T} to R\mathcal{R} (i.e., a stochastic function), such that we could introduce a random variable rtr_t for each t∈Tt \in\mathcal{T} drawn from rt∼ρ(t)r_t \sim\rho(t). Given a random variable tt over T\mathcal{T}, then we can further consider ρ\rho to induce a random variable rr (without a subscript) over R\mathcal{R} such that the conditional distribution given t=tt=t is defined precisely by ρ\rho. In this case, we can see that ρ\rho is precisely r∣tr|t as introduced previously. Similarly, in this context the use of rtr_t is consistent with our simplified subscript form for conditionals discussed above. We will also use the notation M(y∣x)\mathcal{M}(y|x) to represent the set of all possible Markov kernels from X\mathcal{X} to Y\mathcal{Y} equipped with the measures induced by the given random variables. At times we may use the notation M(Y∣X)\mathcal{M}(\mathcal{Y}|\mathcal{X}) equivalently when the measures are clear in context.

  1. We will use the variable ℓ\ell to represent a strictly proper scoring loss for Y\mathcal{Y}, such that ℓ:P(Y)×Y→R‾\ell:\mathcal{P}(\mathcal{Y})\times\mathcal{Y}\to\overline{\mathbb{R}}. We permit scoring rules and generalized entropies to take extended-real values and assume all relevant expectations and differences are well defined and finite whenever invoked.

  1. Given a proper scoring rule ℓ\ell and a random variable yy over Y\mathcal{Y}, we will let the generalized entropy hℓ(y)=inf⁡q∈P(Y)Ey[ℓ(q,y)]=Ey[ℓ(py,y)]h_{\ell}(y)=\inf_{q\in\mathcal{P}(\mathcal{Y})}\mathbb{E}_{y}[\ell(q,y)]=\mathbb{E}_{y}[\ell(p_y,y)] (where the last equality is guaranteed as ℓ\ell is proper). In the event that ℓ\ell is the log loss, then this is the Shannon entropy, hℓ=Hh_{\ell}=H.

  1. To produce a generalized notion of conditional ℓ\ell entropy, we simply compute the ℓ\ell entropy over the conditional random variable in expectation over all possible conditioned values: hℓ(x∣t)=Et[hℓ(x∣t=t)]h_{\ell}(x|t)=\mathbb{E}_{t}[h_{\ell}(x|t=t)]. Note that this conditional entropy is exactly the score assigned by ℓ\ell for a Bayes optimal predictor when predicting xx from tt over the joint distribution of x,tx,t. Similarly, we define the conditional generalized ℓ\ell-information as Iℓ(y;x∣t):=hℓ(y∣t)−hℓ(y∣t,x)≥0I_{\ell}(y;x \mid t):=h_{\ell}(y|t)-h_{\ell}(y|t,x)\geq0.

  1. Similarly, we can define the associated regret divergence for ℓ\ell over two probability distributions p,q∈P(Y)p,q \in\mathcal{P}(\mathcal{Y}) as dℓ(p;q):=Ey∼p[ℓ(q,y)−ℓ(p,y)]≥0d_{\ell}(p;q):=\mathbb{E}_{y\sim p}[\ell(q,y)-\ell(p,y)]\geq0 by propriety. In the case of the log loss, this is the normal KL-divergence. At a slight risk of an abuse of notation, if yy and y^\hat{y} are two Y\mathcal{Y} valued random variables, we can use the random variables rather than probability laws to reflect the expected quantity: dℓ(y;y^):=Ey[ℓ(py^,y)−ℓ(py,y)]d_{\ell}(y;\hat{y}):=\mathbb{E}_{y}[\ell(p_{\hat{y}},y)-\ell(p_y,y)].

  1. We can take the typical convention of supporting divergences between conditional kernels as reflecting an expectation over the conditioning value in a context where all variables are jointly defined: dℓ(y∣x;y^∣x):=Ex[dℓ(y∣x=x;y^∣x=x)]d_{\ell}(y|x;\widehat{y}|x) := \mathbb{E}_{x}[d_{\ell}(y|x=x;\widehat{y}|x=x)]. We will also take as the convention that dℓ(y;y^∣x):=dℓ(y∣x;y^∣x)d_{\ell}(y;\widehat{y}|x) := d_{\ell}(y|x;\widehat{y}|x), to simplify notation.9

  1. As these divergences are Bregman regrets, we can also recall the three-point rule, which relates the pairwise divergences between three random variables over the same space via a (signed) Bregman interaction term. Concretely, if ww, uu, and vv are all random variables over Y\mathcal{Y}, all jointly distributed with xx over a potentially different space, then we can define the unconditioned and conditioned Bregman interaction terms via:

Bℓ(w;u;v):=dℓ(w;v)−(dℓ(w;u)+dℓ(u;v))B_{\ell}(w;u;v) := d_{\ell}(w;v) - \left(d_{\ell}(w;u) + d_{\ell}(u;v)\right)
Bℓ(w;u;v∣x):=dℓ(w;v∣x)−(dℓ(w;u∣x)+dℓ(u;v∣x))B_{\ell}(w;u;v|x) := d_{\ell}(w;v|x) - \left(d_{\ell}(w;u|x) + d_{\ell}(u;v|x)\right)

Note that in the differentiable case, these Bregman interaction terms correspond explicitly to geometric quantities that can be independently expressed, but this interpretation will not be essential for us here.

  1. We can further define the generalized mutual information for ℓ\ell via:

Iℓ(y;x)=hℓ(y)−hℓ(y∣x)=Ex[dℓ(py∣x=x;py)].\begin{aligned} I_{\ell}(y;x) = h_{\ell}(y) - h_{\ell}(y|x) \\ &= \mathbb{E}_{x}\left[d_{\ell}\left(p_{y|x=x};p_y\right)\right]. \end{aligned}

which is the improvement in Bayes-optimal predictive loss under ℓ\ell from using xx to predict yy vs. using yy alone.

  1. Given two kernels, k1:X⇝Yk_1:\mathcal{X}\rightsquigarrow\mathcal{Y} and k2:Y⇝Zk_2:\mathcal{Y}\rightsquigarrow\mathcal{Z}, we will use the term “stochastic push-forward” of k1k_1 through k2k_2 to refer to the composition k2∘k1:X⇝Zk_2\circ k_1:\mathcal{X}\rightsquigarrow\mathcal{Z} such that k2∘k1:x↦Ey∼k1(x)[k2(y)]k_2\circ k_1:x\mapsto\mathbb{E}_{y\sim k_1(x)}[k_2(y)]. We extend this notation in two ways. First, we identify a distribution p∈P(Y)p\in\mathcal{P}(\mathcal{Y}) with the constant kernel from a one-point space, so that k2∘p:=Ey∼p[k2(y)]∈P(Z)k_2\circ p:=\mathbb{E}_{y\sim p}[k_2(y)]\in\mathcal{P}(\mathcal{Z}). Second, given a Y\mathcal{Y}-valued random variable yy, we write k2∘yk_2\circ y for the Z\mathcal{Z}-valued random variable obtained by drawing from k2(y)k_2(y), jointly distributed with all others and conditionally independent of them given yy; its law is k2∘pyk_2\circ p_y, and, by this conditional independence, (k2∘y)∣x=k2∘(y∣x)(k_2\circ y)|x=k_2\circ(y|x) for any other random variable xx. When k2k_2 is induced by a measurable function g:Y→Zg:\mathcal{Y}\to\mathcal{Z}, i.e., k2(y)=δg(y)k_2(y)=\delta_{g(y)}, these reduce to g♯k1(x)g_{\sharp}k_1(x), g♯pg_{\sharp}p, and the random variable g(y)g(y) (with law g♯pyg_{\sharp}p_y), respectively.

  1. We can further define the notion of an ℓ\ell-deficiency, in the sense of statistical deficiencies in stochastic channels, a la [17, 23]. Let xx, yy, zz be jointly defined random variables taking values in X,Y,Z\mathcal{X},\mathcal{Y},\mathcal{Z}, respectively. Note that the typical conditional distributions y∣xy|x and z∣xz|x form kernels kx→y:X⇝Yk_{x\to y}:\mathcal{X}\rightsquigarrow\mathcal{Y} such that kx→y(x)=py∣x=xk_{x\to y}(x)=p_{y|x=x} and kx→z:X⇝Zk_{x\to z}:\mathcal{X}\rightsquigarrow\mathcal{Z} maps x↦pz∣x=xx\mapsto p_{z|x=x}. We define the ℓ\ell deficiency of zz relative to yy to be the minimum possible error that could be obtained were one to predict y∣xy|x through the action of any stochastic kernel in M(Y∣Z)\mathcal{M}(\mathcal{Y}|\mathcal{Z}):

δℓ(y;z∣x):=δℓ(kx→y;kx→z)=inf⁡λ∈M(Y∣Z)dℓ(y;λ∘z∣x)=inf⁡λ∈M(Y∣Z)Ex[dℓ(py∣x=x;λ∘kx→z(x))].\begin{aligned} \delta_{\ell}(y;z|x) := \delta_{\ell}(k_{x\to y};k_{x\to z}) \\ &= \inf_{\lambda\in\mathcal{M}(\mathcal{Y}|\mathcal{Z})} d_{\ell}(y;\lambda\circ z|x) \\ &= \inf_{\lambda\in\mathcal{M}(\mathcal{Y}|\mathcal{Z})}\mathbb{E}_{x}\left[d_{\ell}\left(p_{y|x=x};\lambda\circ k_{x\to z}(x)\right)\right]. \end{aligned}

Functions

  1. We will slightly modify the traditional notation YX\mathcal{Y}^{\mathcal{X}} to denote not the set of functions from X\mathcal{X} to Y\mathcal{Y}, but instead, in cases where X\mathcal{X} and Y\mathcal{Y} are measurable, which will nearly universally be true in this work, the set of measurable functions from X\mathcal{X} to Y\mathcal{Y}, Meas⁡(X,Y)\operatorname{Meas}(\mathcal{X},\mathcal{Y}). We will also use the notation g:X→Yg:\mathcal{X}\to\mathcal{Y} as is typical to denote that g∈YXg\in\mathcal{Y}^{\mathcal{X}} (again assuming measurability where applicable).

Assumptions In general, where applicable, we will assume that sets/spaces are not only measurable, but are standard Borel spaces, and assume that random variables / probability distributions defined in the context of a known joint can be used interchangeably (e.g., we can identify a random variable with its probability distribution), that conditionals are well defined, and that statements made will be assumed to hold only almost surely (a.s.) in the probabilistic sense unless otherwise specified.

Any-task vs. Zero-shot

We mentioned in the Introduction that we use the term “any-task inference” rather than “zero-shot inference” to avoid confusion, but here we can actually say more formally that these two requirements are very similar, and arguably identical in all domains where tt is a continuous random variable everywhere. Concretely, in such a case, if we satisfy the two restrictions given above (can support inference for any task, no fine-tuning), then every evaluation we perform will be on tasks tt that were almost surely{^10} never seen during training (by continuity of tt), implying that every task we assess will be assessed in a zero-shot manner. In a setting where tt is not continuous (e.g., T\mathcal{T} is finite), then this may not hold. However, in this setting, the notion of “true zero-shot capabilities” (without assuming some notion of distribution shift to a new space of task T\mathcal{T}) is somewhat strange, as the space of tasks is fixed and finite, so there is nothing preventing a model from literally memorizing every single task that could ever exist directly with no risk of generalization error. Regardless, we use the term “any-task inference” here to focus squarely on the evaluation side, rather than on the training side, and avoid any confusion on this point.

Foundation Models vs. Supervised, Single-task Models

Definition 3.1 implies the trivial, known results that the best possible foundation model has the same Bayes-optimal solution as the best possible supervised, single-task model for a given task t∈Tt \in\mathcal{T}, and thus has the same optimal error/performance. This is an obvious result, but it is worth stating explicitly to dispel any confusion that foundation models are somehow better than supervised learning models at optimality. Instead, their advantage must come in efficiency, learnability, flexibility, or along some other axis in practice.

In fact, we can go one step further than this. Suppose we have T′⊆T\mathcal{T}' \subseteq\mathcal{T} also measurable, with t′t' defined such that t∣t∈T′t|t \in\mathcal{T}', and xx, as usual, yielding two possible domains, D=(X,T,Y)D = (\mathcal{X}, \mathcal{T}, \mathcal{Y}) and D′=(X,T′,Y)D' = (\mathcal{X}, \mathcal{T}', \mathcal{Y}) with the usual associated random variables. Further, suppose F⊆P(Y)X×T\mathcal{F} \subseteq\mathcal{P}(\mathcal{Y})^{\mathcal{X}\times\mathcal{T}} be some function class of interest within the space of all foundation models for DD and F′⊆P(Y)X×T′\mathcal{F}' \subseteq\mathcal{P}(\mathcal{Y})^{\mathcal{X}\times\mathcal{T}'} be a function class of interest within the space of foundation models for D′D'. For example, suppose that these function classes are defined both by operational constraints (e.g., neural networks with no more than a certain number of parameters), but also by “admissibility” constraints based on performance (e.g., the resulting foundation model will only be used if it achieves a certain average performance across all tasks within the domain, and otherwise it would not be considered successful).

In this setting, if we were to consider a foundation model over DD to be “permitted” in general, it must be within F\mathcal{F}. If we were to then evaluate this model over T′⊆T\mathcal{T}' \subseteq\mathcal{T} alone and determine if it is “permitted” for the restricted domain D′D', we would make this conclusion based on whether or not it is also within F′\mathcal{F}'. As such, we can say that a foundation model over DD then considered as a solution for D′D' would be allowed only if it lives within F∩F′⊆F′\mathcal{F} \cap\mathcal{F}' \subseteq\mathcal{F}'. This therefore trivially implies that were we to consider the set of all foundation models permitted under D′D' alone vs. those permitted under DD and D′D', the best possible performance of a model over D′D' alone must be at least as good as that of one permitted under both DD and D′D'.

Concretely, as an example, this implies that if we train a single task model for a task t∈Tt \in\mathcal{T} under any acceptance criteria (e.g., it must obtain a certain performance and have a certain capacity limitation), and alternatively train a foundation model over T\mathcal{T}, asserting that it must likewise satisfy the capacity limitation and attain a similar performance on tt, but also satisfy some more general constraints due to its “foundation model” nature, then it is theoretically clear that it is impossible for the optimal such foundation model to outperform the optimal such single-task model. Instead, any performance difference we hope to achieve between single-task and foundation models must be accompanied by differences in prescribed criteria, such as permitting the foundation model to leverage additional capacity.

References

  1. [1]Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.arxiv.org/abs/2303.08774
  2. [2]Diogo Almeida. Introducing system one models & jev. TypeSafe AI Blog, September 2026. URL https://typesafe.ai/blog/introducing-system-one-models-and-jev. Published September 15, 2026.
  3. [3]Shun-ichi Amari. α-divergence is unique, belonging to both f-divergence and Bregman divergence classes. IEEE Transactions on Information Theory, 55(11):4925–4931, 2009.DOI
  4. [4]Rafi Al Attrach, Rajna Fani, Yugang jia, David Restrepo, Leo Anthony Celi, and Peter Schueffler. Rethinking tokenization for clinical time series: When less is more. In Machine Learning for Health 2025, 2026. URL https://openreview.net/forum?id=kdzXH4yxKs.
  5. [5]Jonathan Baxter. A model of inductive bias learning. Journal of artificial intelligence research, 12:149–198, 2000.DOI
  6. [6]Rishi Bommasani, Drew A. Hudson, Ehsan Adeli, Russ B. Altman, Simran Arora, Sydney von Arx, Michael S. Bernstein, Jeannette Bohg, Antoine Bosselut, Emma Brunskill, Erik Brynjolfsson, Shyamal Buch, Dallas Card, Rodrigo Castellon, Niladri S. Chatterji, Annie S. Chen, Kathleen Creel, Jared Quincy Davis, Dorottya Demszky, Chris Donahue, Moussa Doumbouya, Esin Durmus, Stefano Ermon, John Etchemendy, Kawin Ethayarajh, Li Fei-Fei, Chelsea Finn, Trevor Gale, Lauren E. Gillespie, Karan Goel, Noah D. Goodman, Shelby Grossman, Neel Guha, Tatsunori Hashimoto, Peter Henderson, John Hewitt, Daniel E. Ho, Jenny Hong, Kyle Hsu, Jing Huang, Thomas Icard, Saahil Jain, Dan Jurafsky, Pratyusha Kalluri, Siddharth Karamcheti, Geoff Keeling, Fereshte Khani, Omar Khattab, Pang Wei Koh, Mark S. Krass, Ranjay Krishna, Rohit Kudtipudi, and et al. On the opportunities and risks of foundation models. CoRR, abs/2108.07258, 2021. URL https://arxiv.org/abs/2108.07258.
  7. [7]Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.arxiv.org/abs/2005.14165
  8. [8]Payal Chandak, Gregory Kondas, Liat Antwarg Friedman, Isaac Kohane, and Matthew McDermott. Every-query: Zero-shot clinical prediction via task-conditioned pretraining over electronic health records, 2026. URL https://arxiv.org/abs/2603.07900.
  9. [9]Alexandra Chouldechova. Fair prediction with disparate impact: A study of bias in recidivism prediction instruments. Big data, 5(2):153–163, 2017.arxiv.org/abs/1703.00056
  10. [10]Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
  11. [11]Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pp. 4171–4186, 2019.arxiv.org/abs/1810.04805
  12. [12]Lin Lawrence Guo, Santiago Eduardo Arciniegas, Joseph Jihyung Lee, Adam Paul Yan, George Tomlinson, Jason Fries, and Lillian Sung. Tokenization tradeoffs in structured ehr foundation models, 2026. URL https://arxiv.org/abs/2603.15644.
  13. [13]Noah Hollmann, Samuel Müller, Lennart Purucker, Arjun Krishnakumar, Max Körfer, Shi Bin Hoo, Robin Tibor Schirrmeister, and Frank Hutter. Accurate predictions on small data with a tabular foundation model. Nature, 637(8045):319–326, 2025.DOI
  14. [14]Jiantao Jiao, Thomas A. Courtade, Albert No, Kartik Venkat, and Tsachy Weissman. Information measures: The curious case of the binary alphabet. IEEE Transactions on Information Theory, 60(12):7616–7626, 2014.DOI
  15. [15]Zilin Jing, Vincent Jeanselme, Yuta Kobayashi, Simon A. Lee, Chao Pang, Aparajita Kashyap, Yanwei Li, Xinzhou Jiang, and Shalmali Joshi. One loss to rule them all: Marked time-to-event for structured ehr foundation models, 2026. URL https://arxiv.org/abs/2602.00541.
  16. [16]Inhyeok Lee, Luke Solo, Michael C. Burkhart, Bashar Ramadan, Sahil Sethi, Sarah Jabbour, William F. Parker, and Brett K. Beaulieu-Jones. Representation before training: A practical benchmark for generative medical event model tokenization, 2026. URL https://arxiv.org/abs/2604.16775.
  17. [17]Friedrich Liese and Igor Vajda. On divergences and informations in statistics and information theory. IEEE Transactions on Information Theory, 52(10):4394–4412, 2006.
  18. [18]Matthew McDermott, Bret Nestor, Evan Kim, Wancong Zhang, Anna Goldenberg, Peter Szolovits, and Marzyeh Ghassemi. A comprehensive ehr timeseries pre-training benchmark. In Proceedings of the Conference on Health, Inference, and Learning, CHIL ’21, pp. 257–278, New York, NY, USA, 2021. Association for Computing Machinery. ISBN 9781450394592. doi: 10.1145/3450439.3451877. URL https://doi.org/10.1145/3450439.3451877.
  19. [19]Matthew BA McDermott, Ethan Steinberg, Jason A Fries, Robin P van de Water, Chao Pang, Patrick Rockenschaub, Pawel Renc, Jungwoo Oh, Kamilė Stankeviciūtė, Justin Xu, et al. Meds—an emerging data standard and ecosystem for health ai research. NEJM AI, 3(6):AIra2501253, 2026.
  20. [20]Samuel Müller, Noah Hollmann, Sebastian Pineda Arango, Josif Grabocka, and Frank Hutter. Transformers can do bayesian inference. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=KSugKcbNf9.
  21. [21]Cheng Peng, Xi Yang, Aokun Chen, Kaleb E. Smith, Nima PourNejatian, Anthony B. Costa, Cheryl Martin, Mona G. Flores, Ying Zhang, Tanja Magoc, et al. A study of generative large language model for medical research and healthcare. npj Digital Medicine, 6, 2023.
  22. [22]Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
  23. [23]Maxim Raginsky. Shannon meets blackwell and le cam: Channels, codes, and statistical experiments. In 2011 IEEE International Symposium on Information Theory Proceedings, pp. 1220–1224. IEEE, 2011.
  24. [24]Pawel Renc, Yugang Jia, Marcin K Grzeszczyk, Tomasz Pawlowski, Emily Alsentzer, Matthew BA McDermott, and Isaac S Kohane. Zero shot health trajectory prediction using transformer. npj Digital Medicine, 7:260, 2024.
  25. [25]Ethan Steinberg, Jason Alan Fries, Yizhe Xu, and Nigam Shah. MOTOR: A time-to-event foundation model for structured medical records. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=NialiwI2V6.
  26. [26]Shane Waxler, Paul Blazek, Davis White, Daniel Sneider, Kevin Chung, Mani Nagarathnam, Patrick Williams, Hank Voeller, Karen Wong, Matthew Swanhors t, Sheng Zhang, Naoto Usuyama, Cliff Wong, Tristan Naumann, Hoifung Poon, Andrew Loza, Daniella Meeker, Seth Hain, and Rahul Shah. Generative medical event models improve with scale, 2025. URL https://arxiv.org/abs/2508.12104.
  27. [27]Stefano Woerner, Seong Joon Oh, and Christian F. Baumgartner. Universal algorithm-implicit learning, 2026. URL https://arxiv.org/abs/2602.14761.

Paper details

vlnc:W_t3g8wxn8
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents