Manuscript Offprint
arXiv:2611.12332Do Machine Learning Models Predict?
Abstract
Machine learning (ML) models are said to predict. Philosophers draw a line between accommodation and prediction, depending on whether or not the evidence a theory succeeds on was used in constructing it. Does this distinction survive when a theory is replaced by an ML model? We argue so, yet the dividing line becomes fuzzy. Whether an output of an ML model counts as an accommodation or as a prediction hinges upon the relationship between the patterns the input instantiate and those on which the model was selected through its training. Once this relation is taken into account, most successful outputs of ML models, we suggest, bear a strong accommodation character. We further trace the consequences of our account for confirmation, novelty, and scientific realism.
Contents
1 How Predictive Are Machine Learning Predictions? 2 2 Prediction and Accommodation, Revisited 3 3 Neither Pure Prediction Nor Pure Accommodation 8 4 Prediction and Accommodation, Fuzzified 14 5 Confirmation, Novelty, and Realism — Sans Predictions 20
*E-mail: mp2834@bath.ac.uk †E-mail: emanuele.ratti@bristol.ac.uk
Philosophers reserve the term prediction for something more demanding. A prediction is contrasted with an accommodation. Roughly, a theory or model is said to accommodate evidence it was built to fit, and to predict evidence it was not. Whether this difference carries epistemic weight has been debated since at least the nineteenth century, when Whewell (1840) and Mill (1843) disagreed over the merits of prediction and accommodation. Predictivists hold that predicted evidence confirms a theory, either directly or indirectly, more strongly than merely accommodated evidence. This thesis has been drawn on in debates ranging from the credentials of confirmed theories to scientific realism. The following line of thought might be tempting: ML models are said to predict; predictivism says prediction matters; predictivism applies to ML models.¹ Not so fast, we argue.
In this article, we ask whether, and to what degree, the outputs of ML models should be regarded as predictions in the philosophers' sense. We claim that whether an output of an ML model counts as a prediction or as an accommodation hinges on the relation between the patterns the input instantiate and those on which the model was selected through its training. Once this relationship is taken into account, most successful outputs of ML models, we suggest, carry a strong accommodation character.
¹ML outputs are termed predictions because ML models are predictors in the statistical sense: they estimate an output from an input. We do not propose to change this usage, and our question is not merely semantic. Science prizes predictions as a route to confirmation, so whether ML outputs are predictions in the philosophers' sense bears on what ML-driven discoveries can establish.
We proceed as follows. In Section 2, we reformulate the notions of prediction and accommodation, hitherto developed for scientific theories, for ML models. In Section 3, we defend the view that ML outputs that matter most, those on inputs unlike the training data, are neither pure predictions nor pure accommodations. In Section 4, we fuzzify the two notions and introduce the prediction score, a metric that places an ML output on the resulting prediction-accommodation continuum, further casting doubt on the ability of ML models to confidently produce outputs with a dominant prediction character. In Section 5, we conclude by highlighting the consequences of our account for confirmation, novelty, and scientific realism in the context of ML. Throughout, we illustrate our arguments by training a simple convolutional neural network for detecting cancer metastases, in the hope of engaging philosophers and scientists alike.
2 Prediction and Accommodation, Revisited
Prediction and accommodation for scientific theories. What counts as a prediction, as opposed to an accommodation? In explaining the basic intuition behind predictivism, Barnes (2009) appeals to the notion of novelty, that is, “when E is evidence for T, E supports T more strongly when it is a novel confirmation” (p. 1; emphasis added). Successfully predicting a novel phenomenon is thus regarded as a virtue of a given T. When Einstein’s general relativity predicted the gravitational deflection of starlight by the Sun, later confirmed by Eddington’s expedition, the effect was dramatic. Had the theory merely been finely tuned to reproduce such deflection, the same agreement would have counted for less.
Central to this debate is what makes a confirmation novel. The first answer, offered by Lakatos (1970), is temporal: E is novel if it was not known when T was constructed. This drew strong criticism, specifically because when E was discovered seems to have no bearing on the extent to which E supports T. Insofar as a logic of confirmation ought to be concerned with the relationship between theory and evidence, the temporal dimension should be irrelevant. As an alternative to this proposal, some philosophers have put forward heuristic accounts. These relocate ‘novelty’ from the history of E to the construction of T. According to Zahar (1973), T accommodates E if it was built to fit E, and predicts E if it was not. The criterion thus shifts from when E became known to how T was constructed: accommodated evidence is evidence that was used in constructing T. The resulting difference is epistemic and not merely psychological, as it can be used to adjudicate between an ad hoc rescue of a theory and genuine (dis)confirmation, while also bearing on the impact of overfitting in the assessment of theories, as Hitchcock and Sober (2004) point out.
The starting point of our discussion is White (2003)'s distinction between prediction and accommodation, which is representative of heuristic definitions. As we read it, it is tailored to win acceptance among philosophers who disagree about predictivism, and it commits to nothing controversial. Let T be a theory that entails a proposition P, which is discovered to be true. The P that matters here is relative to an empirical observation concerning the datum D. White (2003, p. 655) defines:
Accommodation. T accommodates D iff T entails D, D is true, and T was constructed exactly to entail D.
Prediction. T predicts D iff T entails D, D is true, and T was not constructed to entail D.
The heuristic character of these definitions lies in their concern with the origin of T and its causal relationship with D, and not with the point in time in which D became known.
Our plan is to use White’s definitions in the context of ML. However, before we can ask whether an output of an ML model is a prediction or accommodation in White’s sense, these definitions must be translated from theories to ML models. To that end, three points need to be addressed. The first pertains to the fact that the distinction is presented for scientific theories, and an ML model is not obviously one. Second, White’s definitions require D to be true, whereas an ML output is generally viewed as only correct or incorrect. Third, while T entails D, an ML model does not entail anything, since it learns by induction and speaks in probabilities. We take these issues in turn, and end by offering a definition of accommodation and prediction applicable to ML models.
Prediction and accommodation for ML models. We adopt the conception of ML models articulated by Ratti et al. (2026) and Facchini and Termine (2022). On this conception, an ML model is a computational artifact. As such, a full picture of what an ML model is qua computational artifact requires, following Floridi (2008), a description in terms of levels of abstraction. The same ML model is at once an abstract mathematical object, an algorithm, a piece of software, and an electronic computation running on physical hardware. These views do not exclude one another, yet some questions are better settled at one level than at another. There are five levels of abstraction underlying a computational artifact:
-
Functional Specification Level (FSL): the mathematical specification of the behavior of an artifact, in terms of the function it computes (e.g., for a computer simulation, a transition function taking the state of a physical system at time to its state at the next timestep );
-
Design Specification Level (DSL): the abstract procedure for computing the FSL function (e.g., for a simulation, a set of equations);
-
Algorithm Design Level (ADL): the structured procedure for computing the DSL specification (e.g., for a simulation, the numerical methods used to solve the set of equations);
-
Algorithm Implementation Level (AIL): the translation of the ADL procedure into a programming language (e.g., a Python program);
-
Algorithm Execution Level (AEL): the physical execution of the program on hardware.
An ML model can be described at the FSL, DSL, and ADL.² At FSL, an ML model is a probability distribution selected from a family of probability distributions. For classic discriminative models, the family is , where is the input space, the output space, and the specific set of parameters chosen from all the possible parameter configurations, . For generative models, this reads . Training determines the numerical values of parameters by minimizing a loss function or maximizing a likelihood, thus selecting one
²The remaining AIL and AEL do not differ between conventional computer simulations and ML models.
member of the family, which is the actual ML model at FSL. At DSL, an ML model is specified by how the main distribution factorizes into simpler conditional distributions, which introduces components such as latent variables and conditional dependencies. At ADL, an ML model is specified as an architecture blueprint, which spells out the DSL specification through, e.g., layers, convolutional kernels, pooling operations, attention heads, and so on. In other words, ADL defines “what kinds of operations are available for transforming inputs into outputs, and what constraints are imposed on those operations” (Ratti et al., 2026).
With this framework in hand, we next turn to what White (2003) means by ‘theory.’ A theory, he writes, is “a proposition which cannot be molded into shape to fit the data. [...] A better metaphor for the process of theorizing is that of selecting a theory off the platonic library shelf” (p. 661; emphasis added). The idea that T is selected, rather than molded, resonates well with ML models, since selecting is exactly what training does. The hyperparameters and architecture typically fix a space of possible parameter configurations (i.e., the weights). At FSL, a model is the probability distribution picked out by one configuration of weights within the space delimited at ADL. In other words, training is the process of selecting a configuration of weight-parameters (i.e., a single model) from among the set of potential parameters that the architecture permits at ADL. The set of all such possible configurations plays the role of White’s platonic library, and the trained model, at FSL, is the one selected off the library shelf. White’s metaphor applies to ML models almost without adjustment.
For an ML model, what would count as a prediction or an accommodation is its output. The nature of the output depends on the specific task, be that a label (as in the classification of a neural network), a number (as in the temperature forecast by a weather model), or a word (as in the next token of a large language model). In each case, the output is a value that the ML model assigns to an input. White holds that T entails D and that D is true. We have identified T with an ML model, so D is the datum that the ML model gets right or wrong: a given output assigned to a given input. Is the output ‘true’ in White’s sense? We could force this reading. Labeling a patch of metastatic tissue as METASTASIS says something true about the patch, namely that it shows metastatic tissue. Yet, it is perhaps safer to speak of correctness instead of truth.
An output is correct when it meets a standard of accuracy that is established independently of the model (that is, the ground truth), such as a pathologist's expert annotation of a laboratory immunohistochemical test. Correctness thus plays in our analysis the role that truth plays in White's. This choice is deliberate: what is at stake is the discovery potential of ML in science, so we ask whether models predict or accommodate when their outputs are correct. In ML parlance, a model 'predicts' whenever it returns an output for a given input. Since any such output can typically be checked against a ground truth, it can be right or wrong, and it is only for the right ones that the philosophical distinction between prediction and accommodation becomes relevant.
Finally, what about entailment? Is there any sense of entailment at play in ML models? Harman and Kulkarni (2007) point out that, through training, ML models learn by induction. Once ADL is fixed, training selects the parameters once and for all, and such parameters, together with the fixed operations of the architecture, settle what comes out when an input is presented. The output for a given input is then determined in a deductive-like fashion. Just as a theory T, given some particular initial conditions and auxiliary assumptions, entails a particular datum D, a trained ML model M (e.g., a convolutional neural network), given an input x (e.g., a patch of lymph node tissue), entails a particular output y (e.g., METASTASIS). So we can say that the ML model, applied to x, entails y. This gives us the contrast we need. If the ML model was not selected to entail y for x, then assigning y to x is a prediction. If it was, it is an accommodation.
With these three points settled, we arrive at the definitions of accommodation and prediction for ML models:
Accommodation. An ML model , assigning an output to an input is an accommodation iff applying to entails for , is correct for , and was selected to entail for that .
Prediction. An ML model , assigning an output to an input is a prediction iff applying to entails for , is correct for , and was not selected to entail for that .
We emphasize that these definitions are general and apply equally well to other ML outputs, such as numerical values, clusters, or tokens. In all cases, the ML model, characterized by its own FSL, DSL, and ADL, entails an output in response to an input, with the correctness of the output being established by a model-independent ground truth, with a tolerance suitable to the task. Whenever the output is a numerical value, such as in a regression model, the ground truth may be an acceptable numerical interval around a measured value; whenever the output is an assignment to a cluster, such as in an unsupervised model, the ground truth may be membership in a known category; and whenever the output is a sequence of words, such as in large language models, the ground truth may be a range of acceptable continuations, any of which may count as correct. Armed with these definitions, we can now ask whether ML outputs fall under predictions or under accommodations.
3 Neither Pure Prediction Nor Pure Accommodation
A simple experiment. To make our discussion concrete, we work through an illustration. We train a convolutional neural network to detect breast cancer metastases in lymph node tissue. We rely on ResNet18 trained from scratch (that is, from random initial weights), so that its training data are the sole source of what it learns. Presented with a small patch of tissue, its task is to decide whether or not the tissue is metastatic.
We consider a collection of patches cropped from digitized, hematoxylin-and-eosin-stained sections of sentinel lymph nodes from breast cancer patients. Each patch is labeled metastatic if the central region overlaps a metastasis that pathologists annotated on the slide, and non-metastatic otherwise. These pathologists' annotations provide the independent standard of correctness. The patches are from two Dutch hospitals, the Radboud University Medical Center (RUMC) and Canisius Wilhelmina Hospital (CWZ). Each hospital contributes ten fully annotated slides, from which thousands of patches are cropped. The patches are perfectly balanced between the two classes. RUMC and CWZ prepared and stained their slides in different ways. In Figure 1(a), we show sixteen representative patches for each of the two hospitals. Following a
Radboud University Medical Center (RUMC)

