Abstract
Research on analyzing graphs with Graph Neural Networks (GNNs) has been receiving more and more attention because of the great expressive power of graphs. GNNs map the adjacency matrix and node features to node representations by message passing through edges on each convolution layer. However, the message passed through GNNs is not always beneficial for all parts in a graph. Specifically, as the data distribution is different over the graph, the receptive field needed to gather information is also different. Existing GNNs treat all parts of the graph uniformly, which makes it difficult to adaptively pass the most informative message for each unique part. To solve this problem, we propose two regularization terms that consider message passing locally: (1) Intra-Energy Reg and (2) Inter-Energy Reg. Through experiments and theoretical discussion, we first show that the speed of smoothing of different parts varies enormously and the topology of each part affects the way of smoothing. With Intra-Energy Reg, we strengthen the message passing within each part, which is beneficial for getting more useful information. With Inter-Energy Reg, we improve the ability of GNNs to distinguish different nodes. With the proposed two regularization terms, GNNs are able to filter the most useful information adaptively, learn more robustly and gain higher expressiveness. Moreover, the proposed LEReg can be easily applied to other GNN models with plug-and-play characteristics. Extensive experiments on several benchmarks verify that GNNs with LEReg outperform or match the state-of-the-art methods.
Introduction: The Challenge of Smoothing Heterogeneity
Graph Neural Networks primarily operate through message passing, where nodes aggregate information from their local neighborhood. A significant limitation of standard GNNs is their uniform treatment of the graph topology. In real-world datasets, different communities or classes exhibit "smoothing heterogeneity"—the rate at which node features become similar (smooth) varies significantly across different parts of the graph.
As shown in Figure 1, different classes in the Cora dataset reach different levels of smoothness at different speeds. Applying a uniform number of layers across the entire graph often leads to a trade-off where some regions are under-processed while others suffer from "over-smoothing," where nodes become indistinguishable and predictive power is lost.
Methodology: Local Energy Regularization (LEReg)
To address this, LEReg introduces two regularization terms based on Dirichlet Energy, which measures the variation of a function over a graph:
- Intra-Energy Regularization: This term targets nodes predicted to belong to the same class. By using a "soft mask" derived from the model's posterior probabilities, LEReg filters out inter-class edges and minimizes Dirichlet Energy on the resulting sub-graphs. This encourages nodes within the same class to share relevant information and become more cohesive.
- Inter-Energy Regularization: To maintain class separability, this term treats each predicted class as a "super-node" and maximizes the energy between them using a margin loss. This pushes different classes apart in the embedding space, preventing the collapse associated with over-smoothing.
LEReg is designed as a plug-and-play framework, compatible with various backbones such as GCN, GAT, and SGC.
Experimental Results
The effectiveness of LEReg was evaluated across several benchmarks, including citation networks (Cora, Citeseer, Pubmed), co-purchase networks (Amazon Computers/Photo), and webpage networks (Wisconsin).
Accuracy and Depth Stability
LEReg consistently improves performance over vanilla GNNs. For instance, on Cora, adding LEReg to a GAT model increased accuracy from 77.64% to 80.92%. A critical advantage of LEReg is its ability to stabilize deep GNNs.
As illustrated in Figure 3, while standard GCNs experience a sharp decline in accuracy as the number of layers increases to 64, GCNs equipped with LEReg variants (particularly Inter-Energy and the combined LEReg*) maintain significantly higher performance. This demonstrates that local regularization effectively mitigates the over-smoothing problem, allowing for deeper architectures.
Conclusion
LEReg provides a robust solution to the problem of smoothing heterogeneity in GNNs. By adaptively regularizing local neighborhoods based on predicted class distributions, it allows models to capture more nuanced patterns and scale to greater depths. Future work may extend this local energy approach to other graph tasks such as link prediction and graph-level classification.
Summary updated