arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.04454cs.CLcs.AI
收藏

面向Transformer的球面位置编码

Spherical Position Encoding for Transformers

Datategy SAS(Datategy SAS公司)

Eren Unlu

AI总结:

针对地理词元场景下序列位置不重要、需体现地理坐标相对关系的需求,提出基于适配球面坐标的RoPE架构的球面位置编码机制,可保持物理距离与嵌入空间距离的比例。

摘要:

位置编码是Transformer架构中为输入词元引入序列顺序概念的核心机制。尽管原始Transformer论文中的这一公式在通用语言理解和生成任务上已取得可观性能,研究者仍提出了Rotary Position Embedding(RoPE,旋转位置嵌入)等若干新框架以实现进一步提升。本文提出“地理词元(geotokens)”概念,即Transformer架构的输入元素,每个词元代表一条与地理位置相关的信息。与自然语言不同,在该场景下序列位置对模型并不重要,地理坐标才是关键。为在该设置下引入相对位置概念,并保持物理距离与嵌入空间距离的比例关系,我们基于适配球面坐标的RoPE架构,构建了一种位置编码机制。

英文摘要:

Position encoding is the primary mechanism which induces notion of sequential order for input tokens in transformer architectures. Even though this formulation in the original transformer paper has yielded plausible performance for general purpose language understanding and generation, several new frameworks such as Rotary Position Embedding (RoPE) are proposed for further enhancement. In this paper, we introduce the notion of "geotokens" which are input elements for transformer architectures, each representing an information related to a geological location. Unlike the natural language the sequential position is not important for the model but the geographical coordinates are. In order to induce the concept of relative position for such a setting and maintain the proportion between the physical distance and distance on embedding space, we formulate a position encoding mechanism based on RoPE architecture which is adjusted for spherical coordinates.

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

↑