RePo: Language Models with Context Re-Positioning
Not on the map. Why?
Abstract (arXiv)
In-context learning is fundamental to modern Large Language Models (LLMs); however, prevailing architectures impose a rigid and fixed contextual structure by assigning linear or constant positional indices. The rigid position information poses the full burden of organizing the input structure to attention layers, thus reducing the amount of attention that could be allocated for more critical information. To address this, we propose RePo, a novel mechanism that alleviates the burden for attention layers via context re-positioning. Unlike conventional approaches, RePo utilizes a differentiable module, fφ, to assign token positions that capture contextual dependencies, rather than replying on pre-defined order. By continually pre-training on the OLMo-2 1B & 7B models, we demonstrate that RePo consistently enhances performance on tasks involving noisy contexts, structured data, and longer context length, while maintaining competitive performance on general short-context tasks. Analysis reveals that RePo successfully allocates more attention mass to distant but relevant information, assigns positions in a dense and non-linear space, and captures the intrinsic structure of the input context. Our code is at https://github.com/SakanaAI/repo.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 41 of its 59 references that are in the map. First posted on arXiv 16 Dec 2025.
Builds on
41 of 59 references.
References · 41
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2025Qwen3 Technical Reportcited by 8,820
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
29 more
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
- 2020GLU Variants Improve Transformercited by 1,804
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2017Convolutional Sequence to Sequence Learningcited by 552
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 398
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2020HybridQA: A Dataset of Multi-Hop Question Answering over Tabular and Textual Datacited by 264
- 2023Can Language Models Solve Graph Problems in Natural Language?cited by 252
- 2024Generalization or Memorization: Data Contamination and Trustworthy Evaluation for Large Language Modelscited by 122
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 90
- 2023System 2 Attention (is something you might need too)cited by 89
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 86
- 2025Reasoning or Memorization? Unreliable Results of Reinforcement Learning Due to Data Contaminationcited by 82
- 2024Contextual Position Encoding: Learning to Count What's Importantcited by 54
- 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 53
- 2024Length Generalization of Causal Transformers without Position Encodingcited by 47
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 47
- 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 44
- 2025PaTH Attention: Position Encoding via Accumulating Householder Transformationscited by 34
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddingscited by 26
- 2024HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and Extrapolationcited by 17
- 2025Selective Rotary Position Embeddingcited by 9
- 2025Wavelet-based Positional Representation for Long Contextcited by 6
- 2025SeqPE: Transformer with Sequential Position Encodingcited by 2
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Generative 3D Gaussians with Learned Density Controlcited by 4
- 2026Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoderscited by 0
- 2026MemDefrag: Latent Memory Defragmentation for Large Language Modelscited by 0
- 2026Frontier Language Models Struggle to Copy: Text Can Be Better Viewed in 2Dcited by 0
- 2026Frontier Language Models Struggle to Copy: Text Can Be Better Viewed in 2D17 Jul 2026
- 2026MemDefrag: Latent Memory Defragmentation for Large Language Models7 Jul 2026
- 2026Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoders28 May 2026
- 2026Generative 3D Gaussians with Learned Density Control8 May 2026