{"_id":"j9KSGjoeF3YtLdKSw","bibbaseid":"zhang-tigges-biderman-raginsky-ringer-cantransformerslearntosolveproblemsrecursively-2023","author_short":["Zhang, S. D.","Tigges, C.","Biderman, S.","Raginsky, M.","Ringer, T."],"bibdata":{"bibtype":"misc","type":"misc","abstract":"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.","added-at":"2023-08-30T10:25:43.000+0200","author":[{"propositions":[],"lastnames":["Zhang"],"firstnames":["Shizhuo","Dylan"],"suffixes":[]},{"propositions":[],"lastnames":["Tigges"],"firstnames":["Curt"],"suffixes":[]},{"propositions":[],"lastnames":["Biderman"],"firstnames":["Stella"],"suffixes":[]},{"propositions":[],"lastnames":["Raginsky"],"firstnames":["Maxim"],"suffixes":[]},{"propositions":[],"lastnames":["Ringer"],"firstnames":["Talia"],"suffixes":[]}],"biburl":"https://www.bibsonomy.org/bibtex/2383453582ea6a53841d99cf52582cdc4/tabularii","description":"Can Transformers Learn to Solve Problems Recursively?","interhash":"76e97b6aa2864e010d417317a8382f0f","intrahash":"383453582ea6a53841d99cf52582cdc4","keywords":"transformers state-space-models ai self-promotion llm recursion computation programming","note":"cite arxiv:2305.14699","timestamp":"2023-10-01T12:47:45.000+0200","title":"Can Transformers Learn to Solve Problems Recursively?","url":"http://arxiv.org/abs/2305.14699","year":"2023","bibtex":"@misc{zhang2023transformers,\n abstract = {Neural networks have in recent years shown promise for helping software\r\nengineers write programs and even formally verify them. While semantic\r\ninformation plays a crucial part in these processes, it remains unclear to what\r\ndegree popular neural architectures like transformers are capable of modeling\r\nthat information. This paper examines the behavior of neural networks learning\r\nalgorithms relevant to programs and formal verification proofs through the lens\r\nof mechanistic interpretability, focusing in particular on structural\r\nrecursion. Structural recursion is at the heart of tasks on which symbolic\r\ntools currently outperform neural models, like inferring semantic relations\r\nbetween datatypes and emulating program behavior. We evaluate the ability of\r\ntransformer models to learn to emulate the behavior of structurally recursive\r\nfunctions from input-output examples. Our evaluation includes empirical and\r\nconceptual analyses of the limitations and capabilities of transformer models\r\nin approximating these functions, as well as reconstructions of the ``shortcut\"\r\nalgorithms the model learns. By reconstructing these algorithms, we are able to\r\ncorrectly predict 91 percent of failure cases for one of the approximated\r\nfunctions. Our work provides a new foundation for understanding the behavior of\r\nneural networks that fail to solve the very tasks they are trained for.},\n added-at = {2023-08-30T10:25:43.000+0200},\n author = {Zhang, Shizhuo Dylan and Tigges, Curt and Biderman, Stella and Raginsky, Maxim and Ringer, Talia},\n biburl = {https://www.bibsonomy.org/bibtex/2383453582ea6a53841d99cf52582cdc4/tabularii},\n description = {Can Transformers Learn to Solve Problems Recursively?},\n interhash = {76e97b6aa2864e010d417317a8382f0f},\n intrahash = {383453582ea6a53841d99cf52582cdc4},\n keywords = {transformers state-space-models ai self-promotion llm recursion computation programming},\n note = {cite arxiv:2305.14699},\n timestamp = {2023-10-01T12:47:45.000+0200},\n title = {Can Transformers Learn to Solve Problems Recursively?},\n url = {http://arxiv.org/abs/2305.14699},\n year = 2023\n}\n\n","author_short":["Zhang, S. D.","Tigges, C.","Biderman, S.","Raginsky, M.","Ringer, T."],"key":"zhang2023transformers","id":"zhang2023transformers","bibbaseid":"zhang-tigges-biderman-raginsky-ringer-cantransformerslearntosolveproblemsrecursively-2023","role":"author","urls":{"Paper":"http://arxiv.org/abs/2305.14699"},"keyword":["transformers state-space-models ai self-promotion llm recursion computation programming"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"misc","biburl":"http://www.bibsonomy.org/bib/author/zhang?items=1000","dataSources":["6yXn8CtuzyEbCSr2m"],"keywords":["transformers state-space-models ai self-promotion llm recursion computation programming"],"search_terms":["transformers","learn","solve","problems","recursively","zhang","tigges","biderman","raginsky","ringer"],"title":"Can Transformers Learn to Solve Problems Recursively?","year":2023}