Linear algebra with transformers
Not on the map. Why?
Abstract (arXiv)
Transformers can learn to perform numerical computations from examples only. I study nine problems of linear algebra, from basic matrix operations to eigenvalue decomposition and inversion, and introduce and discuss four encoding schemes to represent real numbers. On all problems, transformers trained on sets of random matrices achieve high accuracies (over 90%). The models are robust to noise, and can generalize out of their training distribution. In particular, models trained to predict Laplace-distributed eigenvalues generalize to different classes of matrices: Wigner matrices or matrices with positive eigenvalues. The reverse is not true.
Key facts. Cited by 63 papers in the map (data through 14 Oct 2026). Builds on 37 of its 68 references that are in the map. First posted on arXiv 3 Dec 2021.
Builds on
37 of 68 references.
References · 37
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2015Pointer Networkscited by 895
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
25 more
- 2020Generative Language Modeling for Automated Theorem Provingcited by 388
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 335
- 2019Deep Learning for Symbolic Mathematicscited by 270
- 2021Combinatorial optimization and reasoning with graph neural networkscited by 268
- 2021Neural Symbolic Regression that Scalescited by 192
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 139
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 132
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2015Neural GPUs Learn Algorithmscited by 121
- 2019Transformer-based Acoustic Modeling for Hybrid Speech Recognitioncited by 88
- 2017Failures of Gradient-Based Deep Learningcited by 80
- 2018Neural Arithmetic Logic Unitscited by 70
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
- 2020Learning continuous-time PDEs from sparse data with graph neural networkscited by 53
- 2020Teaching Temporal Logics to Neural Networkscited by 51
- 2021Multiplying Matrices Without Multiplyingcited by 30
- 2021Symbolic Brittleness in Sequence Models: on Systematic Generalization in Symbolic Mathematicscited by 27
- 2015Grid Long Short-Term Memorycited by 20
- 2015Learning Simple Algorithms from Examplescited by 12
- 2019The Use of Deep Learning for Symbolic Integration: A Review of (Lample and Charton, 2019)cited by 11
- 2021Transformer-based Machine Learning for Fast SAT Solvers and Logic Synthesiscited by 9
- 2019Solving Math Word Problems with Double-Decoder Transformercited by 7
- 2021Solving Arithmetic Word Problems with Transformers and Preprocessing of Problem Textcited by 7
- 2015Moment-Based Spectral Analysis of Random Graphs with Given Expected Degreescited by 1
- 2019Learning Numeracy: Binary Arithmetic with Neural Turing Machinescited by 1
Built on by
Citing papers per year: 2021: 1; 2022: 8; 2023: 15; 2024: 17; 2025: 18; 2026: 4.
63 papers.
Sort:
By area:
- 2023Looped Transformers as Programmable Computerscited by 237
- 2022End-to-end symbolic regression with transformerscited by 203
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 149
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2023Teaching Arithmetic to Small Transformerscited by 123
- 2022Tutorial on amortized optimizationcited by 83
- 2022Towards Learning Universal Hyperparameter Optimizers with Transformerscited by 81
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 81
- 2023Length Generalization in Arithmetic Transformerscited by 66
- 2023ODEFormer: Symbolic Regression of Dynamical Systems with Transformerscited by 62
- 2023Positional Description Matters for Transformers Arithmeticcited by 56
38 more
- 2022Deep Symbolic Regression for Recurrent Sequencescited by 54
- 2023SNIP: Bridging Mathematical Symbolic and Numeric Realms with Unified Pre-trainingcited by 47
- 2024Towards a Foundation Model for Partial Differential Equations: Multi-Operator Learning and Extrapolationcited by 46
- 2024Beyond Model Collapse: Scaling Up with Synthesized Data Requires Verificationcited by 45
- 2024OmniPred: Language Models as Universal Regressorscited by 34
- 2023Learning the greatest common divisor: explaining transformer predictionscited by 33
- 2022SALSA: Attacking Lattice Cryptography with Transformerscited by 28
- 2024Large Language Model-Based Evolutionary Optimizer: Reasoning with elitismcited by 27
- 2022What is my math transformer doing? -- Three results on interpretability and generalizationcited by 19
- 2024Transforming the Bootstrap: Using Transformers to Compute Scattering Amplitudes in Planar N = 4 Super Yang-Mills Theorycited by 18
- 2023PROSE: Predicting Operators and Symbolic Expressions using Multimodal Transformerscited by 16
- 2023Is deep learning a useful tool for the pure mathematician?cited by 14
- 2024LeMON: Learning to Learn Multi-Operator Networkscited by 14
- 2025Performance Prediction for Large Systems via Text-to-Text Regressioncited by 14
- 2023Towards Constituting Mathematical Structures for Learning to Optimizecited by 13
- 2024Meta-Designing Quantum Experiments with Language Modelscited by 12
- 2025Decoding-based Regressioncited by 12
- 2023SALSA PICANTE: a machine learning attack on LWE with binary secretscited by 11
- 2024Emergent properties with repeated examplescited by 11
- 2024Abrupt Learning in Transformers: A Case Study on Matrix Completioncited by 11
- 2025A Neural Symbolic Model for Space Physicscited by 11
- 2023Learning to Compute Gr"obner Basescited by 7
- 2024Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errorscited by 7
- 2024Models That Prove Their Own Correctnesscited by 7
- 2025Computational Algebra with Attention: Transformer Oracles for Border Basis Algorithmscited by 7
- 2025Towards Universal Offline Black-Box Optimization via Learning Language Model Embeddingscited by 7
- 2024Machine-learning emergent spacetime from linear response in future tabletop quantum gravity experimentscited by 5
- 2024Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmeticcited by 4
- 2025Understanding LLMs' Fluid Intelligence Deficiency: An Analysis of the ARC Taskcited by 4
- 2023Tracing and Manipulating Intermediate Values in Neural Math Problem Solverscited by 3
- 2025Learning the symmetric group: large from smallcited by 3
- 2025From Black Box to Bijection: Interpreting Machine Learning to Build a Zeta Map Algorithmcited by 3
- 2022TgDLF2.0: Theory-guided deep-learning for electrical load forecasting via Transformer and transfer learningcited by 2
- 2024Machine learning for modular multiplicationcited by 2
- 2024Graph Transformers Dream of Electric Flowcited by 2
- 2021Deep Learning and Mathematical Intuition: A Review of (Davies et al. 2021)cited by 1
- 2024Multi-objective Representation for Numbers in Clinical Narratives: A CamemBERT-Bio-Based Alternative to Large-Scale LLMscited by 1
- 2025Generating particle physics Lagrangians with transformerscited by 1
50 most cited of 63 All 63 (JSON)
- 2026Synthesizing Physics Formulae with Transformers2 Oct 2026
- 2026Arithmetic Pedagogy for Language Models3 Jun 2026
- 2026Learning First Integrals via Backward-Generated Data and Guided Reinforcement Learning20 May 2026
- 2026Approximating Matrix Functions with Deep Neural Networks and Transformers8 Feb 2026
- 2025Beyond Token-level Supervision: Unlocking the Potential of Decoding-based Regression via Reinforcement Learning6 Dec 2025
- 2025From Black Box to Bijection: Interpreting Machine Learning to Build a Zeta Map Algorithm16 Nov 2025
- 2025Vision-LLMs for Spatiotemporal Traffic Forecasting13 Oct 2025
- 2025Explaining Deep Network Classification of Matrices: A Case Study on Monotonicity30 Jul 2025
- 2025Discovering Learning-Friendly Generation Orders for Sequential Computation30 Jun 2025
- 2025Performance Prediction for Large Systems via Text-to-Text Regression26 Jun 2025
- 2025Learning Moderately Input-Sensitive Functions: A Case Study in QR Code Decoding25 Jun 2025
- 2025DDOT: A Derivative-directed Dual-decoder Ordinary Differential Equation Transformer for Dynamic System Modeling23 Jun 2025
38 more
- 2025CALT: A Library for Computer Algebra with Transformer10 Jun 2025
- 2025Towards Universal Offline Black-Box Optimization via Learning Language Model Embeddings8 Jun 2025
- 2025Computational Algebra with Attention: Transformer Oracles for Border Basis Algorithms29 May 2025
- 2025A Neural Symbolic Model for Space Physics11 Mar 2025
- 2025Int2Int: a framework for mathematics with transformers22 Feb 2025
- 2025Learning the symmetric group: large from small18 Feb 2025
- 2025Studying number theory with deep learning: a case study with the M"obius and squarefree indicator functions14 Feb 2025
- 2025Understanding LLMs' Fluid Intelligence Deficiency: An Analysis of the ARC Task11 Feb 2025
- 2025Decoding-based Regression31 Jan 2025
- 2025Generating particle physics Lagrangians with transformers16 Jan 2025
- 2024Formal Mathematical Reasoning: A New Frontier in AI20 Dec 2024
- 2024Machine-learning emergent spacetime from linear response in future tabletop quantum gravity experiments25 Nov 2024
- 2024Abrupt Learning in Transformers: A Case Study on Matrix Completion29 Oct 2024
- 2024Graph Transformers Dream of Electric Flow22 Oct 2024
- 2024Emergent properties with repeated examples9 Oct 2024
- 2024Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic4 Oct 2024
- 2024LeMON: Learning to Learn Multi-Operator Networks28 Aug 2024
- 2024Beyond Model Collapse: Scaling Up with Synthesized Data Requires Verification11 Jun 2024
- 2024Meta-Designing Quantum Experiments with Language Models4 Jun 2024
- 2024Multi-objective Representation for Numbers in Clinical Narratives: A CamemBERT-Bio-Based Alternative to Large-Scale LLMs28 May 2024
- 2024Models That Prove Their Own Correctness24 May 2024
- 2024Transforming the Bootstrap: Using Transformers to Compute Scattering Amplitudes in Planar N = 4 Super Yang-Mills Theory9 May 2024
- 2024Towards a Foundation Model for Partial Differential Equations: Multi-Operator Learning and Extrapolation18 Apr 2024
- 2024Large Language Model-Based Evolutionary Optimizer: Reasoning with elitism4 Mar 2024
- 2024Machine learning for modular multiplication29 Feb 2024
- 2024OmniPred: Language Models as Universal Regressors22 Feb 2024
- 2024Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errors2 Feb 2024
- 2023Positional Description Matters for Transformers Arithmetic22 Nov 2023
- 2023Learning to Compute Gr"obner Bases21 Nov 2023
- 2023Looped Transformers are Better at Learning Learning Algorithms21 Nov 2023
- 2023What Algorithms can Transformers Learn? A Study in Length Generalization24 Oct 2023
- 2023ODEFormer: Symbolic Regression of Dynamical Systems with Transformers9 Oct 2023
- 2023SNIP: Bridging Mathematical Symbolic and Numeric Realms with Unified Pre-training3 Oct 2023
- 2023PROSE: Predicting Operators and Symbolic Expressions using Multimodal Transformers28 Sep 2023
- 2023Learning the greatest common divisor: explaining transformer predictions29 Aug 2023
- 2023Teaching Arithmetic to Small Transformers7 Jul 2023
- 2023Length Generalization in Arithmetic Transformers27 Jun 2023
- 2023Towards Constituting Mathematical Structures for Learning to Optimize29 May 2023
50 newest of 63 All 63 (JSON)
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 81
- 2024Large Language Model-Based Evolutionary Optimizer: Reasoning with elitismcited by 27
- 2026Arithmetic Pedagogy for Language Modelscited by 0
- 2026Arithmetic Pedagogy for Language Models3 Jun 2026
- 2024Formal Mathematical Reasoning: A New Frontier in AI20 Dec 2024
- 2024Large Language Model-Based Evolutionary Optimizer: Reasoning with elitism4 Mar 2024
- 2022A Survey of Deep Learning for Mathematical Reasoning20 Dec 2022
- 2023Looped Transformers as Programmable Computerscited by 237
- 2022End-to-end symbolic regression with transformerscited by 203
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 149
- 2023Teaching Arithmetic to Small Transformerscited by 123
- 2022Tutorial on amortized optimizationcited by 83
- 2022Towards Learning Universal Hyperparameter Optimizers with Transformerscited by 81
- 2023Length Generalization in Arithmetic Transformerscited by 66
- 2023ODEFormer: Symbolic Regression of Dynamical Systems with Transformerscited by 62
- 2023Positional Description Matters for Transformers Arithmeticcited by 56
- 2022Deep Symbolic Regression for Recurrent Sequencescited by 54
- 2023SNIP: Bridging Mathematical Symbolic and Numeric Realms with Unified Pre-trainingcited by 47
12 most cited of 56 All 56 (JSON)
- 2026Synthesizing Physics Formulae with Transformers2 Oct 2026
- 2026Approximating Matrix Functions with Deep Neural Networks and Transformers8 Feb 2026
- 2025From Black Box to Bijection: Interpreting Machine Learning to Build a Zeta Map Algorithm16 Nov 2025
- 2025Vision-LLMs for Spatiotemporal Traffic Forecasting13 Oct 2025
- 2025Explaining Deep Network Classification of Matrices: A Case Study on Monotonicity30 Jul 2025
- 2025Discovering Learning-Friendly Generation Orders for Sequential Computation30 Jun 2025
- 2025Performance Prediction for Large Systems via Text-to-Text Regression26 Jun 2025
- 2025Learning Moderately Input-Sensitive Functions: A Case Study in QR Code Decoding25 Jun 2025
- 2025DDOT: A Derivative-directed Dual-decoder Ordinary Differential Equation Transformer for Dynamic System Modeling23 Jun 2025
- 2025CALT: A Library for Computer Algebra with Transformer10 Jun 2025
- 2025Towards Universal Offline Black-Box Optimization via Learning Language Model Embeddings8 Jun 2025
- 2025Computational Algebra with Attention: Transformer Oracles for Border Basis Algorithms29 May 2025
12 newest of 56 All 56 (JSON)