Introduction
Graph classification is a fundamental task in domains ranging from bioinformatics to social network analysis. While Graph Neural Networks (GNNs) have shown promise, they often struggle with "over-smoothing," where node features become indistinguishable across layers, leading to a loss of structural detail. Alternatively, graph dictionary learning methods represent graphs by comparing them to a set of template "keys." However, traditional dictionary methods rely on static keys that cannot capture the vast diversity of graph substructures.
The SS-GDE Framework
To address these limitations, we propose the Structure-Sensitive Graph Dictionary Embedding (SS-GDE) framework. This approach moves beyond fixed dictionaries by introducing two core components: Variational Graph Dictionary Adaptation (VGDA) and Multi-sensitivity Wasserstein Encoding (MS-WE).
Variational Graph Dictionary Adaptation (VGDA)
VGDA dynamically generates an Adapted Graph Dictionary (AGD) for each input graph. By employing Bernoulli sampling, the model learns to "mask" or select specific substructures from a base dictionary, effectively creating a personalized set of keys. This variational approach allows for an exponential expansion of the dictionary's representational power without increasing storage requirements.
Multi-sensitivity Wasserstein Encoding (MS-WE)
MS-WE computes the similarity between the input graph and these adapted keys using the Wasserstein distance (Optimal Transport). Recognizing that different graphs require different levels of structural alignment, MS-WE calculates similarities across multiple regularization scales ($\lambda$). An attention mechanism fuses these multi-scale embeddings, ensuring the model captures both global topology and local nuances.
Experimental Results
The framework was evaluated on six benchmark datasets, including MUTAG, PROTEINS, and IMDB-MULTI. SS-GDE achieved state-of-the-art (SOTA) performance on five of these datasets. For instance, on MUTAG, it reached 96.78% accuracy, significantly outperforming previous methods like NgramCNN. Ablation studies confirmed that both the adaptation (VGDA) and the multi-scale encoding (MS-WE) are vital for these gains, with performance dropping by 1-2% when either module is removed.
Sensitivity Analysis
The robustness of SS-GDE is further demonstrated through sensitivity analyses of its hyperparameters.
As shown in the analysis, the model maintains stable performance across a range of values for the trade-off coefficient $\beta$, the sampling probability $p$, and the number of graph keys $K$. Notably, the multi-sensitivity approach ($\lambda$) provides a consistent performance boost compared to single-scale baselines, validating the "Goldilocks" principle of finding the right structural sensitivity for each graph.
Conclusion
SS-GDE represents a significant step forward in graph classification by combining the flexibility of variational inference with the precision of multi-scale Optimal Transport. While computationally more intensive than simple message-passing GNNs, its ability to preserve structural nuances makes it highly effective for complex, irregular graph data. Future work will explore extending this dictionary-based approach to tasks like link prediction and graph generation.
Summary updated