mlsanityData to 7 Oct 2026

Limits of Transformer Language Models on Learning to Compose Algorithms

arXiv 2402.05785 ↗First posted 8 Feb 2024cs.LG cs.AI cs.CLcited by 13

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 43 of its 64 references that are in the map. First posted on arXiv 8 Feb 2024.

Builds on

43 of 64 references.

References · 43

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  5. 2020Scaling Laws for Neural Language Modelscited by 6,411
  6. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  7. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  8. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  9. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  10. 2018Universal Transformerscited by 613
  11. 2019Deep Equilibrium Modelscited by 603
  12. 2022Winoground: Probing Vision and Language Models for Visio-Linguistic Compositionalitycited by 523
31 more
  1. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
  2. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
  3. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
  4. 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
  5. 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
  6. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
  7. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  8. 2022Transformers Learn Shortcuts to Automatacited by 260
  9. 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
  10. 2022Neural Networks and the Chomsky Hierarchycited by 214
  11. 2021Thinking Like Transformerscited by 182
  12. 2023Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verificationcited by 166
  13. 2021PonderNet: Learning to Pondercited by 156
  14. 2023Can Large Language Models Infer Causation from Correlation?cited by 142
  15. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  16. 2023Large Language Models as Analogical Reasonerscited by 107
  17. 2023The ConceptARC Benchmark: Evaluating Understanding and Generalization in the ARC Domaincited by 97
  18. 2022Compositional Semantic Parsing with Large Language Modelscited by 95
  19. 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinementcited by 89
  20. 2023Call for Papers -- The BabyLM Challenge: Sample-efficient pretraining on a developmentally plausible corpuscited by 62
  21. 2023Understanding Causality with Large Language Models: Feasibility and Opportunitiescited by 53
  22. 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Modelscited by 33
  23. 2021Pointer Value Retrieval: A new benchmark for understanding the limits of neural network generalizationcited by 29
  24. 2018Complexity of Training ReLU Neural Networkcited by 23
  25. 2014Edit Distance Cannot Be Computed in Strongly Subquadratic Time (unless SETH is false)cited by 18
  26. 2023Abstract Visual Reasoning Enabled by Languagecited by 15
  27. 2021Compositional Processing Emerges in Neural Networks Solving Math Problemscited by 11
  28. 2023Abductive Commonsense Reasoning Exploiting Mutually Exclusive Explanationscited by 11
  29. 2024Probabilistic Abduction for Visual Abstract Reasoning via Learning Rules in Vector-symbolic Architecturescited by 9
  30. 2023Adaptivity and Modularity for Efficient Generalization Over Task Complexitycited by 7
  31. 2022BigBraveBN: algorithm of structural learning for bayesian networks with a large number of nodescited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 9; 2026: 2.

13 papers.

Sort:

By area: