[Paper Review] Revisiting Over-smoothing in BERT from the Perspective of Graph
This paper reveals that layer normalization in BERT causes over-smoothing by driving representations into a low-rank subspace when its standard deviation is large, and proposes a hierarchical fusion strategy that adaptively combines features from different layers to mitigate this issue, achieving consistent performance gains across GLUE, SWAG, and SQuAD benchmarks.
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.
Motivation & Objective
- To investigate the root cause of over-smoothing in BERT from a graph neural network perspective.
- To analyze the theoretical role of layer normalization in inducing over-smoothing in Transformer-based models.
- To develop a hierarchical fusion strategy that combines multi-layer representations to reduce token similarity and alleviate over-smoothing.
- To empirically validate the theoretical findings and demonstrate improved performance on standard NLP benchmarks.
Proposed method
- Models the self-attention matrix as a normalized adjacency matrix of a weighted graph, linking BERT to graph convolutional networks.
- Theoretically proves that if the standard deviation of layer normalization is sufficiently large, the output converges to a low-rank subspace, causing over-smoothing.
- Proposes three fusion strategies—Concat Fusion, Max Fusion, and Gate Fusion—to combine representations from different layers adaptively.
- Uses a learnable gate mechanism to dynamically assign importance weights to representations from each layer based on input tokens.
- Empirically verifies the theoretical conditions on pre-trained BERT and fine-tuned models using cosine similarity and performance metrics.
- Visualizes attention weights and token similarity to demonstrate reduced over-smoothing and improved representation diversity.
Experimental results
Research questions
- RQ1What is the underlying cause of over-smoothing in BERT from a graph-theoretic perspective?
- RQ2How does layer normalization contribute to the over-smoothing phenomenon in Transformer models?
- RQ3Can multi-layer representation fusion effectively reduce token similarity and improve model performance?
- RQ4Do different fusion strategies (concat, max, gate) yield consistent improvements across diverse NLP benchmarks?
- RQ5How do dynamic fusion weights vary across tokens, and do they align with semantic importance?
Key findings
- Layer normalization with a sufficiently large standard deviation causes BERT outputs to converge to a low-rank subspace, inducing over-smoothing.
- Empirical analysis confirms that the theoretical conditions for over-smoothing hold in real pre-trained and fine-tuned BERT models.
- The proposed gate fusion strategy achieves the best performance, outperforming BERT baseline on GLUE (e.g., +0.5 F1 on SQuAD v1.1), SWAG (82.1% accuracy), and SQuAD v2.0 (77.3% F1).
- Token-wise cosine similarity decreases in the final layer when using fusion methods, especially on STS-B, indicating reduced over-smoothing.
- Visualization shows that high-semantic-value tokens (e.g., 'women', 'fish') prefer deeper layer representations, while common words (e.g., 'is', 'a') favor shallow layers.
- The hierarchical fusion strategy consistently improves performance across diverse NLP tasks, including text classification, commonsense reasoning, and question answering.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.