ResearchResearch paperLarge Language Models · Efficiency & Inference · Retrieval, RAG & Search1 source · Oct 19, 2026

Copying Under Repetition: From Prefix Matching to Position Hashing

Nevertheless, we show that a two-layer transformer with $O(\log\log N)$-bit precision and $O(\log N/\log\log N)$ width can copy every string up to a chosen design horizon $N$ and terminate correctly under arbitrary repetition.

Key points

  • Frontier LLMs can copy random text almost flawlessly, yet they often overrun or truncate long blocks of repeated characters.
  • In repeated strings, matching local content no longer reliably identifies where copying should continue or when it should stop.
  • In contrast, we prove a width-independent impossibility result for copying under sequential finite-precision softmax accumulation.
  • If this threshold grows sublinearly with $N$, these models cannot both complete a long all-identical copy and stop correctly, a pattern resembling the termination errors of frontier LLMs. In synthetic copying experiments, baseline transformer models fail on long repeated strings even within the training range.

Sources (1)

  • [1]Copying Under Repetition: From Prefix Matching to Position Hashing
    arXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 19, 04:50 PM
    Nevertheless, we show that a two-layer transformer with $O(\log\log N)$-bit precision and $O(\log N/\log\log N)$ width can copy every string up to a chosen design horizon $N$ and terminate correctly under arbitrary repetition.
    Frontier LLMs can copy random text almost flawlessly, yet they often overrun or truncate long blocks of repeated characters.

Extractive summary: sentences quoted from the sources.

Before this

  1. Oct 19, 2026PFedQFT: Personalized Federated Quantum-Inspired Fine-Tuning for Medical Large Language Models
  2. Oct 19, 2026TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning
  3. Oct 18, 2026DiaLong: Benchmarking Reminiscence in Long-Context Dialogues
  4. Oct 17, 2026deepseek-ai/DeepSeek-V4.1-Flash-1017
  5. Oct 16, 2026Encoder-Free Multimodal LLMs Learn Implicit Encoders
  6. Oct 16, 2026Hugging Face ❤️ TorchTPU: TPUs, Natively

Related