双焦点注意力:协调几何与谱域的位置嵌入以实现算法泛化
Bifocal Attention: Harmonizing Geometric and Spectral Positional Embeddings for Algorithmic Generalization
AI总结:
本研究提出双焦点注意力机制,通过协调几何与谱域的位置嵌入,解决算法泛化中的结构间隙问题,提升模型对递归推理的处理能力。
摘要:
旋转位置嵌入(RoPE)因其能够通过几何旋转编码相对位置的能力,已成为大型语言模型(LLMs)的标准。然而,我们识别出一个显著的局限性,我们称之为''谱刚性'':标准RoPE使用固定的几何衰减(θ^{-i}),优化于局部语法一致性,无法捕捉递归逻辑和算法推理中固有的长距离、周期性结构。这导致了''结构间隙'',即在浅层推理链上训练的模型无法扩展到更深层次的递归步骤。在本工作中,我们引入了双焦点注意力,一种架构范式,将位置编码分解为两种不同的模式:几何之眼(标准RoPE)用于精确的token级操作,以及谱之眼(可学习的谐波运算符)用于跟踪长距离递归深度。我们提出了一种新的训练协议,称为谱演化,它初始化位置频率作为静态几何参数,但允许它们通过梯度下降演变为优化于特定算法拓扑的任务的谐波基。
英文摘要:
Rotary Positional Embeddings (RoPE) have become the standard for Large Language Models (LLMs) due to their ability to encode relative positions through geometric rotation. However, we identify a significant limitation we term ''Spectral Rigidity'': standard RoPE utilizes a fixed geometric decay ($θ^{-i}$) optimized for local syntactic coherence, which fails to capture the long-range, periodic structures inherent in recursive logic and algorithmic reasoning. This results in a ''Structure Gap'', where models trained on shallow reasoning chains fail to extrapolate to deeper recursive steps. In this work, we introduce Bifocal Attention, an architectural paradigm that decouples positional encoding into two distinct modalities: Geometric Eyes (Standard RoPE) for precise token-level manipulation, and Spectral Eyes (Learnable Harmonic Operators) for tracking long-range recursive depth. We propose a novel training protocol, Spectral Evolution, which initializes positional frequencies as static geometric parameters but allows them to evolve via gradient descent into a harmonic basis optimized for the specific algorithmic topology of the task.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。