In-Context Estimation and Prediction for Parametric ODEs
Abdullah Ahmed, Yun Yang
Key points
From the paper's conclusion- We study in-context parameter estimation and trajectory prediction for parametric ordinary differential equations (ODEs), where estimation is generally nonconvex.
Abstract
Transformers have demonstrated the ability to perform in-context learning, that is, to adapt to new tasks from a few examples without updating their parameters. Existing theory has largely focused on emulating gradient-based algorithms for convex statistical problems or establishing general function approximation guarantees without exploiting the underlying statistical structure. We study in-context parameter estimation and trajectory prediction for parametric ordinary differential equations (ODEs), where estimation is generally nonconvex. Under suitable identifiability and regularity conditions, we construct a transformer that estimates unknown system parameters from noisy trajectory observations through a two-stage approximate maximum likelihood procedure: a coarse search provides an initialization within a locally strongly convex region, followed by gradient descent with local linear contraction. For prediction, we compose this estimator with a neural approximation of the ODE solution map. We further show that, through parameter sharing, a single transformer can perform both parameter estimation and trajectory prediction simultaneously. For these constructions, we establish nonasymptotic guarantees and finite-pretraining oracle inequalities that separate errors due to finite pretraining data, finite context length, and finite-sized transformer approximation. Numerical experiments on linear and nonlinear ODEs further show that pretrained transformers can benefit from longer inference contexts without updating their weights.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Can pretrained Transformers deliver semiparametrically efficient inference?arXiv · 2026
- Transformer-based In-Context Score Operator Learning for Diffusion ModelsarXiv · 2026
- Generalizable Output Feedback Optimal Control via Transformers Without Explicit State EstimationarXiv · 2026
- PDE-PFN: Prior-Data Fitted Neural PDE SolverarXiv · 2026
- Neural Scaling Laws of Transformer Operator NetworkarXiv · 2026
- Test-Time Forecasting: Recurrent Depth Enables In-Context Dynamics PredictionarXiv · 2026