mlsanityData to 7 Oct 2026

PaTH Attention: Position Encoding via Accumulating Householder Transformations

arXiv 2505.16381 ↗First posted 22 May 2025cs.CL cs.LGcited by 32

Not on the map. Why?

Abstract (arXiv)

The attention mechanism is a core primitive in modern large language models (LLMs) and AI more broadly. Since attention by itself is permutation-invariant, position encoding is essential for modeling structured domains such as language. Rotary position encoding (RoPE) has emerged as the de facto standard approach for position encoding and is part of many modern LLMs. However, in RoPE the key/query transformation between two elements in a sequence is only a function of their relative position and otherwise independent of the actual input. This limits the expressivity of RoPE-based transformers. This paper describes PaTH, a flexible data-dependent position encoding scheme based on accumulated products of Householder(like) transformations, where each transformation is data-dependent, i.e., a function of the input. We derive an efficient parallel algorithm for training through exploiting a compact representation of products of Householder matrices, and implement a FlashAttention-style blockwise algorithm. Across both targeted synthetic benchmarks and moderate-scale real-world language modeling experiments, we find that PaTH improves upon RoPE and other recent baselines. Finally, we show that we can convert pretrained RoPE transformers into PaTH with continued pretraining.

Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 69 of its 91 references that are in the map. First posted on arXiv 22 May 2025.

Builds on

69 of 91 references.

References · 69

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  9. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  10. 2017Decoupled Weight Decay Regularizationcited by 1,722
  11. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  12. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
38 more
  1. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  2. 2018Self-Attention with Relative Position Representationscited by 1,112
  3. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
  4. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  5. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  6. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  7. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  8. 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 694
  9. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  10. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
  11. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  12. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  13. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  14. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  15. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  16. 2022Transformers Learn Shortcuts to Automatacited by 260
  17. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 211
  18. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
  19. 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
  20. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
  21. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
  22. 2024The Illusion of State in State-Space Modelscited by 181
  23. 2018Online normalizer calculation for softmaxcited by 154
  24. 2021Self-attention Does Not Need O(n2) Memorycited by 152
  25. 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 140
  26. 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 134
  27. 2021Sequence Parallelism: Long Sequence Training from System Perspectivecited by 125
  28. 2023Scaling Laws of RoPE-based Extrapolationcited by 124
  29. 2021Position Information in Transformers: An Overviewcited by 103
  30. 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvaluescited by 97
  31. 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 82
  32. 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
  33. 2020Improve Transformer Models with Better Relative Position Embeddingscited by 73
  34. 2024Theoretical Foundations of Deep Selective State-Space Modelscited by 73
  35. 2022A Logic for Expressing Log-Precision Transformerscited by 67
  36. 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
  37. 2024Contextual Position Encoding: Learning to Count What's Importantcited by 53
  38. 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 50

50 most cited of 69 All 69 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 13; 2026: 19.

32 papers.

Sort:

By area:

  1. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
  2. 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 78
  3. 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 12
  4. 2025Selective Rotary Position Embeddingcited by 8
  5. 2026Deep Delta Learningcited by 7
  6. 2025Towards High-Order Mean Flow Generative Models: Feasibility, Expressivity, and Provably Efficient Criteriacited by 5
  7. 2025Group Representational Position Encodingcited by 5
  8. 2025RePo: Language Models with Context Re-Positioningcited by 3
  9. 2026The Topological Trouble With Transformerscited by 3
  10. 2025Norm×Direction: Restoring the Missing Query Norm in Vision Linear Attentioncited by 2
  11. 2025Beyond Real: Imaginary Extension of Rotary Position Embeddings for Long-Context LLMscited by 2
  12. 2026HyperMLP: An Integrated Perspective for Sequence Modelingcited by 2
20 more
  1. 2025Design Principles for Sequence Models via Coefficient Dynamicscited by 1
  2. 2026LUCID: Attention with Preconditioned Representationscited by 1
  3. 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic Viewcited by 1
  4. 2026When Good Enough Is Optimal: Multiplication-Only Matrix Inversion Approximation for Quantized Gated DeltaNetcited by 1
  5. 2026Comparing Transformers and Hybrid Models at the Token Levelcited by 1
  6. 2026LeRoPE: Learnable RoPE Frequencies Improve Language Modelingcited by 1
  7. 2026Kalman Delta Networks: Uncertainty-aware Associative Memorycited by 1
  8. 2025Causal Attention with Lookahead Keyscited by 0
  9. 2025An empirical study on the limitation of Transformers in program trace generationcited by 0
  10. 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspectivecited by 0
  11. 2025MapFormer: Self-Supervised Learning of Cognitive Maps with Input-Dependent Positional Embeddingscited by 0
  12. 2026Rational Transductorscited by 0
  13. 2026The Transformer as a Polar State Estimatorcited by 0
  14. 2026Long-Context Demonstration Selection Using State Space Modelscited by 0
  15. 2026Length-Independent State Tracking Under a Parallel Scancited by 0
  16. 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodingscited by 0
  17. 2026LLMs are General Asynchronous Agentscited by 0
  18. 2026How Local Mixing Encodes Relative Position in Global NoPE Attentioncited by 0
  19. 2026A Self-Pruning Transformer: Extreme KV-Cache Compression with Universal Attentioncited by 0
  20. 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Positioncited by 0