Context parroting: A simple but tough-to-beat baseline for foundation models in scientific machine learning

Yuanzhao Zhang, William Gilpin · DOI

Abstract

The pursuit of zero-shot forecasting in scientific machine learning (SciML) has led to the development of large-scale time-series foundation models. While these models demonstrate impressive capabilities, their internal mechanisms remain largely opaque. This paper introduces Context Parroting, a non-parametric baseline that performs forecasting by identifying historical motifs and replicating their subsequent trajectories. Our evaluation across 135 chaotic systems reveals that this simple "copy-paste" strategy frequently outperforms state-of-the-art foundation models like Chronos and TimesFM in both accuracy and physical consistency, while operating at a fraction of the computational cost.

1. Introduction

Zero-shot forecasting—the ability to predict the future of a physical system using only a brief historical context—is a central challenge in SciML. Recent foundation models trained on massive datasets have emerged as powerful tools for this task. However, it remains unclear whether these models are learning the underlying physics or merely performing sophisticated pattern matching. We investigate this by proposing a "Context Parroting" baseline, which formalizes the intuition of repeating past patterns, to serve as a rigorous benchmark for neural forecasting models.

2. Methodology: Context Parroting

Context Parroting is a non-parametric forecasting strategy rooted in nonlinear dynamics. The algorithm operates through three primary steps:

  1. Motif Matching: The model identifies the most recent segment of the trajectory (the "query") of length $D$.
  2. Nearest Neighbor Search: It scans the preceding context to find the sequence that most closely matches the query using Euclidean distance.
  3. Copy-Paste: The data points immediately following the historical match are used as the forecast.
Illustration of the context parroting mechanism: matching a query motif in the past and copy-pasting the subsequent trajectory.

This approach is theoretically supported by Takens’ embedding theorem, which posits that a single observed variable can reconstruct the state space of a chaotic system. Furthermore, it mirrors the behavior of "induction heads" found in Large Language Models (LLMs), which facilitate in-context learning by copying repeated tokens.

3. Results and Performance

We evaluated Context Parroting against leading foundation models, including Chronos, Chronos Bolt, TimesFM, and Time-MoE, using the dysts benchmark of 135 chaotic systems.

3.1 Accuracy and Physical Fidelity

Context Parroting achieved superior Valid Prediction Time (VPT) and lower error metrics (MAE/MSE) compared to neural models. A critical finding is that foundation models often suffer from "regression to the mean," where predictions converge toward an average value and lose the system's characteristic oscillations. In contrast, Parroting preserves these oscillations by design.

Comparison of forecasting error (sMAPE) over time and physical consistency (Attractor KL Divergence) across various models.

As shown in the results, Parroting significantly outperforms other models in Attractor KL Divergence, a metric measuring how well the predicted trajectory adheres to the system's natural physical state (the attractor). Among neural models, Chronos performed most similarly to Parroting, likely because its cross-entropy loss incentivizes pattern preservation over simple squared-error minimization.

3.2 Computational Efficiency

Context Parroting is approximately five to six orders of magnitude faster than foundation models. While neural models often require GPU acceleration for inference, Parroting executes in milliseconds on standard CPUs. Additionally, Parroting scales effectively with context length; unlike foundation models with fixed context windows (e.g., 512 points), Parroting’s performance continues to improve as more historical data becomes available.

4. Discussion and Conclusion

The success of Context Parroting highlights a significant gap in current SciML foundation models: they may not yet be capturing the fundamental physics of chaotic systems better than a simple nearest-neighbor search. The "in-context neural scaling law" observed in these models is directly tied to the fractal dimension of the system's attractor, suggesting that more complex physics simply requires a larger historical library for effective parroting.

While Parroting is limited by assumptions of stationarity and sensitivity to high noise, it remains a formidable baseline. Future foundation models must demonstrate that they have learned representations beyond simple repetition to justify their high computational costs. We propose that Context Parroting should be a standard benchmark in the evaluation of any new time-series foundation model.

Summary updated

BibTeX
@inproceedings{zhang2026context,
  author = {Yuanzhao Zhang and William Gilpin},
  title = {{Context parroting: A simple but tough-to-beat baseline for foundation models in scientific machine learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=EUAXc9Hlvm},
}
Figure