USER: Unsupervised Structural Entropy-Based Robust Graph Neural Network

Yifei Wang, Yupan Wang, Zeyu Zhang, Song Yang, Kaiqi Zhao, Jiamou Liu

Abstract

Graph Neural Networks (GNNs) are highly effective for graph-structured data but suffer from extreme sensitivity to noise and adversarial attacks. We present USER, a novel unsupervised framework designed to enhance GNN robustness by learning an "innocuous graph" that preserves the true underlying community structure. By integrating structural entropy and the Davies-Bouldin Index into the learning process, USER achieves significant performance improvements—up to 190%—under heavy perturbations without requiring labeled data.

Introduction: The Vulnerability of GNNs

The power of Graph Neural Networks lies in their ability to combine node features with topological structure through recursive aggregation. However, this dependency is also a critical weakness. In real-world applications, graph data is often imperfect; edges may be missing or incorrectly added due to noise or malicious "meta-attacks." Because GNNs propagate information across neighbors, even a small number of adversarial edges can degrade the entire model's performance.

While supervised methods for GNN robustness exist, they rely on ground-truth labels which are often unavailable. USER addresses this gap by providing a completely unsupervised approach to graph denoising and robust representation learning.

The USER Framework

The core philosophy of USER is to move away from blindly trusting the observed adjacency matrix ($A$). Instead, the model treats the graph structure as a learnable component, seeking an "innocuous" adjacency matrix ($A'$) that filters out noise while retaining essential connectivity.

The USER architecture: learning an innocuous graph through structural entropy and feature clustering.

The framework consists of several key components:

  1. Learnable Adjacency Matrix: The model learns a new matrix $A'$ that is optimized to represent the "intrinsic connectivity" of the data.
  2. Structural Entropy (NPSI): USER utilizes Network Partition Structural Information (NPSI) to measure the information content of graph partitions. Minimizing this entropy forces the learned graph to exhibit a clear, denoised community structure.
  3. Davies-Bouldin Index (DBI): To ensure that the learned topology aligns with node features, the model incorporates DBI—a metric for cluster quality—into its loss function. This encourages nodes with similar features to be grouped together in the learned graph.
  4. Supported GNN: The learned matrix $A'$ is fed into a standard GNN encoder (e.g., a Graph Autoencoder) to produce final embeddings.

Theoretical Foundation: Innocuous Graphs and Rank

A key theoretical contribution of the paper is the definition of an "innocuous graph." The authors prove that a graph is "GNN-indistinguishable" from the true underlying structure if its adjacency matrix has a rank at least equal to the number of natural communities in the data. This insight allows USER to focus on recovering the rank and community structure rather than attempting to reconstruct every individual noisy edge.

Visualizing Robustness

The effectiveness of USER is most apparent when visualizing the learned adjacency matrices. In scenarios where the input graph is "poisoned" by adversarial attacks, the resulting matrix often appears as a chaotic distribution of edges. USER successfully filters this noise to recover a structured, block-diagonal representation.

The adjacency matrix learned by USER, showing a clear block-diagonal structure despite input noise.

Experimental Results

USER was evaluated against state-of-the-art unsupervised baselines (including DGI, GCA, and AGE) on standard datasets such as Cora, Citeseer, and Wiki. The results demonstrate remarkable stability and performance:

  • Adversarial Resilience: Under a 20% meta-attack on the Citeseer dataset, USER outperformed standard models by a staggering 190.01% in clustering performance.
  • Noise Tolerance: On the Cora dataset with 50% random edge noise, USER achieved a 14.14% improvement in clustering accuracy over the strongest baseline.
  • Stability: Unlike many existing models that collapse as noise levels increase, USER's performance remains consistently high, proving its utility for real-world, noisy environments.

Conclusion

USER represents a significant step forward in unsupervised graph representation learning. By leveraging structural entropy and the concept of innocuous graphs, it provides a robust alternative to traditional GNNs that is capable of thriving in adversarial conditions. Future work may involve automating the estimation of community counts and optimizing the framework for large-scale graphs with millions of nodes.

Summary updated

BibTeX
@inproceedings{wang2023user,
  author = {Yifei Wang and Yupan Wang and Zeyu Zhang and Song Yang and Kaiqi Zhao and Jiamou Liu},
  title = {{USER: Unsupervised Structural Entropy-Based Robust Graph Neural Network}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i8.26219},
}
Figure