mlsanityData to 7 Oct 2026

Can Language Models Compose Skills In-Context?

arXiv 2510.22993 ↗First posted 27 Oct 2025cs.LG cs.CLcited by 0

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2024The Llama 3 Herd of Modelscited by 14,192
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  8. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  9. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  10. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  11. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  12. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
38 more
  1. 2024Qwen2.5 Technical Reportcited by 4,713
  2. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  4. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  5. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  6. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
  7. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  8. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  9. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  10. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  11. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  12. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  13. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  14. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  15. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  16. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  17. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  18. 2022Transformers learn in-context by gradient descentcited by 714
  19. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  20. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
  21. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
  22. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  23. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  24. 2022Towards Reasoning in Large Language Models: A Surveycited by 593
  25. 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
  26. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
  27. 2021MetaICL: Learning to Learn In Contextcited by 450
  28. 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
  29. 2023Larger language models do in-context learning differentlycited by 386
  30. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  31. 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
  32. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  33. 2022Transformers Learn Shortcuts to Automatacited by 260
  34. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
  35. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
  36. 2022Making Large Language Models Better Reasoners with Step-Aware Verifiercited by 231
  37. 2023Looped Transformers as Programmable Computerscited by 224
  38. 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

  1. 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models
  2. 2022Define, Evaluate, and Improve Task-Oriented Cognitive Capabilities for Instruction Generation Models
  3. 2023How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Composition
  4. 2024Revisiting the Superficial Alignment Hypothesis
  5. 2023In-context Learning Generalizes, But Not Always Robustly: The Case of Syntax
  6. 2025Multimodal LLMs Do Not Compose Skills Optimally Across Modalities
  7. 2023Did You Read the Instructions? Rethinking the Effectiveness of Task Definitions in Instruction Learning
  8. 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale