potentialpaper

A Measure-Theoretic Analysis of Reasoning in Transformers: Structural Generalization and Approximation Limits

Yuyang Zhang, Yifu Zhang, Xuehai Zhou, Xiaoyin Chen

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We bound Transformer reasoning errors through task structure, positional sensitivity, and depth–width limits, showing why widening cannot remove a single-pass depth bottleneck; experiments on 54 Transformers support the theory.

Abstract. While empirical scaling laws for reasoning in large language models (LLMs) are well established, it remains unclear when a model trained on one class of search traces can generalize to structurally different out-of-distribution (OOD) problems. We study this question by projecting each discrete search trajectory into a twelve-dimensional space of structural coordinates—such as tree depth and backtracking rate—and quantifying task shifts via the Wasserstein-1 (W1W_1) distance. Using Kantorovich duality, we bound OOD generalization risk in terms of this transport distance, the architecture's structural Lipschitz constant, and capacity lower bounds from network depth and width. This analysis yields two main architectural conclusions. First, under absolute positional encoding (APE), translating a reasoning sub-trajectory to later token positions almost surely alters its internal attention scores. When these perturbations misroute greedy exact-match search, the structural Lipschitz constant is Ω(1)\Omega(1), and target risk has an order-one lower bound whenever misrouted structures carry enough target mass to exceed the approximation error by a fixed margin. By contrast, rotary position embedding (RoPE) preserves local attention scores under translation for fixed content vectors; under our baseline smoothness assumption, its transport penalty scales as O(W1/Tmax⁡)\mathcal{O}(W_1/T_{\max}), where Tmax⁡T_{\max} is the maximum sequence length. Second, by reducing sequential backtracking to a Dyck-kk language under an implicit-depth assumption, we prove that fixed-depth Transformers face an irreducible risk floor when sufficiently many target searches exceed a multiple of their layer count. Adding layers removes this bottleneck, whereas widening the network only reduces a separate Barron-space term in the risk lower bound. Experiments on 54 Transformers trained from scratch on Countdown support these predictions. Further evaluations in the appendix extend our framework to broader settings: we quantify structural shifts across public agent, embodied, and robotic trajectories; evaluate 33 open-weight LLMs under global position-index shifts; and test when splitting nested tasks across model calls improves final-answer accuracy.

From the authors: Yuyang Zhang · edit · also an author?

Nothing yet.

How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This work uses optimal transport theory to analyze out-of-distribution learning of transformer models.

Reviewers acknowledge the conceptual novelty of the work. However, there should be more effort to introduce the mathematical background and machinery, so that it is more generally accessible and connects with machine learning researchers. Right now it seems more geared toward research mathematicians.

For example, many terms are introduced in Section 2 without explanation. Connections between the mathematical concepts and machine learning are needed, as well as citations to results like Kantorovich-Rubinstein duality that align with the notation used in this paper.

Final justification

I believe the reviewers are satisfied with the authors responses. Therefore, I recommend for acceptance.

Area Chair 4HJo · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This work uses optimal transport theory to analyze out-of-distribution learning of transformer models.

Reviewers acknowledge the conceptual novelty of the work. However, there should be more effort to introduce the mathematical background and machinery, so that it is more generally accessible and connects with machine learning researchers. Right now it seems more geared toward research mathematicians.

For example, many terms are introduced in Section 2 without explanation. Connections between the mathematical concepts and machine learning are needed, as well as citations to results like Kantorovich-Rubinstein duality that align with the notation used in this paper.

Final justification

I believe the reviewers are satisfied with the authors responses. Therefore, I recommend for acceptance.

1 comment
Authors · CommentOpenReview ↗

Update on the discussion phase

Dear Area Chair,

Thank you for your time in managing the review process. We read your preliminary meta-review. The points you raised regarding the mathematical background, Section 2, and citations were also brought up by the reviewers in their initial assessments. We are writing to share a brief report on how we addressed these concerns during the discussion phase, which led the reviewers to update their scores.

