Manuscript Offprint
arXiv:2610.12537Market Impact Estimation via Causal Foundation Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
When a trader executes a large order, the relevant question is not what will the price be? but what would the price have been had I not traded? Market impact is thus a causal quantity, yet classical models (Almgren–Chriss, propagators) regress price on flow, which is biased whenever informed flow moves prices through information as well as trading. We present a proof-of-concept Causal Market Simulator: a continuous-time causal prior-data fitted network (PFN) trained on a synthetic market prior in which a hidden informational flow confounds the flow–price relation by construction, with confounding strength an exact per-episode knob. On this prior, the naive estimator’s bias follows a closed form we confirm empirically (up to 68% overestimation), while the PFN tracks the unbiased true-parameter oracle at high confounding. Its do-ablated twin, the same model with the intervention inputs removed, collapses onto the pre-window mean. Zero-shot, the model responds at the ground-truth scale to metaorders in an ABIDES limit-order book (+0.38 pre-onset standard deviations against seed-replay counterfactuals), and its intervention response replicates on about 2,300 detected flow bursts in BTC/ETH/SOL perpetuals and 3,800 on Nasdaq equities, evidence consistent with, though not proof of, causal transfer. Off-prior the response degrades gracefully, and split-conformal recalibration repairs interval calibration. Transfer hinges on encoding the metaorder as added flow rather than a clamped price level, not on more training. A recurrent state-space variant closes the remaining shape gap: its impact accrues over execution duration where the transformer’s stays flat, raising the correlation with measured metaorder impact from +0.68 to between +0.92 and +0.96, at the cost of weaker on-prior deconfounding that traces to the training recipe rather than to recurrence.
CCS Concepts
• Computing methodologies → Machine learning; • Applied computing → Economics.
Ying Chen
National University of Singapore
Singapore, Singapore
ACM Reference Format:
Dennis Thumm and Ying Chen. 2026. Market Impact Estimation via Causal Foundation Models. In 7th ACM International Conference on AI in Finance (ICAIF '26), November 14–17, 2026, Milan, Italy. ACM, New York, NY, USA, 8 pages. https://doi.org/10.1145/XXXXXXX.XXXXXXX
1 Introduction
Market impact, the price move caused by one's own trading, is the central cost of execution and the canonical quantity of market microstructure. It is defined as the realized price path minus the counterfactual path that would have occurred without the trade [4]. Classical impact models are predictive approximations of this interventional object. Almgren–Chriss fits a linear permanent-impact coefficient by regressing price on flow [1]. Propagator models fit a decay kernel to the same observational data [6, 16]. Both estimate where the object of interest is , the price under an imposed trade. The two differ whenever something moves both order flow and prices, and in real markets something always does [14]. Informed traders buy because they expect the price to rise, so their flow predicts price moves it did not mechanically cause. Estimated this way, impact coefficients absorb the information channel, and execution-cost models inherit the bias.
Recent foundation models for microstructure learn rich observational models of order flow at scale [22], but have no do-operator [17]: they answer “what typically happens next,” not “what happens if I trade.” Conversely, recent causal amortized-inference models, prior-data fitted networks (PFNs) trained to perform Bayesian causal inference in context, operate on tabular [3, 9, 11, 18, 19] or discrete-time [25] data. The continuous-time construction in [26] admits irregular event schedules as in markets, but like others has been evaluated primarily on synthetic or simulator-based tasks. That evidence gap is what our transfer tiers address. A generative line separately argued for causal market simulators [24]. What is missing is the bridge: a continuous-time causal model, specialized to a market prior in which the causal estimand is provably distinct from the predictive one, and evidence that it transfers beyond its prior.
This paper delivers that proof of concept. Our contributions:
• A market prior with controllable confounding (§4). We split order flow into hidden informational core flow and endogenous reaction flow [14], and couple the core into the price through an informational channel . Per-episode confounding strength is an exact, samplable quantity, and the naive estimator’s bias is available in closed form. It is linear in and zero when either channel closes [17].
• Implicit deconfounding, verified against an analytic law (§5). On episodes from this prior, the naive regression overestimates impact by up to 68% at strong coupling, matching the closed form within 2%. The causal PFN tracks the unbiased true-parameter oracle across the entire range,
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
ICAIF '26, Milan, Italy
© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM. ACM ISBN 979-8-4007-XXXX-X/26/11 https://doi.org/10.1145/XXXXXXX.XXXXXXX
Thumm and Chen
while its do-ablated twin, the identical model trained and evaluated with its five intervention inputs zeroed ( ), is statistically indistinguishable from the pre-window-mean baseline. The do-pathway, not the sequence model, carries the causal work.
• Zero-shot transfer with matched semantics (§6). Without any retraining, the same model responds at the ground-truth scale to metaorders [12] in an ABIDES [7] limit-order book (paired do-head effect, causal minus ablated twin, of +0.38 σ, 95% CI [0.34, 0.42], 1,000 held-out seed-replay episodes) and reduces prediction bias around detected flow bursts on BTC/ETH/SOL perpetuals (paired do-head effect of +1.2–1.5 σ over ≈760 events each; Table 1). Two mechanism findings enable the transfer: prior-scale standardization and matching the intervention’s semantics (additive flow, not a clamp) to the event’s (§6.1).
• An architecture whose response accrues over execution (§3). A recurrent state-space variant, gated on inter-observation time, composes impact in its recurrent state, lifting the 12-cell metaorder-benchmark correlation of §6.2 from +0.68 to +0.92–+0.96 across training seeds.
2 Background and Related Work
Market impact and execution. Almgren–Chriss decomposes impact into permanent and temporary components with linear coefficients fitted to data [1]. Obizhaeva–Wang and the propagator literature model impact as a convolution of past order flow with a decaying kernel [6, 16]. Empirically, metaorder impact follows an approximate square-root law with slow decay [2, 6, 28], and the functional form is mechanism-dependent, zero then linear in equity auctions [21], which is why we treat the square-root law as a venue-specific benchmark rather than ground truth. Bonart [4] makes the causal structure explicit: impact is realized minus counterfactual return, square-root or linear depending on informational coupling. Muhle-Karbe et al. [14] supply a generative counterpart, decomposing order flow into exogenous informational core flow and endogenous reaction flow. We use Bonart’s identity as the estimand and the core/reaction split as the confounder structure.
Causal amortized inference. Prior-data fitted networks meta-learn Bayesian inference by training on synthetic data drawn from a prior over generative processes [10, 15]. Do-PFN [19] extends this to interventional queries on tabular data, DoT-PFN [25] to discrete time, and CT-CPFN [26] to continuous time with irregular schedules.
Microstructure foundation models and market simulators. TradeFM [22] trains a large generative Transformer on billions of trades, reproducing stylized facts [8] of order flow – , with no interventional semantics. ABIDES [7] provides interactive markets with seed-replay counterfactuals ( ).
3 Continuous-Time Causal PFN
This section introduces the machinery. The paper’s contributions begin with the prior in §4 and the recurrent variant at the end of this section. We build on the continuous-time construction of [26] and train it on a market-specific prior. We call the resulting trained

Figure 1: The transformer instantiation : observable variables; core U hidden): intervention specification and query enter a cross-variable mixer whose quantile head emits the interventional distribution. The do-ablated twin zeroes the dashed block and nothing else. The recurrent variant (below) replaces the encoder and mixer with -gated recurrences that inject the intervention at each active step.
model M-DoT-PFN (market DoT-PFN), distinguishing it from the general-purpose models it descends from.
Generative process. An episode is a linear-drift stochastic differential equation over d variables in topological order,
where is the state of variable , its mean-reversion rate, its parent set with edge weights , and the are independent standard Wiener processes with diffusion coefficients . Episodes are observed at an irregular schedule drawn from a schedule family (regular, jittered, exponential), integrated by fine-grid Euler–Maruyama. A schedule-invariance criterion [26] – predictions depend on the continuous-time process, not the discretization – allows training on one schedule family and deploying on market bar data.
Interventions. An intervention is a first-class input: a target variable A, an active window , a kind, and a value. Hard interventions clamp, , and soft interventions add a constant to the target's drift during the window, the natural formalization of a metaorder, which adds rather than pins flow. Counterfactual training pairs reuse the same Wiener noise with and without the intervention, so the target under is exact [23]. Post-onset noise is independent of the pre-onset context, so training on such pairs estimates the interventional estimand.
Architecture and training (Fig. 1). Pre-intervention observations are encoded as tokens carrying the state vector and a Fourier embedding of absolute and inter-observation time, and post-onset observations ( ) are masked. The intervention specification (target, kind, value, window) enters a cross-variable mixer as a distinguished channel. A query names an outcome variable and time. A quantile head is trained with pinball loss on from the counterfactual pair (4 encoder layers, 4 heads, one cross-variable mixer layer, quantile levels , 4.2M parameters; training episodes have observations).
The model therefore amortizes the posterior predictive interventional distribution , marginalizing over the latent Structural Causal Model (SCM) given the observed context. This is the object that ordinary regression cannot recover under hidden confounding ( ).
Recurrent state-space variant. The transformer answers a query in one shot: a single attention pass maps context and intervention specification to , so a sustained intervention cannot accumulate effect step by step — and on the metaorder benchmark of §6.2 its predicted response is indeed nearly flat in execution duration while measured impact accrues. We therefore additionally train a recurrent state-space variant: stacked gated delta-product recurrences (the linear-RNN backbone of TempoPFN [13]) whose state-transition gates condition on the inter-observation interval , with the intervention injected at every step it is active rather than encoded once (1.94M parameters, same do-ablated-twin protocol). Impact composition then lives in the recurrent state. Its training recipe adds to the prior of §4 a 50/50 soft-intervention mix (§5.1), intervention windows of 2 to 30% of the episode (transformer: 10 to 30%), and permanent price impact ( ) in 30% of episodes. We do not claim the schedule-invariance criterion above for this variant. Its deployment schedules (regular bars) lie inside its training family, and zero-shot robustness beyond them is not established for the checkpoint used here (§7). A replicate trained on a mixture of regular, jittered, and exponential schedules recovers it (exponential-schedule loss degradation +7.8% to +0.7% at unchanged regular-schedule loss, paired benchmark-correlation cost -0.02 [-0.04, -0.01]).
Two instantiations. The paper carries two matched causal–ablated pairs, each trained once: the transformer, which produces every table row and figure unless explicitly marked otherwise, and the recurrent variant, which contributes only the results labeled as such (the metaorder-benchmark chain of §6.2 and the marked rows and sentences of §6.3). The synthetic-tier seed-replication check covers the transformer. The recurrent variant’s results quote three-seed ranges in-line. On the synthetic grid the recurrent pair’s causal capability likewise sits entirely in the do-pathway (its ablated twin sits within 0.013 of the pre-window mean at every ), but deconfounding is partial: bias +0.16 [0.09, 0.23] at rising to +0.52 [0.38, 0.66] at , against the headline transformer’s +0.16 [0.05, 0.28]. The two pairs differ in training recipe as well as architecture: a one-shot transformer retrained with the recurrent pair’s recipe reaches +0.80 [0.67, 0.93] at on the same episodes, and the permanent-impact episodes alone move the soft-mix transformer to +1.04 [0.90, 1.18], so the gap traces to the recipe that repairs duration accrual, and the recurrent backbone is the least affected by it. The transformer remains the synthetic-tier headline model, and the variant’s contribution is the duration-shape axis.
4 A Market Prior with Controllable Confounding
This section describes the contribution’s prior side: a minimal market whose hidden-information confounding strength is an exactly samplable quantity (§4.1), and the training distribution built from it (§4.2).
4.1 Core/reaction flow and informational coupling
The prior’s episode is the minimal market that makes impact a genuine causal problem: hidden informational flow U, observable order flow A, and price Y,
U is the core flow of [14]: exogenous, informational, and hidden — simulated in the dynamics but masked from the model’s tokens. Its two exits are the confounding structure: it drives observable flow , informed participants trade) and it moves the price directly with weight , information gets into prices whether or not it trades). The flow’s own mean reversion and noise are the endogenous reaction component. is the mechanical impact — the true causal effect a trader needs.
Calibrated confounding. We parameterize the edge weight w by the core share s: the fraction of A's stationary variance driven by U. Solving the stationary Lyapunov equations of (2)–(3) gives the unique realizing any ,
with . Confounding strength is thus an exact, per-episode-samplable quantity. reduces the flow to a plain unconfounded Ornstein-Uhlenbeck (OU) process [27].
The naive estimator’s bias in closed form. The observational regression a classical impact model runs — the stationary Ordinary Least Squares (OLS) slope of Y on A — is available analytically from the three-variable Lyapunov system. Its confounding component, the excess over the slope, is
exactly linear in and exactly zero when . Equation (6) is the law Fig. 2 verifies and the reason this prior needs a PFN: at a regression would be Bayes-optimal, whereas sampling , s, and per episode forces the model to infer in context where on the confounded-unconfounded spectrum the current market sits.
What the prior identifies. With U hidden and no instrument, is not identified from observational data, because nothing observable stands in for U. The PFN's side information is the prior. It performs amortized Bayesian inference over this known model class, and the prior supplies exactly what the data cannot [15]. Every claim below should be read in that sense. Matching the prior to the deployment (§6) is the mechanism itself.
4.2 Episode generation and training distribution
Episodes sample , , , and OU parameters from the ranges of [26]. One training-distribution choice proved decisive and is reported as a result (§5, §6): skewing the draw toward high confounding ( , ). Training interventions are hard clamps. The soft (additive-drift) kind enters at evaluation as the metaorder encoding (§6.1).
Thumm and Chen

