aiqbench analysis
This research addresses a fundamental limitation in Rotary Positional Embedding (RoPE) regarding long-context modeling by introducing Token-Aware Phase Attention (TAPA). The proposed method integrates a learnable phase function directly into the attention mechanism to eliminate intrinsic distance-dependent biases without requiring post-hoc adjustments. Consequently, TAPA demonstrates superior performance in preserving token interactions over extended ranges and extrapolating to unseen sequence lengths compared to standard RoPE baselines.
Positional Encoding via Token-Aware Phase Attention
From arXiv
Full textWe prove under practical assumptions that Rotary Positional Embedding (RoPE) introduces an intrinsic distance-dependent bias in attention scores that limits RoPE's ability to model long-context. RoPE extension methods may alleviate this issue, but they typically require post-hoc adjustments after pretraining, such as rescaling or hyperparameters retuning. This paper introduces Token-Aware Phase Attention (TAPA), a new positional encoding method that incorporates a learnable phase function into the attention mechanism. TAPA preserves token interactions over long range, extends to longer contexts with direct and light continual pretraining, extrapolates to unseen lengths, and attains substantially lower perplexity and stronger retrieval performance in the long-context regime than RoPE-style baselines.
Full text under the publisher's open licence · 105 words