[Paper Review] On the "Induction Bias" in Sequence Models
The paper shows transformers need much more in-distribution data for state-tracking tasks, tend to learn length-specific solutions with little cross-length sharing, while recurrent models enable amortized learning across lengths especially with intermediate supervision.
Despite the remarkable practical success of transformer-based language models, recent work has raised concerns about their ability to perform state tracking. In particular, a growing body of literature has shown this limitation primarily through failures in out-of-distribution (OOD) generalization, such as length extrapolation. In this work, we shift attention to the in-distribution implications of these limitations. We conduct a large-scale experimental study of the data efficiency of transformers and recurrent neural networks (RNNs) across multiple supervision regimes. We find that the amount of training data required by transformers grows much more rapidly with state-space size and sequence length than for RNNs. Furthermore, we analyze the extent to which learned state-tracking mechanisms are shared across different sequence lengths. We show that transformers exhibit negligible or even detrimental weight sharing across lengths, indicating that they learn length-specific solutions in isolation. In contrast, recurrent models exhibit effective amortized learning by sharing weights across lengths, allowing data from one sequence length to improve performance on others. Together, these results demonstrate that state tracking remains a fundamental challenge for transformers, even when training and evaluation distributions match.
Motivation & Objective
- Quantify in-distribution data efficiency of transformers versus recurrent models on state-tracking tasks.
- Examine how sequence length and state-space size affect data requirements under different supervision formats.
- Investigate whether learned state-tracking mechanisms are shared across different sequence lengths.
- Assess how supervision types (outcome, CoT, Aligned CoT) influence data efficiency for each model class.
- Link induction bias to length-generalization capabilities and cross-length transfer.
Proposed method
- Use modular addition and permutation composition tasks as simple state-tracking problems.
- Vary sequence length L and state-space size m to study data efficiency across regimes.
- Compare a 6-layer GPT-2 style Transformer with LSTM and dense state-space models (Dense-SSM).
- Evaluate three task formats: Outcome Supervision, Chain-of-Thought (CoT), and Aligned Chain-of-Thought (ACoT).
- Define N* as the minimal training set size ensuring convergence under a hyperparameter grid, estimated via binary search.
- Analyze cross-length sharing via the Sharing Factor κ, comparing joint versus per-length learning.

Experimental results
Research questions
- RQ1How does in-distribution data efficiency differ between transformers and recurrent models on state-tracking tasks?
- RQ2Do transformers and RNNs share learned mechanisms across different sequence lengths, and how does this relate to length generalization?
- RQ3How do supervision formats (Outcome, CoT, ACoT) affect data efficiency and transfer across lengths for each model class?
- RQ4Is there evidence of constructive or destructive interference when learning across multiple lengths, and how does it correlate with length generalization?
Key findings
- Transformers prefer non-aligned supervision (CoT) and exhibit length-specific solutions with little cross-length sharing (κ around 1 or less, sometimes far below 1).
- Recurrent models (LSTM, Dense-SSM) show strong cross-length sharing (κ >> 1) under Outcome and Aligned CoT formats, enabling amortized learning across lengths.
- Under Outcome supervision, recurrent models outperform transformers on larger state spaces and longer sequences, requiring far fewer samples for convergence.
- With intermediate supervision (CoT/ACoT), longer sequences improve data efficiency for recurrent models, while transformers fail to leverage extra supervision.
- Transformers demonstrate very low or negative cross-length sharing in CoT, indicating destructive interference across lengths when learning a joint model.
- There is a correlation between high sharing factor and better length generalization across tasks and model types.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.