Rule Extrapolation in Language Models: A Study of Compositional Generalization on OOD Prompts
Not on the map. Why?
Abstract (arXiv)
LLMs show remarkable emergent abilities, such as inferring concepts from presumably out-of-distribution prompts, known as in-context learning. Though this success is often attributed to the Transformer architecture, our systematic understanding is limited. In complex real-world data sets, even defining what is out-of-distribution is not obvious. To better understand the OOD behaviour of autoregressive LLMs, we focus on formal languages, which are defined by the intersection of rules. We define a new scenario of OOD compositional generalization, termed rule extrapolation. Rule extrapolation describes OOD scenarios, where the prompt violates at least one rule. We evaluate rule extrapolation in formal languages with varying complexity in linear and recurrent architectures, the Transformer, and state space models to understand the architectures' influence on rule extrapolation. We also lay the first stones of a normative theory of rule extrapolation, inspired by the Solomonoff prior in algorithmic information theory.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 32 of its 46 references that are in the map. First posted on arXiv 9 Sep 2024.
Builds on
32 of 46 references.
References · 32
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 533
- 2024xLSTM: Extended Long Short-Term Memorycited by 327
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2022Neural Networks and the Chomsky Hierarchycited by 217
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2018Deep learning generalizes because the parameter-function map is biased towards simple functionscited by 183
- 2024Improving Dictionary Learning with Gated Sparse Autoencoderscited by 179
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 139
- 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 124
20 more
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 117
- 2020Tighter risk certificates for neural networkscited by 112
- 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 84
- 2023Testing the General Deductive Reasoning Capacity of Large Language Models Using OOD Examplescited by 84
- 2020Does syntax need to grow on trees? Sources of hierarchical inductive bias in sequence-to-sequence networkscited by 72
- 2023The No Free Lunch Theorem, Kolmogorov Complexity, and the Role of Inductive Biases in Machine Learningcited by 63
- 2021Visual Representation Learning Does Not Generalize Strongly Within the Same Domaincited by 61
- 2023Additive Decoders for Latent Variables Identification and Cartesian-Product Extrapolationcited by 58
- 2023Grokking of Hierarchical Structure in Vanilla Transformerscited by 53
- 2019Improving Transformer Models by Reordering their Sublayerscited by 52
- 2020Is SGD a Bayesian sampler? Well, almostcited by 50
- 2023Provably Learning Object-Centric Representationscited by 45
- 2023Provable Compositional Generalization for Object-Centric Learningcited by 41
- 2024Learning Universal Predictorscited by 31
- 2023Circuit Breaking: Removing Model Behaviors with Targeted Ablationcited by 27
- 2023Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Taskscited by 22
- 2024On Provable Length and Compositional Generalizationcited by 22
- 2024Position: Understanding LLMs Requires More Than Statistical Generalizationcited by 21
- 2023Vector-based Representation is the Key: A Study on Disentanglement and Compositional Generalizationcited by 6
- 2024Towards Understanding the Relationship between In-context Learning and Compositional Generalizationcited by 5
Built on by
Citing papers per year: 2025: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformers
- 2025Patterns Over Principles: The Fragility of Inductive Reasoning in LLMs under Noisy Observations
- 2024When a language model is optimized for reasoning, does it still show embers of autoregression? An analysis of OpenAI o1
- 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models
- 2025Revisiting Compositional Generalization Capability of Large Language Models Considering Instruction Following Ability
- 2025Learned-Rule-Augmented Large Language Model Evaluators
- 2024Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalability
- 2025Neither Stochastic Parroting nor AGI: LLMs Solve Tasks through Context-Directed Extrapolation from Training Data Priors