Figure 2: Synthetic proof of concept (transformer pair, native prior units). Left: the confounding law, measured. Naive observational OLS slope (blue) and interventional slope (green) vs. informational coupling ; dashed lines are the closed forms (measured -gradient 0.326 vs. 0.332 analytic, Eq. (6)); core share ; per-point SEs ( ). Right: methods on the confounded market ( episodes per , identical across methods; bands are episode-bootstrap 95% CIs). Signed bias in the impact direction, and RMSE against the exact counterfactual.
5 Synthetic Proof of Concept
Protocol. We train the continuous-time causal PFN (4.2M parameters, 5,000 steps, single A100 GPU, ~2h) on the §4 prior, plus an ablated twin: the identical architecture, training prior, and training seed with the five do-information inputs (target, kind, value, window ends) zeroed throughout training and prediction — a pure forecaster that knows where its context ends but not what happens there.
All headline results (Fig. 2, Tables 1 and 2, except the marked recurrent-variant row of the latter) use one model: the skewed- , hard-intervention configuration of §4.2. The recipe paragraph below reports the ablation path that selected it. Evaluation draws suites of 500 episodes at each pinned with . All methods predict the same episodes' exact counterfactual outcomes. Magnitudes here are in native prior units. The transfer tiers of §6 are standardized to pre-onset volatility units, written .
Baselines. The true-parameter oracle is a conditional-mean rollout from the last pre-onset state given the episode's true , with the hidden core at its stationary mean. It is unbiased for the interventional mean but not the minimum-RMSE Bayes predictor, so its RMSE is a conservative reference, not an exact floor. Further baselines include Almgren-Chriss as the levels-regression permanent-impact estimator; an Obizhaeva-Wang-style (OW) fitted resilient propagator; a return-space regression of the horizon-matched return on total signed flow (removing the levels regression's filtering offset); the square-root law [6] (order size , volume , pre-onset volatility , written elsewhere) with zero fitted parameters; and last-value (AR1) and pre-window-mean predictors. Every classical baseline is fitted per episode on that episode's pre-onset window only, and nothing is fitted across episodes or on post-onset data, in every tier. This family spans execution-cost models, the standard estimation recipe, and the empirical benchmark, so the bias is a property of observational fitting itself, not of one model class.
The law holds (Fig. 2, left). Two distinct effects act in opposite directions here: a mechanical low-pass filtering offset that understates impact even without confounding, and the confounding channel that overstates it as grows. Our headline bias refers to the confounding channel. The measured naive slope grows linearly in with slope within 2% of Eq. (6), while the measured interventional slope is flat. At the naive slope exceeds the interventional one by (all percentages relative to the interventional slope). Eq. (6) is the -gradient of the naive slope, and it is the gradient that the figure confirms. The filtering offset in fact works against it: at the naive slope sits below the interventional one (Y low-pass-filters fluctuating A; a sustained clamp relaxes to the larger steady-state gain ), so across the grid the confounding channel alone swings the naive estimate from a 43% underestimate to a 68% overestimate.
The PFN deconfounds implicitly (Fig. 2, right). The oracle is exactly unbiased at every ( ). The causal M-DoT-PFN tracks it: bias between -0.23 and +0.16 across the grid, and the best feasible method on both bias and RMSE for — the high-confounding regime the prior is built around. At low the fitted propagator and the unfitted square-root reference are competitive or better. The PFN's advantage is that it does not degrade as confounding opens (square-root bias +0.32 at ). The matched-horizon return regression pays a large variance cost (RMSE 2.8–5.0, off the figure's scale). Almgren–Chriss's bias is linear in (it is the naive slope estimator). The propagator is better calibrated but still drifts (+0.26 at ). The ablated twin is statistically indistinguishable from the pre-window mean at every (the mean of the paired per-episode differences is below in magnitude, with bootstrap 95% CIs within ). All causal capability lives in the do-pathway. The patterns are robust to training randomness: two additional initialization seeds shift the causal model's bias by at most 0.09 (RMSE 0.03) at any , preserve the gradient and its sign change, and move the ablated twin by less than 0.01.
5.1 Robustness and controls
What moved the residual bias — and what did not. Two negative results shape the recipe: training longer changed nothing at , while shifting the training prior's -mass toward high confounding cut bias by . The residual was a property of the training distribution, not of capacity
ICAIF ’26, November 14–17, 2026, Milan, Italy
or optimization. A matched training-side ablation completes the picture: retraining the identical configuration with soft interventions genuinely mixed 50/50 into the training prior roughly halves the unskewed configuration’s bias (0.396 [0.27, 0.52] → 0.160–0.191 at across three training seeds). But it collapses the zero-shot BTC do-head response of §6 to a seed-dependent +0.02–+0.72 (hard-trained: +1.42): the soft-trained response calibrates to the prior’s impact scale, which under-scales real markets, and semantics-matched training does not yield reliable transfer in this one-shot architecture. A magnitude sweep over all three soft seeds sharpens the reading: rescaling the encoded intervention 0.25×–4× on 173 burst episodes, every seed’s response rises monotonically from 0.5× and is significantly nonzero by 2×–4×, with attenuation relative to the hard-trained response shrinking as magnitude grows (1.3–1.6× at 4× on two seeds, ~10× on the weakest). Soft training recalibrates the gain toward the prior’s smaller -scale, and the gain is the seed-variable quantity, so the paradox is one of readout rather than a lost pathway. In the recurrent variant of §3, the same semantics-matched recipe helps on the metaorder benchmark (curve correlation +0.94 → +0.96; §6.2). The one-shot transformer’s transfer evidence below thus rests on encoding-level generalization, not on semantics-matched training.
Off-prior stress test. The evaluation above is on-prior by construction, so we generate episodes from three generator families outside the training prior’s model class – cyclic price→flow feedback dA += dt (), compound-Poisson jumps in the hidden core, and saturating impact () – with exact shared-noise counterfactuals at . An on-prior control through the same standalone simulator reproduces the grid’s causal-model bias (-0.05 vs. -0.06), so shifts are attributable to the misspecification itself. Across the four off-prior generators the PFN’s bias moves by at most 0.16, roughly five-fold below the confounding bias being corrected (Almgren–Chriss: +0.82–+0.95 on the same suites), with the do-head effect intact throughout. Only saturation’s CI excludes zero, the expected mild overshoot of a linear-response prior. Per generator (native prior units, episode-bootstrap 95% CIs, each):
| Generator | M-DoT-PFN bias | Do-head effect | ||
|---|---|---|---|---|
| Control (on-prior) | -0.05 | [-0.13, 0.03] | +0.60 | [0.52, 0.68] |
| Feedback | -0.02 | [-0.10, 0.06] | +0.64 | [0.56, 0.72] |
| Feedback | +0.03 | [-0.06, 0.12] | +0.69 | [0.60, 0.79] |
| Core jumps | +0.08 | [-0.02, 0.18] | +0.73 | [0.64, 0.83] |
| Saturated impact | +0.11 | [0.04, 0.18] | +0.57 | [0.50, 0.64] |
Is the market prior load-bearing? A first control is the same paradigm without the market prior: the public general-purpose checkpoints of the discrete-time DoT-PFN [25], evaluated zero-shot on identical episodes. On the synthetic grid both sit at bias -0.81 to -0.98, against the market model's -0.23 to +0.16. On BTC bursts they collapse onto the ablated reference (-2.20 and -2.22 vs. the ablated twin's -2.26; market model -0.84). A second control isolates the prior exactly: the identical architecture, recipe, and seed retrained on the generic (non-market) prior of [26]. With its intervention inputs fully intact, it lands on the ablated reference in all three tiers – synthetic bias -0.72 to -0.76 (ablated: -0.72 to -0.76), BTC bursts -2.26 (ablated: -2.26), held-out ABIDES -0.29 , 95% CI [-0.64, 0.05], evaluated once (ablated: -0.30) – while the market-prior model responds in each. The market prior, with its confounding mass (recipe ablation above) and intervention semantics (encoding ablation of §6.1), is what is load-bearing.
6 Zero-Shot Transfer
We now carry the trained model, unchanged, to an agent-based market with exact counterfactual ground truth (§6.1), to real market data (§6.2), and to interval calibration (§6.3), with Table 1 as the summary.
6.1 ABIDES: counterfactual ground truth in an agent-based market
ABIDES [7] provides what real data cannot: an exact counterfactual. We inject a metaorder agent (fixed-clock market orders, ~25–40% participation over a 15-minute window) into a background market of noise, value, momentum, and adaptive market-making agents, and replay the identical seed without its orders. A silent twin of the metaorder agent keeps per-agent seeding and latency identical in the observational run. Pre-onset paths are bit-identical (asserted in automated tests) and post-onset divergence is the causal effect. Episodes are standardized to pre-onset- units. The intervention value is the metaorder's standardized flow rate over the window. Each episode queries the price at one uniformly drawn post-onset bar (30 s bars, so horizons range from onset to session end) and 1,000 episodes across seeds.
Because the two mechanism findings below (unit standardization, intervention semantics) were discovered by iterating on this environment, all exploratory analysis used seeds 0–999. The numbers here are a single frozen evaluation on the disjoint held-out range 1000–1999 (model attribution: §3, “Two instantiations”). Absolute biases are noise-dominated at this scale, so Table 1 reports the paired do-head effect on identical episodes, which cancels shared market noise. The measured seed-replay ground truth on the held-out episodes is a mean impact of +0.28 (95% CI [0.05, 0.50]; the wide interval reflects seed-to-seed variability of the average impact itself). The causal M-DoT-PFN responds at +0.379 , 95% CI [0.342, 0.416], with bias +0.08 (95% CI [-0.27, 0.42], containing zero). Bias here is the episode-paired mean error, which is why it is not the difference of the two preceding means. Almgren–Chriss and the naive predictors sit on the ablated reference (deltas -0.02 to +0.05). The fitted propagator responds at the same magnitude (+0.38) but with a ~4× wider interval ([0.23, 0.53]). The square-root law – ABIDES metaorders at 25–40% participation are its home regime – also responds correctly (+0.42, [0.34, 0.51]; bias +0.13), while the zero-shot return regression overshoots (signed bias +5.7 ; Table 1’s +5.97 is its paired delta): its fitted per-flow response does not transfer across scales. The PFN thus matches the best classical responses with the tightest uncertainty – without the square-root law’s hard-coded functional form.
The paired responses are not a constant offset (all analyses are post-hoc summaries of the single held-out evaluation). Seed-replay noise (per-episode SD 3.6 ) caps any attainable correlation near 0.1–0.2, and the observed correlations with intervention size () and realized impact () sit at that ceiling. The response is thus context-dependent (mean +0.38, SD 0.60 , strongly bimodal) and averages to the right scale, but the noise floor cannot certify per-episode accuracy beyond that.
Thumm and Chen
Table 1: Zero-shot transfer: paired do-head effect (causal M-DoT-PFN minus do-ablated twin on identical episodes, signed toward the intervention; bootstrap 95% CIs, ; units; , 763, 758, and 757 episodes per column). Baseline deltas are contrasts with the same ablated reference, not causal estimates (protocol: §5–§6.1; transformer pair).
| ABIDES | BTC bursts | ETH bursts | SOL bursts | |
|---|---|---|---|---|
| M-DoT-PFN (causal) | +0.38 [0.34, 0.42] | +1.42 [1.29, 1.56] | +1.53 [1.40, 1.67] | +1.22 [1.10, 1.34] |
| OW propagator | +0.38 [0.23, 0.53] | +0.88 [0.77, 1.00] | +0.96 [0.86, 1.06] | +0.74 [0.62, 0.85] |
| Square-root law | +0.42 [0.34, 0.51] | +1.86 [1.73, 1.98] | +2.11 [1.99, 2.22] | +1.60 [1.47, 1.73] |
| Return regression | +5.97 [5.49, 6.44] | +3.11 [2.88, 3.34] | +3.27 [3.07, 3.48] | +2.49 [2.31, 2.66] |
| Almgren–Chriss | -0.02 [-0.03, -0.01] | +1.09 [0.98, 1.20] | +1.11 [1.02, 1.20] | +0.89 [0.82, 0.96] |
| AR1 (last value) | +0.05 [-0.03, 0.14] | +1.21 [1.10, 1.33] | +1.41 [1.30, 1.52] | +1.00 [0.88, 1.13] |
| Pre-window mean | -0.00 [-0.00, -0.00] | -0.00 [-0.00, 0.00] | -0.00 [-0.00, 0.00] | -0.00 [-0.00, -0.00] |
Two mechanism findings were necessary conditions. Units: raw Agent-based Model (ABM) intervention values reached the model ~19 out of distribution; standardizing episodes into prior-scale units removed the resulting gross overshoot. Semantics: a metaorder adds flow (a soft intervention); encoding the same event as a hard clamp cuts the do-head response to +0.10 (95% CI [0.06, 0.15]; exploratory episodes, so the ~4× ratio is indicative, not a matched ablation), with bias still -0.31 . Encoding the event with its native semantics is, on this evidence, as important as having a do-operator at all.
6.2 Real markets: detected flow bursts on crypto perpetuals and Nasdaq equities
We evaluate on BTC/ETH/SOL perpetuals, the deepest books with complete, public trade-level data. Real markets provide no counterfactual, so the task becomes factual: predict the realized post-event price given the event's signed size, with the paired ablation as the causal readout. We use the public Binance archive (signed aggregated trades via the isBuyerMaker flag). The archive's labeled liquidation feed has been removed from the public dumps, so events are detected: extreme one-sided flow bursts (, where is the bar's signed flow minus the trailing 90-minute mean over the trailing standard deviation – past data only – and bursts are non-overlapping), which include liquidation cascades. They are plausibly – not certifiably – forced. Each event episode covers 90 pre-event and 30 post-event one-minute bars. The intervention value is the burst's mean signed excess flow per bar (relative to the pre-event mean, in standardized units) over its 3-bar window, and the query is one uniformly drawn post-onset bar. April–June 2026, 91 days per symbol: 763 BTC, 758 ETH, and 757 SOL events.
The pattern replicates across all three assets (Table 1): the do-head effect is +1.42 (BTC), +1.53 (ETH), and +1.22 (SOL); the causal M-DoT-PFN is less biased than Almgren–Chriss, the fitted propagator, and last-value prediction on every asset (signed bias -0.84, -1.05, -0.76 vs. AR1's -1.05, -1.17, -0.98); and the ablated twin again equals the pre-window mean. The return regression sits closer to zero on ETH/SOL (+0.69, +0.51) but at the worst on-prior RMSE and the largest ABIDES overshoot. The zero-parameter square-root law sits closer to zero on all three (-0.41, -0.47, -0.38; robust to the literature prefactor range). That empirical robustness made it the industry benchmark [12] and it is a bar the zero-shot PFN does not yet clear on real data. Splitting each asset's events at its median pre-onset volatility, the effect is stable across regimes (e.g. BTC +1.49 / +1.36 calm/stressed; all six CIs overlap), so it is not an artifact of calm markets. The same pipeline and transformer checkpoint carry to equities in follow-up work: on 3,802 detected bursts across 50 Nasdaq names (June to August 2026, 60-second bars, licensed Databento trades) the paired do-head effect is +1.14 [1.09, 1.19], with calm and stressed halves at +1.17 and +1.10. A sign-shuffle control separates impact from trend-following: randomly flipping event signs sends the measured directional move from +1.05 to -0.13 (impact is direction-locked, not repackaged volatility), leaves the ablated twin unbiased on the shuffled labels, and makes the causal model manufacture error by following the now-wrong labels – the response tracks the labeled direction, not the realized trend.
Table 2: Nominal 80% interval : coverage and median width, causal vs. do-ablated twin (native units for synthetic rows, for transfer). Point estimates over episodes (binomial ); ABIDES rows: exploratory seeds (held-out range reserved for Table 1); crypto rows: June-2026 subset (; SOL not included). Transformer pair except the marked recurrent row.
| Coverage (nom. 0.80) | Median width | |||
|---|---|---|---|---|
| Causal | Ablated | Causal | Ablated | |
| Synthetic | 0.77 | 0.76 | 1.68 | 2.44 |
| Synthetic | 0.82 | 0.80 | 2.32 | 3.47 |
| Synthetic | 0.79 | 0.85 | 3.17 | 4.75 |
| ABIDES | 0.32 | 0.39 | 3.20 | 3.73 |
| ABIDES (recurrent) | 0.49 | 0.76 | 10.49 | 10.50 |
| BTC bursts | 0.47 | 0.35 | 3.06 | 3.46 |
| ETH bursts | 0.51 | 0.32 | 3.05 | 3.44 |
As a population-level complement to detected bursts, we reconstruct synthetic metaorders from the public tape (child orders assigned to randomly drawn synthetic traders; a metaorder is a trader's same-sign run [12]) and compare the paired do-head response against the measured realized impact across 12 duration × magnitude cells (2,158 BTC episodes): the curve correlation is +0.68 (episode-bootstrap 95% CI [0.60, 0.75], ), yielding a reusable real-data benchmark on which a mean model scores zero in every cell. Targets are population means of selected events, so this tier shares the burst suite's factual-outcome caveats.
The residual mismatch this benchmark localizes, a duration-flat one-shot response against duration-accruing measured impact, is what the recurrent variant of §3 repairs. Its fixed-size response accrues natively, rising 3.1× over durations of 2–31 bars where the benchmark's per-unit-flow measured impact rises ~3.6×. The same 12-cell curve correlation (a correlation of cell means, not an episode-level fit; cells re-formed per bootstrap resample) reaches +0.94 hard-trained (episode-bootstrap 95% CI [0.90, 0.96]) and +0.96 with the semantics-matched soft mix ([0.93, 0.98]; three-seed range +0.92–+0.96), against the transformer's +0.68 [0.60, 0.75] on identical episodes, a paired difference of +0.28 [0.21, 0.34] of which per-step intervention injection into an otherwise one-shot transformer supplies +0.22 [0.16, 0.27] and recurrence the remaining +0.06 [0.03, 0.10]. The shape replicates at +0.97 [0.93, 0.98] on 40 held-out days (May 11–June 19) that entered no benchmark run during variant development — no refit of any kind, and the level constant k below does not affect a correlation.
The recurrent variant’s remaining error is a level factor, not a shape factor. Denote by the per-domain constant that rescales its response onto the measured scale: fitted on 20 days of BTC episodes, transfers to 20 disjoint days (calibrated level , corr ) and is near-universal within crypto ( across venues, ETH/SOL zero-shot). The crypto is fitted to measured – observational – impact, so calibrated levels inherit any confounding in that target. Only the ABIDES () is fitted against counterfactual ground truth. On the burst tier the variant’s uncalibrated response reaches the measured scale on two of three training seeds (causal bias to across seeds and assets, vs. the transformer’s uniform to undershoot; per-seed do-head deltas ). Ensembling the three seeds is the strongest honest number on this tier (ensemble bias ; BTC/SOL intervals span zero, ETH’s upper bound ; assets cross-correlated per the multiplicity note below).
A placebo test probes whether the detection pipeline, rather than the events, produces these patterns: we sample time-shifted non-event anchors ( , well separated from every detected burst; 654–663 per asset) and attach fake interventions resampled from the real events' size distribution (the placebo pipeline redraws query bars, so its real-event numbers differ slightly from Table 1 and the biases above). At placebo anchors the ablated twin is unbiased ( : nothing systematic happens at non-events) while the causal model, fed a fake intervention, creates of bias. At real events the same response reduces bias from to . ETH/SOL replicate (placebo ablated , causal placebo , real-event reduction , ). The do-head's response is only accurate where a real event occurred.
On raw RMSE the square-root law is best (2.1–2.5 ) – expected for a factual task on recency-dominated data. We state the epistemic status plainly: with no counterfactual on real data, these results establish predictive bias reduction from the do-information, consistent with, but not proof of, causal transfer; post-burst continuation driven by momentum cannot be excluded, and we frame the crypto evidence as the paired ablation and bias ranking, not ground-truth causal recovery. On multiplicity: the per-asset deltas replicate one pre-specified comparison across three cross-correlated assets (liquidation cascades are market-wide, so not independent). We report unadjusted intervals, and every headline delta exceeds twenty bootstrap standard errors, so any standard correction leaves the conclusions unchanged.
6.3 Counterfactual calibration
Table 2 asks whether the quantile head's counterfactual intervals, which point-estimate impact models cannot produce, are honest. Indistribution they are: coverage of the nominal 80% interval is 0.77–0.82 across the whole confounding range, at roughly one-third narrower intervals than the do-ablated twin – knowing the intervention sharpens counterfactual uncertainty, not just its point estimate. Under zero-shot transfer the picture inverts (causal coverage 0.32 on ABIDES, 0.47–0.51 on crypto; ablated 0.32–0.39): point predictions transfer, uncertainty does not, because the prior's outcome-noise scale is not the ABM's or the market's. The gap is aleatoric rather than epistemic: a predictive mixture over three training seeds covers 0.35 (transformer) and 0.50 (recurrent) on ABIDES against single-seed values of 0.33–0.34 and 0.46–0.54, so ensembling is not the interval repair. Split-conformal recalibration [20] offers a concrete fix: widen both interval ends by an empirical quantile of held-out nonconformity scores , distribution-free and leaving point predictions untouched. On ABIDES the calibration set can even be counterfactual (seed replay supplies the outcome under do(·)): calibrating on seeds 0–499 and evaluating on 500–999 restores nominal-80% coverage from 0.31 on that evaluation half to 0.82, at ~4× wider intervals. On real markets only factual outcomes exist, so the same recipe carries a factual guarantee and counterfactual validity still rests on the prior – the honest boundary of what recalibration can fix.
The recurrent variant’s raw ABIDES coverage is higher (0.49 vs. the transformer’s 0.32) and split-conformal restores 0.81 at only 1.6× width (transformer: ~4×) – but from a ~3× wider base, so the transformer’s conformalized intervals remain the narrower ones in absolute terms (transformer 13.1 vs. recurrent 16.9 ), and, unlike in-distribution, the variant’s do-pathway worsens its raw ABIDES calibration against its own ablated twin (0.49 vs. 0.76 at equal width; Table 2). Its scale constant is likewise per-domain, not global: the crypto k (0.49–0.53) does not transfer to ABIDES, where k is an order of magnitude smaller and varies with the training seed (0.049–0.096). Fitting k on n=500 calibration episodes and applying it to n=1000 held-out seed-replay counterfactuals makes the calibrated bias seed-invariant at -0.12 with all three seeds’ 95% CIs spanning zero – though the calibrated response sits at the low end of the measured CI, so the transformer remains the better ABIDES model and the two instantiations keep their division of labor. Scale and interval calibration compose: recentering by k before conformalizing keeps coverage nominal (0.783 at width 13.4 against 0.812 at 16.9 unscaled; n=300 vs. n=500) on counterfactual seed-replay ground truth. Cross-domain scale inference, predicting k from the observable tape instead of fitting it, remains open. Its labeling cost is small: on a Nasdaq closing-auction tier, five labeled auctions fit a k whose held-out RMSE (0.240) beats a last-value predictor (0.280).
7 Discussion and Limitations
This is a proof of concept for the interventional axis of market foundation models: the prior is a stylized three-variable market with no order-book queueing, cancellations, or inventory, trades-as-drift-shifts idealize execution mechanics, the detected crypto events are only plausibly exogenous, and we do not compete with large observational models [22] on scale or realism. Interval calibration does not survive transfer (§6.3) even where point predictions do. Two further limitations: the recurrent variant's schedule robustness outside regular bars requires schedule-mixture training (§3), and, as the placebo's flip side, fed a mislabeled event the do-head confidently manufactures impact, so deployment requires trustworthy event labels. The consistent through-line, a positive paired do-head
Thumm and Chen
effect on synthetic, agent-based, and real data while the ablated twin collapses onto the mean, supports the narrower, load-bearing claim: a PFN can amortize causal inference under hidden confounding, where identification is supplied by the prior, not the data, and carry it zero-shot into markets it never saw, provided the prior's confounding mass and intervention encoding matches the deployment event. Both fixes that mattered at fixed architecture were distribution changes, not compute. The residual duration-shape gap was closed by injecting the intervention at every active step, which the recurrent variant completes ( ), and the residual level gap is a per-domain scale constant whose in-context inference remains open ( ). Within this proof of concept, a practitioner estimating execution cost should use the transformer pair, calibrated at the measured scale on the counterfactual ground-truth tier, with the recurrent variant supplying the duration profile. That no single instantiation yet achieves both is the sharpest open problem.
The flip side of prior-based identification cuts both ways. In a companion experiment (identical recipe), enriching the prior with jump-diffusion in the hidden core suppressed the zero-shot do-head response roughly three- to eight-fold across the transfer tiers while fitting its own prior well: components that offer alternative explanations for intervention-sized moves dilute the prior-supplied identification, so predictive fit does not certify the causal readout, and prior match, not richness, is the criterion. The converse exposure is misspecification: the deconfounding is only as trustworthy as the model class the prior spans, and our prior assumes linear-drift OU dynamics where real microstructure is nonlinear, heavy-tailed, nonstationary, and shot through with feedback from price back into flow [5]. The stress test of §5.1 and the transfer tiers probe exactly this misspecification: feedback, jumps, and saturation lie outside the prior's class, and neither ABIDES nor crypto is an OU system. The point-level causal response degrades gracefully (bias shifts ≤ 0.16, §5.1) while calibrated uncertainty does not, where we would expect brittleness first. Widening the model class is the principled mitigation, and the framework [26] already admits neural-drift mechanisms.
Excluded from the headline prior by design, since any realism layer must first pass a causal-attribution ablation: jump-diffusion drift (tested and rejected above), factor-structured multi-asset DAGs, and Hawkes-timed endogenous interventions. An ABM analogue of the -sweep and the rough/fractional scaling limit of [14] are future work.
Reproducibility and data availability. All code, checkpoints, and result files are available at https://github.com/thummd/causal-market-simulator. The crypto data is the public Binance archive (https://data.binance.vision/) with dates, symbols, and detector settings in §6.2.
References
[1] Robert Almgren and Neil Chriss. 2001. Optimal Execution of Portfolio Transactions. Journal of Risk 3, 2 (2001), 5–39.
[2] Emmanuel Bacry, Adrian Iuga, Matthieu Lasnier, and Charles-Albert Lehalle. 2015. Market impacts and the life cycle of investors orders. Market Microstructure and Liquidity 1, 2 (2015), 1550009.
[3] Vahid Balazadeh, Hamidreza Kamkari, Valentin Thomas, Junwei Ma, Bingru Li, Jesse C. Cresswell, and Rahul Krishnan. 2025. CausalPFN: Amortized Causal Effect Estimation via In-Context Learning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.
[4] Julius F Bonart. 2026. Diffusive in plain sight: An inconspicuous law of market impact. arXiv preprint arXiv:2606.07059 (2026).
[5] Jean-Philippe Bouchaud, Julius Bonart, Jonathan Donier, and Martin Gould. 2018. Trades, quotes and prices: financial markets under the microscope. Cambridge University Press.
[6] Jean-Philippe Bouchaud, J. Doyne Farmer, and Fabrizio Lillo. 2009. How Markets Slowly Digest Changes in Supply and Demand. In Handbook of Financial Markets: Dynamics and Evolution. Elsevier, 57–160.
[7] David Byrd, Maria Hybinette, and Tucker Hybinette Balch. 2020. ABIDES: Towards High-Fidelity Multi-Agent Market Simulation. In Proceedings of the 2020 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation. 11–22.
[8] Rama Cont. 2001. Empirical properties of asset returns: stylized facts and statistical issues. Quantitative finance 1, 2 (2001), 223.
[9] Anish Dhir, Cristiana Diaconu, Valentinian Mihai Lungu, James Requeima, Richard E. Turner, and Mark van der Wilk. 2025. Estimating Interventional Distributions with Uncertain Causal Graphs through Meta-Learning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.
[10] Noah Hollmann, Samuel Müller, Katharina Eggensperger, and Frank Hutter. 2023. TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Second. International Conference on Learning Representations (ICLR) (2023).
[11] Yuchen Ma, Dennis Frauen, Emil Javurek, and Stefan Feuerriegel. 2026. Foundation Models for Causal Inference via Prior-Data Fitted Networks. In The Fourteenth International Conference on Learning Representations.
[12] Guillaume Maitrier, Grégoire Loeper, and Jean-Philippe Bouchaud. 2025. Generating realistic metaorders from public data. arXiv:2503.18199 [q-fin.TR]
[13] Vladyslav Moroshan, Julien Siems, Arber Zela, Timur Carstensen, and Frank Hutter. 2025. TempoPFN: Synthetic Pre-training of Linear RNNs for Zero-shot Time Series Forecasting. arXiv:2510.25502 [cs.LG]
[14] Johannes Muhle-Karbe, Youssef Ouazzani Chahdi, Mathieu Rosenbaum, and Grégoire Szymanski. 2026. A unified theory of order flow, market impact, and volatility. arXiv preprint arXiv:2601.23172 (2026).
[15] Samuel Müller, Noah Hollmann, Sebastian Pineda Arango, Josif Grabocka, and Frank Hutter. 2022. Transformers Can Do Bayesian Inference. In International Conference on Learning Representations (ICLR).
[16] Anna A. Obizhaeva and Jiang Wang. 2013. Optimal Trading Strategy and Supply/Demand Dynamics. Journal of Financial Markets 16, 1 (2013), 1–32.
[17] Judea Pearl. 2009. Causality: Models, Reasoning, and Inference (2nd ed.). Cambridge University Press.
[18] Arik Reuter, Anish Dhir, Cristiana Diaconu, Jake Robertson, Ole Ossen, Frank Hutter, Adrian Weller, Mark van der Wilk, and Bernhard Schölkopf. 2026. Use What You Know: Causal Foundation Models with Partial Graphs. In Forty-third International Conference on Machine Learning.
[19] Jake Robertson, Arik Reuter, Siyuan Guo, Noah Hollmann, Frank Hutter, and Bernhard Schölkopf. 2025. Do-PFN: In-Context Learning for Causal Effect Estimation. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.
[20] Yaniv Romano, Evan Patterson, and Emmanuel Candès. 2019. Conformalized Quantile Regression. In Advances in Neural Information Processing Systems (NeurIPS).
[21] Mohammed Salek, Damien Challet, and Ioane Muni Toke. 2023. Price impact in equity auctions: zero, then linear. Market Microstructure and Liquidity (2023). In press; HAL preprint hal-03938660v2.
[22] Srijan Sood, Maxime Kawawa-Beaudan, Daniel Borrajo, and Manuela Veloso. 2026. TradeFM: A Generative Foundation Model for Trade-flow and Market Microstructure. In 2nd ICML Workshop on Foundation Models for Structured Data.
[23] Dennis Thumm and Ying Chen. 2026. Interventional Time Series Priors for Causal Foundation Models. In 1st ICLR Workshop on Time Series in the Age of Large Models.
[24] Dennis Thumm and Luis Ontaneda Mijares. 2025. Towards Causal Market Simulators. In ICAIF Workshop on Rethinking Financial Time-Series. Singapore.
[25] Dennis Thumm, Arik Reuter, Jake Robertson, Shi Bin Hoo, Adrian Weller, Frank Hutter, Ying Chen, and Bernhard Schölkopf. 2026. Causal Foundation Models for Time Series based on Prior-Data fitted Networks. In 2nd ICML Workshop on Foundation Models for Structured Data.
[26] Dennis Thumm, Ruben Wiedemann, and Ying Chen. 2026. Towards Continuous-time Causal Foundation Models. In 2nd ICML Workshop on Foundation Models for Structured Data.
[27] G. E. Uhlenbeck and L. S. Ornstein. 1930. On the theory of Brownian motion. Physical Review 36, 5 (1930), 823–841.
[28] Elia Zarinelli, Michele Treccani, J. Doyne Farmer, and Fabrizio Lillo. 2015. Beyond the square root: Evidence for logarithmic dependence of market impact on size and participation rate. Market Microstructure and Liquidity 1, 2 (2015), 1550004.