arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.10322cs.CVcs.LG
收藏

LieRE:李旋转位置编码

LieRE: Lie Rotational Positional Encodings

Computer Science Department, Stanford University, USA(斯坦福大学计算机科学系);Radiology Department, Stanford University, USA(斯坦福大学放射学系)

Sophie Ostmeier, Brian Axelrod, Maya Varma, Michael E. Moseley, Akshay Chaudhari, Curtis Langlotz

AI总结:

本文提出 LieRE,通过可学习的李代数元素生成高维旋转矩阵来泛化 RoPE,在 2D 和 3D 视觉任务中提升了位置编码的表示能力,并能高效泛化到更高输入分辨率。

摘要:

Transformer 架构依赖位置编码来建模输入数据的空间结构。旋转位置编码(RoPE)是语言模型中广泛使用的一种方法,它通过应用于键-查询交互的固定分块对角旋转矩阵来编码相对位置。我们假设这种归纳偏置限制了 RoPE 在具有高维结构模态上的有效性。李相对编码(LieRE)提出了 RoPE 的一种有原则的泛化,旨在提高 Transformer 中位置编码的表示能力。LieRE 不采用固定的二维旋转,而是学习稠密的斜对称矩阵(李代数元素),然后通过可微映射将其映射为高维旋转矩阵(李群元素)。这使得相对和绝对位置信息具有更丰富、可学习且连续的编码。我们在 2D 和 3D 视觉任务上证明了 LieRE 的有效性,表明它能够很好地泛化到更高的输入分辨率,同时保持计算效率。代码和检查点已公开,地址为 https://github.com/StanfordMIMI/LieRE。

英文摘要:

Transformer architectures rely on position encodings to model the spatial structure of input data. Rotary Position Encoding (RoPE) is a widely used method in language models that encodes relative positions through fixed, block-diagonal, rotation matrices applied to key-query interactions. We hypothesize that this inductive bias limits their RoPE's effectiveness for modalities with high dimensional structure. Lie Relative Encodings (LieRE) introduce a principled generalization of RoPE, aimed at increasing the representational capacity of positional encodings in transformers. Instead of fixed 2D rotations, LieRE learns dense skew-symmetric matrices (Lie algebra elements), which are then differentiable mapped to form high-dimensional rotation matrices (Lie group elements). This results in richer, learnable, and continuous, encodings of both relative and absolute positional information. We demonstrate the effectiveness of LieRE on 2D and 3D vision tasks, showing that it generalizes well to higher input resolutions while maintaining computational efficiency. The code and checkpoints are publicly available at https://github.com/StanfordMIMI/LieRE.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