PulseAugur
EN
LIVE 05:52:55

Paper explains why relative positional encodings improve transformer generalization

A new paper proposes an optimization-based explanation for why transformers with relative positional encodings generalize better to longer sequences than those with absolute encodings. The research suggests that the implicit bias of gradient descent favors solutions that are equivariant to relative positions when using Rotary Encodings, leading to consistent performance across different sequence lengths. In contrast, absolute encodings tend to memorize specific positions, hindering extrapolation. The study confirms these findings through experiments on a minimal retrieval task and a full-sequence length-generalization task, also noting that linear attention mechanisms do not exhibit the same generalization behavior without softmax normalization. AI

IMPACT Provides a theoretical framework for understanding and potentially improving sequence length generalization in transformer architectures.

RANK_REASON The cluster contains a single academic paper detailing a new theoretical explanation for a known phenomenon in transformer models. [lever_c_demoted from research: ic=1 ai=1.0]

Read on arXiv cs.LG →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Paper explains why relative positional encodings improve transformer generalization

COVERAGE [1]

  1. arXiv cs.LG TIER_1 English(EN) · Subham Singh, Ashutosh Mishra, Subha Raut ·

    Relative Positions Generalize, Absolute Positions Memorize: An Implicit-Bias Account of Length Generalization in Attention

    arXiv:2607.18759v1 Announce Type: new Abstract: Transformers with relative positional encodings often extrapolate to sequences longer than those seen during training, whereas transformers with learned absolute encodings typically do not. This is a robust empirical regularity, and…