Pith. sign in

REVIEW 3 cited by

Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalization

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2412.17739 v4 pith:6I5VPMOK submitted 2024-12-23 cs.AI cs.CL

classification cs.AIcs.CL
keywords attentionfourierlengthembeddingfopegeneralizationperiodicposition
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

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 \textit{Fourier 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.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. ClockRoPE: Random Fourier Rotations for Temporal Routine Modeling

    cs.LG 2026-07 conditional novelty 6.0 of 10

    Random Fourier Rotations let transformer position encodings approximate any positive-definite attention kernel; ClockRoPE applies this to model daily/weekly routines in sequential recommendation.

  2. SeqPE: Transformer with Sequential Position Encoding

    cs.LG 2025-06 reject novelty 6.0 of 10

    SeqPE encodes each position as a symbolic digit sequence through a small Transformer, and with contrastive plus distillation losses it reports improved extrapolation in language, QA, and image classification.

  3. CoPE: A Lightweight Complex Positional Encoding

    cs.LG 2025-08 reject novelty 4.0 of 10

    CoPE, a complex positional encoding with imaginary-position and first-layer phase-aware attention, shows small GLUE gains but its no-decay proof and speed advantage are not fully supported.

Pith tools