mlsanityData to 7 Oct 2026

Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalability

arXiv 2407.15720 ↗First posted 22 Jul 2024cs.CL cs.AI cs.LGcited by 39

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have emerged as powerful tools for many AI problems and exhibit remarkable in-context learning (ICL) capabilities. Compositional ability, solving unseen complex tasks that combine two or more simple tasks, is an essential reasoning ability for Artificial General Intelligence. Despite the tremendous success of LLMs, how they approach composite tasks, especially those not encountered during the pretraining phase, remains an open and largely underexplored question. In this study, we delve into the ICL capabilities of LLMs on composite tasks, with only simple tasks as in-context examples. We develop a test suite of composite tasks including linguistic and logical challenges and perform empirical studies across different LLM families. We observe that models exhibit divergent behaviors: (1) For simpler composite tasks that apply distinct mapping mechanisms to different input segments, the models demonstrate decent compositional ability, while scaling up the model enhances this ability; (2) for more complex composite tasks involving reasoning multiple steps, where each step represents one task, models typically underperform, and scaling up generally provides no improvements. We offer theoretical analysis in a simplified setting, explaining that models exhibit compositional capability when the task handles different input parts separately. We believe our work sheds new light on the capabilities of LLMs in solving composite tasks regarding the nature of the tasks and model scale. Our dataset and code are available at urlhttps://github.com/OliverXUZY/LLMCompose.

Key facts. Cited by 39 papers in the map (data through 7 Oct 2026). Builds on 65 of its 77 references that are in the map. First posted on arXiv 22 Jul 2024.

Builds on

65 of 77 references.

References · 65

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2022Training language models to follow instructions with human feedbackcited by 15,712
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  7. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  8. 2020Scaling Laws for Neural Language Modelscited by 6,411
  9. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  10. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  11. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  12. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
38 more
  1. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  2. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  3. 2022Emergent Abilities of Large Language Modelscited by 2,483
  4. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  5. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  6. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  7. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  8. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  9. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  10. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  11. 2023LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attentioncited by 776
  12. 2022Transformers learn in-context by gradient descentcited by 714
  13. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  14. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
  15. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  16. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  17. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  18. 2022Towards Reasoning in Large Language Models: A Surveycited by 593
  19. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
  20. 2021MetaICL: Learning to Learn In Contextcited by 450
  21. 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
  22. 2023Larger language models do in-context learning differentlycited by 386
  23. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  24. 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 317
  25. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  26. 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
  27. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
  28. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
  29. 2021Meta-learning via Language Model In-context Tuningcited by 163
  30. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  31. 2023Compositional Exemplars for In-context Learningcited by 143
  32. 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
  33. 2023Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learningcited by 115
  34. 2023A Theory for Emergence of Complex Skills in Language Modelscited by 111
  35. 2024Is A Picture Worth A Thousand Words? Delving Into Spatial Reasoning for Vision Language Modelscited by 111
  36. 2023The Expressive Power of Low-Rank Adaptationcited by 100
  37. 2023Symbol tuning improves in-context learning in language modelscited by 72
  38. 2023How Do In-Context Examples Affect Compositional Generalization?cited by 51

50 most cited of 65 All 65 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 10; 2025: 20; 2026: 9.

39 papers.

Sort:

By area:

  1. 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
  2. 2024Circuit Complexity Bounds for RoPE-based Transformer Architecturecited by 26
  3. 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
  4. 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
  5. 2026Large Language Model Reasoning Failurescited by 20
  6. 2024Looped ReLU MLPs May Be All You Need as Practical Programmable Computerscited by 19
  7. 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
  8. 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformerscited by 12
  9. 2025Learning to Inference Adaptively for Multimodal Large Language Modelscited by 12
  10. 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
  11. 2025Task Generalization With AutoRegressive Compositional Structure: Can Learning From D Tasks Generalize to DT Tasks?cited by 11
  12. 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 9
27 more
  1. 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Taskscited by 8
  2. 2025Systematic Characterization of LLM Quantization: A Performance, Energy, and Quality Perspectivecited by 8
  3. 2025Scaling can lead to compositional generalizationcited by 7
  4. 2025The Thin Line Between Comprehension and Persuasion in LLMscited by 5
  5. 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Modelscited by 4
  6. 2026Skill Neologisms: Towards Skill-based Continual Learningcited by 4
  7. 2024Compositional Hardness of Code in Large Language Models -- A Probabilistic Perspectivecited by 3
  8. 2024VersaTune: An Efficient Data Composition Framework for Training Multi-Capability LLMscited by 3
  9. 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 3
  10. 2025Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data?cited by 3
  11. 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?cited by 3
  12. 2025On the Limitations of Steering in Language Model Alignmentcited by 3
  13. 2025AgentCoMa: A Compositional Benchmark Mixing Commonsense and Mathematical Reasoning in Real-World Scenarioscited by 3
  14. 2024Differentially Private Kernel Density Estimationcited by 2
  15. 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiencycited by 2
  16. 2026Modularity is the Bedrock of Natural and Artificial Intelligencecited by 2
  17. 2025Think Broad, Act Narrow: CWE Identification with Multi-Agent Large Language Modelscited by 1
  18. 2025DecompSR: A dataset for decomposed analyses of compositional multihop spatial reasoningcited by 1
  19. 2026Learning to Edit Knowledge via Instruction-based Chain-of-Thought Promptingcited by 1
  20. 2026GlossoGen: Emergent Language in Complex Multi-Agent LLM Interactionscited by 1
  21. 2025Can AI Master Econometrics? Evidence from Econometrics AI Agent on Expert-Level Taskscited by 0
  22. 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalizationcited by 0
  23. 2025Can Language Models Compose Skills In-Context?cited by 0
  24. 2026Evaluating Adjective-Noun Compositionality in LLMs: Functional vs Representational Perspectivescited by 0
  25. 2026Generalization in LLM Problem Solving: The Case of the Shortest Pathcited by 0
  26. 2026Separable Pathways for Causal Reasoning: How Architectural Scaffolding Enables Hypothesis-Space Restructuring in LLM Agentscited by 0
  27. 2026Multi-Hop Knowledge Composition is Bound by Pretraining Exposurecited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models
  2. 2025A Survey of Scaling in Large Language Model Reasoning
  3. 2025Reasoning Capabilities and Invariability of Large Language Models
  4. 2025Unveiling the Compositional Ability Gap in Vision-Language Reasoning Model
  5. 2023Specializing Smaller Language Models towards Multi-Step Reasoning
  6. 2025A Survey on Large Language Models with some Insights on their Capabilities and Limitations
  7. 2025CryptoX : Compositional Reasoning Evaluation of Large Language Models
  8. 2025Towards Reasoning Ability of Small Language Models