mlsanityData to 13 Oct 2026

Transformers Can Implement Preconditioned Richardson Iteration for In-Context Gaussian Kernel Regression

arXiv 2605.08475 ↗First posted 8 May 2026cs.LG cs.AI cs.NAcited by 0

Not on the map. Why?

Abstract (arXiv)

In this paper, we study in-context kernel ridge regression (KRR) with Gaussian kernels and show, both theoretically and empirically, that a standard softmax-attention transformer can approximate the KRR predictor during its forward pass. Under bounded-data assumptions, we construct a single-head transformer whose forward pass approximately implements textitpreconditioned Richardson iteration on the associated kernel system. The construction uses O(log(1/ε)) blocks and MLP width O(√N/ε) to achieve ε-accurate prediction for prompts of length N. Our construction reveals a functional decomposition within the transformer architecture: softmax attention produces a row-normalized Gaussian-kernel operator needed for cross-token interactions, while MLP layers act locally to approximate the intra-token scalar arithmetic required by the update. Empirically, we train GPT-2-style transformers on Gaussian-process regression tasks and observe that they progressively align with the exact Gaussian KRR estimator across depth in terms of both prediction error and induced weights, with ablations further supporting this trend. Comparisons with classical KRR solvers also show that deeper layers align with later solver iterates. Together, we empirically demonstrate that the pretrained transformers exhibit progressive refinement toward exact Gaussian KRR across depth, and theoretically establish inexact preconditioned Richardson iteration as a concrete mechanism for approximating this predictor within an explicitly constructed softmax-attention transformer.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 34 of its 47 references that are in the map. First posted on arXiv 8 May 2026.

Builds on

34 of 47 references.

References · 34

  1. 2017Attention Is All You Needcited by 60,106
  2. 2020Language Models are Few-Shot Learnerscited by 32,320
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
  4. 2022Transformers learn in-context by gradient descentcited by 720
  5. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 706
  6. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 676
  7. 2023Trained Transformers Learn Linear Models In-Contextcited by 333
  8. 2014Breaking the Curse of Dimensionality with Convex Neural Networkscited by 331
  9. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 293
  10. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 276
  11. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 169
  12. 2023In-Context Convergence of Transformerscited by 114
22 more
  1. 2024In-Context Language Learning: Architectures and Algorithmscited by 88
  2. 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 73
  3. 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
  4. 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
  5. 2024Asymptotic theory of in-context learning by linear attentioncited by 54
  6. 2021Understanding neural networks with reproducing kernel Banach spacescited by 50
  7. 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 48
  8. 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 45
  9. 2024In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initializationcited by 30
  10. 2024Linear Transformers are Versatile In-Context Learnerscited by 28
  11. 2023Understanding Emergent In-Context Learning from a Kernel Regression Perspectivecited by 24
  12. 2024In-Context Learning with Transformers: Softmax Attention Adapts to Function Lipschitznesscited by 22
  13. 2023Can a Transformer Represent a Kalman Filter?cited by 20
  14. 2024One-Layer Transformer Provably Learns One-Nearest Neighbor In Contextcited by 16
  15. 2025Understanding In-Context Learning on Structured Manifolds: Bridging Attention to Kernel Methodscited by 14
  16. 2023Sparse Representer Theorems for Learning in Reproducing Kernel Banach Spacescited by 10
  17. 2024Towards Understanding the Universality of Transformers for Next-Token Predictioncited by 9
  18. 2025On the Role of Transformer Feed-Forward Layers in Nonlinear In-Context Learningcited by 7
  19. 2024Hypothesis Spaces for Deep Learningcited by 4
  20. 2025Asymptotic Study of In-context Learning with Random Transformers through Equivalent Modelscited by 3
  21. 2025In-Context Learning of Linear Dynamical Systems with Transformers: Approximation Bounds and Depth-Separationcited by 2
  22. 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descentcited by 2

Built on by

Not cited yet.