DoPE: Denoising Rotary Position Embedding

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Xiong, Jing, Fan, Liyang, Shen, Hui, Su, Zunhai, Yang, Min, Kong, Lingpeng, Wong, Ngai
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915710655004672
author Xiong, Jing
Fan, Liyang
Shen, Hui
Su, Zunhai
Yang, Min
Kong, Lingpeng
Wong, Ngai
author_facet Xiong, Jing
Fan, Liyang
Shen, Hui
Su, Zunhai
Yang, Min
Kong, Lingpeng
Wong, Ngai
contents Positional encoding is essential for large language models (LLMs) to represent sequence order, yet recent studies show that Rotary Position Embedding (RoPE) can induce massive activation. We investigate the source of these instabilities via a spectral analysis of RoPE, and show that its low-frequency components concentrate structured energy, producing low-rank, over-aligned attention patterns. We theoretically reveal that this low-frequency alignment manifests as activation noise, degrading stability during long-context extrapolation. To mitigate this effect, we introduce Denoising Rotary Position Embedding (DoPE), a training-free method that identifies and suppresses noisy attention heads using truncated matrix entropy, then reparameterizes their attention maps with an isotropic Gaussian distribution. Across a range of settings, DoPE improves length extrapolation performance without fine-tuning, increases robustness to perturbations, and boosts both needle-in-a-haystack and many-shot in-context learning tasks. These results suggest that selective positional encoding is key to robust extrapolation. Our project page is Project: https://The-physical-picture-of-LLMs.github.io
format Preprint
id arxiv_https___arxiv_org_abs_2511_09146
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DoPE: Denoising Rotary Position Embedding
Xiong, Jing
Fan, Liyang
Shen, Hui
Su, Zunhai
Yang, Min
Kong, Lingpeng
Wong, Ngai
Computation and Language
Positional encoding is essential for large language models (LLMs) to represent sequence order, yet recent studies show that Rotary Position Embedding (RoPE) can induce massive activation. We investigate the source of these instabilities via a spectral analysis of RoPE, and show that its low-frequency components concentrate structured energy, producing low-rank, over-aligned attention patterns. We theoretically reveal that this low-frequency alignment manifests as activation noise, degrading stability during long-context extrapolation. To mitigate this effect, we introduce Denoising Rotary Position Embedding (DoPE), a training-free method that identifies and suppresses noisy attention heads using truncated matrix entropy, then reparameterizes their attention maps with an isotropic Gaussian distribution. Across a range of settings, DoPE improves length extrapolation performance without fine-tuning, increases robustness to perturbations, and boosts both needle-in-a-haystack and many-shot in-context learning tasks. These results suggest that selective positional encoding is key to robust extrapolation. Our project page is Project: https://The-physical-picture-of-LLMs.github.io
title DoPE: Denoising Rotary Position Embedding
topic Computation and Language
url https://arxiv.org/abs/2511.09146