arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.12864cs.CL
收藏

位置编码的局部性与对称性

The Locality and Symmetry of Positional Encodings

Inria(法国国家信息与自动化研究所);Télécom Paris(巴黎电信学院);Institut Polytechnique de Paris(巴黎理工学院)

Lihu Chen, Gaël Varoquaux, Fabian M. Suchanek

AI总结:

本研究系统性分析了双向掩蔽语言模型中位置编码的局部性与对称性属性,揭示了其与下游任务性能的关联,并通过新探测任务量化了现有方法的弱点,为开发更优位置编码奠定基础。

摘要:

位置编码(PEs)被用于将词序信息注入基于 Transformer 的语言模型中。尽管它们能显著提升句子表示的质量,但它们对语言模型的具体贡献尚未被完全理解,特别是考虑到最近的发现表明各种位置编码对词序不敏感。在本研究中,我们对双向掩蔽语言模型(BERT 风格)中的位置编码进行了系统性研究,该研究从三个方面补充了现有工作:(1)我们通过识别局部性和对称性这两个常见属性,揭示了 PEs 的核心功能;(2)我们表明这两个属性与下游任务的性能密切相关;(3)我们通过引入两个新的探测任务来量化当前 PEs 的弱点,当前 PEs 在这些任务上表现不佳。我们相信这些结果是为基于 Transformer 的语言模型开发更好 PEs 的基础。代码可在 https://github.com/tigerchen52/locality\_symmetry 获取。

英文摘要:

Positional Encodings (PEs) are used to inject word-order information into transformer-based language models. While they can significantly enhance the quality of sentence representations, their specific contribution to language models is not fully understood, especially given recent findings that various positional encodings are insensitive to word order. In this work, we conduct a systematic study of positional encodings in \textbf{Bidirectional Masked Language Models} (BERT-style) , which complements existing work in three aspects: (1) We uncover the core function of PEs by identifying two common properties, Locality and Symmetry; (2) We show that the two properties are closely correlated with the performances of downstream tasks; (3) We quantify the weakness of current PEs by introducing two new probing tasks, on which current PEs perform poorly. We believe that these results are the basis for developing better PEs for transformer-based language models. The code is available at \faGithub~ \url{https://github.com/tigerchen52/locality\_symmetry}

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

↑