During the rebuttal period, we provided the following clarifications:

  1. Terms in Section 2: When reviewers asked for more explanations of the terms in Section 2, we guided them to Page 3 (Definition 1) where they are conceptually introduced, and to Appendix A.1 (Page 13, Equations 16-27) where their formulations are provided. To bridge this with ML practice, we explained that "search volume" ($ \chi _ { 4 } )correspondstothenumberofgeneratedtokens,and"backtrackingrate"() corresponds to the number of generated tokens, and "backtracking rate" ( \chi _ { 6 } $) corresponds to the model abandoning a flawed reasoning branch. and we committed to adding these ML-grounded examples into the main text to better guide future readers

  2. Citations for Kantorovich-Rubinstein duality: Regarding the citations for the Kantorovich-Rubinstein duality, we directed the reviewers to Appendix A.3 (Page 14) and Appendix B.2 (Page 16), where the standard textbooks (Villani, 2009; Weed and Bach, 2019) are cited alongside the proofs. To save readers from flipping to the appendix, we agreed with the reviewers to duplicate these citations into the main text.

  3. Connections between the mathematical concepts and machine learning: To address the need for better ML connections, we directed the reviewers to the theoretical justifications provided in Appendix A.2 (Page 14) and Appendix C.4 (Page 18). We showed that the manuscript translates these measure-theoretic concepts into practical ML mechanics: for example, the Wasserstein distance ($ W _ { 1 } )quantifiestheout−of−distributionshiftinreasoningtrajectories,andtheLipschitzconstant() quantifies the out-of-distribution shift in reasoning trajectories, and the Lipschitz constant ( K _ { f } $) measures the model's architectural vulnerability to absolute sequence coordinate changes. The reviewers responded positively to these pointers.

Following these discussions and the page pointers to the appendix, we are glad to share that all reviewers have now aligned their scores. The current consensus stands at 4, 4, and 4.

We hope this update provides helpful context on how the discussion phase progressed. If your schedule permits, we would truly appreciate it if you could take a brief look at the updated threads. We hope the new reviewer consensus and our revision plan will be useful to you as you finalize your meta-review.

Thank you again for your time and continued service to the community.

Sincerely, The Authors

Reviewer KNhnOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
4/4
Clarity
2/4
Significance
3/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
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 mm, 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 ϵ\epsilon. 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 ϵ\epsilon 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 Ω(1)\Omega(1) and O(1/Tmax)O(1/T_{max}) 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 Ω(1)\Omega(1) and O(1/Tmax)O(1/T_{max}) 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 KfK_f 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 ϵ\epsilon are small). Is there anyway to control the approximation error ϵ\epsilon. 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.

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.

Formatting concerns

None.

