arXiv:2610.41454cs.LGOct 2026

Manuscript Offprint

arXiv:2610.41454

When Everyone Can Build a Model: Mechanistic Inference in the Age of AI

Marvin van Aalst, Adèle H. Ribeiro, Anna Matuszyńska

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Modern deep learning and AI-assisted code generation are lowering the technical barrier to building mathematical models of biological systems that reproduce complex observations. This lets researchers with domain expertise build semi-mechanistic, hybrid models constrained by prior knowledge and augmented with learned structure without extensive training in modelling. However, easier construction does not make interpretation easier: predictive success of such so-called grey-box models does not establish that an inferred mechanism corresponds to the one that generated the data, and the learned component can absorb errors in the mechanistic part. Many biological modelling problems are underdetermined, so several, possibly infinitely many, models may reproduce the same data equally well. This ambiguity enters at two modelling choices: which variables can affect others, and which response function describes the underlying mechanism. For the first choice, causal inference provides a formal framework stating which causal relationships and intervention effects are identifiable from the data and available knowledge. For the second, ensemble analyses quantify the uncertainty and the range of behaviours still allowed by models that fit equally well. Together, they turn a single good fit into an explicit account of what is supported, what remains open, and which experiment would decide.

Keywords grey-box modelling · mechanistic modelling · causal inference · model distinguishability · effect identifiability · ensemble modelling · uncertainty quantification · biomedical modelling

1 Introduction

Building a mathematical model that reproduces the dynamics of a biological system once required expertise in both biology and mathematical modelling, but this barrier is eroding (Martins dos Santos et al., 2024; Stalidzans et al., 2020). Grey-box models mix structure fixed by prior knowledge with learned structure (Psichogios and Ungar, 1992; Thompson and Kramer, 1994), so they can fit data that a purely mechanistic model cannot. Examples include universal differential equations (UDEs, Rackauckas et al., 2020) and physics- or biology-informed neural networks (Raissi et al., 2019; Lagergren et al., 2020). AI code-generation tools now put such models within reach of domain experts, for whom they are a genuine opportunity. A close fit, however, invites a mechanistic reading of the model's structure and parameters, and in biomedicine this reading is where the risk lies. The model's interactions and fitted parameters can be read as a disease mechanism, a drug target, or an explanation for treatment non-response, and a wrong reading points discovery at the wrong target. The problem is not new: expert-built models can also fit well while representing the

A PREPRINT

Figure

Figure 1: Prediction or causation? Different questions, different ends. Starting from observational data sampled from an unknown structural causal model (SCM) MM, the question decides the route. A prediction question asks for P(y∣x)P(y \mid x), short for P(Y∣X=x)P(Y \mid X = x), and is answered by fitting a black-box model or, if domain knowledge is used, a grey-box model. Observational data alone do not determine how almost any MM responds to interventions, whatever the model class (Causal Hierarchy Theorem, Bareinboim et al., 2022), so the fitted black-box model M′M' generally differs from MM under intervention. The fitted grey-box model M′′M'' is guaranteed to match the true effect only if its domain knowledge encodes correct causal constraints under which that effect is identifiable. The symbol ≡\equiv between the two lower ends marks this comparison. A causal question asks for P(y∣do(x))P(y \mid \mathrm{do}(x)), short for P(Y∣do(X=x))P(Y \mid \mathrm{do}(X = x)). Causal modelling or causal discovery yields causal constraints on the observed variables, encoded, for example, in a partial ancestral graph that represents the causal structures compatible with the data and domain knowledge, while accounting for latent confounding. If the effect is identifiable from these constraints, an identification formula expresses it in terms of the available data (here, adjustment for BB). If not, further domain knowledge or experiments can refine the constraints.

wrong mechanism. What has changed is that a trained modeller, who would ask whether alternative structures explain the data equally well, may no longer be involved, and the new tooling does not supply that skill.

A good fit is weak evidence for a mechanism (Oreskes et al., 1994), because many biological modelling problems are underdetermined: many models reproduce the same data equally well. A bad fit, by contrast, is strong evidence against it (Popper, 1959), although only together with its auxiliary assumptions (Duhem, 1954; Quine, 1951). We refer to the underlying property as model distinguishability: whether the data provide evidence for one model structure over its alternatives. More samples of the same kind estimate the observed behaviour more precisely, but cannot break a tie between models that predict it identically. Systems theory and hydrology describe closely related problems as equifinality (von Bertalanffy, 1968; Beven, 2006), machine learning as the Rashomon effect or predictive multiplicity (Breiman, 2001; Marx et al., 2020), causal modelling as Markov equivalence (Verma and Pearl, 1990), and philosophy as underdetermination (Quine, 1951).

How much this ambiguity matters depends on the question: a prediction within the observed regime can be checked on held-out observational data, whereas a mechanism or an intervention effect cannot. A prediction question asks what to expect for YY after observing X=xX = x, that is, P(Y∣X=x)P(Y \mid X = x), such as the blood pressure YY of patients who take drug xx. A black-box model can legitimately answer this question from observational data, provided new data come from the same distribution as the training data. A causal question asks what to expect for YY if XX is set to xx by an intervention, that is, P(Y∣do(X=x))P(Y \mid \mathrm{do}(X = x)), such as the blood pressure of patients if they are given drug xx. Answering this question requires appropriate causal inference methods (Pearl, 2009).

Domain experts often build models to understand mechanisms, which is a causal question and requires a different route from prediction (Figure 1). In mechanistic or grey-box models, ambiguity arises from two choices: which variables can affect which others, and which response functions describe how variables depend on their inputs. The causal route does not aim to recover the full structural causal model. Instead, it identifies the causal effects that are determined by the causal structure and the observational distribution, without requiring the response functions to be known. This distinction matters because the full structural causal model is almost never identifiable from observational data alone (Bareinboim et al., 2022).

A PREPRINT

References (40)