arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.16634cs.CLcs.AIcs.LG
收藏

Transformer Language Models without Positional Encodings Still Learn Positional Information

Tel Aviv University(特拉维夫大学);University of Washington(华盛顿大学);Intel Labs(英特尔实验室);Meta AI

Adi Haviv, Ori Ram, Ofir Press, Peter Izsak, Omer Levy

英文摘要:

Causal transformer language models (LMs), such as GPT-3, typically require some form of positional encoding, such as positional embeddings. However, we show that LMs without any explicit positional encoding are still competitive with standard models, and that this phenomenon is robust across different datasets, model sizes, and sequence lengths. Probing experiments reveal that such models acquire an implicit notion of absolute positions throughout the network, effectively compensating for the missing information. We conjecture that causal attention enables the model to infer the number of predecessors that each token can attend to, thereby approximating its absolute position. Our findings indicate that causal LMs might derive positional awareness not only from the explicit positioning mechanism, but also from the effects of the causal mask.

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

↑