Canisius Wilhelmina Hospital (CWZ)

b
Figure 1: a, Random patches (96×96 pixels; 4×4 per hospital) cropped from hematoxylin-and-eosin-stained whole-slide images of sentinel lymph node sections from breast cancer patients, for the two hospitals considered, RUMC and CWZ. b, AUC of ResNet18 models trained from scratch on RUMC over five seeds, i.e., 0.98 ± 0.02 for in-hospital (ID), as obtained on two held-out RUMC slides, and 0.94 ± 0.01 for cross-hospital (OOD), as obtained on all 34,904 patches of CWZ. The dashed line marks chance level (AUC = 0.5).
training, we evaluate the model performance through the Area Under the Curve (AUC).
We train the model on the patches from RUMC, . We refer to the resulting model as . At FSL, a model like is a conditional probability distribution , where is a patch from RUMC, and y is the diagnostic label, such as METASTASIS, that is selected among a large family of possible distributions, where the boundaries are set by ADL. We then determine the performance of on two held-out slides (4,264-14,670 patches, depending on seed initialization) from RUMC, which the model never saw in training (in-hospital performance). These inputs, though unseen, are in-distribution (ID): they were prepared and stained like the training data belonging to the same hospital. As shown in Figure 1b, we obtain . This nearly-perfect AUC suggests that captures
We trained ResNet18 (He et al., 2016) from random initial weights, with the Adam optimizer (learning rate , cosine decay), batch size 128 and 20 epochs, using random flips and brightness and color jitter as augmentation. Each model was trained on up to 32,000 patches drawn at random from one hospital, with two of its ten slides held out; the model after the final epoch is used, and nothing was selected using the held-out slides or the test hospital. We trained five models per direction, with different random seeds (the seed sets the initial weights, the patch sample, the held-out slides and the order of training), and report means and standard deviations over seeds. Performance is measured on all patches of the other hospital. The data is from CAMELYON17-WILDS (Bándi et al., 2019; Koh et al., 2021).
AUC is a metric that quantifies how well our binary classification model can distinguish between the two metastatic and non-metastatic classes, i.e., the probability that a randomly chosen metastatic patch receives a higher probability than a randomly chosen non-metastatic one. Specifically, AUC = 1 denotes a perfect separation of the two classes, AUC = 0.5 denotes chance, while AUC = 0 denotes complete inversion of the two classes.
two kinds of regularity: some that are specific to RUMC, involving its own procedures in the slide preparation, and others that are related to a phenomenon in the real world that pathologists refer to as ‘metastasis.’
We next present to , trained exclusively on , all 34,904 patches from the hospital CWZ, , which the model never saw in training (cross-hospital performance). As compared to the previous case, there is now a shift from in-distribution to out-of-distribution (OOD) data, because the two hospitals prepared and stained their slides differently, that is, there is a distribution shift as a result of different procedures leading to partially different data-generating processes. As shown in Figure 1(b), we obtain . Because is close to , with a gap of only , we conclude that generalizes well, which suggests that it has captured regularities that carry over from one hospital to the other. Is a correct output on an input that has not seen a prediction? It seems straightforward: was not selected to entail this output for this very input, so the output appears to fall under the definition of prediction. We argue otherwise.
Real patterns as a criterion. We connect our characterization of an ML model to Dennett (1991)'s notion of real patterns. Dennett presents six images consisting of black and white dots, which he calls 'frames'. No two frames are exactly alike, yet they can all be said to display a similar pattern consisting of five equally spaced black bars (a pattern that Dennett terms 'bar code'). How does one establish whether a pattern is really there? According to Dennett, one can rephrase this question in terms of the task of transmitting information about one of the frames. One way to do this would be to transmit the exact bit map, that is, to describe the frame in terms of the position of each of its black and white dots. In this case, Dennett (1991) argues, for "a black-and-white frame of 900 dots (or pixels, as they are called), the transmission requires 900 bits" (p. 32). But there might be a more efficient way of describing a given frame. One can, for instance, describe some of the frames in terms of number and size of the bar codes. If a frame can be described in a way that is more efficient than the seriatim description, then it is compressible, and the pattern is real. Dennett (1991) concludes that a "pattern exists in some data, is real, if there is a description of the data that is more efficient than the bit map” (p. 34). If, on the other hand, “nothing shorter than the verbatim bit map will preserve the series” (p. 33), then a frame is random and incompressible.
Now, take a frame to be a chunk of data, such as an individual input (e.g., a lymph node patch), whether inside or outside the training set, and suppose we want to transmit the information it contains. If the information can be described more efficiently than reporting all the values of every pixel (that is, Dennett’s seriatim description), then there is a pattern in it. Can then the task of selecting an ML model be conceptualized as the search for real patterns? Yes. Consider an ML model, say, a convolutional neural network such as , more closely. At FSL, the model is a conditional probability distribution , where X is the input space, Y the output space, and the specific set of parameters characterizing the distribution. is selected via optimization by, e.g., minimizing a loss. Selecting an ML model can be seen as a form of compression, because what an ML model (understood at FSL) provides are ‘compact’ rules (Harman and Kulkarni, 2007) for how configurations of the features of the inputs map into the output space. This amounts to saying that the model is a more efficient description of the mapping than the list of all the details of the inputs and their labels. A real pattern can thus be expressed as a (conditional) distribution that yields a compressed description of the frame with respect to an output space. If this is right, training an ML model can be understood as the search for real patterns in the data.
In the case of patches from RUMC, the near-perfect suggests that has identified patterns characteristic of how RUMC prepares and stains its slides as well as patterns relevant to metastasis (or, at least, to the part of the image that a pathologist would call ‘metastasis’). More generally, the output that an ML model produces depends on the real patterns that efficiently describe the input. An ML model entails y for an input x in virtue of x instantiated certain real patterns. This suggests a criterion. We claim that model selection operates on real patterns, not on individual inputs. A model is thus selected to entail y for x to the extent that x instantiated real patterns on which it was selected.
Let be the real patterns that efficiently describe the inputs , and those that describe . Each has a part tied to the hospital's own measurement apparatus and procedures, and , reflecting how each hospital prepared and stained its slides, and a part that the two share, , which is the set of patterns that distinguish metastatic from non-metastatic tissue. The cross-hospital model performance, , motivates the latter part: generalizes from to , as the small generalization gap suggests, presumably because at least some of the patterns identified in the training data are also present in the unseen inputs, despite their having specific patterns of their own. For simplicity, then,
We can now ask whether a correct output of is a prediction or an accommodation, first for ID inputs, which follow the distribution of the training data, and then for OOD inputs, which do not. The decomposition above says what is at stake in each case: for the former, all of what an input instantiated was selected on, and for the latter, only part of it.
In-distribution (ID) inputs. Show the ML model one of the very same inputs it was trained on (e.g., one of the RUMC patches in the training set to ), and the model answers correctly. This is an accommodation, plainly. The ML model was selected to entail that very output for that very input, so the answer was in the model before the question was asked. That is the trivial, and not very interesting, case. Consider another case. Show the ML model an input that it has not seen, but that comes from the same distribution, such as a held-out RUMC patch to . In the idealized limit, unseen inputs from RUMC are generated exactly like the training inputs. This never happens in practice, since some difference remains, however
Our argument does not presuppose any realist commitment. The ‘invariance’ in question is across datasets, and nothing in what follows depends on how it is interpreted. One might nonetheless be tempted towards realism by the fact that a model that generalizes across more and more datasets is highly projectible. What is invariant could then be read as causal, and so as an instance of modal structure, as Arjovsky et al. (2019) do. The connection between modal structure and ML models has been noted before by, e.g., Ratti et al. (2026) and Ladyman and Nefdt (2026). Whether such a reading is warranted is contentious. We remain agnostic about it, and nothing in our argument depends on it.
standardized the procedure, and the held-out patches only approximate the limit, but let us take it. Such an input instantiated , that is, and , with being selected on exactly these patterns. The input did not constrain the selection in the sense of being among the training inputs. The real patterns it instantiated, however, did. By our criterion, was selected to entail the output for this input, and a correct output on it is an accommodation. For ID inputs, whether seen or unseen, the output is not a prediction. Quite the opposite: because such inputs share all of their real patterns with the training data on which the model was selected, the output is a pure accommodation.
Out-of-distribution (OOD) inputs. Take now, as an input, a CWZ patch for which entails the correct label. Here the claim that the output is a prediction may look even more secure: was not selected to entail it for this input, no CWZ patch was included in training, and the input comes from a shifted distribution. We ask the same questions as before. The input instantiated , that is, and . was selected on but not on . The output is therefore not a pure prediction: the success of rests, at least in part, on the distribution-invariant patterns that bear on the presence or absence of metastasis, , which were part of what was selected to account for. But it is not a pure accommodation either. The input also instantiated , on which was not selected, so part of what the input is lies outside what the selection constrained.
In contrast with the pervasive ML speak, we claim that an ML model not having seen a particular input does not, by itself, make a correct output on it a prediction. What matters to the distinction between prediction and accommodation is the relationship between the real patterns that the input instantiated and those on which the model was selected. ID outputs are pure accommodations, as they share all their real patterns with the training data. OOD outputs are neither pure accommodations nor pure predictions, as they share only some of their real patterns with the training data. Consider each extreme in turn. For an OOD output to be a pure accommodation, its input would have to share all its real patterns with the training data. But this is not possible, since an input that did so would no longer be OOD: it would be ID. For an
OOD output to be a pure prediction, its input would have to share none of its real patterns with the training data. But then nothing in the model selection would map the output to the input, and a correct output would be a stroke of luck, not a success that can reliably be ascribed to the model. We therefore conclude that OOD outputs are mixed cases: they carry something of accommodation and something of prediction, yet cannot be neatly reduced to either.
4 Prediction and Accommodation, Fuzzified
Prediction and accommodation on a continuum. We settled on a criterion to determine whether an OOD input is a prediction or an accommodation: an output carries an accommodation character to the extent that its input instantiated real patterns on which the model was selected, and a prediction character to the extent that it does not. Building on this, we propose a fuzzy conception of prediction and accommodation. On this conception, an output is not simply a pure prediction or a pure accommodation but is one or the other to a degree, in the same way that membership in a fuzzy category comes in degrees. The two limits are idealizations that real outputs will never reach. On the one hand, pure accommodation would require an input that instantiated only the real patterns on which the model was selected. On the other hand, pure prediction would require the input sharing none of its real patterns with those on which the model was selected. Between these limits lies a continuum, and the position of an output on it depends on the extent to which it occurs with, or without, the real patterns on which the model was selected.
Real patterns cannot be inspected directly, though, so how is one going to establish where an output lies in the continuum? The model gives us a window onto them: its own representation
One may ask whether this fuzzy conception proves too much, if extended beyond ML models. General relativity’s prediction of the bending of starlight, for example, depends on gravitational structure already present in data that was available to Einstein, so the theory too might carry an accommodation character, and the distinction would then dissolve in science generally. It does not, and the reason is a difference in what constrains selection. A theory is selected under two types of constraint: the data it is fitted to, if any, and principles that do not originate from those data. GR was selected under domain-specific principles of the second kind, such as the equivalence principle and general covariance, so part of what it entails about starlight is secured by them and not by the data. That part is prediction-like even on our account. In ML models, by contrast, the constraints are generic and domain-agnostic (see Ratti et al. (2026), Chapter 2), so what an ML model entails about a new input is secured almost entirely by the patterns extracted from its training data.
space, that is, the space in which the model encodes each input, such that inputs that the network treats alike lie close together. We illustrate this by returning to . In Figure 2a, we show the 22,546 RUMC training patches, projected from the 512-dimensional representation space onto its first two principal components. They form two dense arcs, corresponding to the metastatic and non-metastatic classes. These are the regions where the patterns on which was selected are heavily represented. Any new OOD input is mapped by into the same space, and where it lands reveals how much its patterns were already represented in the selection. An input that lands in a densely populated region resembles many training inputs: 's output on it rests on patterns that constrained the selection many times over, and is accommodation-like. An input that lands in a sparsely populated region, or in the empty gap between the arcs, resembles few or none of them: the selection hardly constrained it, and the output is prediction-like. This accommodation-like and prediction-like contrast is shown in the insets of Figure 2a for two CWZ patches correctly classified by . One lies on the arc of metastatic training patches, among many neighbors. The other lies in the empty interior between the two arcs, far from all of them. In other words, an OOD input acquires a stronger prediction character the farther it falls from the heavily represented regions of the model's representation space. We now make the idea more quantitative.
The prediction score. Let be the representation of an OOD input in the last pooling layer of the network, normalized to unit length. The final layer of the network is a linear read-out of these features, so the output of the model for is fixed by its representation, and distances in this space are distances between inputs as the model sees them. For each , we define the prediction score, , as
where are the k training inputs whose representations are nearest to . In words, S is the mean distance from an input to its k nearest training inputs, rescaled to lie between 0 and 1. The factor is the distance between two orthogonal unit vectors, and since the pooled a

