Continuum Transformers Perform In-Context Learning by Operator Gradient Descent
Not on the map. Why?
Abstract (arXiv)
Transformers robustly exhibit the ability to perform in-context learning, whereby their predictive accuracy on a task can increase not by parameter updates but merely with the placement of training samples in their context windows. Recent works have shown that transformers achieve this by implementing gradient descent in their forward passes. Such results, however, are restricted to standard transformer architectures, which handle finite-dimensional inputs. In the space of PDE surrogate modeling, a generalization of transformers to handle infinite-dimensional function inputs, known as "continuum transformers," has been proposed and similarly observed to exhibit in-context learning. Despite impressive empirical performance, such in-context learning has yet to be theoretically characterized. We herein demonstrate that continuum transformers perform in-context operator learning by performing gradient descent in an operator RKHS. We demonstrate this using novel proof strategies that leverage a generalized representer theorem for Hilbert spaces and gradient flows over the space of functionals of a Hilbert space. We additionally show the operator learned in context is the Bayes Optimal Predictor in the infinite depth limit of the transformer. We then provide empirical validations of this optimality result and demonstrate that the parameters under which such gradient descent is performed are recovered through the continuum transformer training.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 36 of its 48 references that are in the map. First posted on arXiv 23 May 2025.
Builds on
36 of 48 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,908
- 2019DeepONet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operatorscited by 2,018
- 2020Neural Operator: Graph Kernel Network for Partial Differential Equationscited by 734
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2021Learning the solution operator of parametric partial differential equations with physics-informed DeepOnetscited by 540
- 2024Large Language Models: A Surveycited by 525
- 2021Neural Operator: Learning Maps Between Function Spacescited by 414
- 2020Multipole Graph Neural Operator for Parametric Partial Differential Equationscited by 349
- 2021Choose a Transformer: Fourier or Galerkincited by 343
24 more
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2020Model Reduction and Neural Networks for Parametric PDEscited by 258
- 2023Spherical Fourier Neural Operators: Learning Stable Dynamics on the Spherecited by 233
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
- 2023In-Context Operator Learning with Data Prompts for Differential Equation Problemscited by 101
- 2024Operator Learning: Algorithms and Analysiscited by 85
- 2023A Mathematical Guide to Operator Learningcited by 76
- 2022Learning Deep Implicit Fourier Neural Operators (IFNOs) with Applications to Heterogeneous Material Modelingcited by 65
- 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
- 2015Operator-valued Kernels for Learning from Functional Response Datacited by 60
- 2024Towards a Foundation Model for Partial Differential Equations: Multi-Operator Learning and Extrapolationcited by 46
- 2024Continuum Attention for Neural Operatorscited by 40
- 2021Mosaic Flows: A Transferable Deep Learning Framework for Solving PDEs on Unseen Domainscited by 37
- 2024PROSE-FD: A Multimodal PDE Foundation Model for Learning Multiple Operators for Forecasting Fluid Dynamicscited by 34
- 2024PDE Generalization of In-Context Operator Networks: A Study on 1D Scalar Nonlinear Conservation Lawscited by 31
- 2023Rethinking materials simulations: Blending direct numerical simulations with neural operatorscited by 25
- 2024VICON: Vision In-Context Operator Networks for Multi-Physics Fluid Dynamics Predictioncited by 25
- 2024Peridynamic Neural Operators: A Data-Driven Nonlocal Constitutive Model for Complex Material Responsescited by 18
- 2025Operator Learning: A Statistical Perspectivecited by 17
- 2023Neural Spectral Methods: Self-supervised learning in the spectral domaincited by 14
- 2024MODNO: Multi Operator Learning With Distributed Neural Operatorscited by 14
- 2024LeMON: Learning to Learn Multi-Operator Networkscited by 14
- 2024Spectral-Refiner: Accurate Fine-Tuning of Spatiotemporal Fourier Neural Operator for Turbulent Flowscited by 11
- 2025Solving Optimal Execution Problems via In-Context Operator Networkscited by 4
Built on by
Citing papers per year: 2026: 3.
3 papers.