Test-Time Forecasting: Recurrent Depth Enables In-Context Dynamics Prediction

Jeffrey B. Lai, John Quinn, Anthony Bao, William Gilpin
10/14/2026
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Foundation models for dynamical systems can forecast unseen partial differential equations (PDEs), ordinary differential equations (ODEs), and time series during inference. However, it remains an open question whether these foundation models truly learn generalizable in-context forecasting strategies. We show that looped transformers are capable of emulating propagators for dynamical systems in-context by first establishing a link between linear attention and (extended) dynamic mode decomposition. We then generalize this insight into the $\textit{Test-Time Forecasting}$ (TTF) framework in which a one-step forecaster leverages iterations of gradient descent as recurrent depth. We demonstrate that lightweight TTF models trained on ODEs and PDEs generalize to out-of-distribution system dynamics during autoregressive rollout after being trained for one-step prediction. Our results reinforce TTF as a theoretically motivated framework for designing recurrent depth models capable of forecasting unseen dynamical systems at test-time.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lai2026testtime,
  title  = {Test-Time Forecasting: Recurrent Depth Enables In-Context Dynamics Prediction},
  author = {Jeffrey B. Lai and John Quinn and Anthony Bao and William Gilpin},
  year   = {2026},
  eprint = {2610.19552},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.19552v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.19552.svg)](https://codeofpaper.com/paper/2610.19552)

Discussion