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

从图的角度重新审视BERT中的过平滑

Revisiting Over-smoothing in BERT from the Perspective of Graph

Hong Kong University of Science and Technology(香港科技大学);The University of Hong Kong(香港大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Sun Yat-sen University(中山大学)

Han Shi, Jiahui Gao, Hang Xu, Xiaodan Liang, Zhenguo Li, Lingpeng Kong, Stephen M. S. Lee, James T. Kwok

摘要:

近年来,基于transformer的模型在视觉和语言领域都出现了过平滑现象。然而,没有现有的工作已经深入研究,进一步调查这一现象的主要原因。在这项工作中,我们试图从图的角度来分析过平滑问题,这是第一次发现和探索这个问题。直觉上,自注意矩阵可以被看作是对应图的归一化邻接矩阵。基于上述联系,我们提供了一些理论分析,发现层归一化在基于transformer的模型的过平滑问题中起着关键作用。具体来说,如果层归一化的标准偏差足够大,则Transformer堆栈的输出将收敛到特定的低秩子空间并导致过度平滑。为了减轻过度平滑的问题,我们考虑分层融合策略,它结合了来自不同层的表示自适应,使输出更加多样化。在不同数据集上的实验结果表明了该方法的有效性。

英文摘要:

Recently over-smoothing phenomenon of Transformer-based models is observed in both vision and language fields. However, no existing work has delved deeper to further investigate the main cause of this phenomenon. In this work, we make the attempt to analyze the over-smoothing problem from the perspective of graph, where such problem was first discovered and explored. Intuitively, the self-attention matrix can be seen as a normalized adjacent matrix of a corresponding graph. Based on the above connection, we provide some theoretical analysis and find that layer normalization plays a key role in the over-smoothing issue of Transformer-based models. Specifically, if the standard deviation of layer normalization is sufficiently large, the output of Transformer stacks will converge to a specific low-rank subspace and result in over-smoothing. To alleviate the over-smoothing problem, we consider hierarchical fusion strategies, which combine the representations from different layers adaptively to make the output more diverse. Extensive experiment results on various data sets illustrate the effect of our fusion method.

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

↑