Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks
Not on the map. Why?
Abstract (arXiv)
Transformers trained on huge text corpora exhibit a remarkable set of capabilities, e.g., performing basic arithmetic. Given the inherent compositional nature of language, one can expect the model to learn to compose these capabilities, potentially yielding a combinatorial explosion of what operations it can perform on an input. Motivated by the above, we train autoregressive Transformer models on a synthetic data-generating process that involves compositions of a set of well-defined monolithic capabilities. Through a series of extensive and systematic experiments on this data-generating process, we show that: (1) autoregressive Transformers can learn compositional structures from small amounts of training data and generalize to exponentially or even combinatorially many functions; (2) generating intermediate outputs when composing functions is more effective for generalizing to new, unseen compositions than not generating any intermediate outputs (3) biases in the order of the compositions in the training data result in Transformers that fail to compose some combinations of functions; and (4) the attention layers select which capability to apply while the feed-forward layers execute the selected capability.
Key facts. Cited by 22 papers in the map (data through 14 Oct 2026). Builds on 83 of its 101 references that are in the map. First posted on arXiv 21 Nov 2023.
Builds on
83 of 101 references.
References · 83
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Visual Instruction Tuningcited by 7,869
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
38 more
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2021Ethical and social risks of harm from Language Modelscited by 966
- 2022In-context Learning and Induction Headscited by 964
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2021BBQ: A Hand-Built Bias Benchmark for Question Answeringcited by 701
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
- 2020Scaling Laws for Autoregressive Generative Modelingcited by 522
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 431
- 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 377
- 2022Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thoughtcited by 337
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 319
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2016Using the Output Embedding to Improve Language Modelscited by 272
- 2021Scaling Laws for Transfercited by 272
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 270
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2019Compositionality decomposed: how do neural networks generalise?cited by 265
- 2015Convergent Learning: Do different neural networks learn the same representations?cited by 220
- 2022Predictability and Surprise in Large Generative Modelscited by 210
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2021Thinking Like Transformerscited by 184
- 2023Model evaluation for extreme riskscited by 177
50 most cited of 83 All 83 (JSON)
Built on by
Citing papers per year: 2024: 6; 2025: 9; 2026: 7.
22 papers.
Sort:
By area:
- 2024What Makes and Breaks Safety Fine-tuning? A Mechanistic Studycited by 55
- 2024ICLR: In-Context Learning of Representationscited by 50
- 2024The broader spectrum of in-context learningcited by 35
- 2026There Will Be a Scientific Theory of Deep Learningcited by 29
- 2024Position: Understanding LLMs Requires More Than Statistical Generalizationcited by 21
- 2025An Analysis for Reasoning Bias of Language Models with Small Initializationcited by 13
- 2025Extrapolation by Association: Length Generalization Transfer in Transformerscited by 13
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2025From Isolation to Entanglement: When Do Interpretability Methods Identify and Disentangle Known Concepts?cited by 7
- 2024Diffusion Beats Autoregressive: An Evaluation of Compositional Generation in Text-to-Image Modelscited by 5
- 2025On the creation of narrow AI: hierarchy and nonlocality of neural network skillscited by 4
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Modelscited by 4
10 more
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignmentcited by 3
- 2024Rule Extrapolation in Language Models: A Study of Compositional Generalization on OOD Promptscited by 2
- 2025Out-of-distribution Tests Reveal Compositionality in Chess Transformerscited by 2
- 2026Explaining Grokking in Transformers through the Lens of Inductive Biascited by 2
- 2025In-Context Learning with Hypothesis-Class Guidancecited by 0
- 2026Generalization in LLM Problem Solving: The Case of the Shortest Pathcited by 0
- 2026Learning to Extrapolate to New Tasks: A Relational Approach to Task Extrapolationcited by 0
- 2026Assign and Add: A Mechanistic Study of Compositional Arithmeticcited by 0
- 2026Behaviour Is an Incomplete Measure of Reasoning Development: Cross-surface pre-arrival accessibility and the limits of developmental inference in a recurrent-depth reasonercited by 0
- 2026Generalizable Model Editing Could Be More Than Direct Generalizationcited by 0
- 2026Generalizable Model Editing Could Be More Than Direct Generalization11 Oct 2026
- 2026Behaviour Is an Incomplete Measure of Reasoning Development: Cross-surface pre-arrival accessibility and the limits of developmental inference in a recurrent-depth reasoner17 Aug 2026
- 2026Assign and Add: A Mechanistic Study of Compositional Arithmetic29 May 2026
- 2026Learning to Extrapolate to New Tasks: A Relational Approach to Task Extrapolation28 May 2026
- 2026There Will Be a Scientific Theory of Deep Learning23 Apr 2026
- 2026Generalization in LLM Problem Solving: The Case of the Shortest Path16 Apr 2026
- 2026Explaining Grokking in Transformers through the Lens of Inductive Bias6 Feb 2026
- 2025From Isolation to Entanglement: When Do Interpretability Methods Identify and Disentangle Known Concepts?17 Dec 2025
- 2025Out-of-distribution Tests Reveal Compositionality in Chess Transformers23 Oct 2025
- 2025Extrapolation by Association: Length Generalization Transfer in Transformers10 Jun 2025
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer1 Jun 2025
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Models26 May 2025
10 more
- 2025On the creation of narrow AI: hierarchy and nonlocality of neural network skills21 May 2025
- 2025In-Context Learning with Hypothesis-Class Guidance27 Feb 2025
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignment16 Feb 2025
- 2025An Analysis for Reasoning Bias of Language Models with Small Initialization5 Feb 2025
- 2024ICLR: In-Context Learning of Representations29 Dec 2024
- 2024The broader spectrum of in-context learning5 Dec 2024
- 2024Diffusion Beats Autoregressive: An Evaluation of Compositional Generation in Text-to-Image Models30 Oct 2024
- 2024Rule Extrapolation in Language Models: A Study of Compositional Generalization on OOD Prompts9 Sep 2024
- 2024What Makes and Breaks Safety Fine-tuning? A Mechanistic Study14 Jul 2024
- 2024Position: Understanding LLMs Requires More Than Statistical Generalization3 May 2024
- 2025An Analysis for Reasoning Bias of Language Models with Small Initializationcited by 13
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Modelscited by 4
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer1 Jun 2025
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Models26 May 2025
- 2025An Analysis for Reasoning Bias of Language Models with Small Initialization5 Feb 2025
- 2024ICLR: In-Context Learning of Representationscited by 50
- 2024The broader spectrum of in-context learningcited by 35
- 2026There Will Be a Scientific Theory of Deep Learningcited by 29
- 2024Position: Understanding LLMs Requires More Than Statistical Generalizationcited by 21
- 2025Extrapolation by Association: Length Generalization Transfer in Transformerscited by 13
- 2025From Isolation to Entanglement: When Do Interpretability Methods Identify and Disentangle Known Concepts?cited by 7
- 2025On the creation of narrow AI: hierarchy and nonlocality of neural network skillscited by 4
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignmentcited by 3
- 2024Rule Extrapolation in Language Models: A Study of Compositional Generalization on OOD Promptscited by 2
- 2025Out-of-distribution Tests Reveal Compositionality in Chess Transformerscited by 2
- 2026Explaining Grokking in Transformers through the Lens of Inductive Biascited by 2
- 2025In-Context Learning with Hypothesis-Class Guidancecited by 0
12 most cited of 17 All 17 (JSON)
- 2026Generalizable Model Editing Could Be More Than Direct Generalization11 Oct 2026
- 2026Behaviour Is an Incomplete Measure of Reasoning Development: Cross-surface pre-arrival accessibility and the limits of developmental inference in a recurrent-depth reasoner17 Aug 2026
- 2026Assign and Add: A Mechanistic Study of Compositional Arithmetic29 May 2026
- 2026Learning to Extrapolate to New Tasks: A Relational Approach to Task Extrapolation28 May 2026
- 2026There Will Be a Scientific Theory of Deep Learning23 Apr 2026
- 2026Generalization in LLM Problem Solving: The Case of the Shortest Path16 Apr 2026
- 2026Explaining Grokking in Transformers through the Lens of Inductive Bias6 Feb 2026
- 2025From Isolation to Entanglement: When Do Interpretability Methods Identify and Disentangle Known Concepts?17 Dec 2025
- 2025Out-of-distribution Tests Reveal Compositionality in Chess Transformers23 Oct 2025
- 2025Extrapolation by Association: Length Generalization Transfer in Transformers10 Jun 2025
- 2025On the creation of narrow AI: hierarchy and nonlocality of neural network skills21 May 2025
- 2025In-Context Learning with Hypothesis-Class Guidance27 Feb 2025
12 newest of 17 All 17 (JSON)