Approximating Matrix Functions with Deep Neural Networks and Transformers
Not on the map. Why?
Abstract (arXiv)
Transformers have revolutionized natural language processing, but their use for numerical computation has received less attention. We study the approximation of matrix functions, which map scalar functions to matrices, using neural networks including transformers. We focus on functions mapping square matrices to square matrices of the same dimension. These types of matrix functions appear throughout scientific computing, e.g., the matrix exponential in continuous-time Markov chains and the matrix sign function in stability analysis of dynamical systems. In this paper, we make two contributions. First, we prove bounds on the width and depth of ReLU networks needed to approximate the matrix exponential to an arbitrary precision. Second, we show experimentally that a transformer encoder-decoder with suitable numerical encodings can approximate certain matrix functions at a relative error of 5% with high probability. Our study reveals that the encoding scheme strongly affects performance, with different schemes working better for different functions.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 8 of its 22 references that are in the map. First posted on arXiv 8 Feb 2026.
Builds on
8 of 22 references.
References · 8
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domainscited by 2,170
- 2019Deep Learning for Symbolic Mathematicscited by 266
- 2021Linear algebra with transformerscited by 62
- 2024Global Lyapunov functions: a long-standing open problem in mathematics, with symbolic transformerscited by 29
Built on by
Not cited yet.