TL;DR
This paper introduces Graffe, a novel self-supervised learning framework for graphs that leverages diffusion probabilistic models (DPMs). Graffe demonstrates that DPMs can be effectively adapted for representation learning on graphs, achieving state-of-the-art results on various node and graph classification tasks by theoretically linking DPM's denoising objective to maximizing mutual information.
What Problem Does This Paper Address?
While diffusion models have shown remarkable success in generating high-quality data, their application to representation learning, especially for graph-structured data, remains underexplored. Existing challenges include adapting DPMs to the non-Euclidean nature of graphs and the lack of an explicit encoder to extract meaningful representations for downstream tasks. This paper aims to bridge this gap by proposing a self-supervised method that harnesses the generative power of DPMs for effective graph representation learning.
Methods
Graffe employs an explicit-encoder pattern, where a GNN encoder is trained jointly with a conditional diffusion decoder. The encoder processes the input graph to generate a compact representation, which then conditions the diffusion decoder. The decoder's task is to denoise a corrupted graph representation, guided by both the noisy input and the encoded representation.
The theoretical foundation of Graffe lies in proving that the denoising score matching loss of DPMs implicitly maximizes the conditional mutual information between the data and its representation. This is termed the Diff-InfoMax principle, an extension of the InfoMax principle. The authors also introduce a random node masking strategy for the encoder input, which acts as a more challenging self-supervision task, preventing shortcut learning and encouraging robust representations. For the decoder, a Graph-Unet architecture is utilized, adapting the U-Net structure for graph data by using GNN layers and skip connections.
Datasets
The paper evaluates Graffe on a variety of datasets for both node and graph classification tasks:
Node Classification: * Citation networks: Cora, CiteSeer, PubMed * Co-purchase graphs: Photo, Computer * Open Graph Benchmark: arXiv
Graph Classification: * IMDB-B, IMDB-M, PROTEINS, COLLAB, MUTAG
Key Insights and Ideas
- Diffusion Models for Representation Learning: The paper provides strong theoretical and empirical evidence that diffusion models, primarily known for generation, are powerful tools for learning high-quality graph representations.
- Diff-InfoMax Principle: The theoretical link between denoising score matching and maximizing conditional mutual information (Diff-InfoMax) provides a principled understanding of why diffusion-based representation learning works.
- Masking for Robustness: Randomly masking node features before feeding them to the encoder is crucial for preventing the model from learning trivial shortcuts and forces it to learn more meaningful graph semantics.
- Frequency Domain Advantage: The analysis suggests that diffusion models, when applied to graphs, excel at capturing high-frequency information in graph features, which is beneficial for downstream tasks.
- Graph-Unet Architecture: Adapting the U-Net architecture with GNN layers and skip connections proves effective for graph-specific diffusion decoding.
Key Results
Graffe achieved state-of-the-art performance on 9 out of 11 real-world datasets for node and graph classification tasks under the linear probing setting. Specifically:
- On the Computer dataset, Graffe achieved an accuracy of 91.3%.
- On the Photo dataset, Graffe achieved an accuracy of 94.2%.
- On the COLLAB dataset, Graffe achieved an accuracy of 81.3%.
- The paper also shows that Graffe outperforms fully supervised baselines on most tasks, indicating the effectiveness of its self-supervised approach.
- Ablation studies confirmed the importance of the reconstruction objective (feature reconstruction), the masking strategy, and the Graph-Unet decoder.
Limitations and Future Work
- Mask Ratio Tuning: The optimal mask ratio for the encoder input is task-dependent and requires tuning, as demonstrated by the ablation study. There isn't a universal "best" ratio.
- Encoder Backbone Preference: Different SSL methods exhibit varying preferences for encoder backbones (e.g., GAT vs. GCN), suggesting that optimal encoder selection might not be universal.
- Future Work: The authors suggest exploring alternative methods for optimizing variational lower bounds of conditional mutual information and further investigating the application of diffusion models for graph representation learning. The Diff-InfoMax principle opens avenues for integrating diffusion models with representation learning.
Summary updated