We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.LG

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Machine Learning

Title: Linear algebra with transformers

Abstract: 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.
Comments: Transactions in Machine Learning Research (TMLR), October 2022
Subjects: Machine Learning (cs.LG); Computation and Language (cs.CL)
Cite as: arXiv:2112.01898 [cs.LG]
  (or arXiv:2112.01898v2 [cs.LG] for this version)

Submission history

From: François Charton [view email]
[v1] Fri, 3 Dec 2021 13:21:57 GMT (523kb,D)
[v2] Tue, 8 Nov 2022 12:55:43 GMT (548kb,D)

Link back to: arXiv, form interface, contact.