- Rating
- 4
- Clarity
- 2
- Confidence
- 3
- Originality
- 4
- Quality
- 4
- Significance
- 3
Read review
Summary
The authors provide bounds on the generalisation performance of a transformer model to out of distribution data, through mapping the discrete token representation of a sequence into a continuous value vector and then using a Wasserstein distance measure between the probability distributions for different data models. This provides a bound in terms of the Lipschitz constant in the continuous vector space times the Wasserstein distance, the Barron risk bound depending on the network width , and depth risk by mapping the search process required to solve the planning problem onto a Dyck-k problem.
The proof require some strong assumption, although these seem reasonable, it very much depends on the size of various bounds in the error . If any of these are significant it might make the bounds useless.
To provide some empirical support the authors study some hand crafted planning problems and analyse RoPE and Absolute Position Embeddings (APE). For me, this seems less convincing. The results for Rope where better than APE, but not by a huge margin. It would surprise few practitioners that RoPE is superior to APE, I was less convinced that the difference in performance could be entire attributed to the Lipschitz behaviour of the two embeddings. (It is plausibly the cause, but as far as I could see not overwhelmingly convincing)
Strengths and weaknesses
Strengths
The paper has some theoretical elegance in being able to obtain generalisation bounds for a very complex problem. Particularly the use of dual property of Wasserstein distances to obtain a handle on generalisation under domain shift is cute. The paper is rigorous in that there are proofs of what can be proved (there remain quite a few assumptions). There exists an empirical study that is timely in that examines one of the hottest topics in modern machine learning, name generalisation in transforms performing some kind of reasoning.
Weaknesses
The paper is a hard read (made a bit harder by the use of mathematical language that although accurate, is difficult for readers without a degree in mathematics). I had to put in a lot of effort to get the (maybe superficial) understanding that I have. Without working through some of the proofs the main theorems are very hard to understand. The bounds are potentially quite weak. One might suspect that the three contributions to risks contribute additively as they arise through independent mechanisms. Of course, turning this into a single rigorous bound is likely to be very hard, but replacing the bound by the max of these three bounds seems to be a weak assumption.
The paper is not well suited to the NeurIPS page constraints as it is difficult to get across what the paper says in 9 pages. If the reader is prepared to work through the next pages of theorems, then the contribution is much easier to understand. I suspect the paper will only be of interest to a small audience. The importance of the paper, depends on the tightness of the bounds. Currently, the bound are only tight up to an unknown which is assumed small. These arise from assumption which although plausible, past experience tells me we have to be circumspect about. There are also large sacrifices in the tightness of the bounds (e.g. as pointing out, by taking the maximum of three factors leading to increased risk).
The empirical support was less convincing than I would naively expect. The gap in Lipschitz constant between and would suggest that RoPE would be overwhelmingly superior. We see a 12% inprovement, but the performance of RoPE is slightly unimpressive (if I understand correctly). Prior to this paper, both theoretically and empirically, it is quite well understood what the benefits of RoPE are over APE so the empirical study was not overwhelming convincing.
Conclusion
This is a difficult paper to evaluate. It is very ambitious which is clearly positive. Technically, there is some elegance, particularly using the duality of the Wasserstein distance to obtain a bound---I am presuming this and the specialisation to RoPE and APE are the original contributions. It is very difficult to judge the significance, in part, because in the time I've dedicated to this I may only have a rather superficial understand, but also because the framework is built on some strong assumptions that might not stand up. The empirical support was not as conclusive as I would have liked. I am include to give it the benefit of my doubt. Despite being accessible to only a very small audience, I am minding to say that its technical brilliance in places means that if deserves publication. Whether it is significant or fatally flawed by relying on flaky assumptions, I think only time will tell (or a much more competent reviewer than me). My real hesitation comes through the writing. If you decide to publish in NeurIPS then given the page limit and the general audience, I think the paper could have been written in a more accessible manner.
Questions
The analysis of RoPE and APE suggests there is a very sharp contrast in their OOD generalisation performance. Clearly, there is a gap between RoPE and APE, but if I understand the results well then RoPE is not showing massively better performance (it certainly isn't close to perfect). Clearly, the OOD data is quite significantly difference so maybe it not surprising, but the gap in the Lipschitz constant between and might suggest that RoPE should be much better (which it does not seem to be). Am I interpreting this correct? Is a 12% improving huge, but I'm not seeing it.
My understanding is that Lipschitzness of the loss in the original token space occurs because there is a discrete number of tokens so that a change in the loss of by one (correct or incorrect) will be caused by one a change in one token. When working in the continuous embedding space then there is a finite Lipschitz constant (assuming continuity of the embedding). It is hard to see intuitively the connection between this embedding of the loss function (which has nothing to do the LLM) and the generalisation behaviour of the LLM. Am I misunderstanding something and if not, at an intuitive hand-waving level, why does the poor generalisation of the LLM cause a large Lipschitz constant in the embedded space.
You need to measure the Lipschitz constant for the empirical validation (if I understand correctly). Lipschitz constant are difficult to measure empirically for all but the simplest mappings, are you able to quantify the errors in your measurements of Lipschitz constant.
You are making some strong assumptions that you need to obtain the bounds (particularly that your errors are small). Is there anyway to control the approximation error . For example, if you increase the size of the embedding space beyond 12 dimensions, that that give you a better approximation, or do you then get fitting errors.
The lower bound you have computed is the max of three terms. Clearly, if one term dominates then taking the max would lead to a tight bound. However, my suspicion is that these terms might be similar in magnitude for normal sized LLMs. Is this correct? If so is there any way of obtaining a rigorous bound that involves adding these terms?
Limitations
Yes.
Paper formatting concerns
None.
Final justification
I leave my rating at borderline accept. The positives just about outweigh the negatives. The positives are the ambition and timeliness of the research, the mathematical rigour, and some mathematical elegance. The negatives are that this is very inaccessible. In part because of the topic, but the authors tended to write things more obscurely than necessary, in my opinion. There are also a lot of assumptions and the bound is likely not be very tight. In practical situations this matters. We care if the generalisation error is 2% or 10%. The analysis tells us that as parameters of the model grow (e.g. the context windows), in certain contexts the generalisation performance could drop to zero. This has some value, but you have to work hard to find scenarios where this happens.
We sincerely thank the reviewer for recognizing the theoretical elegance of applying Wasserstein duality and acknowledging the ambition of unifying discrete circuit complexity with continuous measure theory. We appreciate your constructive feedback regarding readability. The mathematical density of the current draft was constrained by the 9-page limit, but we fully agree that bridging these concepts with clearer intuition is essential.
Below, we address your specific questions and detail how these step-by-step intuitive explanations will be integrated into the camera-ready version to make the paper accessible to a broader machine learning audience.
1. Clarifying the Causal Direction of Lipschitzness
Your Question: "Why does the poor generalisation of the LLM cause a large Lipschitz constant in the embedded space. Am I misunderstanding something..."
Response: We apologize if our text inadvertently suggested this causal direction. Your mathematical intuition is correct to question this, because the causality is exactly the opposite: the large Lipschitz constant $ K _ { f } $ causes the poor generalization.
We will add the following step-by-step breakdown to the main text (Section 3.1) to clarify this mechanics:
2. On the 12% Improvement: Why isn't RoPE perfect?
Your Question: "The gap in the Lipschitz constant between $ \Omega ( 1 ) $ and $ \mathcal{O} ( 1 / T _ { \mathrm{max} } ) $ might suggest that RoPE should be much better... Is a 12% improvement huge, but I'm not seeing it."
Response: This observation touches the core intersection of our framework, formalized in Theorem 2 (The Unified Bound). RoPE resolves the Lipschitz penalty term ($ K _ { f, PE } W _ { 1 } ),butitstrictlydoesnotresolvethealgorithmicdepthbottleneck( \mathrm{TC} ^ { 0 } $ truncation) nor the Barron space width approximation limit ($ C _ { \mathrm{width} } / \sqrt{ m } $).
Therefore, even with a smooth Lipschitz constant, a model's absolute performance remains firmly capped by its physical depth $ L $ and width $ m $. RoPE prevents the representation collapse caused by sequence coordinate shifts, but it does not grant the model infinite computational capacity.
Regarding the magnitude of the 12% absolute improvement: In standard natural language tasks, a 42% accuracy might imply partial capability. However, in the Countdown game, the exact-match requirement means a single routing error invalidates the entire trajectory (partial memorization yields zero reward). A baseline of 0.4215 indicates that the Wide APE model essentially fails on almost all trajectories requiring deep recursive backtracking. Recovering >12% absolute accuracy (from 0.4215 up to 0.5425) strictly via a positional encoding swap represents a complete recovery to the architecture's fundamental $ \mathrm{TC} ^ { 0 } $ capacity ceiling, as empirically proven by the theoretical envelope in Figure 1(A).
3. Controlling $ \epsilon $ and the Curse of Dimensionality
Your Question: "Is there any way to control the approximation error $ \epsilon $? For example, if you increase the size of the embedding space beyond 12 dimensions, does that give a better approximation, or do you then get fitting errors?"
Response: This is an accurate observation. Expanding the metric space $ \mathcal{X} $ to include precise token IDs, $ n −gramfrequencies,andarithmeticvalueswouldstrictlydrivetheresidualapproximationerrortozero( \epsilon \to 0 $).
However, doing so triggers the curse of dimensionality in optimal transport computation. The empirical sample complexity of the Wasserstein distance scales exponentially with dimension. Consequently, the Sinkhorn-Knopp estimation variance (the "fitting errors" you anticipated) would increase significantly, making $ W _ { 1 } $ computationally intractable to estimate reliably.
Our 12-dimensional macroscopic space represents a calculated Pareto frontier:
4. How is $ K _ { f } $ Measured Empirically?
Your Question: "Lipschitz constants are difficult to measure empirically... are you able to quantify the errors in your measurements?"
Response: Computing the exact global supremum of gradients in $ \mathbb{R} ^ { 12 } $ is intractable. Consequently, we do not directly measure $ K _ { f } $ from the data. The bounds $ K _ { f _ { \mathrm{APE} } } = \Omega ( 1 ) $ and $ K _ { f _ { \mathrm{RoPE} } } = \mathcal{O} ( 1 / T _ { \mathrm{max} } ) $ are analytic algebraic proofs derived from the mathematical properties of the attention kernels (Theorem 1 and Lemma 2).
Empirically, rather than measuring the constant itself, we use the dual formulation to observe the effective macroscopic slope. By Kantorovich Duality, the generalization gap is bounded linearly by $ W _ { 1 } $ scaled by $ K _ { f } $. By regressing the generalization gap against the computed Wasserstein shifts $ W _ { 1 } $ (Figure 1(D)), the diverging slopes directly corroborate the analytic gap between the two Lipschitz constants, without requiring gradient estimation.
5. Why a
max()Bound Instead of an Additive Sum?Your Question: "The lower bound is the max of three terms. My suspicion is that these terms might be similar in magnitude... is there any way of obtaining a rigorous bound that involves adding these terms?"
Response: The
maxoperator is mathematically strict for lower bounds because these architectural bottlenecks act as necessary, non-substitutable conditions (analogous to logical AND gates).Unlike standard statistical learning where errors might represent additive noise, discrete algorithmic reasoning is fundamentally discontinuous. To illustrate: If a target search tree requires a recursive depth of $ \chi _ { 1 } = 20 $, but the physical layer depth is $ L = 6 $, the model suffers an $ \Omega ( 1 ) $ truncation error due to $ \mathrm{TC} ^ { 0 } $ limits (Lemma 5). Increasing the width $ m \to \infty $ (driving the width penalty to 0) or using RoPE (driving the Lipschitz penalty to 0) cannot compensate for this lack of depth. They are not independent additive noise sources; they are hard physical truncation boundaries.
Furthermore, because the expected zero-one risk is strictly bounded by 1, an additive bound of three independent $ \Omega ( 1 ) $ penalties would trivially exceed 1, rendering the bound vacuous. Therefore, the supremum (
max) formulation is the tightest rigorous formulation, as any single architectural failure brings down the entire trajectory. We will add a brief paragraph in Section 4 to explicitly clarify this logic.Once again, we want to express our gratitude for your helpful review. Thank you for your time, expertise, and constructive engagement with our work!