mlsanityData to 24 Nov 2026

A Transformer-Derived Iterative Preconditioner

arXiv 2611.22941 ↗Submitted 17 Nov 2026Announced 18 Nov 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformers trained on in-context prediction problems can learn known numerical algorithms, e.g., gradient descent. We go further, showing that their internal computations can reveal new algorithms with provable guarantees. A softmax-attention transformer trained to solve linear systems Xw=y implicitly improves matrix conditioning. Tracing XX^top reveals an iterative preconditioning primitive, which we develop into RAPID, a standalone algorithm requiring no learned components. RAPID is an anytime preconditioner for symmetric positive definite (SPD) matrices, using randomized mixing and sparse local corrections to improve conditioning. Proof-of-concept experiments on synthetic and real-world problems consistently improve conditioning and reduce conjugate gradient iterations needed to reach a target accuracy. For a Haar-mixing idealization, we prove convergence to any fixed target condition number regardless of spectral distribution, with only logarithmic dependence on initial conditioning. Together, these results show how a transformer can discover a broadly applicable numerical algorithm.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 19 of its 34 references that are in the map. Submitted 17 Nov 2026, announced 18 Nov 2026.

Builds on

19 of 34 references.

References · 19

  1. 2017Attention Is All You Needcited by 62,125
  2. 2020Language Models are Few-Shot Learnerscited by 33,113
  3. 2016Group Equivariant Convolutional Networkscited by 1,209
  4. 2022Transformers learn in-context by gradient descentcited by 763
  5. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 754
  6. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 729
  7. 2023Trained Transformers Learn Linear Models In-Contextcited by 358
  8. 2018On the Generalization of Equivariance and Convolution in Neural Networks to the Action of Compact Groupscited by 315
  9. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 288
  10. 2021A Practical Method for Constructing Equivariant Multilayer Perceptrons for Arbitrary Matrix Groupscited by 190
  11. 2016Orthogonal Random Featurescited by 96
  12. 2014Fastfood: Approximate Kernel Expansions in Loglinear Timecited by 76
7 more
  1. 2020Learning Algebraic Multigrid Using Graph Neural Networkscited by 56
  2. 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 56
  3. 2024Linear Transformers are Versatile In-Context Learnerscited by 29
  4. 2024Transformers Can Learn Temporal Difference Methods for In-Context Reinforcement Learningcited by 27
  5. 2024Learning from Linear Algebra: A Graph Neural Network Approach to Preconditioner Design for Conjugate Gradient Solverscited by 16
  6. 2025Transformers Provably Learn Algorithmic Solutions for Graph Connectivity, But Only with the Right Datacited by 3
  7. 2025Linear Transformers Implicitly Discover Unified Numerical Algorithmscited by 2

Built on by

Not cited yet.