EMNLP Findings2024
On the token distance modeling ability of higher RoPE attention dimension
Xiangyu Hong, Che Jiang, Biqing Qi, Fandong Meng, Mo Yu, Bowen Zhou, Jie Zhou
Abstract
Length extrapolation algorithms based on Rotary position embedding (RoPE) have shown promising results in extending the context length of language models. However, understanding how position embedding can capture longer-range contextual information remains elusive. Based on the intuition that different dimensions correspond to different frequencies of changes in RoPE encoding, we conducted a dimension-level analysis to investigate the correlation between a hidden dimension of an attention head and its contribution to capturing long-distance dependencies. Using our correlation metric, we identified a particular type of attention heads, which we named Positional Heads, from various length-extrapolated models. These heads exhibit a strong focus on long-range information interaction and play a pivotal role in long-input processing, as evidenced by our ablation. We further demonstrate the correlation between the efficiency of length extrapolation and the extension of the high-dimensional attention allocation of these heads. The identification of Positional Heads provides insights for future research in longtext comprehension.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Efficient Streaming Language Models with Attention Sinks cites YaRN: Efficient Context Window Extension of Large Language Models
- Towards Long-window Anchoring in Vision-Language Model Distillation cites YaRN: Efficient Context Window Extension of Large Language Models
- Towards Long-window Anchoring in Vision-Language Model Distillation cites LLM Maybe LongLM: SelfExtend LLM Context Window Without Tuning
- Data Engineering for Scaling Language Models to 128K Context cites Efficient Streaming Language Models with Attention Sinks
- Data Engineering for Scaling Language Models to 128K Context cites YaRN: Efficient Context Window Extension of Large Language Models
- InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory cites Efficient Streaming Language Models with Attention Sinks
- InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory cites YaRN: Efficient Context Window Extension of Large Language Models
- InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory cites LLM Maybe LongLM: SelfExtend LLM Context Window Without Tuning
- LLM Maybe LongLM: SelfExtend LLM Context Window Without Tuning cites Efficient Streaming Language Models with Attention Sinks
- LLM Maybe LongLM: SelfExtend LLM Context Window Without Tuning cites YaRN: Efficient Context Window Extension of Large Language Models
- TriAttention: Efficient Long Reasoning with Trigonometric KV Compression cites Efficient Streaming Language Models with Attention Sinks
- TriAttention: Efficient Long Reasoning with Trigonometric KV Compression cites YaRN: Efficient Context Window Extension of Large Language Models
Cited by top-tier papers8
- PhysioWave: A Multi-Scale Wavelet-Transformer for Physiological Signal RepresentationYanlong Chen, Mattia Orlandi, Pierangelo Maria Rapa, Simone Benatti et al.NeurIPS 2025 · 17 citations
- TriAttention: Efficient Long Reasoning with Trigonometric KV CompressionWeian Mao, Xi Lin, Wei Huang, Yuxin Xie et al.ICML 2026 · 16 citations
- Beyond Text-Visual Attention: Exploiting Visual Cues for Effective Token Pruning in VLMsQizhe Zhang, Aosong Cheng, Ming Lu, Renrui Zhang et al.ICCV 2025 · 8 citations
- Feather the Throttle: Revisiting Visual Token Pruning for Vision-Language Model AccelerationMark Endo, Xiaohan Wang, Serena Yeung-LevyICCV 2025 · 3 citations
- Towards Long-window Anchoring in Vision-Language Model DistillationHaoyi Zhou, Shuo Li, Tianyu Chen, Qi Song et al.AAAI 2026 · 1 citation
Builds on8
- Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han et al.ICLR 2024 · 1,714 citations
- YaRN: Efficient Context Window Extension of Large Language ModelsBowen Peng, Jeffrey Quesnelle, Honglu Fan, Enrico ShippoleICLR 2024 · 508 citations
- InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context MemoryChaojun Xiao, Pengle Zhang, Xu Han, Guangxuan Xiao et al.NeurIPS 2024 · 223 citations
- Data Engineering for Scaling Language Models to 128K ContextYao Fu, Rameswar Panda, Xinyao Niu, Xiang Yue et al.ICML 2024 · 204 citations
- LLM Maybe LongLM: SelfExtend LLM Context Window Without TuningHongye Jin, Xiaotian Han, Jingfeng Yang, Zhimeng Jiang et al.ICML 2024 · 167 citations
Related papers
- The Rotary Position Embedding May Cause Dimension Inefficiency in Attention Heads for Long-Distance RetrievalTing-Rui Chiang, Dani YogatamaACL Findings 2025 · 1 citation
- Wavelet-based Positional Representation for Long ContextYui Oka, Taku Hasegawa, Kyosuke Nishida, Kuniko SaitoICLR 2025
- AdaRoPE: Not All Attention Heads Should Rotate and Scale EquallyShaowen Wang, Yuke Zheng, Tansheng Zhu, Shuang Chen et al.ICML 2026
- HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and ExtrapolationYuhan Chen, Ang Lv, Jian Luan, Bin Wang et al.ACL 2025
- PEPE: Long-context Extension for Large Language Models via Periodic Extrapolation Positional EncodingsJikun Hu, Dongsheng Guo, Yuli Liu, Qingyao Ai et al.EMNLP Findings 2025
