DoPE: 去噪旋转位置嵌入
DoPE: Denoising Rotary Position Embedding
AI总结:
DoPE通过去噪旋转位置嵌入提升大型语言模型在长上下文外推和鲁棒性方面的性能。
摘要:
位置编码对于大型语言模型(LLMs)表示序列顺序至关重要,但最近的研究表明,旋转位置嵌入(RoPE)会导致大量激活。我们通过RoPE的谱分析来调查这些不稳定性来源,并表明其低频组件集中了结构化的能量,产生低秩、过度对齐的注意力模式。我们理论揭示,这种低频对齐表现为激活噪声,在长上下文外推期间降低稳定性。为缓解这种影响,我们引入了去噪旋转位置嵌入(DoPE),一种无需训练的方法,通过截断矩阵熵识别并抑制噪声注意力头,然后用各向同性高斯分布重新参数化它们的注意力图。在各种设置中,DoPE在不微调的情况下提高了长度外推性能,增强了对扰动的鲁棒性,并提升了针尖在稻草中和多shot上下文学习任务的表现。这些结果表明,选择性位置编码是稳健外推的关键。我们的项目页面是:Project: https://The-physical-picture-of-LLMs.github.io
英文摘要:
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
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。