arXiv · 2211.00170
What is my math transformer doing? -- Three results on interpretability and generalization
Abstract
This paper investigates the failure cases and out-of-distribution behavior of transformers trained on matrix inversion and eigenvalue decomposition. I show that incorrect model predictions still retain deep mathematical properties of the solution (e.g. correct eigenvalues, unit norm of eigenvectors), and that almost all model failures can be attributed to, and predicted from, properties of the problem or solution. This demonstrates that, when in doubt, math transformers do not hallucinate absurd solutions (as was sometimes proposed) but remain ``roughly right''. I also show that the careful choice of a training dataset can accelerate training, while allowing the model to generalize out of its training distribution, invalidating the idea that transformers ``merely interpolate'' from memorized examples.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
François Charton. 2022-10-31. What is my math transformer doing? -- Three results on interpretability and generalization. https://arxiv.org/abs/2211.00170
Cite the original work for its findings. Save a collection to share your selection of sources.