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:
- Graph Dictionary: Instead of calculating a single "average graph" per class, which is computationally prohibitive, the model maintains a dictionary of representative "landmark" graphs.
- 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.
- 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 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.
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