Can Transformers Learn to Solve Problems Recursively?
By Shizhuo Dylan Zhang, Curt Tigges, Stella Biderman, Maxim Raginsky, Talia Ringer. 2023
22 citations recorded by the source corpus.
Neural networks have in recent years shown promise for helping software engineers write programs and even formally verify them. While semantic information plays a crucial part in these processes, it remains unclear to what degree popular neural architectures like transformers are capable of modeling that information. This paper examines the behavior of neural networks learning algorithms relevant to programs and formal verification proofs through the lens of mechanistic interpretability, focusing in particular on structural recursion. Structural recursion is at the heart of tasks on which symbolic tools currently outperform neural models, like inferring semantic relations between datatypes and emulating program behavior. We evaluate the ability of transformer models to learn to emulate the behavior of structurally recursive functions from input-output examples. Our evaluation includes empirical and conceptual analyses of the limitations and capabilities of transformer models in approximating these functions, as well as reconstructions of the ``shortcut"algorithms the model learns. By reconstructing these algorithms, we are able to correctly predict 91 percent of failure cases for one of the approximated functions. Our work provides a new foundation for understanding the behavior of neural networks that fail to solve the very tasks they are trained for.
Subfields: Artificial Intelligence, Information Systems, Prompting & Reasoning
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
- Hailey Schoelkopf
- Zhangir Azerbayev
- Longo Luca
- Sean Welleck
- Stella Biderman
- Albert Qiaochu Jiang
- Stephen Marcus McAleer
- Jia Deng
In Information Systems
- Stella Biderman
- Albert Qiaochu Jiang
- Zhangir Azerbayev
- Sean Welleck
- Hailey Schoelkopf
- Stephen Marcus McAleer
- Jia Deng
- Marco Dos Santos
In Prompting & Reasoning
Citations in the corpus
- Llemma: An Open Language Model For Mathematics (2023, background): “…of strong mathematical reasoning are upstream of a number of research topics, such as reward modeling (Uesato et al., 2022; Lightman et al., 2023), reinforcement learning for reasoning (Polu et al., 2022; Lample et al., 2022), and algorithmic reasoning (Zhou et al., 2022; Zhang et al., 2023).”
- Explainable Artificial Intelligence (XAI) 2.0: A Manifesto of Open Challenges and Interdisciplinary Research Directions (2023, background): “Insights gained in this way can be useful to understand grokking mechanics (that is, a sudden spike in generalization even though the network has more parameters than training data) [131] and the ability to solve problems recursively [132].”