NCGNN: Node-Level Capsule Graph Neural Network for Semisupervised Classification

Rui Yang, Wenrui Dai, Chenglin Li, Junni Zou, Hongkai Xiong

TL;DR

This paper introduces NCGNN, a novel Graph Neural Network (GNN) that uses "capsules" to represent nodes and a dynamic routing mechanism for message passing. This approach addresses the common GNN issues of poor interpretability and "oversmoothing" (where node representations become indistinguishable) by adaptively selecting important features and filtering out noise, leading to improved performance on both homophilous and heterophilous graphs.

What Problem Does This Paper Address?

Traditional Graph Neural Networks (GNNs) often rely on simple aggregation methods like summing or averaging neighbor node features. While effective for graphs where connected nodes share similar attributes (homophily), this approach struggles with graphs where connected nodes are dissimilar (heterophily). Two major problems arise:

  1. Lack of Interpretability: It's hard to understand which specific node features contribute to the GNN's predictions, requiring complex post-hoc explanation methods.
  2. Oversmoothing: When stacking multiple GNN layers to capture long-range dependencies, irrelevant information (noise) can be aggregated, causing node representations from different classes to become indistinguishable. This is particularly problematic for heterophilous graphs where connected nodes are inherently different.

The authors aim to develop a GNN that can effectively handle both homophilous and heterophilous graphs, while also being inherently interpretable and mitigating the oversmoothing issue.

Methods

NCGNN introduces a novel message passing scheme built around node-level capsules and dynamic routing:

  • Node-Level Capsules: Each node's scalar features are transformed into a set of "primary node capsules" (vectors). Each capsule is designed to capture a distinct aspect or property of the node. This is achieved through linear projections into different subspaces.
  • Graph Filter: Before message passing, a designed graph filter identifies a relevant subgraph for each target node. This filter can consider higher-order neighborhoods (beyond just immediate neighbors) and is designed to be more adaptive than traditional GCN filters. It can be attention-based (learning weights for different hops) or diffusion-based (using fixed probabilities).
  • Dynamic Routing-by-Agreement: This is the core innovation. For each target node, the primary node capsules from the identified subgraph are aggregated using a dynamic routing mechanism. This mechanism adaptively selects "advantageous" capsules that agree with each other and the target class, while restraining irrelevant or noisy messages. This process generates "class node capsules" for each node, representing its predicted class. This routing is iterative and aims to find the best agreement between capsules.
  • Interpretability: The graph filter and the dynamic routing procedure inherently identify which node features (represented by primary capsules) are most significant for the model's prediction, making the process interpretable without needing separate explanation modules.

Datasets

The authors evaluate NCGNN on a comprehensive set of datasets:

  • Real-world Graphs:
    • Assortative Graphs (Homophilous): Cora, Citeseer, Pubmed, Cora-ML (citation networks), Amazon Photo, Amazon Computers (Amazon co-purchase graphs).
  • Disassortative Graphs (Heterophilous): Squirrel, Chameleon (Wikipedia networks), Actor (actor co-occurrence network), Texas, Cornell, Wisconsin (CMU WebKB subgraphs).
  • Synthetic Graphs: Syn-Cora, which allows controlling the homophily ratio from 0.1 to 0.9.

Key Insights and Ideas

  • Capsules for Node Representation: The idea of using vector-based capsules, inspired by computer vision, for node representations in GNNs is novel. It allows for richer feature extraction beyond simple scalar values.
  • Dynamic Routing as a Feature Selector: The dynamic routing mechanism acts as a sophisticated feature selector, adaptively choosing which neighboring node capsules are most relevant for a given node's classification. This is a key differentiator from simple aggregation.
  • Decoupling Feature Aggregation and Transformation: The graph filter's ability to identify subgraphs and the capsule layer's routing mechanism effectively decouple the process of aggregating information from transforming it, which helps alleviate oversmoothing.
  • Inherent Interpretability: The mechanism of identifying important capsules and their contributions directly provides insights into the model's decision-making, a significant advantage over black-box GNNs.
  • Handling Heterophily: The adaptive nature of the routing mechanism allows NCGNN to effectively filter out noise and learn meaningful representations even when connected nodes are dissimilar, a major challenge for many GNNs.

Key Results

  • State-of-the-Art Performance: NCGNN achieves state-of-the-art performance on both homophilous and heterophilous real-world datasets, outperforming existing GNNs.
  • Improved Accuracy on Heterophilous Graphs: NCGNN shows significant gains on disassortative graphs where other methods struggle. For example, on the Actor dataset, NCGNN-A achieves 86.90% accuracy, significantly better than MLP (35.76%) and comparable to or better than specialized heterophily methods like H2GCN.
  • Robustness to Oversmoothing: NCGNN-A demonstrates better classification accuracy with larger receptive fields (more hops), indicating it effectively mitigates the oversmoothing issue.
  • Interpretability Visualizations: Heatmaps of coupling coefficients show which primary node capsules contribute most to predicting specific classes, providing concrete evidence of the model's interpretability.
  • Robustness to Edge Perturbations: NCGNN shows strong robustness when edges are randomly removed from the graph, outperforming baselines in these scenarios.

Limitations and Future Work

  • Computational Complexity: While comparable to GCN, the routing iterations add a factor of T to the complexity. The authors mention that NCGNN shows scalability in a distributed manner.
  • Hyperparameter Sensitivity: While generally not sensitive to K (number of capsules) and T (routing iterations), the model requires a relatively large dropout rate to avoid overfitting, suggesting it's a complex model.
  • Future Work: The paper mentions that capsule graph layers can be further stacked to generate multiple high-level capsules, suggesting potential for deeper architectures. The authors also note that more sophisticated implementations for primary node capsules could be explored, such as enforcing independence between them.

Summary updated

BibTeX
@article{yang2024ncgnn,
  author = {Rui Yang and Wenrui Dai and Chenglin Li and Junni Zou and Hongkai Xiong},
  title = {{NCGNN: Node-Level Capsule Graph Neural Network for Semisupervised Classification}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2024},
  url = {https://openreview.net/forum?id=C4qGdXNOh5},
}
Figure