In-Context Estimation and Prediction for Parametric ODEs
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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.NA, math.NA, math.ST, stat.ML, stat.TH
Related papers
Transformers with Signatures: Towards Universal In-Context Learning in Path Space
Shared title terminologycs.LGZiheng Cheng, Xin Guo, Ben Hambly
Toward a Theoretical Understanding of Transformer Attention: Bayesian Estimation and Predictive Sufficiency
Shared title terminologycs.LGFouad B. Chedid
Similar Is Not Useful: Selecting In-Context Demonstrations by Closed-Loop Utility
Shared title terminologycs.LGJiachen Li, Zhigen Zhao, Shihao Li et al.
Algorithm Distillation for Safe In-Context Reinforcement Learning
Shared title terminologycs.LGMinjae Kwon, Amir Moeini, Shangtong Zhang et al.
The Price of Choosing Examples: Context Overfitting in Adaptive In-Context Learning
Shared title terminologycs.LGXiaoyu Li, Jiangxuan Long
Trust-Region Optimization for Performative Prediction without Response Modeling
Shared title terminologycs.LGSiqi Du, Miaolan Xie, Roy Dong