澄清关于Transformer过度平滑的记录
Setting the Record Straight on Transformer Oversmoothing
AI总结:
本研究澄清了Transformer的过度平滑问题,发现特征相似度增加并非不可避免,理论上其取决于value和projection权重的特征谱及层归一化权重符号,并提出通过参数化更新方程影响平滑行为的方法。
摘要:
基于Transformer的模型近期在众多领域取得了巨大成功。同时,近期研究从经验和理论上表明Transformer存在固有局限。具体而言,他们认为随着模型深度增加,Transformer会发生过度平滑,即输入变得越来越相似。一个自然的问题是:鉴于这一缺陷,Transformer如何能取得这些成功?在本研究中,我们从经验和理论上检验了这些观察,并发现了多项出人意料的结论。我们发现,在某些情况下特征相似度确实会增加,但与先前结果相反,这并非不可避免,即使对于现有的预训练模型也是如此。在理论上,我们证明了平滑行为取决于value和projection权重的特征谱。我们在经验上验证了这一点,并观察到层归一化权重的符号能影响该效应。我们的分析揭示了一种简单的方法,通过对Transformer更新方程的权重进行参数化来影响平滑行为。我们希望这些发现能为ML研究人员和从业者提供额外见解,以开发未来的基于Transformer的模型。
英文摘要:
Transformer-based models have recently become wildly successful across a diverse set of domains. At the same time, recent work has shown empirically and theoretically that Transformers are inherently limited. Specifically, they argue that as model depth increases, Transformers oversmooth, i.e., inputs become more and more similar. A natural question is: How can Transformers achieve these successes given this shortcoming? In this work we test these observations empirically and theoretically and uncover a number of surprising findings. We find that there are cases where feature similarity increases but, contrary to prior results, this is not inevitable, even for existing pre-trained models. Theoretically, we show that smoothing behavior depends on the eigenspectrum of the value and projection weights. We verify this empirically and observe that the sign of layer normalization weights can influence this effect. Our analysis reveals a simple way to parameterize the weights of the Transformer update equations to influence smoothing behavior. We hope that our findings give ML researchers and practitioners additional insight into how to develop future Transformer-based models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。