各向异性是 Transformers 中自注意力的固有属性
Anisotropy Is Inherent to Self-Attention in Transformers
AI总结:
本文通过跨目标语言模型与多模态 Transformers 的实验观察,反驳各向异性仅源于 token 长尾分布上交叉熵优化的观点,证明其为自注意力机制的固有属性。
摘要:
表示退化问题是在基于 Transformers 的自监督学习方法中广泛观察到的一种现象。在 NLP 中,它表现为各向异性,即隐藏表示的一种特殊性质,使这些表示在角距离(余弦相似度)方面异常接近。近期一些研究倾向于表明,各向异性是在 token 的长尾分布上优化交叉熵损失所导致的结果。本文表明,在采用特定目标、本不应直接受到相同后果影响的语言模型中,也可以通过实验观察到各向异性。我们还表明,各向异性问题扩展到了在其他模态上训练的 Transformers。我们的观察结果表明,各向异性实际上是基于 Transformers 的模型所固有的。
英文摘要:
The representation degeneration problem is a phenomenon that is widely observed among self-supervised learning methods based on Transformers. In NLP, it takes the form of anisotropy, a singular property of hidden representations which makes them unexpectedly close to each other in terms of angular distance (cosine-similarity). Some recent works tend to show that anisotropy is a consequence of optimizing the cross-entropy loss on long-tailed distributions of tokens. We show in this paper that anisotropy can also be observed empirically in language models with specific objectives that should not suffer directly from the same consequences. We also show that the anisotropy problem extends to Transformers trained on other modalities. Our observations suggest that anisotropy is actually inherent to Transformers-based models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。