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

潜在位置信息存在于无位置嵌入的Transformer语言模型的自注意力方差中

Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddings

Carnegie Mellon University(卡内基梅隆大学);Princeton University(普林斯顿大学)

Ta-Chung Chi, Ting-Han Fan, Li-Wei Chen, Alexander I. Rudnicky, Peter J. Ramadge

AI总结:

本文证明无位置嵌入的Transformer语言模型通过自注意力方差收缩编码位置信息,该效应在预训练后依然存在,为放弃位置嵌入以提升预训练效率提供了依据。

摘要:

在Transformer语言模型中使用位置嵌入已被广泛接受。然而,最近的研究对这种嵌入的必要性提出了质疑。我们进一步扩展了这一探究,证明了一个随机初始化且冻结的Transformer语言模型,在无位置嵌入的情况下,通过自注意力方差的收缩,本质上编码了强烈的位置信息。为了量化这种方差,我们推导了Transformer层中每一步的潜在分布。通过使用完全预训练的模型进行实证验证,我们表明方差收缩效应在大量梯度更新后仍然持续存在。我们的研究结果为放弃位置嵌入的决定提供了依据,从而促进了Transformer语言模型更高效的预训练。

英文摘要:

The use of positional embeddings in transformer language models is widely accepted. However, recent research has called into question the necessity of such embeddings. We further extend this inquiry by demonstrating that a randomly initialized and frozen transformer language model, devoid of positional embeddings, inherently encodes strong positional information through the shrinkage of self-attention variance. To quantify this variance, we derive the underlying distribution of each step within a transformer layer. Through empirical validation using a fully pretrained model, we show that the variance shrinkage effect still persists after extensive gradient updates. Our findings serve to justify the decision to discard positional embeddings and thus facilitate more efficient pretraining of transformer language models.

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

↑