mlsanityData to 14 Oct 2026

HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and Extrapolation

arXiv 2410.21216 ↗First posted 28 Oct 2024cs.CL cs.AI cs.LGcited by 17

Not on the map. Why?

Abstract (arXiv)

Many positional encodings (PEs) are designed to exhibit long-term decay, based on an entrenched and long-standing inductive opinion: tokens farther away from the current position carry less relevant information. We argue that long-term decay is outdated in the era of LLMs, as LLMs are now applied to tasks demanding precise retrieval of in-context information from arbitrary positions. Firstly, we present empirical analyses on various PEs, demonstrating that models inherently learn attention with only a local-decay pattern while forming a U-shape pattern globally, contradicting the principle of long-term decay. Furthermore, we conduct a detailed analysis of rotary position encoding (RoPE, a prevalent relative positional encoding in LLMs), and found that the U-shape attention is caused by some learned components, which are also the key factor limiting RoPE's expressiveness and extrapolation.Inspired by these insights, we propose High-frequency rotary Position Encoding (HoPE). HoPE replaces the specific components in RoPE with position-independent ones, retaining only high-frequency signals, which also breaks the principle of long-term decay in theory. HoPE achieves two major advantages: (1) Without constraints imposed by long-term decay, contradictory factors that limit spontaneous attention optimization and model extrapolation performance are removed. (2) Components representing positions and semantics are are optimized. These enhances model's context awareness and extrapolation, as validated by extensive experiments.

Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 29 of its 39 references that are in the map. First posted on arXiv 28 Oct 2024.

Builds on

29 of 39 references.

References · 29

  1. 2017Attention Is All You Needcited by 60,361
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  8. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  9. 2023Let's Verify Step by Stepcited by 3,789
  10. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  11. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  12. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
17 more
  1. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
  2. 2018Self-Attention with Relative Position Representationscited by 1,120
  3. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  4. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
  5. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  6. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  7. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
  8. 2019WinoGrande: An Adversarial Winograd Schema Challenge at Scalecited by 204
  9. 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 117
  10. 2021Can contrastive learning avoid shortcut solutions?cited by 114
  11. 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 86
  12. 2024Contextual Position Encoding: Learning to Count What's Importantcited by 54
  13. 2022Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysiscited by 42
  14. 2021SHAPE: Shifted Absolute Position Embedding for Transformerscited by 37
  15. 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
  16. 2023An Analysis and Mitigation of the Reversal Cursecited by 22
  17. 2021Regularized Nonlinear Regression for Simultaneously Selecting and Estimating Key Model Parameterscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 5; 2026: 10.

17 papers.

Sort:

By area: