Limits of Transformer Language Models on Learning to Compose Algorithms
Jonathan Thomm, Giacomo Camposampiero, Aleksandar Terzic, Michael Hersche, Bernhard Schölkopf, Abbas Rahimi
摘要
We analyze the capabilities of Transformer language models in learning compositional discrete tasks. To this end, we evaluate training LLaMA models and prompting GPT-4 and Gemini on four tasks demanding to learn a composition of several discrete sub-tasks. In particular, we measure how well these models can reuse primitives observable in the sub-tasks to learn the composition task. Our results indicate that compositional learning in state-of-the-art Transformer language models is highly sample inefficient: LLaMA requires more data samples than relearning all sub-tasks from scratch to learn the compositional task; in-context prompting with few samples is unreliable and fails at executing the sub-tasks or correcting the errors in multi-round code generation. Further, by leveraging complexity theory, we support these findings with a theoretical analysis focused on the sample inefficiency of gradient descent in memorizing feedforward models. We open source our code at https://github.com/IBM/limitations-lm-algorithmic-compositional-learning.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Models 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Lost in Transmission: When and Why LLMs Fail to Reason Globally 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Lost in Transmission: When and Why LLMs Fail to Reason Globally 引用了 Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
- Lost in Transmission: When and Why LLMs Fail to Reason Globally 引用了 Faith and Fate: Limits of Transformers on Compositionality
- Compositional-ARC: Assessing Systematic Generalization in Abstract Spatial Reasoning 引用了 Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
- Compositional-ARC: Assessing Systematic Generalization in Abstract Spatial Reasoning 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Compositional-ARC: Assessing Systematic Generalization in Abstract Spatial Reasoning 引用了 Faith and Fate: Limits of Transformers on Compositionality
- Continuous Chain of Thought Enables Parallel Exploration and Reasoning 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Continuous Chain of Thought Enables Parallel Exploration and Reasoning 引用了 Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
- Continuous Chain of Thought Enables Parallel Exploration and Reasoning 引用了 Faith and Fate: Limits of Transformers on Compositionality
- Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Faith and Fate: Limits of Transformers on Compositionality 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
引用它的顶会 Paper6
- Continuous Chain of Thought Enables Parallel Exploration and ReasoningHalil Alperen Gozeten, Muhammed Emrullah Ildiz, Xuechen Zhang, Hrayr Harutyunyan 等ICLR 2026 · 40 次引用
- Lost in Transmission: When and Why LLMs Fail to Reason GloballyTobias Schnabel, Kiran Tomlinson, Adith Swaminathan, Jennifer NevilleNeurIPS 2025 · 9 次引用
- Behavioural vs. Representational Systematicity in End-to-End Models: An Opinionated SurveyIvan Vegner, Sydelle de Souza, Valentin Forch, Martha Lewis 等ACL 2025 · 3 次引用
- Compositional-ARC: Assessing Systematic Generalization in Abstract Spatial ReasoningPhilipp Mondorf, Shijia Zhou, Monica Riedler, Barbara PlankICLR 2026 · 3 次引用
- Scalable Evaluation and Neural Models for Compositional GeneralizationGiacomo Camposampiero, Pietro Barbiero, Michael Hersche, Roger Wattenhofer 等NeurIPS 2025 · 3 次引用
它引用的 Paper22
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
- Faith and Fate: Limits of Transformers on CompositionalityNouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li 等NeurIPS 2023 · 728 次引用
- Towards Revealing the Mystery behind Chain of Thought: A Theoretical PerspectiveGuhao Feng, Bohang Zhang, Yuntian Gu, Haotian Ye 等NeurIPS 2023 · 470 次引用
- Measuring Compositional Generalization: A Comprehensive Method on Realistic DataDaniel Keysers, Nathanael Schärli, Nathan Scales, Hylke Buisman 等ICLR 2020 · 401 次引用
- Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language ModelsKushal Tirumala, Aram H. Markosyan, Luke Zettlemoyer, Armen AghajanyanNeurIPS 2022 · 304 次引用
相关 Paper
- Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete FunctionsSatwik Bhattamishra, Arkil Patel, Phil Blunsom, Varun KanadeICLR 2024 · 77 次引用
- ExeDec: Execution Decomposition for Compositional Generalization in Neural Program SynthesisKensen Shi, Joey Hong, Yinlin Deng, Pengcheng Yin 等ICLR 2024 · 21 次引用
- What Makes Large Language Models Reason in (Multi-Turn) Code Generation?Kunhao Zheng, Juliette Decugis, Jonas Gehring, Taco Cohen 等ICLR 2025
- Better & Faster Large Language Models via Multi-token PredictionFabian Gloeckle, Badr Youbi Idrissi, Baptiste Rozière, David Lopez-Paz 等ICML 2024 · 286 次引用
- Understanding the Generalization of In-Context Learning in Transformers: An Empirical StudyXingxuan Zhang, Haoran Wang, Jiansheng Li, Yuan Xue 等ICLR 2025
