- Rating
- 5
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper tackles length extrapolation, where the aim is to make LLMs capable of utilizing long-contexts, while only being trained on short contexts, for cost savings. The authors argue that the core limitation of rotary positional encodings (RoPE) lies in controlling all positional dimensions through a single global index, which couples training-time positional variation with extrapolation behavior. They propose Tree Rotary Positional Encoding (TPE), which decomposes the absolute position into multiple bounded digit components, so that long positions are compositions of components seen during training. A complementary training strategy (OPT) randomly offsets part of each training sequence to diversify these compositions. The authors support their claims with theoretical derivations and empirical comparisons against established positional encoding baselines.
Strengths and weaknesses
Strengths
- The paper is clearly written and well structured. In particular, the exposition of RoPE, its limitations regarding extrapolation and under-trained low-frequency dimensions, and the surrounding related work is clean and intuitive, making the paper accessible.
- The proposed method is well motivated. The diagnosis that a single global positional index couples training-time positional variation with extrapolation behavior is plausible, and the multi-scale decomposition with bounded, reusable components follows naturally from it.
- The empirical study includes thorough ablations of newly introduced hyperparameters, which makes the method more transparent.
- The method is supported by theoretical analysis covering position coverage, a generalization bound, and the variance of attention scores across relative positions.
- The evaluation protocol is well chosen. Perplexity probes the likelihood of the model, while passkey retrieval probes its generation behavior.
- The empirical improvements over the baselines are substantial and consistent across model scales. While the resulting models are not practically usable at these scales and context lengths, the relative gains provide convincing evidence for the algorithm itself rather than for a particular experimental configuration, only reported in the appendix.
Weaknesses
- The method introduces a considerable number of new hyperparameters. While the sensitivity against them is largely explored, the added tuning burden compared to RoPE remains, and guidance for choosing these values in new settings and models is limited.
- TPE breaks the relative shift invariance that motivates rotary encodings in the first place, since the same displacement is encoded differently depending on where it falls relative to digit resets. The paper presents this property exclusively as a benefit through Theorem 3, but does not analyze the potential cost. One large representational cutoff at the training length is effectively traded for many small discontinuities at each reset of each digit.
- No uncertainty quantification is reported for the main results. The checklist (L1101) claims that the mean and standard deviation across multiple runs are reported, but this only holds for the TPE-0.3B configuration.
- Table 1 contains missing entries due to out-of-memory failures, leaving the comparison at the longest contexts incomplete for some baselines.
- The main paper evaluation relies on perplexity and synthetic passkey retrieval only. Realistic long context benchmarks, for example, multi-hop question answering such as HotpotQA, are absent from the main paper.
Minor Weaknesses
- The checklist states "We will release our code upon acceptance" (L1064), but an anonymized repository is already provided in the footnote on page 7.
- There is a formatting error in L176.
- There is a line break in the middle of the equation around L215.
- The authors may want to reconsider the acronym, as TPE is already established in the machine learning community for the Tree-structured Parzen Estimator.
Questions
- How does attention behave for token pairs straddling a digit reset boundary compared to pairs at the same relative distance within one digit block? An analysis of this kind would address the concern about the broken shift invariance.
- How should the hierarchy depth, base radix, and offset sampling range be chosen for training lengths beyond 512, and is there a principled relationship between these values and the training context?
Limitations
yes
Paper formatting concerns
None.
Final justification
I maintain my rating of 5 (Accept) and have increased my confidence from 3 to 4 following the discussion.
Resolved: (1) The authors provided practical hyperparameter selection guidance (hierarchy depth, radix, offset range) that should be included in the camera-ready. (2) The trade-off of broken shift invariance at digit-reset boundaries was analyzed and shown to be sparse, bounded, and empirically limited (Appendix D.8). (3) Multi-seed statistics for the 60M and 300M configurations were provided during the discussion period and confirm that TPE's ranking is stable under checkpoint-level variation. (4) The OOM entries in Table 1 were satisfactorily explained as an ALiBi implementation limitation, not selective omission. (5) RULER results including HotpotQA-based multi-hop QA (qa_2) address the concern about realistic long-context evaluation; I encourage the authors to surface these in the main paper.
The paper is well written, well motivated, and the empirical gains are substantial and consistent. I recommend acceptance.
Thanks for your detailed comments. Responses are below:
A1. TPE hyperparameters should be selected primarily from the training context and target extrapolation range, rather than model size. The practical objective is to cover the target position space with the shallowest hierarchy while ensuring that each component is sufficiently observed during training. For our 512-token training context and 256K target range, B=512 and L=2 naturally give BL=262,144.
A2. The cost is a localized loss of exact shift equivariance: token pairs with the same global distance may receive different digit-wise representations when one pair crosses a reset boundary. This is an explicit trade-off in TPE. Rather than extrapolating every rotary dimension through unseen phases, TPE represents boundary crossings through bounded carry operations across levels, improving long-range discrimination at the expense of exact global invariance.
We will clarify this trade-off explicitly: TPE replaces exact global shift invariance with mostly invariant local encoding plus sparse, structured boundary-dependent variation.
A3. We agree that broader uncertainty estimates would strengthen the evaluation. We are currently running additional multi-seed experiments for the 60M and 300M configurations and will continuously update the mean and variance statistics here as soon as the results become available.
A4. The missing entries reflect hardware-memory limitations under the same evaluation protocol, rather than selective omission. In particular, under our current implementation, ALiBi introduces an explicit attention-score bias that cannot use the same memory-efficient FlashAttention path as RoPE/TPE, leading to substantially higher latency and memory usage; Table 1 already reports 9.39 GB at 8K for ALiBi-60M, while TPE has the same memory footprint as RoPE.
A5. We agree that Passkey alone is insufficient, and our RULER evaluation already includes QA tasks derived from realistic datasets, including qa_2, which is based on HotpotQA and requires multi-document evidence integration. Therefore, the evaluation covers not only retrieval but also a more demanding form of long-context multi-hop question answering.
Table A. RULER performance (%) of RoPE, FoPE, and TPE on the OLMo-1.2B model.“--” denotes subtask corpus cannot be constructed at this length.
A6. Thanks for your careful inspection. We will correct the code-release statement, formatting issues, equation line break, and acronym ambiguity in the revised manuscript. We greatly appreciate these detailed and helpful comments.