On the Impact of Communities on Semi-supervised Classification Using Graph Neural Networks

Hussain Hussain, Tomislav Duricic, Elisabeth Lex, Roman Kern, Denis HelicarXiv 2020 · DOI

TL;DR

Graph Neural Networks (GNNs) are incredibly effective at node classification, but their success heavily relies on how well a graph's community structure aligns with its target labels. This paper demonstrates that when communities and labels don't correlate, GNNs can actually perform worse than simple, feature-only baselines due to the propagation of structural noise.

What Problem Does This Paper Address?

Graph Neural Networks have become the state-of-the-art tool for semi-supervised node classification (e.g., predicting a user's interests in a social network or a paper's topic in a citation network). GNNs achieve this by "smoothing" node features across neighbors—a process driven by the cluster assumption, which posits that connected nodes are more likely to share the same label.

However, real-world graphs are often organized into dense subgraphs called communities. While researchers intuitively assume that these communities align nicely with node labels, this isn't always the case. This paper tackles a fundamental question: How exactly does community structure impact the learning process of GNNs, and what happens when the cluster assumption fails?

Methods

To isolate the impact of community structures, the authors designed a clever structural ablation study. They took original graph datasets and generated three types of modified graphs to see how GNN performance changed:

  1. SBM (Stochastic Block Model) Networks: These graphs preserve the original community structure and node features/labels but randomize the individual node connections to follow a binomial degree distribution.
  2. CM (Configuration Model) Networks: These graphs preserve each node's specific number of connections (degree distribution) but randomly rewire edges, effectively destroying the community structure.
  3. Random Networks: These graphs use Erdős-Rényi modeling to eliminate both community structure and the original degree distribution.

To quantify the relationship between communities and labels, the authors introduced the uncertainty coefficient $U(L|C)$. This metric ranges from 0 to 1:

  • $U(L|C) = 1$: Knowing a node's community perfectly predicts its label.
  • $U(L|C) = 0$: The community provides zero information about the label.

They evaluated five popular GNN architectures (GCN, GraphSAGE, GAT, SGC, and APPNP) against a simple, feature-only baseline (Logistic Regression) across these variants.

Datasets

The authors evaluated the models on six public graph datasets chosen for their diverse structural properties:

  • Citation Networks (High label-community correlation expected): CORA-ML, CiteSeer, PubMed, and CORA-Full. Here, nodes are papers, edges are citations, and labels are topics.
  • Social Network (Unknown correlation): Twitter, where nodes are users, edges are retweets, and labels indicate whether a user is "hateful" or not.
  • Web Graph (Low correlation expected): WebKB, where nodes are university webpages, edges are hyperlinks, and labels indicate the page type (e.g., faculty, project, student).

Key Insights and Ideas

  • The "Aha!" Moment on Feature Smoothing: GNN message-passing is essentially Laplacian feature smoothing. If a community contains a chaotic mix of different labels, the GNN will smooth out distinctive features, making nodes look identical even though they belong to different classes.
  • Communities Matter More Than Degree Distributions: On citation datasets, destroying communities (the CM variant) caused a massive drop in accuracy, while merely changing the degree distribution (the SBM variant) had a minimal impact. This proves that community structure is the primary engine behind GNN success in these domains.
  • A Practical Selection Guideline: Instead of blindly applying GNNs to every graph problem, practitioners can use the uncertainty coefficient $U(L|C)$ as a heuristic:
  • $U(L|C) > 0.7$: High confidence that GNNs will successfully exploit the network structure.
  • $U(L|C) < 0.3$: High confidence that GNNs will fail to beat a simple feature-only baseline.

Key Results

The experiments revealed a stark contrast between datasets where communities align with labels and those where they do not:

Fig. 1. The accuracy of GNNs on the original graph and the ablation models of each dataset. The red dashed line represents the median accuracy of the feature-only baseline. The performance on the original graphs is generally higher than that of the baseline except for WebKB. On citation graphs, the baseline is clearly outperformed on the original graphs, and eliminating communities (CM graphs) results in a much higher accuracy drop than eliminating the degree sequence (SBM graphs). This is not the case for the other two datasets where the baseline is not always outperformed on the original graphs, and the drop in performance on SBM networks is substantial. This highlights the positive impact of communities on citation datasets and its negative impact on WebKB. The uncertainty coefficient is the highest for the three datasets in the top row and the lowest for WebKB providing a potential explanation for the low GNN performance on this dataset.
  • Citation Graphs (High $U(L|C)$ of 0.64–0.69): GNNs easily outperformed the feature-only baseline. When communities were destroyed (CM and Random models), accuracy plummeted significantly.
  • WebKB Graph (Low $U(L|C)$ of 0.320): Not a single GNN architecture managed to outperform the simple feature-only baseline. Surprisingly, the SBM model (which preserves communities but randomizes edges) yielded the worst performance, proving that forcing a GNN to smooth features across these non-representative communities actively harms the model.

Limitations and Future Work

While this paper provides an excellent diagnostic tool for semi-supervised node classification, it focuses primarily on graphs exhibiting homophily (where similar nodes connect). The authors note that future work should expand this systematic analysis to explore how other structural properties—such as edge directionality, graph assortativity, and heterophily (where different nodes connect)—influence GNN performance.

Summary updated

BibTeX
@misc{hussain2020impact,
  author = {Hussain Hussain and Tomislav Duricic and Elisabeth Lex and Roman Kern and Denis Helic},
  title = {{On the Impact of Communities on Semi-supervised Classification Using Graph Neural Networks}},
  year = {2020},
  eprint = {2010.16245},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.16245},
}
Figure