b

C
Figure 2: a, RUMC training patches in the first two principal components of the representation space (i.e., the 512-dimensional output of the network's last pooling layer, normalized to unit length). Blue and red dots denote non-metastatic and metastatic patches, respectively. Circled, with their images, are two representative, correctly classified CWZ patches with the highest (top right inset) and lowest (bottom left inset) accommodation character. b, Distribution of the prediction score S for correctly (blue) and incorrectly (red) classified CWZ patches for nearest-neighbor numbers k = 1, 10, 100, 1000. c, Model confidence (i.e., probability of the predicted class) for correctly classified patches: median (line) and 10th to 90th percentile (shading) in 20 equal-count bins of S for k = 100. The dashed line marks confidence 0.5, at which the model assigns equal probability to both metastatic and non-metastatic classes. All panels use one model.
features are non-negative, no two representations can lie farther apart than that. For , means that the input coincides with a training input in representation space, the pure accommodation extreme. means that it is orthogonal to all of them, the pure prediction extreme. Both are idealized limits that no real output reaches. is thus to be read comparatively, as an index of how far (close) an output lies from (to) pure accommodation (prediction). It is a surrogate for the share of an input's real patterns on which the model was selected.
The number of neighbors k sets the grain at which familiarity is measured. For k = 1, S asks whether the training set contains an input exactly like this one (i.e., a twin). For large k, S asks how far the input lies from a broad region of the training data, which approaches a population-level estimate. Since our criterion reads ‘selected for’ at the level of patterns, not of individual inputs, the large-k end is the more natural fit.
As an illustration, we now apply the definition of prediction score to . The upper half of Figure 2b shows the distribution of S over the correctly classified CWZ patches for k = 1, 10, 100, 1000. These values of k correspond to fractions of the training set ranging from
0.004% (k = 1) to 4.4% (k = 1000). We observe that the distribution is concentrated at low values of S: at k = 10 the median of S is 0.11, nine in ten correct outputs have S below 0.21, and the largest value is 0.36. Even at k = 1000, where S is bound to be larger, the median is 0.19.
These outputs carry something of prediction, because their inputs instantiate patterns on which was not selected, but most of what they rest on was selected for, and in this model the accommodation part is the dominant one. That is the sense in which we suggest that most successful outputs of ML models lean strongly towards accommodation.
Where prediction-like outputs fail. Which outputs, then, are more prediction-like? The lower half of Figure 2b shows S for the incorrectly classified CWZ patches. At every k they lie to the right of the correct ones, with a median that is roughly twice as large (at, e.g., k = 10, 0.19 vs. 0.11). The median of the prediction score on incorrect outputs sits almost where the 90th percentile of that of correct ones does (0.19 against 0.21 at k = 10, and likewise at the other values of k). Incorrect outputs show that S is the largest where tends to fail. This is further supported by our results presented in Figure 2c, where we display the model's own confidence, i.e., the probability it assigns to the class it picks, as a function of the prediction score. Among correct outputs, confidence is essentially 1 only up to and then falls approximately linearly with S.
We further quantify the relation between the model's confidence and the prediction score through Spearman's rank correlation coefficient, . This ranges from for perfect anti-correlation to for perfect correlation. Between S and the model's confidence, we obtain (at k = 100, and similar for other values of k), which signals a very strong anti-correlation. That is, the higher the prediction score of a correct output, the lower, on the whole, the model's confidence in it. This suggests that inputs far from the training data are those on which is least certain, even when it is right.
Although the prediction score is defined for outputs on OOD inputs, ID inputs provide a useful reference. We obtain that median prediction score of the correct outputs on held-out RUMC patches (ID) ranges from 0.10 at k = 1 to 0.18 at k = 1000. These values are very close to those obtained on the CWZ patches (OOD), i.e., 0.10 and 0.19, further supporting the accommodation character of the latter.
Taken together, outputs with strong prediction character, those resulting from inputs far from anything the model selection constrained, are the ones most likely to be wrong, and the ones on which the model is least sure. This is what one would expect of a model whose success is underwritten by the patterns it was selected on: where those patterns recur, it succeeds, and where they do not, much less. If so, the successes that predictivists prize are exactly the ones that ML models are least equipped to deliver. Such successes are unlikely, and when they occur they are hard to tell apart from sheer luck.
Beyond a toy model. One may object that , though suggestive, is just a toy model. Surely our small convolutional network, trained from scratch on data from a single hospital, is not very representative of the ML models on which the celebrated achievements of ML-driven science rest. Granted. Yet nothing in our account depends on the nature, complexity, or scale of the model. Therefore, the picture does not change for the sophisticated models that make the headlines: even for them, most outputs carry a strong accommodation character, too. To show this, we turn to structural biology, arguably one of the sciences in which ML has delivered its most striking successes. We consider ESM-2, a protein language model with 650 million parameters, developed by Lin et al. (2023) at Meta. It treats amino-acid sequences much like a language model treats text.
ESM-2 was originally trained on UniRef50, a public database of tens of millions of protein sequences clustered at 50% identity, by recovering residues that had been masked out. Its training set dates from 2021 or earlier. As unseen inputs, we take proteins of 50 to 500 residues, drawn at random from the manually curated Swiss-Prot entries created in 2026. These entries came into existence five years after the ESM-2's training cutoff and cannot thus have been among the entries that selected ESM-2. For each of the 300 proteins, we hide 15% of the residues at random and present the masked sequences to ESM-2, which fills in the gaps. At each hidden position, the output of ESM-2 is the residue to which it assigns the highest proba-
As we have mentioned above, unseen is not the same as OOD. A protein that is new to the database is not necessarily new to the model, since most new entries are relatives of old ones, and for realistic models and training sets the line between ID and OOD is blurred. Note also that curated entries are better studied than the typical sequence of UniRef50, most of which is unreviewed.
bility. The output is correct if this residue is the one that was hidden, as recorded in the original sequence, which supplies the model-independent standard of correctness. For example, the input for a 52-residue protein is MP_HGSLTKAG_VRSQTPKIQPKEKHKE_P_V_N_KE_EK_VVKARQQAPAR, where each letter denotes one of the twenty amino acids, and the underscore denotes a hidden residue. At each underscore, the output of ESM-2 is the residue to which it assigns the highest probability. The output is correct if this residue is the one found at the same position in the original sequence (i.e., MPSHGSLTKAGKVRSQTPKIQPKEKHKEVPRVRNRKEYEKRVVKARQQAPAR in this case), and incorrect otherwise.
The original training set of ESM-2 is too large to embed. To compute the prediction score, we use in its place a proxy: a random sample of 10,000 sequences from UniRef50, restricted to entries created on or before 2021 and to sequences of 50 to 500 residues, each masked once, hiding 15% of its residues at random, in the same way as the unseen proteins. To a good approximation, the proxy is a subset of the actual training set. Adding points to the reference can only bring the nearest neighbors of an input closer, so the prediction scores we obtain are upper bounds of those that the full training set would give. The representation of a protein is the average, over its residues, of the last hidden layer of ESM-2 applied to the masked sequence, normalized to unit length. We compute the prediction scores for k = 1, 10, 100 and 1000, which correspond to 0.01% to 10% of the proxy training set. For the 5,583 correct outputs, the median of the prediction score is 0.16, 0.17, 0.19 and 0.22, respectively, with nine in ten outputs scoring below 0.20, 0.23, 0.26 and 0.29. For k = 10, for instance, the prediction score ranges from a minimum of 0.09 to a maximum value of 0.43. The prediction score thus lies in the lower part of the scale, so that the proteins neither come close to coinciding with a training sequence (S = 0) nor lie anywhere near orthogonal to all of them (S = 1). Even for a large model in actual scientific use, most unseen inputs lie close to what it was selected on, and, on our account, the resulting outputs carry a predominant accommodation character.
We explicitly verified that our conclusions do not qualitatively depend on the size of the proxy. Recomputing the score at k = 10 with nested subsets of 500, 1,000, 2,000, 5,000 and 10,000 sequences, the median of the prediction score is 0.20, 0.19, 0.19, 0.18 and 0.17, i.e., it slightly decreases, as expected, as the proxy training set approaches the full training set.
5 Confirmation, Novelty, and Realism — Sans Predictions
We conclude by sketching three vignettes to show how our account can inform various debates across the philosophy of science, touching upon confirmation, novelty, and scientific realism.
Confirmation sans predictions. Predictivists of various stripes maintain that predictions are relevant, if not essential, to confirmation. Many subscribe to a comparative view, according to which predicted data confirm more strongly than the same data accommodated. We have argued that ML models never deliver pure predictions, with most of their successful outputs leaning towards accommodation. If this is accepted, a dilemma arises. Either one preserves the universal applicability of predictivism, concluding that ML models can enjoy only the weak confirmation that accommodation lends; or one rejects its universality and holds that, unlike scientific theories, ML models can be strongly confirmed in ways that do not run through pure predictions.
We take the second horn. In practice, ML models earn our confidence by operating effectively where they were not trained to operate. The further the input lies from the representations of the training data (i.e., OOD), the more the resulting correct output counts as a success, even though it still carries a predominantly accommodation character. In other words, what confirms an ML model, we argue, is neither prediction nor accommodation per se. Rather, it is the extent to which the model captures the real patterns that underlie its empirical target. This is probed by shifting the distribution of the inputs, which raises our confidence that the model has latched onto the invariant real patterns of interest whenever the resulting outputs remain correct.
As an example, consider again . A correct output on a CWZ patch is a far cry from a pure prediction, as quantified by its low yet non-vanishing prediction score, because that patch shares with the set of patches on which the model was selected. But it is informative all the same. The patch also instantiated patterns of CWZ's own, , on which the model was not selected, and the model gets it right in spite of them. This is evidence that the model
The dilemma bites hardest for global predictivism, according to which predictions are invariably superior to accommodations, and for strong predictivism, which holds the superiority to be intrinsic. Local predictivism escapes it by restricting that superiority to certain cases, and weak predictivism by locating the value of prediction in the features of which predictive success is a symptom.
does not rest on a single hospital staining method alone, but on features that the two hospitals share, which we take to be those underlying metastases. Correct outputs on ID inputs prove no such thing, since a model relying on RUMC's preparation procedures would do just as well on them.¹¹
Novelty sans predictions. That ML models deliver no pure predictions does not amount to saying that they deliver no novelty either. This divorce between prediction and novelty sits uneasily with much of the literature, where 'novel prediction' has become a stock phrase.
What kind of novelty can ML models deliver, then? Taken literally, the temporal and heuristic criteria may count many of the ML outputs as novel. For instance, the CWZ labels were not known to us (of course, they were known to the pathologists who annotated them) when we trained , and none of its patches was used to construct it. Such novelty criteria do not capture what is genuinely novel about ML models. Novelty, we suggest, resides in the mapping of the input space to the output space that the ML model has found by way of the real patterns identified in the data. While technically it is, at FSL, a probabilistic mapping from images to labels, it can be interpreted as a mapping from the look of a patch to the presence of a metastasis. That mapping owes nothing to the history of any one input or the novelty of any one output. Above all, the mapping is obtained largely independently of the theories, rules, and laws pertaining to the relevant domain knowledge.¹² The more a mapping is found by optimization on data, and the less it is derived by reasoning from background knowledge, the more novel it is. This view is reminiscent of the notion of novelty in Musgrave (1974)'s background-relative sense, according to which something counts as novel if that something is not already provided by one or more theories in the domain knowledge.
We distinguish three kinds of novelty that ML models can deliver. They are not mutually
¹¹The line between ID and OOD is blurred in practice, and the confirmation it supports blurs with it. Moreover, for many popular ML models, such as AlphaFold, the training set is not publicly known, so that users cannot ascertain how the model was constructed, which makes criteria for confirmation based on the construction of an ML model on their performance on shifted distributions hard to apply in practice. This is analogous to the challenge for predictivism identified by Dellsén (2025) in the context of scientific theories, according to whom a “theory evaluator might not know whether the data was accommodated rather than predicted in a given case. In such a case, the theory evaluator would have no grounds for placing more or less confidence in the hypothesis based on the likely presence of the relevant epistemic feature” (p. 4)
¹²On the independence of ML model-building from domain knowledge see, for instance, Ratti et al. (2026).
exclusive, and we list them in decreasing order of strength. The first, novelty by supply, arises when the domain knowledge has no theory of the connection between inputs and outputs, and the model supplies a mapping between input space and output space, found through the real patterns in the data that was hitherto unknown. This is the strongest case, since the background knowledge lacks the connection altogether. The second, novelty by rivalry, arises when theories exist, yet the model offers a rival mapping through the identification of real patterns that differ from the ones on which the existent theory relies. This is the intermediate case, as the model does not fill a gap in the background knowledge but competes with it. The third, novelty by improvement, arises when a theory exists and does connect inputs to outputs, but less reliably than the model does. This is the weakest case, as the ML model adds nothing in kind, only in degree.
A given model may occupy more than one of these positions at once. Models such as illustrate this by combining novelty by rivalry with novelty by improvement. Pathologists surely have diagnostic criteria that connect a patch to a verdict, yet such criteria do not involve the examination of pixels, or at least not of pixels qua pixels. The model, by contrast, works from the pixels of a stained patch, and the real patterns through which it separates metastatic from non-metastatic tissue need not be those that pathologists rely on. Moreover, models of this kind could provide novelty by improvement, in that they could lead to a more accurate diagnosis. This could be assessed by comparing the 's performance on CWZ patches with that of pathologists at RUMC.
No-miracle argument sans predictions. Our account directly impacts recent debates on scientific realism. In the case of scientific theories, scientific realism is often defended on the basis of Putnam (1975)'s No-Miracle Argument (NMA), according to which, were it not for their approximate truth, the empirical success of theories would be left without explanation, akin to a miracle. More recently, Rowbottom et al. (2024) and Rowbottom and Curtis-Trudel (2026) have offered a reformulation of the NMA that is applicable to ML models. Let A be an arbitrary model in the domain of predictive ML models in science. The argument takes the
These reflect, mutatis mutandis, Musgrave (1974)'s view.
following probabilistic form:
(a) is high.
(b) is low.
(c) Therefore, is high.
Here, stands for ‘ is empirically successful’, defined on the basis of the number of novel predictions scored by the ML model; stands for ‘ quasi-represents its task-related empirical targets’, where ‘quasi-’ denotes the representational force of the medium towards its target, as described by Suárez (2004), without the ‘aboutness’ usually ascribed to representations; and is the relative frequency of success.
We understand the notion of ‘quasi-representation’ of Rowbottom and Curtis-Trudel (2026) to be close to what we call real patterns, that is, a compressed description that captures the regularities in the data. If so, the argument licenses the inference from the empirical success of ML models to the conclusion that they latch onto real patterns of their intended target. But what is ‘empirical success’? According to Rowbottom et al. (2024), it is the ability of ML models to produce novel predictions. On our account, however, ML models do not entail pure predictions. If ‘novel prediction’ is read strictly, is then almost never satisfied, to the effect that premise (a) is false and the argument is unsound.
One may consider a weaker reading, on which the notion of novel prediction is taken to mean the production of correct outputs on unseen inputs. Rowbottom and Curtis-Trudel (2026) seem to entertain this idea, when they “proceed on the assumption that a DLM [Deep Learning Model] cannot achieve ‘empirical success’ merely by achieving predictive success concerning items in its training set” (p. 6). The novelty at stake would then be that of unseen versus seen inputs. However, an unseen input can lie very close, in distribution, to the training data, and what the model captures at FSL includes the regularities of the measurement apparatus along with those of the intended target, as illustrated by . Given the opacity of ML models, it is hard to single out the quasi-representation of the target from whatever else the model has captured, so that success on unseen inputs is not evidence that the model has quasi-represented it.
This can be remedied by considering significant distribution shifts, as we have shown by running on CWZ patches. If the ML model remains correct when the apparatus-specific patterns change, our confidence that it has captured the real patterns of the intended target rises. If the NMA is to apply to ML models, then, it had better rest on success under such shifts, that is, on OOD outputs. Yet these are still, for the most part, accommodation-like. The realist would thus ground their commitment on accommodations, which is uncomfortable: the NMA draws its force from success that would be miraculous if the model had not captured the target, and an accommodated success is no such miracle, since model selection explains it. Proponents of the NMA in ML thus face a challenge. If they retain their own conception of empirical success as ‘novel prediction,’ their argument is unsound, since the premises cannot be met. If they relax it to include success on OOD inputs, they ground a realist commitment on outputs that are accommodation-like, and the miracle the argument relies on is gone.
References
Arjovsky, M., Bottou, L., Gulrajani, I., and Lopez-Paz, D. (2019). Invariant risk minimization. arXiv preprint arXiv:1907.02893.
Barnes, E. (2009). The Paradox of Predictivism. Cambridge University Press.
Bándi, P., Geessink, O., Manson, Q., Van Dijk, M., Balkenhol, M., Hermsen, M., Ehteshami Bejnordi, B., Lee, B., Paeng, K., Zhong, A., Li, Q., Zanjani, F. G., Zinger, S., Fukuta, K., Komura, D., Ovtcharov, V., Cheng, S., Zeng, S., Thagaard, J., Dahl, A. B., Lin, H., Chen, H., Jacobsson, L., Hedlund, M., Çetin, M., Halici, E., Jackson, H., Chen, R., Both, F., Franke, J., Küsters-Vandevelde, H., Vreuls, W., Bult, P., van Ginneken, B., van der Laak, J., and Litjens, G. (2019). From detection of individual metastases to classification of lymph node status at the patient level: The camelyon17 challenge. IEEE Transactions on Medical Imaging, 38(2):550–560.
Dellsén, F. (2025). An epistemic advantage of accommodation over prediction. Philosophers' Imprint, 25(12):1–18.
Dennett, D. C. (1991). Real patterns. The Journal of Philosophy, 88(1):27–51.
Facchini, A. and Termine, A. (2022). Towards a taxonomy for the opacity of AI systems. In Müller, V. C., editor, Philosophy and Theory of Artificial Intelligence 2021, pages 73–89, Cham. Springer International Publishing.
Floridi, L. (2008). The method of levels of abstraction. Minds and Machines, 18(3):303–329.
Harman, G. and Kulkarni, S. (2007). Reliable Reasoning: Induction and Statistical Learning Theory. The MIT Press.
He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778.
Hitchcock, C. and Sober, E. (2004). Prediction versus accommodation and the risk of overfitting. The British Journal for the Philosophy of Science, 55(1):1–34.
Koh, P. W., Sagawa, S., Marklund, H., Xie, S. M., Zhang, M., Balsubramani, A., Hu, W., Yasunaga, M., Phillips, R. L., Gao, I., Lee, T., David, E., Stavness, I., Guo, W., Earnshaw, B., Haque, I., Beery, S. M., Leskovec, J., Kundaje, A., Pierson, E., Levine, S., Finn, C., and Liang, P. (2021). WILDS: A benchmark of in-the-wild distribution shifts. In Meila, M. and Zhang, T., editors, Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 5637–5664. PMLR.
Ladyman, J. and Nefdt, R. M. (2026). Are AI language models scientific models of language? European Journal for Philosophy of Science, 16(3):63.
Lakatos, I. (1970). Falsification and the methodology of scientific research programmes. In Lakatos, I. and Musgrave, A., editors, Criticism and the Growth of Knowledge, pages 91–196. Cambridge University Press, Cambridge.
Lin, Z., Akin, H., Rao, R., Hie, B., Zhu, Z., Lu, W., Smetanin, N., Verkuil, R., Kabeli, O., Shmueli, Y., dos Santos Costa, A., Fazel-Zarandi, M., Sercu, T., Candido, S., and Rives, A. (2023). Evolutionary-scale prediction of atomic-level protein structure with a language model. Science, 379(6637):1123–1130.
Mill, J. S. (1843). A System of Logic. George Routledge and Sons.
Musgrave, A. (1974). Logical versus historical theories of confirmation. The British Journal for the Philosophy of Science, 25(1):1–23.
Putnam, H. (1975). Mathematics, Matter and Method. Cambridge University Press.
Ratti, E., Ladyman, J., and Termine, A. (2026). The Modelling Structure of AI Science. Cambridge University Press.
Rowbottom, D. P. and Curtis-Trudel, A. (2026). Explaining AI's successes: A no miracles argument for quasi-representations. Synthese, 207(4):179.
Rowbottom, D. P., Peden, W., and Curtis-Trudel, A. (2024). Does the no miracles argument apply to AI? Synthese, 203(5):173.
Suárez, M. (2004). An inferential conception of scientific representation. Philosophy of Science, 71(5):767–779.
Whewell, W. (1840). History of the Inductive Sciences. John W. Parker and Sons.
White, R. (2003). The epistemic advantage of prediction over accommodation. Mind, 112(448):653–683.
Zahar, E. (1973). Why did Einstein’s programme supersede Lorentz’s? (i). The British Journal for the Philosophy of Science, 24(2):95–123.