6 comments
Authors · RebuttalOpenReview ↗
Rebuttal

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:

  1. The structural risk function $ \mathcal{L} _ { f } ( \chi ) $ is explicitly subscripted by the model $ f $. The specific neural architecture $ f $ (e.g., APE vs. RoPE) defines the landscape of this risk function over the metric space $ \mathcal{X} $.
  2. $ K _ { f } $ measures how the expected risk $ \mathcal{L} _ { f } ( \chi ) $ fluctuates when the macroscopic structure of the problem shifts (a small coordinate change $ \delta $ in $ \mathcal{X} $).
  3. APE relies on absolute sequence coordinates. Under a sequence translation operation (e.g., prepending conditions to a reasoning trace), the APE attention kernel diverges because it cannot align the shifted absolute coordinates (Lemma 2).
  4. Because combinatorial search is an exact-match, zero-tolerance Markov process (Assumption 2), this local coordinate disruption forces the deterministic argmax routing into an incorrect branch. The model cannot self-correct, and the zero-one loss immediately transitions from 0 to 1.
  5. Thus, a structurally small shift in $ \mathcal{X} $ leads to a step-function jump in risk ($ \gamma = \Omega ( 1 ) $). This makes the true landscape of $ \mathcal{L} _ { f _ { \mathrm{APE} } } $ highly discontinuous, yielding an induced Lipschitz constant $ K _ { f _ { \mathrm{APE} } } = \Omega ( 1 ) $.
  6. By Kantorovich Duality, the generalization error is bounded by $ K _ { f } \cdot W _ { 1 } $. Because APE's $ K _ { f } $ is $ \Omega ( 1 ) $, the generalization guarantee degrades proportionally. Conversely, RoPE preserves shift invariance, keeping $ K _ { f } $ bounded at $ \mathcal{O} ( 1 / T _ { \mathrm{max} } ) $ and the risk landscape mathematically smooth.

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(), but it strictly does not resolve the algorithmic depth bottleneck ( \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(-gram frequencies, and arithmetic values would strictly drive the residual approximation error to zero ( \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:

  1. It minimizes $ \epsilon $ sufficiently for macro-routing tasks. As we will add to the Appendix, a Gradient Boosting Classifier trained exclusively on these 12 dimensions predicts the discrete trajectory zero-one loss with a pseudo-$ R ^ { 2 } $ of 0.89 and an ROC-AUC of 0.962, confirming that $ \epsilon $ is residually small.
  2. It maintains a low-dimensional, tractable metric space for stable Sinkhorn distance computation across distributions (Appendix G.1).

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 max operator 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!

Reviewer KNhn · CommentOpenReview ↗

Acknowledgment of Rebuttal

Thank you for your careful rebuttal. Your paper is sufficiently challenging that it will take me some time to digest your replies. I will carefully consider your response.

Authors · CommentOpenReview ↗

Thank you for your message and for taking the time to carefully go through our reply. We completely understand that the framework is quite dense and takes some time to digest—truly appreciate you keeping an open mind and taking the extra time to consider it. Please feel free to let us know if anything else is unclear as you look through it!

Reviewer Nxg3OpenReview ↗
Rating
4/6
Confidence
2/5
Quality
2/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper develops a framework for analyzing when autoregressive Transformers generalize their search-based reasoning to out-of-distribution tasks. The central idea is to project discrete, variable-length reasoning trajectories into a finite-dimensional continuous feature space, which summarizes the macroscopic features like maximum tree depth, total search volume, backtracking and deepening rates etc. Each reasoning task then becomes a pushforward measure on this space, and the discrepancy between two tasks is quantified by the Wasserstein-1 distance between their measures.

The authors apply Kantorovich duality to show that the OOD generalization gap is bounded by the architecture's Lipschitz constant times the Wasserstein distance of the task shift. This decouples the continuous notion of distribution shift directly to architectural properties of the model, which is the main conceptual idea of the paper.

From this, the paper derives two main architectural results. They first show that absolute positional embeddings fail to remain invariant under sequence translation whereas shift-invariant embeddings such as RoPE preserve equivariance and inherit the task's intrinsic smoothness. The authors then theoretically analyze the depth–width tradeoff, and by mapping recursive backtracking onto a Dyck-k language, the authors connect the depth of a search to a circuit-complexity bottleneck.

The authors perform some empirical experiments which support the theory. They empirically show that deepening the network outperforms widening it on depth recursive tasks. They also show that absolute encodings degrade under compositional distribution shift while relative encodings remain stable.

Strengths and weaknesses

Strengths:

  1. The idea is very original, especially the idea of projecting discrete trajectories into a continuous metric space and then invoking duality to decouple the distribution shift seems promising.
  2. The paper has nice theoretical results with good amount of practical significance. I have not carefully checked the proofs, but they appear rigorous at a first glance.

Weakness:

  1. I feel that the clarity is slightly off. The framework that formalizes LLM reasoning in the paper could have been better motivated and discussed in more depth.
  2. The empirical evaluation seems quite limited.
Questions

I have some questions, and I'm open to raising my score if the authors could address them. They are as follows:

  1. The proof sketch (lines 221–226) says that the L1L_1 approximation error decays at best by Ω(m−1/2)\Omega(m^{-1/2}) by approximation on Barron spaces. But is that not an upper bound? Establishing the result requires a lower bound, right? Maybe I'm missing something, but some clarification regarding this will be appreciated.
  2. Is risk actually a function of Φ(z)\Phi(z), as Assumption 1 requires? And does it hold for both APE and ROPE? Can this be tested empirically?
  3. Is APE's failure actually caused by absolute-coordinate sensitivity, as Lemma 2 claims, or by other factors? Can some empirical evaluation shed some light on this?
Limitations

Yes, the authors have adequately addressed the limitations of their work

Final justification

I think the authors have answered the main questions I had asked, regarding both (1) a step in their theoretical proof as well as (2) some empirical evaluations. So. I raise my score to 4.

Formatting concerns

No major formatting concerns

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for recognizing our framework as "very original" and for appreciating its "practical significance." We value your mathematical questions, which highlight key theoretical intersections in our work. Below, we address your concerns and detail how these clarifications will be integrated into the camera-ready version.

1. Approximation Error on Barron Spaces: Upper vs. Lower Bounds

Your Question: "The proof sketch says approximation error decays at best by $ \Omega ( m ^ { -1/2 } ) $. But is that not an upper bound? Establishing the result requires a lower bound, right?"

Response: You are correct that classical Universal Approximation Theorems (e.g., Jackson-type theorems) provide upper bounds ($ \mathcal{O} ( m ^ { -1/2 } ) $), establishing that there exists a network of width $ m $ that achieves a certain error. However, our framework utilizes a Minimax Lower Bound for function approximation in variation spaces.

As established by Makovoz (1996) and Barron (1993), for a minimax-hard target function, no finite-width neural architecture can converge faster than the fundamental capacity limit of the space. This means the infimum of the $ L _ { 1 } $ approximation error is bounded from below:

inf⁡g∈Hm∫X∣g(χ)−L∗(χ)∣ dνT(χ)≥Cwidthm\inf _ { g \in \mathcal{H} _ { m } } \int _ { \mathcal{X} } | g ( \chi ) - \mathcal{L} ^ { \ast } ( \chi ) | \, d \nu _ { T } ( \chi ) \ge \frac{ C _ { \mathrm{width} } }{ \sqrt{ m } }

We formalized this in the manuscript in Appendix D.1 (Page 20, Assumption 4.iii: Width-limited approximation lower bound). By applying the linearity of the Lebesgue integral in Lemma 4 (Page 6), we translate this continuous $ L _ { 1 } $ minimax lower bound into the discrete zero-one target risk lower bound.

( We will add a sentence in Section 3.2 clarifying the distinction between universal upper bounds and minimax lower bounds to prevent confusion in camera ready version).

2. The Ontological Status of $ \mathcal{L} _ { f } $ and Empirical Testability

Your Question: "Is risk actually a function of $ \chi $, as Assumption 1 requires? And does it hold for both APE and ROPE? Can this be tested empirically?"

Response: Yes, and we demonstrate this both theoretically and empirically.

  • How it holds for both APE and RoPE: The structural risk function $ \mathcal{L} _ { f } $ is defined as the continuous approximation of the conditional expectation $ \mathbb{E} _ { z } [ \ell ( f, z ) \mid \Phi ( z ) = \chi ] $. Because $ \mathcal{L} _ { f } $ is subscripted by the hypothesis $ f \in \mathcal{F} _ { L, m, PE } $, it absorbs the architectural behavior of the specific positional encoding. For RoPE, $ \mathcal{L} _ { f _ { \mathrm{RoPE} } } $ maintains a low Lipschitz constant ($ K _ { f } = \mathcal{O} ( 1 / T _ { \mathrm{max} } ) $) because sequence translations do not alter its attention kernel. For APE, $ \mathcal{L} _ { f _ { \mathrm{APE} } } $ is discontinuous ($ K _ { f } = \Omega ( 1 ) $). Assumption 1 holds for both, but their differing Lipschitz constants drive the divergent generalization bounds evaluated in Theorem 1.
  • Empirical Testability: To test if the zero-one risk is determined by $ \chi \in \mathbb{R} ^ { 12 } $, we conducted an ablation using 50,000 generated trajectories. We extracted the 12D macroscopic coordinates $ \chi $ and trained a Gradient Boosting Classifier exclusively on $ \mathcal{X} $ to predict the discrete zero-one loss of the underlying trajectories. This structural classifier achieved a Receiver Operating Characteristic Area Under the Curve (ROC-AUC) of 0.962 and a pseudo-$ R ^ { 2 } $ variance explanation of 0.89. This correlation provides empirical evidence that the macroscopic projection $ \Phi $ preserves the variance dictating formal reasoning success, leaving a small residual error $ \epsilon $. We will include this empirical validation of Assumption 1 in the Appendix.

3. Isolating APE's Failure: Absolute Coordinate Sensitivity vs. Other Factors

Your Question: "Is APE's failure actually caused by absolute-coordinate sensitivity, as Lemma 2 claims, or by other factors? Can some empirical evaluation shed some light on this?"

Response: Our experimental suite was designed to isolate absolute coordinate sensitivity from confounding variables such as parameter count, depth, and optimization stability.

In Section 5.1 and Figure 1(C), we evaluate models under the $ \mu _ { \mathrm{MIXED} } $ target distribution. Here, the model must alternate between shallow and deep traversals, inducing large absolute coordinate translations.

  • If APE's failure were caused by insufficient parameter capacity, scaling the width $ m $ should mitigate the error. Instead, Figure 1(C) demonstrates that scaling the Core Params of Wide APE models from 5.3M to 339.7M results in representation collapse, dropping accuracy to 0.4215.
  • However, holding the exact same dataset, sequence length, and parameter budget ($ L = 12, m = 1536 $) constant—and only changing APE to RoPE—restores stability, achieving an accuracy of 0.5425.

As documented in Appendix I.2 (Page 28), we disabled parallel residual connections for RoPE to ensure the computational graphs were identical. This >12% absolute recovery under controlled configurations isolates coordinate disruption (Lemma 2) as the failure mechanism for APE.

4. Motivation of the Framework and Projection Operator

Your Concern: Clarity and motivation behind the measure-theoretic framework.

Response: The rationale for projecting discrete trajectories into a continuous metric space $ \mathbb{R} ^ { 12 } $ is driven by the requirements of Kantorovich optimal transport duality. Standard discrete log-likelihoods cannot quantify the geometric distance between a shallow search algorithm and a deep recursive one.

By creating a continuous proxy space, we decouple the problem: the distribution shift becomes a measurable Wasserstein distance ($ W _ { 1 } ),andthearchitecturalcapacitybecomesaLipschitzconstant(), and the architectural capacity becomes a Lipschitz constant ( K _ { f } $). We will dedicate a new paragraph in Section 2.2 of the camera-ready version to articulate this theoretical pipeline and the motivation behind the projection operator $ \Phi $.

5. Scope of the Empirical Evaluation

Your Concern: The empirical evaluation is limited to 54 configurations on a single task (the Countdown game).

Response: While evaluating 54 configurations on a single task differs from standard NLP benchmarking, it is a deliberate theoretical choice required to validate discrete circuit-complexity bounds ($ \mathrm{TC} ^ { 0 } $).

Natural language reasoning datasets (e.g., GSM8K) contain unstructured semantic noise, which inflates the approximation error $ \epsilon $ and obscures the mathematical bottlenecks of the architecture. As stated in Section 5 (Page 7): "Given the unforgiving exact-match nature of formal combinatorial planning, the zero-one loss establishes a rigorous baseline where partial memorization yields zero reward."

The Countdown task evaluates exact-match structural routing (e.g., successful DFS backtracking). By synthesizing formal trajectories, we isolate the topological constraints of the neural network without confounding semantic variables. We will clarify this methodological choice in Section 5 to ensure readers understand why formal simulation is required to verify the bounds established in Theorem 2.

Once again, we are deeply grateful for your time, evaluation, and insights, please let me know if there is anything more need to address. Thank you!

Reviewer Nxg3 · CommentOpenReview ↗

The rebuttal sufficiently clarifies my concerns and I have raised my score.

Authors · CommentOpenReview ↗

Thank you so much for reading through our response and raising the score! We really appreciate your time and the constructive questions you raised, which genuinely helped us clear up this confusion. We'll make sure these points are integrated into the final version.

Reviewer 1i6YOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a measure-theoretic framework for understanding when transformers fail to generalize on out-of-distribution reasoning tasks. The authors embed reasoning trajectories into a continuous feature space using 12 handcrafted features. The authors derive two main results. First, absolute positional encodings fail under sequence translations, while relative encodings like RoPE don't. Second, deep recursive reasoning requires layer depth that cannot be compensated for by making the network wider. The theoretical results are validated across 54 transformer configurations trained on the Countdown arithmetic game.

Strengths and weaknesses

Strengths: The paper makes a first attempt at unifying discrete expressivity theory and continuous distributional shifts for transformer reasoning.

Weaknesses:

  1. The choice of 12 features feels somewhat arbitrary. The authors mention that they use 12 features, but they never mention what these are in the main text. The authors need to motivate this choice and explain why this is reasonable.
  2. I'm unsure about the applicability of this framework to reasoning tasks that are not as structured as the one studied by the authors.
  3. I found the paper generally hard to follow, which might be partly due to unfamiliarity with works in this area. That said, I believe the authors should have put more effort into explaining the terms they use, especially those specific to this paper. For instance, in lines 118-119, what are the total search volume, directional state transitions, sibling lateral shifts, pruning frequencies, etc.? As far as I can tell, none of these are introduced.
  4. A lot of facts in the paper are missing proper citations, e.g., line 210, Kantorovich-Rubinstein duality in line 114, etc.
  5. The section on empirical evaluation is missing many important aspects about the experiments. As far as I can tell, the authors experiment only with what they call the countdown game, but they don't describe what this is or why it was chosen over other combinatorial reasoning tasks. Similarly, the stream of search is mentioned as a trajectory simulator without an explanation of how it works.
Questions
  1. Can you elaborate on why Assumption 1 holds in formal combinatorial planning and algorithmic search tasks?
  2. What is a search grammar?
Limitations

Yes.

Final justification

The authors have addressed my concerns, and I have raised my score to 4. The only thing preventing me from giving a higher score is my inability to assess what the final version would look like, since most of my concerns stemmed from the writing itself and clarity issues.

Formatting concerns

No formatting concerns.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for acknowledging our work as a "first attempt at unifying discrete expressivity theory and continuous distributional shifts for transformer reasoning."

We note your comments regarding "unfamiliarity with works in this area" and the feeling that "math/other details were not carefully checked." To ensure the main text remained accessible to a broad machine learning audience within the 9-page limit, we focused Section 2 on conceptual intuition and deferred the mathematical mechanics (definitions, proofs, and extended justifications) to the 18-page Appendix.

Below, we address each of your concerns by pointing to the specific pages, sections, and equations in our submitted manuscript where these details are documented. We hope this resolves the concerns regarding missing explanations and citations.

1. The 12 Features: Arbitrary Choice and Missing Definitions (Lines 118-119)

Your concern: "The choice of 12 features feels somewhat arbitrary... they never mention what these are in the main text... For instance, in lines 118-119, what are the total search volume, directional state transitions, sibling lateral shifts, pruning frequencies, etc.? As far as I can tell, none of these are introduced."

Response: The 12 features are not arbitrary; they are designed to formalize the macroscopic topological statistics of a Directed Acyclic Graph (DAG) search process.

First, they are introduced conceptually in the main text in Definition 1 (Page 3): "Definition 1... This operator provides a summary of the graph-traversal dynamics, encoding maximum tree depth (χ1\chi_1), total search volume (χ4\chi_4), directional state transitions (e.g., child expansion χ5\chi_5, parent backtracking χ6\chi_6, sibling lateral shifts χ7\chi_7), and pruning frequencies."

Second, the mathematical formulation for every term you asked about is provided in Appendix A.1 (Page 13, Equations 16-27), mapping them to the search graph's node-level depth (DiD_i) and sequence length (NN):

  • Total search volume (Eq. 19): χ4(z)=N\chi_4(z) = N
  • Directional state transitions / Deepening (Eq. 20): χ5(z)=1M∑i=1N−1I{Di+1>Di}\chi_5(z) = \frac{1}{M}\sum_{i=1}^{N-1}\mathbb{I}\{D_{i+1} > D_i\}
  • Parent backtracking (Eq. 21): χ6(z)=1M∑i=1N−1I{Di+1<Di}\chi_6(z) = \frac{1}{M}\sum_{i=1}^{N-1}\mathbb{I}\{D_{i+1} < D_i\}
  • Sibling lateral shifts (Eq. 22): χ7(z)=1M∑i=1N−1I{Di+1=Di}\chi_7(z) = \frac{1}{M}\sum_{i=1}^{N-1}\mathbb{I}\{D_{i+1} = D_i\} (Please see Eq. 16-27 for the complete list of all 12 formulations).

Finally, we dedicated a section, Appendix A.2 (Theoretical Justification of Structural Sufficiency), to motivate why this 12-dimensional space is physically grounded and mathematically sufficient to capture the TC0\text{TC}^0 bottlenecks: "Success in algorithmic search tasks is predominantly dictated by the macroscopic routing strategy rather than isolated token memorization. Specifically, whether a trajectory ultimately reaches a valid solution relies on exploring sufficiently deep computational graphs (captured by maximum depth χ1\chi_1), successfully executing recursive recoveries (backtracking rate χ6\chi_6), and balancing operator heuristics..."

( We will add forward-pointers in camera ready version—e.g., "see formal Eq. 16-27 in App. A.1"—directly inside Definition 1 to ensure readers immediately find the math).

2. Missing Citations (Kantorovich-Rubinstein and TC$^0$ limits)

Your concern: "A lot of facts in the paper are missing proper citations, e.g., line 210, Kantorovich-Rubinstein duality in line 114, etc."

Response: The requested citations are present in the paper.

  • Kantorovich-Rubinstein duality: Because this is a standard theorem, we placed the textbook citation in the proof sections in the Appendix. We cite [Villani, 2009] and [Weed and Bach, 2019] when defining the Wasserstein space and invoking the duality in Appendix A.3 (Page 14) and Appendix B.2 (Page 16): *"Since νS\nu_S, νT\nu_T ∈\in P1(X)\mathcal{P}_1(\mathcal{X}),

the Kantorovich-Rubinstein duality for W1W_1 applies on (X,dX)(\mathcal{X}, d_{\mathcal{X}}) [Villani, 2009, Weed and Bach, 2019]."*

  • TC$^0$ vs. NC$^1$ limitations (approx. Line 210): The foundational complexity theorems are cited a few lines above in the same section (Section 3.2, intro paragraph, Page 5), citing [Hahn, 2020] and [Merrill and Sabharwal, 2023], and are discussed in Section 6 (Related Work).

(We agree that bringing these citations forward improves ML accessibility. We will duplicate the [Villani, 2009] citation into Line 114 in the main text, in the camera ready version).

3. Empirical Details (Countdown Game & Stream of Search)

Your concern: "The section on empirical evaluation is missing many important aspects... they don't describe what this [countdown game] is or why it was chosen over other combinatorial reasoning tasks. Similarly, the stream of search is mentioned as a trajectory simulator without an explanation of how it works."

Response: Both aspects are addressed in Section 5 (Page 7) and Appendix I.4 (Page 28).

What is the Countdown game? It is a combinatorial optimization task where an agent must combine given numbers using basic arithmetic to reach a target. For example, given a Target of 10, and Numbers [2, 3, 5], the search tree works as follows:

  1. Expand node A: 2 * 3 = 6. Remaining: [6, 5].
  2. Expand node B: 6 + 5 = 11. This is a dead-end (does not equal 10).
  3. The model must backtrack to the root and try a different branch.
  4. Expand node C: 2 + 3 = 5. Remaining: [5, 5].
  5. Expand node D: 5 + 5 = 10. Success!

As documented in Appendix I.4 (Page 28), the actual prompt format provided to the models is clearly stated: "the models were evaluated on held-out validation sets... prompted identically using the initial problem state: \texttt{<|endoftext|>Current State: [Target]:[Nums], Operations:[]}."

Why was it chosen? We chose this over open-ended tasks (like GSM8K) because it provides a zero-tolerance environment to test circuit capacity. As stated in Section 5: "Given the unforgiving exact-match nature of formal combinatorial planning, the zero-one loss establishes a rigorous baseline where partial memorization yields zero reward." In unstructured chat models, arriving at a wrong answer might involve semantic hallucinations. In Countdown, if a model fails to resolve a backtracking dependency (like step 3 in our example), the generation fails. This isolates the model's architectural routing limits from language noise.

How does Stream of Search (SoS) work? SoS [Gandhi et al., 2024] is cited in Section 5. It is a text-generation framework that flattens graph search trees (like the A-B-C-D steps above) into 1D sequences. We describe how we utilized it to simulate our target distributions: "By manipulating the simulator’s heuristic evaluation strategies, we enforce distinct distributions. The μBFS\mu_{BFS} measure is synthesized via queue-based state expansions... The μDFS\mu_{DFS} measure is synthesized via recursive stack expansions, forcing deep backtracking..."

(In camera ready version, we will add the simple arithmetic example above to the appendix so the paper is fully self-contained).

4. Generalization to Unstructured Tasks

Your concern: "I'm unsure about the applicability of this framework to reasoning tasks that are not as structured as the one studied by the authors."

Response: We agree. That is why we stated this as a limitation of our work in Section 7 (Conclusion and Limitations, Page 9): "Limitations and Future Work. Our framework relies on the ϵ\epsilon-relaxed structural sufficiency; open-ended natural language reasoning may harbor higher approximation errors than formal combinatorial searches."

In deep learning theory, formal combinatorial tasks act as essential "Drosophila" (fruit fly) models. By utilizing a highly structured environment, we can isolate algorithmic bottlenecks (e.g., wide models hitting the TC0\text{TC}^0 depth ceiling). Extending this framework to model unstructured semantic noise in open-ended language is a natural direction for future work.

5. What is a search grammar?

Your concern: "What is a search grammar?"

Response: The "search grammar" Γ\Gamma (introduced in Section 2.1) is the set of rules defining valid state transitions. It defines how a search tree can be legally unrolled into a 1D sequence. We constructed the alphabet of this grammar in Appendix D.2.1 (Page 20, Eq. 82): "We define the search transition alphabet Σsearch:={δdown(1),…,δdown(k)}∪{δup(1),…,δup(k)}∪{ωeval}\Sigma_{search} := \{\delta_{down}^{(1)}, \dots, \delta_{down}^{(k)}\} \cup \{\delta_{up}^{(1)}, \dots, \delta_{up}^{(k)}\} \cup \{\omega_{eval}\}, where δdown(c)\delta_{down}^{(c)} denotes expansion to the cc-th child, δup(c)\delta_{up}^{(c)} denotes backtracking... and ωeval\omega_{eval} denotes terminal evaluation."

Any text sequence generated by the Transformer must correspond to a valid string formed by this alphabet to be considered a valid trajectory. This grammar is what allowed us to map reasoning to a Dyck-kk language and establish the TC0\text{TC}^0 circuit depth bottleneck in Theorem 1.

Reviewer 1i6Y · CommentOpenReview ↗

Thank you very much for the responses. I believe this addresses most of my concerns, and I will adjust my score accordingly. I encourage the authors to integrate the clarifications above into the main text so that it is more self-contained.

Authors · CommentOpenReview ↗

Thank you very much for the feedback and for updating your score! We're really glad to hear that our response cleared up your main concerns. we will definitely integrate these clarifications directly into the main body of the camera-ready version. Thank you!

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…