- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper studies the theory of length generalization in Transformers through the C-RASP framework. The authors address a key limitation of prior work: although recent results established computable length-generalization bounds for the fragments C-RASP$^{+}$ and C-RASP$_1$, the resulting sample-complexity bounds were doubly exponential and potentially too loose to explain empirical observations.
The main contribution is a novel connection between transformer length generalization and compression via power words. Using this connection, the authors show that the compressed length complexity of C-RASP$^{+}$ and C-RASP$_1$ is polynomial, leading to exponential rather than doubly exponential sample-complexity bounds. The theory further provides an explanation for why some tasks (e.g., COUNT$_k$ and MAJ$_k$) generalize well across sequence lengths while others (e.g., PARITY$_k$) require substantially more samples.
Strengths and weaknesses
Strengths:
- The paper improves previously known sample-complexity bounds from doubly exponential to exponential for C-RASP$^{+}$ and C-RASP$_1$-definable tasks. This addresses an explicit limitation of earlier theoretical work.
- The introduction of power words and compressed length complexity is conceptually interesting. The connection between compression techniques and transformer length generalization is elegant and unexpected.
- The paper provides a plausible explanation for the discrepancy between the C-RASP hypothesis and empirical observations on tasks such as bounded parity. The resulting theory offers a more fine-grained understanding of transformer length generalization.
Weaknesses:
- While the improvement from doubly exponential to exponential is substantial, the resulting sample-complexity bounds are still extremely large. It remains unclear how informative these bounds are for practical transformer training regimes.
- The theory is developed for C-RASP$^{+}$ and C-RASP$_1$. It remains unclear how much of the full C-RASP hypothesis is captured by these fragments and whether similar results hold more broadly.
- For tasks such as PARITY$_k$, the paper establishes exponential upper bounds, but it is unclear whether these bounds are tight. Matching lower bounds or impossibility results would strengthen the theoretical conclusions.
- The proposed complexity measure is based on compressed distinguishing words and hypothesis identification. Its relationship to the behavior of transformers trained using gradient-based optimization is not fully explored.
Questions
-
Can the exponential sample-complexity upper bound be shown to be tight for C-RASP$^{+}$ or C-RASP$_1$, or are substantially smaller bounds possible for important subclasses of tasks?
-
How much of the full C-RASP hypothesis is captured by C-RASP$^{+}$ and C-RASP$_1$? Are there natural C-RASP-definable tasks outside these fragments for which the current theory does not apply?
-
Can the authors clarify how closely the proposed sample-complexity notion corresponds to the behavior of transformers trained with standard gradient-based optimization methods?
Limitations
The authors discuss several limitations, including the restriction of the analysis to C-RASP^+ and C-RASP_1 and the gap between the proposed complexity measure and practical Transformer training. However, the discussion could be strengthened by clarifying the tightness of the exponential sample-complexity bounds and by further explaining the relationship between the theoretical framework and gradient-based optimization in modern Transformers.
Paper formatting concerns
I don't see any problem with the paper format.
Final justification
After carefully considering the authors’ rebuttal and the issues raised during the review process, I have decided to keep my score unchanged and recommend acceptance of the paper.
We thank the reviewer for the constructive questions.
In general, this is not possible. Recent work [1] has already shown that C-RASP2 already does not admit computable length-generalization bounds, and thus compression would not help. Nontrivially expanding the fragment beyond C-RASP+ is also likely to run into similar issues of noncomputability.
Thank you very much for the insightful question, which led us greatly clarify the definitions of sample size and discover a simple proof for a lower bound. First, by sample size we mean the following:
Let Φ(c) be the finite set of formulas with size up to c. Then, for any c, the sample size is the smallest s(c) such that for any ϕ∈Φ(c), there exists a training set T with size ≤s(c) which uniquely identifies ϕ amongst all formulas in Φ(c).
For C-RASP+, consider a polynomial p such that given any uncompressed word w, there is a C-RASP+ formula for {w} of size ≤p(∣w∣). With this polynomial, the training data T must contain all words w with p(∣w∣)≤c, because if T is missing some w with p(∣w∣)≤c, then both sets ∅ and {w} have description size ≤c, and agree on T; hence T was not a sufficient sample. Now, pick d such that p(∣w∣)≤∣w∣d for all w with ∣w∣>1. Then the above implies that T must include almost all words w with ∣w∣d≤c and ∣w∣>1 (because then p(w)≤c). This means, the set T must contain almost all (i.e. a constant number of exceptions) words -- those up to length c1/d -- and thus exponentially many.
Recent work [2] has already shown that C-RASP in general does not admit computable length-generalization bounds, and compression would not help. Our fine-grained analysis shows how our theoretical framework can make predictions on length generalization for languages like MAJORITY and PARITY, both of which are tackled by the full C-RASP.
Regarding the bounds, we discuss above how tightness can be shown for our bounds on C-RASP+. We will add this to the next revision of the paper.
The derived bounds are indeed large, but we nonetheless can show they are optimal. These sample size bounds are wholly general, and apply to any method of training to fit a dataset, including gradient-based optimization. These bounds are informative in the sense of being able to predict when a transformer will length-generalize on a specific task, as in our fine-grained analysis of the C-RAPS hypothesis -- something that previous was not able to do.
Regarding connections to gradient-based optimization, our work adopted on the framework of [1] which connected expressivity in C-RASP to an idealized model of learning in transformers which was argued to capture aspects of gradient-based optimization. This theory does not specifically analyze learning by gradient descent, but is meant to provide a framework to reason about and predict when transformers will length generalize.
In other words, our aim is not to specifically analyze gradient-based optimization in transformers, but to provide a general scientific explanation as to why transformers readily length generalize on certain languages (like MAJ$_k$, which admits polynomial sample size) but not others (like PARITY$_k$, which requires exponential sample size).
[1] Huang et al. A Formal Framework for Understanding Length Generalization in Transformers. ICLR 2025.
[2] Yang et al. Length Generalization Bounds for Transformers. ICML 2026.