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

代数位置编码

Algebraic Positional Encodings

Aalto University(阿尔托大学);University of Bologna(博洛尼亚大学);University of Gothenburg(哥德堡大学);Chalmers University of Technology(查尔姆斯理工大学);YaiYai Ltd(YaiYai有限公司)

Konstantinos Kogkalidis, Jean-Philippe Bernardy, Vikas Garg

AI总结:

该研究提出一种代数位置编码新策略,通过保留源域代数特征保障模型结构属性,可适配多种结构,实验显示无需超参优化等操作性能即达或超当前最优水平。

摘要:

我们提出一种面向Transformer类模型的新型位置编码策略,旨在解决现有方法多为临时设计的缺陷。该框架提供了从域的代数规范到正交算子解释的灵活映射,这种设计保留了源域的代数特征,确保模型维持其预期的结构属性。我们的方案可适配多种结构,包括序列、网格、树及其组合结构。我们开展了一系列实验以验证该方法的实际适用性,结果表明,在未进行任何超参数优化或“任务搜索”的情况下,其性能与当前最优水平相当甚至更优。代码可在https://github.com/konstantinosKokos/ape获取。

英文摘要:

We introduce a novel positional encoding strategy for Transformer-style models, addressing the shortcomings of existing, often ad hoc, approaches. Our framework provides a flexible mapping from the algebraic specification of a domain to an interpretation as orthogonal operators. This design preserves the algebraic characteristics of the source domain, ensuring that the model upholds its desired structural properties. Our scheme can accommodate various structures, ncluding sequences, grids and trees, as well as their compositions. We conduct a series of experiments to demonstrate the practical applicability of our approach. Results suggest performance on par with or surpassing the current state-of-the-art, without hyper-parameter optimizations or "task search" of any kind. Code is available at https://github.com/konstantinosKokos/ape.

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

↑