Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalization
Not on the map. Why?
Abstract (arXiv)
Extending the context length of Language Models (LMs) by improving Rotary Position Embedding (RoPE) has become a trend. While prior works mainly address RoPE's limitations within attention, this paper uncovers the adverse effects on length generalization from nearly all parts of LMs. Using Discrete Signal Processing theory, we show that RoPE enables periodic attention by implicitly achieving Non-Uniform Discrete Fourier Transform. However, this periodicity is undermined by the spectrum damage caused by: 1) linear layers and activation functions; 2) insufficiently trained frequency components brought by time-domain truncation. Building on our observations, we propose Fourier Position Embedding (FoPE), which enhances attention's frequency-domain properties to improve both its periodic extension and length generalization. FoPE constructs textitFourier Series and zero-outs the destructive frequency components, increasing model robustness against the spectrum damage. Experiments across various model scales and benchmarks show that, within varying context windows, FoPE maintains a more stable performance compared to other baselines. Several analyses and ablations bring further support to our method and theoretical modeling.
Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Builds on 37 of its 44 references that are in the map. First posted on arXiv 23 Dec 2024.
Builds on
37 of 44 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2020Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domainscited by 2,170
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
25 more
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 530
- 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2021Efficient Attentions for Long Document Summarizationcited by 342
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 111
- 2024CycleNet: Enhancing Time Series Forecasting through Modeling Periodic Patternscited by 102
- 2023Neurons in Large Language Models: Dead, N-gram, Positionalcited by 88
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
- 2019Encoding word order in complex embeddingscited by 53
- 2024Length Generalization of Causal Transformers without Position Encodingcited by 46
- 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 43
- 2020Language Through a Prism: A Spectral Approach for Multiscale Language Representationscited by 39
- 2024Exploring Context Window of Large Language Models via Decomposed Positional Vectorscited by 18
- 2024Mixture of In-Context Experts Enhance LLMs' Long Context Awarenesscited by 17
- 2024HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and Extrapolationcited by 17
- 2019Fourier Neural Networks: A Comparative Studycited by 14
- 2024On the token distance modeling ability of higher RoPE attention dimensioncited by 13
- 2023Learning a Fourier Transform for Linear Relative Positional Encodings in Transformerscited by 10
- 2024Fourier Head: Helping Large Language Models Learn Complex Probability Distributionscited by 10
- 2024SMR: State Memory Replay for Long Sequence Modelingcited by 6
Built on by
Citing papers per year: 2025: 16; 2026: 21.
37 papers.
Sort:
By area:
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2026Intern-S1-Pro: Scientific Multimodal Foundation Model at Trillion Scalecited by 25
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddingscited by 23
- 2025FoNE: Precise Single-Token Number Embeddings via Fourier Featurescited by 21
- 2026Addressable Memory for Video World Modelscited by 11
- 2026Convergent Evolution: How Different Language Models Learn Similar Number Representationscited by 5
- 2025EnergyFormer: Energy Attention with Fourier Embedding for Hyperspectral Image Classificationcited by 4
- 2025Deconstructing Positional Information: From Attention Logits to Training Biasescited by 4
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2026MrRoPE: Mixed-radix Rotary Position Embeddingcited by 3
- 2025SeqPE: Transformer with Sequential Position Encodingcited by 2
- 2025Beyond Real: Imaginary Extension of Rotary Position Embeddings for Long-Context LLMscited by 2
25 more
- 2025Towards Long-window Anchoring in Vision-Language Model Distillationcited by 2
- 2026Attention Needs to Focus: A Unified Perspective on Attention Allocationcited by 2
- 2026SoPE: Spherical Coordinate-Based Positional Embedding for Enhancing Spatial Perception of 3D LVLMscited by 2
- 2026nD-RoPE: A Generalized RoPE for n-Dimensional Position Embeddingcited by 2
- 2025CoPE: A Lightweight Complex Positional Encodingcited by 1
- 2025Mitigating Coordinate Prediction Bias from Positional Encoding Failurescited by 1
- 2025OMEGA: Optimized Multimodal Position Encoding Index Derivation with Global Adaptive Scaling for Vision-Language Modelscited by 1
- 2026Towards Understanding What State Space Models Learn About Codecited by 1
- 2026Training-free Spatially Grounded Geometric Shape Encoding (Technical Report)cited by 1
- 2026RelFlexformer: Efficient Attention 3D-Transformers for Integrable Relative Positional Encodingscited by 1
- 2026V2VCrafter: Consistent Street-View Image Generation Across Vehiclescited by 1
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalizationcited by 1
- 2025Sensitivity Meets Sparsity: The Impact of Extremely Sparse Parameter Patterns on Theory-of-Mind of Large Language Modelscited by 0
- 2025Beyond flattening: a geometrically principled positional encoding for vision transformers with Weierstrass elliptic functionscited by 0
- 2025Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Featurescited by 0
- 2025Towards Efficient Post-Training via Fourier-Driven Adapter Architecturescited by 0
- 2026Towards Infinite Length Extrapolation: A Unified Approachcited by 0
- 2026UCAN: Unified Convolutional Attention Network for Expansive Receptive Fields in Lightweight Super-Resolutioncited by 0
- 2026Wisteria: A Unified Multi-Scale Feature Learning Framework for DNA Language Modelcited by 0
- 2026Weierstrass Positional Encoding for Vision Transformerscited by 0
- 2026Mix-MoE: Improving Multilingual Machine Translation of Large Language Models through Mixed MoEscited by 0
- 2026Semidirect Fourier Delta Attention: Phase-Controlled Delta Memory with Constructive Chunk-WY Kernelscited by 0
- 2026Anti-Periodic Positional Encoding: M"obius Boundary Conditions Make In-Context Retrieval Reliablecited by 0
- 2026Higher-Dimensional Rotary Position Embeddingcited by 0
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodingscited by 0
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodings28 Sep 2026
- 2026Higher-Dimensional Rotary Position Embedding30 Aug 2026
- 2026Addressable Memory for Video World Models7 Aug 2026
- 2026Anti-Periodic Positional Encoding: M"obius Boundary Conditions Make In-Context Retrieval Reliable23 Jul 2026
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalization8 Jul 2026
- 2026Semidirect Fourier Delta Attention: Phase-Controlled Delta Memory with Constructive Chunk-WY Kernels12 Jun 2026
- 2026nD-RoPE: A Generalized RoPE for n-Dimensional Position Embedding10 Jun 2026
- 2026V2VCrafter: Consistent Street-View Image Generation Across Vehicles28 May 2026
- 2026Mix-MoE: Improving Multilingual Machine Translation of Large Language Models through Mixed MoEs23 May 2026
- 2026Weierstrass Positional Encoding for Vision Transformers20 May 2026
- 2026RelFlexformer: Efficient Attention 3D-Transformers for Integrable Relative Positional Encodings11 May 2026
- 2026Wisteria: A Unified Multi-Scale Feature Learning Framework for DNA Language Model7 May 2026
25 more
- 2026Convergent Evolution: How Different Language Models Learn Similar Number Representations22 Apr 2026
- 2026Training-free Spatially Grounded Geometric Shape Encoding (Technical Report)8 Apr 2026
- 2026Intern-S1-Pro: Scientific Multimodal Foundation Model at Trillion Scale26 Mar 2026
- 2026UCAN: Unified Convolutional Attention Network for Expansive Receptive Fields in Lightweight Super-Resolution12 Mar 2026
- 2026SoPE: Spherical Coordinate-Based Positional Embedding for Enhancing Spatial Perception of 3D LVLMs26 Feb 2026
- 2026Towards Understanding What State Space Models Learn About Code6 Feb 2026
- 2026MrRoPE: Mixed-radix Rotary Position Embedding28 Jan 2026
- 2026Towards Infinite Length Extrapolation: A Unified Approach3 Jan 2026
- 2026Attention Needs to Focus: A Unified Perspective on Attention Allocation1 Jan 2026
- 2025Towards Efficient Post-Training via Fourier-Driven Adapter Architectures26 Dec 2025
- 2025Towards Long-window Anchoring in Vision-Language Model Distillation25 Dec 2025
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddings13 Dec 2025
- 2025Beyond Real: Imaginary Extension of Rotary Position Embeddings for Long-Context LLMs8 Dec 2025
- 2025OMEGA: Optimized Multimodal Position Encoding Index Derivation with Global Adaptive Scaling for Vision-Language Models2 Nov 2025
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025Mitigating Coordinate Prediction Bias from Positional Encoding Failures25 Oct 2025
- 2025Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Features20 Sep 2025
- 2025Beyond flattening: a geometrically principled positional encoding for vision transformers with Weierstrass elliptic functions26 Aug 2025
- 2025CoPE: A Lightweight Complex Positional Encoding23 Aug 2025
- 2025SeqPE: Transformer with Sequential Position Encoding16 Jun 2025
- 2025Deconstructing Positional Information: From Attention Logits to Training Biases19 May 2025
- 2025CodeSSM: Towards State Space Models for Code Understanding2 May 2025
- 2025Sensitivity Meets Sparsity: The Impact of Extremely Sparse Parameter Patterns on Theory-of-Mind of Large Language Models5 Apr 2025
- 2025EnergyFormer: Energy Attention with Fourier Embedding for Hyperspectral Image Classification11 Mar 2025
- 2025FoNE: Precise Single-Token Number Embeddings via Fourier Features13 Feb 2025
- 2025Towards Long-window Anchoring in Vision-Language Model Distillationcited by 2
- 2026SoPE: Spherical Coordinate-Based Positional Embedding for Enhancing Spatial Perception of 3D LVLMscited by 2
- 2025Mitigating Coordinate Prediction Bias from Positional Encoding Failurescited by 1
- 2025OMEGA: Optimized Multimodal Position Encoding Index Derivation with Global Adaptive Scaling for Vision-Language Modelscited by 1
- 2026SoPE: Spherical Coordinate-Based Positional Embedding for Enhancing Spatial Perception of 3D LVLMs26 Feb 2026
- 2025Towards Long-window Anchoring in Vision-Language Model Distillation25 Dec 2025
- 2025OMEGA: Optimized Multimodal Position Encoding Index Derivation with Global Adaptive Scaling for Vision-Language Models2 Nov 2025
- 2025Mitigating Coordinate Prediction Bias from Positional Encoding Failures25 Oct 2025
- 2026Addressable Memory for Video World Modelscited by 11
- 2026Addressable Memory for Video World Models7 Aug 2026
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2026Intern-S1-Pro: Scientific Multimodal Foundation Model at Trillion Scalecited by 25
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddingscited by 23
- 2025FoNE: Precise Single-Token Number Embeddings via Fourier Featurescited by 21
- 2026Convergent Evolution: How Different Language Models Learn Similar Number Representationscited by 5
- 2025EnergyFormer: Energy Attention with Fourier Embedding for Hyperspectral Image Classificationcited by 4
- 2025Deconstructing Positional Information: From Attention Logits to Training Biasescited by 4
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2026MrRoPE: Mixed-radix Rotary Position Embeddingcited by 3
- 2025SeqPE: Transformer with Sequential Position Encodingcited by 2
- 2025Beyond Real: Imaginary Extension of Rotary Position Embeddings for Long-Context LLMscited by 2
- 2026Attention Needs to Focus: A Unified Perspective on Attention Allocationcited by 2
12 most cited of 29 All 29 (JSON)
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodings28 Sep 2026
- 2026Higher-Dimensional Rotary Position Embedding30 Aug 2026
- 2026Anti-Periodic Positional Encoding: M"obius Boundary Conditions Make In-Context Retrieval Reliable23 Jul 2026
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalization8 Jul 2026
- 2026nD-RoPE: A Generalized RoPE for n-Dimensional Position Embedding10 Jun 2026
- 2026Weierstrass Positional Encoding for Vision Transformers20 May 2026
- 2026RelFlexformer: Efficient Attention 3D-Transformers for Integrable Relative Positional Encodings11 May 2026
- 2026Wisteria: A Unified Multi-Scale Feature Learning Framework for DNA Language Model7 May 2026
- 2026Convergent Evolution: How Different Language Models Learn Similar Number Representations22 Apr 2026
- 2026Training-free Spatially Grounded Geometric Shape Encoding (Technical Report)8 Apr 2026
- 2026Intern-S1-Pro: Scientific Multimodal Foundation Model at Trillion Scale26 Mar 2026
- 2026UCAN: Unified Convolutional Attention Network for Expansive Receptive Fields in Lightweight Super-Resolution12 Mar 2026
12 newest of 29 All 29 (JSON)