atlas

Research map / Large language models / Language, safety and interpretability

Rule Extrapolation in Language Modeling: A Study of Compositional Generalization on OOD Prompts

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Evaluates rule extrapolation (completing OOD prompts that violate one of two intersected rules) across formal languages with linear, LSTM, Transformer, Mamba and xLSTM models, and proposes an uncomputable Solomonoff-inspired normative prior for OOD prompt completion.

Problem

Understanding how autoregressive language models behave on out-of-distribution prompts that have zero probability under the training distribution, specifically whether they extrapolate individual rules when a prompt violates one rule of a conjunction of rules.

Approach

Defines rule extrapolation as OOD compositional generalization on formal languages defined by the intersection of two rules, compares architectures (linear, LSTM, Transformer, Mamba, xLSTM) empirically, and proposes a non-parametric Solomonoff-style prior with prompt-conditioned completion as a normative theory.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LSTM instead of TransformerRule extrapolation models · L1 and L2 regular languagesOOD R1 accuracyHelped
Use Transformer instead of LSTMRule extrapolation models · L3 context-free languageOOD R1 accuracy: 0.376 ± 0.209 -> 0.657 ± 0.162Helped
Use Transformer instead of LSTMRule extrapolation models · L4 Dyck languageOOD R1 accuracy: 0.543 ± 0.282 -> 0.980 ± 0.090Helped
Use Transformer instead of LSTMRule extrapolation models · L5 context-sensitive languageOOD R1 accuracy: 0.068 ± 0.036 -> 0.187 ± 0.085Helped
Use Transformer instead of LSTMRule extrapolation models · L6 context-sensitive DyckOOD R1 accuracy: 1.000 ± 0.000 vs 0.980 ± 0.045Mixed
Increase Transformer size by varying the number of layers and heads (ablation)Transformer · Regular languages L1 and L2rule extrapolation accuracyNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic formal language samples for L1-L5

Benchmarks: rule extrapolation test prompts on L1-L6 formal languages

Metrics: test loss ID and OOD rule accuracy (R1/R2) chance level accuracy

Baselines: LSTM Transformer Mamba xLSTM Linear model human pilot study

Builds on: Solomonoff prior Mamba xLSTM Chomsky hierarchy

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy