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

重新思考位置编码

Rethinking Positional Encoding

University of Adelaide(阿德莱德大学)

Jianqiao Zheng, Sameera Ramasinghe, Simon Lucey

摘要:

值得注意的是,基于坐标的MLP通过将坐标位置编码为傅立叶特征阵列而在保留高频信息方面受益。迄今为止,这些位置编码的有效性的基本原理仅通过傅立叶透镜进行了研究。在本文中,我们努力扩大这种理解,表明替代非傅立叶嵌入函数确实可以用于位置编码。此外,我们表明,它们的性能完全取决于嵌入矩阵的稳定秩和嵌入坐标之间的距离保持之间的权衡。我们进一步确定,现在无处不在的位置的傅立叶特征映射是满足这些条件的特殊情况。因此,我们提出了一个更一般的理论来分析位置编码的移位基函数。为此,我们开发了必要的理论公式,并以经验验证我们的理论主张在实践中成立。代码可在https://github.com/osiriszjq/Rethinking-positional-encoding获得。

英文摘要:

It is well noted that coordinate based MLPs benefit -- in terms of preserving high-frequency information -- through the encoding of coordinate positions as an array of Fourier features. Hitherto, the rationale for the effectiveness of these positional encodings has been solely studied through a Fourier lens. In this paper, we strive to broaden this understanding by showing that alternative non-Fourier embedding functions can indeed be used for positional encoding. Moreover, we show that their performance is entirely determined by a trade-off between the stable rank of the embedded matrix and the distance preservation between embedded coordinates. We further establish that the now ubiquitous Fourier feature mapping of position is a special case that fulfills these conditions. Consequently, we present a more general theory to analyze positional encoding in terms of shifted basis functions. To this end, we develop the necessary theoretical formulae and empirically verify that our theoretical claims hold in practice. Codes available at https://github.com/osiriszjq/Rethinking-positional-encoding.

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

↑