Falsifiable Compositional Reasoning in Time Series Forecasting

Hao XuearXiv 2026

TL;DR

Standard backtesting in time series forecasting is a "trap": models that achieve the lowest historical validation error often do so by overfitting transient correlations that vanish during regime shifts. This paper proposes Falsifiable Compositional Reasoning, a framework that replaces open-ended model search with explicit structural hypotheses and ex-ante falsification tests to ensure models remain robust when the world changes.

What Problem Does This Paper Address?

In time series forecasting, the gold standard for evaluation is chronological backtesting—splitting data into past training/validation sets and a future test set. However, the authors argue that this practice is fundamentally flawed for non-stationary systems.

Real-world data is often generated by "primitives" (e.g., daily cycles, weather patterns) that happen to co-move in stable proportions during historical periods. Because of this historical co-movement, a model can achieve a great score by learning a "shortcut" (a transient correlation) rather than the underlying structural mechanism. When a regime shift occurs—like a sudden increase in renewable energy capacity changing the relationship between demand and electricity prices—these shortcuts fail catastrophically.

Worse yet, the common practice of searching through massive pools of architectures, hyperparameters, or "Chain-of-Thought" rules actually exacerbates the problem. The more you search, the more likely you are to find a model that "wins" the validation set by exploiting a lucky, temporary alignment in the data.

Figure 1. Open-ended backtest selection versus falsifiable compositional reasoning. (a) Observed series yt arise from latent primitives m1(t), m2(t) that co-move in the historical regime ehist and decouple in eshift. (b) Path A searches candidate pools to minimise historical holdout error, rewarding historical co-movement shortcuts, whereas Path B combines neural primitive encoders ˆmk under an explicit operator Cet with a training-calibrated falsification test Φt(x≤t) ≤τα. (c) Under eshift, Path A extrapolates the outdated correlation, while Path B rejects the shifted residual fit and preserves the structural coupling.

Methods

The authors propose a shift from "discovery-driven" modeling to "hypothesis-driven" modeling. Their framework, Falsifiable Compositional Reasoning, consists of three main pillars:

  1. Neural Primitive Encoders: Using modular sequence models (like PatchTST or iTransformer) to extract specific, grounded temporal primitives (e.g., "baseload demand" or "wind supply") from raw data.
  2. Explicit Coupling Constraints: Instead of letting a black-box network learn how primitives interact, the model uses a pre-specified composition operator ($C_{e_t}$) based on domain knowledge (e.g., physics-based conservation laws or market-clearing logic).
  3. Ex-Ante Falsification Tests: The model includes a training-calibrated statistical test (specifically a Mahalanobis distance, $\Phi_t$). At inference time, if the input data looks significantly different from the training distribution, the test "rejects" the learned residual corrections and reverts the model to its stable structural backbone.

Datasets

The authors evaluate their approach on two benchmarks designed to test resilience to regime shifts:

  • Controlled C-DGP: A synthetic multi-primitive benchmark (14,400 steps) where latent primitives (diurnal, seasonal, etc.) are perfectly correlated during training but decouple in phase during the test period.
  • EPF-DE (German Electricity Transition): A real-world dataset of hourly electricity prices from 2012 to 2017. This period saw a massive structural shift as renewable energy (wind/solar) grew by nearly 3 standard deviations, fundamentally altering the correlation between grid load and price.

Key Insights and Ideas

  • The "Selection Bias" of Big Searches: Figure 2 illustrates a counter-intuitive finding: as you increase the number of candidate configurations ($M$) you search over, your historical validation error goes down (selection bias), but your out-of-distribution (OOD) error under a regime shift actually increases. You are essentially "mining" for shortcuts.
  • Observational Equivalence: In many historical windows, a model that uses a "lagged target" shortcut is mathematically indistinguishable from a model that understands the true causal mechanism. Chronological error alone cannot separate them.
  • Falsification as a Safety Valve: The most critical component is the falsification test. By detecting when the "residual pathway" (the part of the model that fits local noise and fine-grained correlations) is no longer reliable, the system can prevent itself from extrapolating outdated fits.
Figure 2. Non-identifiability and selection bias. As search breadth M increases, historical MSE drops below the noise floor while shift MSE diverges.

Key Results

The quantitative results highlight the danger of unguided model selection:

  • Failure of Standard Search: On the EPF-DE dataset, expanding the search pool to 96 configurations lowered historical MSE to 0.284, but the "winner" still incurred a realized shift MSE of 0.399—more than double the error of the falsifiable model.
  • Robustness of Falsification: On the synthetic benchmark, the Compositional (w/ test) approach achieved a shift MSE of 0.0948, compared to 0.6112 for an unguided rule-search approach.
  • Rejection Rates: During regime shifts, the falsification test correctly rejected the residual fit in 98.4% to 100% of test windows, effectively "turning off" the parts of the model that were prone to hallucinating old correlations.
Figure 4. The falsification statistic $\Phi_t$ spikes during regime transitions, allowing the model to suppress invalid residual pathways.

Limitations and Future Work

The primary limitation is that this approach is not a black box. It requires researchers to have enough domain expertise to specify the "Grounded Primitives" and "Persistence Mechanisms" (see Table 2 in the paper). You cannot simply throw raw data at it and expect it to work without a pre-committed hypothesis.

The authors suggest that Large Language Models (LLMs) could play a role here—not by predicting numbers directly, but by acting as "analysts" that translate domain documentation and market regulations into the explicit primitives and constraints required for the compositional framework. Future work may focus on automating the formulation of these falsifiable "Hypothesis Cards."

Summary updated

Abstract

Time series foundation models as well as the language-guided analytical agents achieve strong accuracy on standard chronological benchmarks. However, models that rank highest on historical validation splits often degrade across non-stationary regime transitions. We hypothesise that this gap arises from using historical backtesting as an open-ended search and model-selection objective instead of using it to test pre-specified compositional assumptions. Real-world time series are generated by recurring latent primitives that co-move within finite historical windows. Under strong historical co-movement, chronological holdout error cannot separate predictors that learn invariant couplings among primitives from predictors that fit transient historical correlations. Searching over large pools of architectures, hyperparameters, or chain-of-thought rules further biases selection toward historical shortcuts. Through theoretical analysis and diagnostic experiments on a controlled multi-primitive benchmark and German day-ahead electricity prices, we show that expanding validation search fails to improve out-of-regime accuracy, and that decomposing primitives without an ex-ante falsification test still breaks down when residual correlations shift. Hence, we propose formulating time series forecasting and reasoning around falsifiable compositional hypotheses that combine neural primitive encoders, explicit coupling constraints, and training-calibrated falsification tests.
BibTeX
@misc{xue2026falsifiable,
  author = {Hao Xue},
  title = {{Falsifiable Compositional Reasoning in Time Series Forecasting}},
  year = {2026},
  eprint = {2611.25388},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25388},
}
Figure