Deep Wasserstein Graph Discriminant Learning for Graph Classification

Tong Zhang, Yun Wang, Zhen Cui, Chuanwei Zhou, Baoliang Cui, Haikuan Huang, Jian Yang

Abstract

Graph classification is a fundamental task in machine learning with applications in bioinformatics and social network analysis. Traditional Graph Neural Networks (GNNs) often struggle to compare global topological structures effectively. This paper presents Deep Wasserstein Graph Discriminant Learning (WGDL), a framework that leverages Optimal Transport (OT) to measure graph similarities. By employing a learnable graph dictionary and a specialized Wasserstein-based discriminant loss, WGDL achieves state-of-the-art performance across several benchmarks.

Introduction

Identifying the category of a graph—such as determining the toxicity of a molecule or the type of a social community—is challenging due to the irregular nature of graph data. While GNNs are proficient at learning local node features, they typically rely on simple pooling mechanisms (e.g., averaging) to generate graph-level representations. These methods often fail to capture the intricate "topological correspondence" between different graphs.

The Wasserstein distance (or Earth Mover's Distance) offers a more principled way to compare distributions of node embeddings. However, integrating it into deep learning pipelines is computationally demanding and mathematically complex. WGDL addresses these issues by projecting graphs into a dictionary space and optimizing a discriminant loss function designed for non-Euclidean spaces.

Methodology

The WGDL framework introduces three primary innovations to make Wasserstein-based learning viable for deep networks:

  1. Graph Dictionary: Instead of calculating a single "average graph" per class, which is computationally prohibitive, the model maintains a dictionary of representative "landmark" graphs.
  2. Wasserstein Graph Transformer (WGT): Input graphs are compared against dictionary keys using Optimal Transport. To maintain efficiency, the framework utilizes Sinkhorn iterations, an entropic regularization technique that accelerates the OT calculation.
  3. Wasserstein Discriminant Loss (WD-Loss): Inspired by Linear Discriminant Analysis (LDA), this loss function forces dictionary keys of the same class to cluster together in the Wasserstein space while maximizing the distance between different classes.
The WGDL architecture, featuring the Graph Encoder, Momentum Graph Encoder for the dictionary, and the Wasserstein Graph Transformer.

The architecture employs a dual-encoder setup: a standard GCN for input graphs and a momentum-updated GCN for dictionary keys. This momentum mechanism ensures that the latent representations of the dictionary evolve smoothly, preventing the "representation drift" common in online dictionary learning.

Experimental Results

WGDL was evaluated on six standard graph classification benchmarks, including MUTAG, PTC, NCI1, PROTEINS, and IMDB datasets. The model achieved competitive or state-of-the-art results across the board.

Performance Highlights

  • PTC Dataset: WGDL reached 70.89% accuracy, outperforming previous benchmarks like NGramCNN by over 2%.
  • Social Networks: On IMDB-BINARY, the model achieved 79.70% accuracy, a significant improvement over standard GNN approaches like PSCN (71.00%).
  • Comparison with Kernels: WGDL consistently outperformed traditional graph kernels (e.g., WL or Deep Graph Kernels) by margins of 5-10% in accuracy.
Sensitivity analysis of WGDL performance across different hyperparameters, including the dictionary size (K) and regularization parameters (λ, β).

Key Insights

Ablation studies demonstrated that replacing the Optimal Transport distance with a simple point-wise Euclidean distance significantly degraded performance. This confirms that the "matching" logic inherent in OT is essential for capturing structural relationships. Additionally, the sensitivity analysis (shown above) indicates that the model is robust to hyperparameter choices, with optimal performance typically found at balanced regularization weights.

Conclusion

Deep Wasserstein Graph Discriminant Learning provides a powerful alternative to standard pooling-based graph classification. By leveraging landmark-based dictionaries and Optimal Transport, the framework effectively captures the topological nuances of irregular data. Future research may extend this Wasserstein framework to node-level tasks or more complex, multi-modal dictionary structures.

Summary updated

BibTeX
@inproceedings{zhang2021deep,
  author = {Tong Zhang and Yun Wang and Zhen Cui and Chuanwei Zhou and Baoliang Cui and Haikuan Huang and Jian Yang},
  title = {{Deep Wasserstein Graph Discriminant Learning for Graph Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17303},
}
Figure