Two-layer transformer design copies repeated strings where frontier models stumble
An arXiv paper proposes VO-rotations, a positional encoding scheme that lets a small transformer copy arbitrarily repeated text and stop correctly, with a matching impossibility proof.
In plain words
Large language models can usually copy text exactly, but they often fail when a string repeats the same characters many times, because nothing tells them where the repetition ends. The paper's authors show a two-layer transformer using their rotation-based position encoding can copy any string up to a chosen length and stop correctly. They also prove related models cannot do this.
What was announced
The authors argue that in long runs of identical tokens, matching local content no longer reveals where copying should continue or stop. Their fix, VO-rotations, applies RoPE-style rotations to attention values and outputs with small prime periods, encoding distances from delimiter anchors modulo those primes. By the Chinese Remainder Theorem, these periodic encodings jointly distinguish all required distances, so a single retrieval rule can select either the next source token or the end marker. With logarithmic-bit precision and modest width, such a two-layer transformer copies every string up to a design horizon N and terminates correctly under arbitrary repetition.
The paper also proves a width-independent impossibility result for transformers whose only positional signal is an additive attention bias that eventually becomes constant, covering NoPE and a recursive ALiBi variant. Once an identical-token run exceeds the saturation threshold, further repetitions leave the logits unchanged, so if that threshold grows sublinearly, the model cannot both complete a long all-identical copy and stop correctly — error modes the authors say resemble those of frontier LLMs. In synthetic experiments, baseline transformers failed on long repeated strings even within their training range, while trained VO models generalized beyond training lengths with near-perfect accuracy up to length about 5005, the primes' period product.
What it does not show
- Evidence is limited to the paper's abstract, so full proofs, experimental setup and any practical constraints are not visible here.
- The near-perfect accuracy figure comes from synthetic copying experiments by the authors and has not been independently confirmed.
- The abstract does not establish whether VO-rotations improve real-world LLM tasks beyond synthetic copying.
For security and IT teams
- Scope
- The reported guarantees apply to synthetic copying tasks up to a chosen design horizon, with the accuracy result demonstrated up to length approximately 5005.
Sources
Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 4 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.