Can Language Models Compose Skills In-Context?
Not on the map. Why?
Abstract (arXiv)
Composing basic skills from simple tasks to accomplish composite tasks is crucial for modern intelligent systems. We investigate the in-context composition ability of language models to perform composite tasks that combine basic skills demonstrated in in-context examples. This is more challenging than the standard setting, where skills and their composition can be learned in training. We conduct systematic experiments on various representative open-source language models, utilizing linguistic and logical tasks designed to probe composition abilities. The results reveal that simple task examples can have a surprising negative impact on the performance, because the models generally struggle to recognize and assemble the skills correctly, even with Chain-of-Thought examples. Theoretical analysis further shows that it is crucial to align examples with the corresponding steps in the composition. This inspires a method for the probing tasks, whose improved performance provides positive support for our insights.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 74 of its 82 references that are in the map. First posted on arXiv 27 Oct 2025.
Builds on
74 of 82 references.
References · 74
- 2017Attention Is All You Needcited by 59,932
- 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
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
38 more
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 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
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 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
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 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
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2022Towards Reasoning in Large Language Models: A Surveycited by 593
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
- 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
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
- 2022Making Large Language Models Better Reasoners with Step-Aware Verifiercited by 231
- 2023Looped Transformers as Programmable Computerscited by 224
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
50 most cited of 74 All 74 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models
- 2022Define, Evaluate, and Improve Task-Oriented Cognitive Capabilities for Instruction Generation Models
- 2023How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Composition
- 2024Revisiting the Superficial Alignment Hypothesis
- 2023In-context Learning Generalizes, But Not Always Robustly: The Case of Syntax
- 2025Multimodal LLMs Do Not Compose Skills Optimally Across Modalities
- 2023Did You Read the Instructions? Rethinking the Effectiveness of Task Definitions in Instruction Learning
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale