RoVE: 旋转值嵌入注意力实现相对位置相关的值路径
RoVE: Rotary Value Embeddings Attention for Relative Position-dependent Value Pathways
AI总结:
提出RoVE方法,通过同时旋转键和值使值对位置敏感,将RoPE注意力转化为注意力卷积,在少样本学习、分布外困惑度和长上下文检索上优于RoPE。
摘要:
旋转位置嵌入(RoPE)使注意力分数具有位置相对性,但值路径对位置不敏感:值令牌发送的消息与其到查询的距离无关。我们提出RoVE,一种无需参数修改的方法,通过同时旋转键和值使值对位置敏感,并证明它将RoPE注意力转化为注意力卷积。这一新视角统一了计算机视觉、机器人技术和现代LLM架构中同一操作的几种独立表述。训练124M和354M参数的GPT-2模型在少样本上下文学习、分布外困惑度和长上下文检索上一致优于RoPE,在需要长距离聚合的任务上改进最为明显。
英文摘要:
Rotary Position Embeddings (RoPE) make attention scores position-relative but leave the value pathway position-blind: the message sent by a value token is the same regardless of its distance from the query. We propose RoVE, a parameter-free modification that makes values position-sensitive by rotating them simultaneously with keys, and show that it turns RoPE attention into attentive convolution. This new perspective unifies several independent formulations of the same operation across computer vision, robotics, and modern LLM architectures. Trained 124M and 354M GPT-2 models show consistent empirical gains over RoPE on few-shot in-context learning, out-of-distribution perplexity, and long-context retrieval, with the clearest improvements on tasks that require long-range aggregation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。