Linear Transformers Implicitly Discover Unified Numerical Algorithms

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Lutz, Patrick, Gangrade, Aditya, Daneshmand, Hadi, Saligrama, Venkatesh
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914053764415488
author Lutz, Patrick
Gangrade, Aditya
Daneshmand, Hadi
Saligrama, Venkatesh
author_facet Lutz, Patrick
Gangrade, Aditya
Daneshmand, Hadi
Saligrama, Venkatesh
contents We train a linear attention transformer on millions of masked-block matrix completion tasks: each prompt is masked low-rank matrix whose missing block may be (i) a scalar prediction target or (ii) an unseen kernel slice of Nyström extrapolation. The model sees only input-output pairs and a mean-squared loss; it is given no normal equations, no handcrafted iterations, and no hint that the tasks are related. Surprisingly, after training, algebraic unrolling reveals the same parameter-free update rule across three distinct computational regimes (full visibility, rank-limited updates, and distributed computation). We prove that this rule achieves second-order convergence on full-batch problems, cuts distributed iteration complexity, and remains accurate with rank-limited attention. Thus, a transformer trained solely to patch missing blocks implicitly discovers a unified, resource-adaptive iterative solver spanning prediction, estimation, and Nyström extrapolation, highlighting a powerful capability of in-context learning.
format Preprint
id arxiv_https___arxiv_org_abs_2509_19702
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Linear Transformers Implicitly Discover Unified Numerical Algorithms
Lutz, Patrick
Gangrade, Aditya
Daneshmand, Hadi
Saligrama, Venkatesh
Machine Learning
Artificial Intelligence
We train a linear attention transformer on millions of masked-block matrix completion tasks: each prompt is masked low-rank matrix whose missing block may be (i) a scalar prediction target or (ii) an unseen kernel slice of Nyström extrapolation. The model sees only input-output pairs and a mean-squared loss; it is given no normal equations, no handcrafted iterations, and no hint that the tasks are related. Surprisingly, after training, algebraic unrolling reveals the same parameter-free update rule across three distinct computational regimes (full visibility, rank-limited updates, and distributed computation). We prove that this rule achieves second-order convergence on full-batch problems, cuts distributed iteration complexity, and remains accurate with rank-limited attention. Thus, a transformer trained solely to patch missing blocks implicitly discovers a unified, resource-adaptive iterative solver spanning prediction, estimation, and Nyström extrapolation, highlighting a powerful capability of in-context learning.
title Linear Transformers Implicitly Discover Unified Numerical Algorithms
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2509.19702