arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.11380cs.CLcs.AI
收藏

破坏 Transformer 的离群维度由频率驱动

Outliers Dimensions that Disrupt Transformers Are Driven by Frequency

Scuola Normale Superiore(高等师范学院);Istituto di Linguistica Computazionale “Antonio Zampolli”(安东尼奥·赞波利计算语言学研究所);Center for Social Data Science, University of Copenhagen(哥本哈根大学社会数据科学中心);RIKEN Center for Computational Science(理化学研究所计算科学中心)

Giovanni Puccetti, Anna Rogers, Aleksandr Drozd, Felice Dell'Orletta

AI总结:

针对 BERT 中少量离群维度被禁用即导致 MNLI 性能骤降的问题,本文复现该现象并揭示其与 token 频率、嵌入几何及垂直注意力模式的关联。

摘要:

尽管基于 Transformer 的语言模型通常对剪枝具有很强的鲁棒性,但最近发现了离群现象:在 BERT-base 的 1.1 亿个参数中,仅禁用 48 个参数,就会使其在 MNLI 上的性能下降近 30%。我们复现了离群现象的原始证据,并将其与嵌入空间的几何结构联系起来。我们发现,在 BERT 和 RoBERTa 中,与离群维度对应的隐藏状态系数的大小,与预训练数据中被编码 token 的频率相关,并且它还有助于形成“垂直”自注意力模式,使模型能够关注特殊 token。这解释了禁用离群值所导致的性能下降,并表明为了在未来的模型中降低各向异性,我们需要更好地考虑偏态 token 分布的预训练方案。

英文摘要:

While Transformer-based language models are generally very robust to pruning, there is the recently discovered outlier phenomenon: disabling only 48 out of 110M parameters in BERT-base drops its performance by nearly 30% on MNLI. We replicate the original evidence for the outlier phenomenon and we link it to the geometry of the embedding space. We find that in both BERT and RoBERTa the magnitude of hidden state coefficients corresponding to outlier dimensions correlates with the frequency of encoded tokens in pre-training data, and it also contributes to the "vertical" self-attention pattern enabling the model to focus on the special tokens. This explains the drop in performance from disabling the outliers, and it suggests that to decrease anisotropicity in future models we need pre-training schemas that would better take into account the skewed token distributions.

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

↑