- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
This work addresses a good question: recurrent-depth Transformers extrapolate reliably under length shifts. The paper studies the observation that Looped Transformers can sometimes contain computations that solve longer out-of-distribution instances, but deterministic training schedules do not reliably select such computations across independent runs. The authors frame the number of loop iterations used during training as a stopping-schedule design choice rather than only an inference-time compute allocation rule.
Strengths and weaknesses
Strengths:
The experiments make a convincing case that a looped architecture may have a correct computation somewhere along its trajectory, while the training and stopping schedule may fail to select it reliably.
The paper evaluates several stopping schedules, reports many independent seeds, includes controlled variance experiments, and tests beyond the main binary-addition task on Dyck-1, Unique Set, and Copy.
Weaknesses:
Authors correctly state that this is a diagnostic metric rather than an inference policy, but much of the main quantitative evidence, including Table 1, is still based on this oracle view. Since the paper is precisely about stopping, it is important to know whether the learned or prescribed stopping rule actually selects the useful computation at test time.
The second concern is that the causal explanation behind the instability is somewhat stronger than the evidence. The paper argues that spurious correlation between input length and loop count is a source of brittle extrapolation, and the toy gradient-averaging analysis is plausible. Still, the empirical evidence mainly shows that randomization helps; it does not fully isolate why it helps.
Questions
-
Authors should report non-Oracle policy accuracy for all main tasks and schedules.
-
It is better for authors to provide more direct evidence for the proposed mechanism behind stabilization. The gradient-averaging and loop-consistency explanations are plausible, but currently mostly toy analyses.
-
How much of RL-Halting’s gain comes from learning the distribution rather than simply adding stochasticity.
-
Why does RL-Halting fail on Copy, and what task properties determine when stochastic stopping helps?
-
It is better to state clearly in the main text what K_eval is for oracle accuracy, what T_test is for RL-Halting policy evaluation, and whether stopping is done by sampling, argmax probability, or another rule.
Limitations
See weaknesses and questions.
Paper formatting concerns
NA
We thank the reviewer for the careful and constructive assessment. Our additional analyses show:
1. Policy-based evaluation versus oracle evaluation
Weakness 1; Questions 1 and 5
We agree that oracle accuracy is diagnostic: it asks whether a correct computation occurs along the trajectory, not whether the stopping rule selects it. We therefore extend the oracle–policy analysis from Appendix C.3 to all tasks and schedules. Policy and oracle values below are aggregate means over their respective available runs; the reported gap is the difference between these aggregate OOD accuracies rather than a paired estimate.
RL-Halting achieves the highest policy OOD accuracy on Addition, Dyck-1, and Unique Set, showing that its gains persist without oracle depth selection. The stochastic schedules also have substantially smaller aggregate oracle–policy gaps than the deterministic schedules. On Copy, K=n±5 remains the best policy, consistent with our finding that learned stopping can stabilize a suboptimal computation.
For clarity, the precise evaluation rules are:
- Oracle accuracy searches Keval={1,…,n+2} and uses the ground truth to take the per-example maximum, as defined in Eq. 3.
- Fixed and length-matched schedules use K=20 and K=n, respectively.
- The K=n±5 training schedule uses its centre depth, K=n, at inference.
- RL-Halting evaluates its learned stopping distribution with Ttest=30 and selects
\pi_{\mathrm{stop},\phi}^{(T_{\mathrm{test}})}(t\mid x).$$ Thus, RL-Halting samples stopping depths during training but uses deterministic maximum-probability stopping for the policy results above. We will report this table and specify $K_{\mathrm{eval}}$, $T_{\mathrm{test}}$, and all inference rules explicitly in the main text. ### 2. Causal evidence and the stabilization mechanism *Weakness 2; Question 2* Our schedule comparisons are controlled interventions: we change the distribution of supervised loop depths while holding all non-schedule settings fixed. Relative to deterministic $K=n$, training with $K=n\pm5$ substantially reduces run-to-run OOD variability, as shown in Table 1. The fixed-budget ablation in Table 2 provides a complementary control: $K=20\pm5$ reduces the Addition OOD standard deviation from 7.4% to 4.7%, while leaving mean OOD accuracy unchanged at 34.2%. **These results provide causal evidence that the training-depth schedule affects OOD stability.** To test the proposed gradient-averaging mechanism more directly, we compare stochastic $K=n\pm5$, which samples one supervised depth per example, with deterministic multi-depth supervision, which averages losses over every depth in the same window. | Training supervision | Oracle OOD | Policy OOD | Oracle std. | Policy std. | Oracle–policy gap | | --- | ---: | ---: | ---: | ---: | ---: | | Stochastic $\pm5$, one depth | **30.9%** | **29.6%** | 5.9% | 5.2% | 1.33 pp | | Deterministic multi-depth | 27.6% | 26.2% | **3.9%** | **3.7%** | 1.33 pp | | Multi-depth − stochastic | −3.3 pp | −3.3 pp | −2.0 pp | −1.5 pp | $\approx 0$ | Multi-depth supervision reduces oracle OOD standard deviation to 3.9%, compared with 9.9% for the original single-depth $K=n$ baseline, and obtains the same small oracle–policy gap as stochastic $K=n\pm5$. **Thus, stochastic sampling is sufficient but not necessary for stabilization on Addition: supervision across a neighborhood of depths is sufficient to reduce both run-to-run variability and sensitivity to the selected stopping depth.** This result supports the mechanisms proposed in Sections 5.1–5.2. Under the stochastic schedule, the single-depth gradient is an unbiased estimator of the schedule-averaged gradient, whereas deterministic multi-depth supervision computes this depth average explicitly. The lower observed variance under multi-depth supervision provides empirical support for the gradient-averaging explanation, while the identical oracle–policy gaps provide output-level evidence consistent with the loop-consistency view. At the same time, stochastic sampling obtains 3.3 pp higher oracle and policy OOD accuracy. **This confirms an important distinction in our paper: depth averaging stabilizes training, but the optimization protocol still affects which computation is selected, and greater stability does not necessarily imply better extrapolation.** We will clarify the scope of the causal claim in the revision. The interventions establish that the training-depth schedule is a causal factor in stability, while the ablation provides empirical support for depth averaging as a stabilization mechanism. Because $K=n\pm5$ weakens rather than eliminates the length–depth correlation, we will describe deterministic length–depth coupling as a contributing source of fragility rather than its unique cause. ### 3. Learning the distribution versus adding stochasticity *Question 3* To assess adaptivity beyond generic sampled-depth supervision, we compare RL-Halting directly with $K=n\pm5$. Both methods supervise one sampled depth per example during training. The key experimental difference is that RL-Halting learns its sampling distribution from the realized task loss, whereas $K=n\pm5$ uses a fixed hand-designed distribution. We match runs with the same initialization and data-generation seed and apply two-sided exact paired sign-flip tests to per-run oracle OOD accuracy. The paired-subset means can differ slightly from Table 1, which averages all available runs. We report the task-wise exact $p$-values. | Task | $N$ | RL-Halting OOD | $K=n\pm5$ OOD | Difference | Paired $p$ | | --- | ---: | ---: | ---: | ---: | ---: | | Addition | 8 | 44.99% | 30.91% | **+14.08 pp** | 0.0078 | | Dyck-1 | 8 | 97.18% | 84.02% | **+13.16 pp** | 0.0469 | | Unique Set | 9 | 82.14% | 72.82% | **+9.32 pp** | 0.0273 | | Copy | 7 | 43.97% | 52.58% | **−8.62 pp** | 0.0313 | **On matched seeds, RL-Halting has higher mean OOD accuracy than $K=n\pm5$ on Addition, Dyck-1, and Unique Set, but lower accuracy on Copy.** Thus, learning the distribution can provide an additional benefit over hand-designed stochasticity, but it is not uniformly beneficial: the learned distribution can also induce a suboptimal computation. ### 4. RL-Halting on Copy *Question 4* Copy is an informative boundary case. RL-Halting obtains 43.2% oracle OOD accuracy and, in our additional policy evaluation, 41.3% policy accuracy. **This small 1.9-point gap indicates that the failure is not primarily due to selecting the wrong inference depth: the RL-trained trajectory itself has limited OOD accuracy.** Our Copy-specific diagnostic also shows that the learned stopping distribution remains broad within the training regime rather than collapsing to a deterministic depth. On Copy, $K=n$ achieves 68.7% oracle OOD accuracy and $K=n\pm5$ achieves 55.9%, compared with 43.2% for RL-Halting. Meanwhile, RL-Halting reduces run-to-run standard deviation to 2.7%, versus 13.2% for $K=n$ and 8.5% for $K=n\pm5$. **It therefore stabilizes a weaker OOD trajectory.** Because RL-Halting optimizes realized in-distribution loss rather than OOD performance, its objective does not guarantee the best OOD computation. Our experiments do not yet identify a general task-level criterion; they show that Copy favors exact length-matched training in this setting. Understanding which stopping biases favor extrapolation—and how to encode them through improved rewards or priors—is an important direction for future work.