- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The paper diagnoses a real issue in copying texts even in Frontier Language Models - especially when there are repeating substrings in the source text to copy. The explores why this may happen, and proposes a new positional encoding strategy to solve this (2D-rope). The idea is to track 2D co-ordinate positional index - such as a (row index, column index), where the row index resets on "line-breaks". The idea is that if the text to copy constitutes a specific row say i, then copying simply becomes a matter of capturing the specific row i, and then looking at the same column as the output position/column. The removes the need for more complex operations to get to the right position which can require knowledge of the input length and such. The paper explores both rule-based "line-break" detection (example characters like "\n") and also auto-RoPE2D where the model auto-learns implicit line-breaks in a data dependent manner.
Strengths and weaknesses
Strengths
- The diagnosis of copy-struggle is important and relevant. Copying of substring (example for grounding, tool calls etc.) can be very practical and important for a lot of tasks. While there are previous tasks exploring copy showing Transformers work well in comparison to SSMs, this paper shows that frontier Transformers can still struggle especially when there are repeating substrings which can confound the model.
- The proposed methods RoPE-2D and Auto-RoPE-2D are interesting and creative.
Weaknesses
- Baselines are mainly RoPE, other positional encodings like DAPE/TAPE (or any good representative of contextual positional encoding) are not considered.
- I am not totally convinced whether 2D is the right direction. This relies on the idea of some form of "line-break" that is implicitly or explicitly present. But that doesn't seem to be always the case for any copy context. For instance, a task like "'858655782859859' - what are the 4th-7th characters in the previous string?" -- the part to copy is not within any clear line-break. Even implicit line-break doesn't exist for auto-mode especially in a causal context, because we can change the trailing query to ask for different character slice. Even if we treat the quotations as line-breaks, it still seems to devolve to the original 1D-RoPE situation in effect within the '858655782859859' row - although 2D may be still overall still a bit better than baselines. This makes me feel like the solution is rather brittle, and closer to a "hack" rather than a principled direction. That said, I still do think the solution is interesting enough and the diagnosis is important enough for publication. Also, even if it may not completely solve copy and all possible algorithmic variants of it, 2D may be generally useful as the idea of line-break is quite natural in natural language contexts and other cases (even code). So I don't want to block the paper for this; but I do urge to introduce more discussions on this on a dedicated limitation/future work section (also refer it from the main paper if possible).
Questions
n/a
Limitations
Yes, but could be expanded (weakness 2).
Paper formatting concerns
n/a
Final justification
Most of the core weaknesses have been addressed or at least suggestions have been provided for future work. I maintain my already positive score.
Dear Reviewer
xEcJ,We sincerely appreciate your acknowledgment that "the diagnosis of copy-struggle is important and relevant." and that the proposed methods RoPE-2D and Auto-RoPE-2D “are interesting and creative.” Your comments are invaluable, and we hope this response addresses your concerns and provides further clarification about our paper.
W1: Baselines are mainly RoPE, other positional encodings like DAPE/TAPE (or any good representative of contextual positional encoding) are not considered.
A: Thank you for pointing this out. We have added direct comparisons with CoPE, DAPE, and RePo in the revised version. These methods provide representative contextual or input dependent alternatives to standard positional encodings.
Our original comparison already covers several standard positional encodings. In the synthetic experiments, we compare 2D RoPE with RoPE, ALiBi, NoPE, and RNoPE using both one layer and twelve layer Transformers. These methods represent rotary encoding, relative attention bias, no explicit positional encoding, and hybrid attention. Across different architectures and data distributions, 2D RoPE consistently shows much stronger length generalization.
We now additionally compare with 3 contextual positional encodings: CoPE, DAPE, and RePo under our copy task setup. All three methods achieve perfect accuracy within the training length range of 1 to 100. However, their performance drops sharply immediately beyond this range. On lengths from 101 to 200, CoPE obtains accuracies of 0.5, 0.7, and 0.5 on the Imbalanced, Random, and Repeat Flip distributions. DAPE obtains 0.2, 0.3, and 0.3, while RePo obtains zero on all three distributions. From length 201 onward, all three methods obtain zero accuracy across all distributions. In contrast, the twelve layer 2D RoPE model maintains perfect copying at lengths far beyond those seen during training.
These additional results show that the observed advantage is not specific to a comparison with RoPE or other fixed positional encodings. Contextual positional information alone also fail to learn copy.
COPE [1] (nlayer=12)
DAPE [2] (nlayer=12)
RePo [3] (nlayer=12)
[1] DAPE: Data-Adaptive Positional Encoding for Length Extrapolation
[2] Contextual Position Encoding: Learning to Count What's Important
[3] RePo: Language Models with Context Re-Positioning
W2: I am not totally convinced whether 2D is the right direction. This relies on the idea of some form of “line break” that is implicitly or explicitly present.
A: We thank the reviewer for this thoughtful comment. We agree that rule based 2D RoPE relies on linebreaks and is not intended as a complete solution for every possible text structure. We would like to clarify what the current results establish and how we view the longer term direction.
The simple 2D construction through line breaks already provides substantial benefits beyond line separated copying. Line breaks are natural structural markers in books, scientific documents, source code, lists, tables, and many other forms of text. Our results show that using this simple structure is useful not only for the controlled copy task. Table 1 shows that 2D RoPE improves performance on NIAH. Our new long context language modeling experiments further show substantially lower perplexity than RoPE on PG19, ArXiv, and GitHub as the context length increases. These results demonstrate that a simple line based structural prior can provide meaningful benefits on natural language, scientific documents, and code. Please also see our response to W1 and W3 for Reviewer
njz7for the complete results.We believe that learning the two dimensional positions automatically is the more promising long term direction. The purpose of rule based 2D RoPE is to demonstrate that injecting a simple structural prior can change the positional geometry of a task and substantially improve length generalization. In the copy setting, it converts a source to target relation that changes with sequence length in one dimension into a fixed relative displacement in two dimensions. Both theoretical and empirical results provide evidence that 2D coordinates are useful, even when they are constructed using a simple predefined rule.
We introduce Auto 2D RoPE as a proof of concept for learning the 2D coodinates from the context automatically. Auto 2D RoPE generates coordinate updates from token representations rather than relying on a predefined linebreak token. In our experiment, we replace the newline separator with another token. Rule based 2D RoPE can no longer identify the row boundary and largely loses its length generalization advantage. In contrast, Auto 2D RoPE learns a useful positional structure and continues to generalize to longer inputs. This provides initial evidence that the dependence on predefined line breaks can be relaxed. The method and results are described in Section 5.3 and Appendix H.
A complete development of Auto 2D RoPE is beyond the scope of the present paper. A practical version would require efficient CUDA or Triton kernels, large scale pretraining, and systematic evaluation on copying, long context language modeling, and broader downstream tasks. This would constitute a substantial research project in its own right. We therefore intentionally present Auto 2D RoPE as an initial demonstration, while focusing this paper on identifying the limitation of standard one dimensional positional encodings and establishing two dimensional positional encoding as a promising alternative through theory and experiments. We will make this scope and the corresponding future directions explicit in the revised version.
We will clarify both the scope and the open questions in the revision. We will add a dedicated limitations and future work discussion explaining when the line break construction is appropriate, when rule-based 2D RoPE may lose its advantage, and how Auto 2D RoPE could be developed into a more general method for learning structural coordinates. A systematic study of automatically inferred positional structures across broader text formats and pretraining settings is an important direction for future work.