arXiv Analytics

Sign in

arXiv:2202.08625 [cs.LG]AbstractReferencesReviewsResources

Revisiting Over-smoothing in BERT from the Perspective of Graph

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

Published 2022-02-17Version 1

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.

Comments: Accepted by ICLR 2022 (Spotlight)
Categories: cs.LG
Related articles: Most relevant | Search more
arXiv:2209.09815 [cs.LG] (Published 2022-09-20)
Integer Fine-tuning of Transformer-based Models
arXiv:2312.01634 [cs.LG] (Published 2023-12-04)
Robust Streaming, Sampling, and a Perspective on Online Learning
arXiv:2407.15414 [cs.LG] (Published 2024-07-22)
Weights Shuffling for Improving DPSGD in Transformer-based Models