arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12413cs.CL
收藏

无位置编码的 Transformer 对层级语言识别与生成的理论分析

Theoretical Analysis of Hierarchical Language Recognition and Generation by Transformers without Positional Encoding

The University of Tokyo(东京大学)

Daichi Hayakawa, Issei Sato

AI总结:

本文通过构造性证明表明,无需特定位置编码,Transformer 仅依赖因果掩码和起始标记即可高效识别与生成层级语言,并指出显式位置编码可能对序列长度泛化产生不利影响。

摘要:

在本研究中,我们提供了构造性证明,表明即使不需要特定的位置编码,Transformer 也能在模型规模方面高效地识别和生成层级语言。具体而言,我们证明了因果掩码和起始标记使 Transformer 能够计算层级结构内的位置信息和深度。我们证明了无位置编码的 Transformer 能够生成层级语言。此外,我们提出显式位置编码可能对序列长度方面的泛化产生不利影响。

英文摘要:

In this study, we provide constructive proof that Transformers can recognize and generate hierarchical language efficiently with respect to model size, even without the need for a specific positional encoding. Specifically, we show that causal masking and a starting token enable Transformers to compute positional information and depth within hierarchical structures. We demonstrate that Transformers without positional encoding can generate hierarchical languages. Furthermore, we suggest that explicit positional encoding might have a detrimental effect on generalization with respect to sequence length.

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

↑