Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalability
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
38 more
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2023LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attentioncited by 776
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2022Towards Reasoning in Large Language Models: A Surveycited by 593
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
- 2023Larger language models do in-context learning differentlycited by 386
- 2023Trained Transformers Learn Linear Models In-Contextcited by 331
- 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 317
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
- 2021Meta-learning via Language Model In-context Tuningcited by 163
- 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
- 2023Compositional Exemplars for In-context Learningcited by 143
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
- 2023Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learningcited by 115
- 2023A Theory for Emergence of Complex Skills in Language Modelscited by 111
- 2024Is A Picture Worth A Thousand Words? Delving Into Spatial Reasoning for Vision Language Modelscited by 111
- 2023The Expressive Power of Low-Rank Adaptationcited by 100
- 2023Symbol tuning improves in-context learning in language modelscited by 72
- 2023How Do In-Context Examples Affect Compositional Generalization?cited by 51
50 most cited of 65 All 65 (JSON)
Built on by
Citing papers per year: 2024: 10; 2025: 20; 2026: 9.
39 papers.
Sort:
By area:
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
- 2024Circuit Complexity Bounds for RoPE-based Transformer Architecturecited by 26
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
- 2026Large Language Model Reasoning Failurescited by 20
- 2024Looped ReLU MLPs May Be All You Need as Practical Programmable Computerscited by 19
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformerscited by 12
- 2025Learning to Inference Adaptively for Multimodal Large Language Modelscited by 12
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
- 2025Task Generalization With AutoRegressive Compositional Structure: Can Learning From D Tasks Generalize to DT Tasks?cited by 11
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 9
27 more
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Taskscited by 8
- 2025Systematic Characterization of LLM Quantization: A Performance, Energy, and Quality Perspectivecited by 8
- 2025Scaling can lead to compositional generalizationcited by 7
- 2025The Thin Line Between Comprehension and Persuasion in LLMscited by 5
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Modelscited by 4
- 2026Skill Neologisms: Towards Skill-based Continual Learningcited by 4
- 2024Compositional Hardness of Code in Large Language Models -- A Probabilistic Perspectivecited by 3
- 2024VersaTune: An Efficient Data Composition Framework for Training Multi-Capability LLMscited by 3
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 3
- 2025Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data?cited by 3
- 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?cited by 3
- 2025On the Limitations of Steering in Language Model Alignmentcited by 3
- 2025AgentCoMa: A Compositional Benchmark Mixing Commonsense and Mathematical Reasoning in Real-World Scenarioscited by 3
- 2024Differentially Private Kernel Density Estimationcited by 2
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiencycited by 2
- 2026Modularity is the Bedrock of Natural and Artificial Intelligencecited by 2
- 2025Think Broad, Act Narrow: CWE Identification with Multi-Agent Large Language Modelscited by 1
- 2025DecompSR: A dataset for decomposed analyses of compositional multihop spatial reasoningcited by 1
- 2026Learning to Edit Knowledge via Instruction-based Chain-of-Thought Promptingcited by 1
- 2026GlossoGen: Emergent Language in Complex Multi-Agent LLM Interactionscited by 1
- 2025Can AI Master Econometrics? Evidence from Econometrics AI Agent on Expert-Level Taskscited by 0
- 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalizationcited by 0
- 2025Can Language Models Compose Skills In-Context?cited by 0
- 2026Evaluating Adjective-Noun Compositionality in LLMs: Functional vs Representational Perspectivescited by 0
- 2026Generalization in LLM Problem Solving: The Case of the Shortest Pathcited by 0
- 2026Separable Pathways for Causal Reasoning: How Architectural Scaffolding Enables Hypothesis-Space Restructuring in LLM Agentscited by 0
- 2026Multi-Hop Knowledge Composition is Bound by Pretraining Exposurecited by 0
- 2026GlossoGen: Emergent Language in Complex Multi-Agent LLM Interactions1 Sep 2026
- 2026Multi-Hop Knowledge Composition is Bound by Pretraining Exposure8 Jun 2026
- 2026Skill Neologisms: Towards Skill-based Continual Learning6 May 2026
- 2026Separable Pathways for Causal Reasoning: How Architectural Scaffolding Enables Hypothesis-Space Restructuring in LLM Agents21 Apr 2026
- 2026Generalization in LLM Problem Solving: The Case of the Shortest Path16 Apr 2026
- 2026Learning to Edit Knowledge via Instruction-based Chain-of-Thought Prompting7 Apr 2026
- 2026Modularity is the Bedrock of Natural and Artificial Intelligence21 Feb 2026
- 2026Evaluating Adjective-Noun Compositionality in LLMs: Functional vs Representational Perspectives14 Feb 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 2025DecompSR: A dataset for decomposed analyses of compositional multihop spatial reasoning4 Nov 2025
- 2025Can Language Models Compose Skills In-Context?27 Oct 2025
- 2025AgentCoMa: A Compositional Benchmark Mixing Commonsense and Mathematical Reasoning in Real-World Scenarios27 Aug 2025
27 more
- 2025Systematic Characterization of LLM Quantization: A Performance, Energy, and Quality Perspective22 Aug 2025
- 2025Think Broad, Act Narrow: CWE Identification with Multi-Agent Large Language Models2 Aug 2025
- 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalization25 Jul 2025
- 2025Scaling can lead to compositional generalization9 Jul 2025
- 2025The Thin Line Between Comprehension and Persuasion in LLMs2 Jul 2025
- 2025Can AI Master Econometrics? Evidence from Econometrics AI Agent on Expert-Level Tasks1 Jun 2025
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Models26 May 2025
- 2025On the Limitations of Steering in Language Model Alignment2 May 2025
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiency18 Mar 2025
- 2025Learning to Inference Adaptively for Multimodal Large Language Models13 Mar 2025
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flows12 Mar 2025
- 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?24 Feb 2025
- 2025Task Generalization With AutoRegressive Compositional Structure: Can Learning From D Tasks Generalize to DT Tasks?13 Feb 2025
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolation1 Feb 2025
- 2025Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data?27 Jan 2025
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformers18 Jan 2025
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks11 Jan 2025
- 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformers23 Dec 2024
- 2024VersaTune: An Efficient Data Composition Framework for Training Multi-Capability LLMs18 Nov 2024
- 2024Circuit Complexity Bounds for RoPE-based Transformer Architecture12 Nov 2024
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descent15 Oct 2024
- 2024HSR-Enhanced Sparse Attention Acceleration14 Oct 2024
- 2024Looped ReLU MLPs May Be All You Need as Practical Programmable Computers12 Oct 2024
- 2024Compositional Hardness of Code in Large Language Models -- A Probabilistic Perspective26 Sep 2024
- 2024Differentially Private Kernel Density Estimation3 Sep 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformers18 Aug 2024
- 2026Large Language Model Reasoning Failurescited by 20
- 2025Learning to Inference Adaptively for Multimodal Large Language Modelscited by 12
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Taskscited by 8
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Modelscited by 4
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 3
- 2025AgentCoMa: A Compositional Benchmark Mixing Commonsense and Mathematical Reasoning in Real-World Scenarioscited by 3
- 2025Think Broad, Act Narrow: CWE Identification with Multi-Agent Large Language Modelscited by 1
- 2025DecompSR: A dataset for decomposed analyses of compositional multihop spatial reasoningcited by 1
- 2026Learning to Edit Knowledge via Instruction-based Chain-of-Thought Promptingcited by 1
- 2026Separable Pathways for Causal Reasoning: How Architectural Scaffolding Enables Hypothesis-Space Restructuring in LLM Agentscited by 0
- 2026Multi-Hop Knowledge Composition is Bound by Pretraining Exposurecited by 0
- 2026Multi-Hop Knowledge Composition is Bound by Pretraining Exposure8 Jun 2026
- 2026Separable Pathways for Causal Reasoning: How Architectural Scaffolding Enables Hypothesis-Space Restructuring in LLM Agents21 Apr 2026
- 2026Learning to Edit Knowledge via Instruction-based Chain-of-Thought Prompting7 Apr 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 2025DecompSR: A dataset for decomposed analyses of compositional multihop spatial reasoning4 Nov 2025
- 2025AgentCoMa: A Compositional Benchmark Mixing Commonsense and Mathematical Reasoning in Real-World Scenarios27 Aug 2025
- 2025Think Broad, Act Narrow: CWE Identification with Multi-Agent Large Language Models2 Aug 2025
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Models26 May 2025
- 2025Learning to Inference Adaptively for Multimodal Large Language Models13 Mar 2025
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformers18 Jan 2025
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks11 Jan 2025
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 9
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiencycited by 2
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiency18 Mar 2025
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flows12 Mar 2025
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolation1 Feb 2025
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
- 2024Circuit Complexity Bounds for RoPE-based Transformer Architecturecited by 26
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
- 2024Looped ReLU MLPs May Be All You Need as Practical Programmable Computerscited by 19
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformerscited by 12
- 2025Task Generalization With AutoRegressive Compositional Structure: Can Learning From D Tasks Generalize to DT Tasks?cited by 11
- 2025Systematic Characterization of LLM Quantization: A Performance, Energy, and Quality Perspectivecited by 8
- 2025Scaling can lead to compositional generalizationcited by 7
- 2025The Thin Line Between Comprehension and Persuasion in LLMscited by 5
- 2026Skill Neologisms: Towards Skill-based Continual Learningcited by 4
12 most cited of 22 All 22 (JSON)
- 2026Skill Neologisms: Towards Skill-based Continual Learning6 May 2026
- 2026Generalization in LLM Problem Solving: The Case of the Shortest Path16 Apr 2026
- 2026Modularity is the Bedrock of Natural and Artificial Intelligence21 Feb 2026
- 2026Evaluating Adjective-Noun Compositionality in LLMs: Functional vs Representational Perspectives14 Feb 2026
- 2025Can Language Models Compose Skills In-Context?27 Oct 2025
- 2025Systematic Characterization of LLM Quantization: A Performance, Energy, and Quality Perspective22 Aug 2025
- 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalization25 Jul 2025
- 2025Scaling can lead to compositional generalization9 Jul 2025
- 2025The Thin Line Between Comprehension and Persuasion in LLMs2 Jul 2025
- 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?24 Feb 2025
- 2025Task Generalization With AutoRegressive Compositional Structure: Can Learning From D Tasks Generalize to DT Tasks?13 Feb 2025
- 2025Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data?27 Jan 2025
12 newest of 22 All 22 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models
- 2025A Survey of Scaling in Large Language Model Reasoning
- 2025Reasoning Capabilities and Invariability of Large Language Models
- 2025Unveiling the Compositional Ability Gap in Vision-Language Reasoning Model
- 2023Specializing Smaller Language Models towards Multi-Step Reasoning
- 2025A Survey on Large Language Models with some Insights on their Capabilities and Limitations
- 2025CryptoX : Compositional Reasoning Evaluation of Large Language Models
- 2025Towards Reasoning Ability of Small Language Models