TL;DR
This paper introduces FOSSIL, a novel self-supervised learning method for graphs that combines node-level and subgraph-level contrastive learning. By leveraging the Fused Gromov-Wasserstein distance, FOSSIL effectively captures both node features and graph structure, outperforming existing methods on both homophilic and heterophilic graphs.
What Problem Does This Paper Address?
Self-supervised learning (SSL) is crucial for training deep learning models when labeled data is scarce. While graph neural networks (GNNs) are powerful for graph data, designing effective SSL pretext tasks for them remains challenging. Existing contrastive learning methods for graphs often struggle to fully utilize the rich structural patterns and node similarities inherent in graph data. Specifically, many methods either focus too much on node-level information or use subgraph similarity metrics that don't adequately capture both structural and feature aspects simultaneously. Furthermore, many GNN-based SSL methods perform poorly on heterophilic graphs, where nodes with different labels are more likely to be connected.
Methods
FOSSIL tackles these challenges with a multi-pronged approach:
- Fused Gromov-Wasserstein (FGW) Distance: This is the core of FOSSIL's subgraph similarity metric. Unlike traditional methods that use either node features (Wasserstein Distance) or graph structure (Gromov-Wasserstein Distance) separately, FGW jointly considers both, providing a more comprehensive measure of subgraph similarity.
- Decoupled Encoder: To handle both homophilic and heterophilic graphs, FOSSIL employs a decoupled encoder. This architecture combines a GNN (for structural information) and an MLP (for feature information) with shared weights. This allows the model to adaptively leverage feature or structural information based on the graph's characteristics.
- Subgraph and Node-Level Contrastive Learning: FOSSIL integrates two levels of contrastive learning. Subgraph-level contrast uses the FGW distance to learn representations by comparing augmented subgraphs. Node-level contrast is also incorporated to further refine node embeddings and improve downstream performance.
- Adaptive View Generation: FOSSIL uses a GAT (Graph Attention Network) as a generator to create perturbed versions of the graph. This generator adaptively creates views by considering both node features and graph structure, aiming to preserve semantic similarity while introducing variations.
Datasets
The paper evaluates FOSSIL on a range of benchmark datasets:
- Homophilic Datasets: Cora, CiteSeer, PubMed, CoAuthor-CS.
- Heterophilic Datasets: Actor, Chameleon, Squirrel.
- Large-Scale Datasets: OGBN-Arxiv, OGBN-Proteins (for evaluating FOSSILv2).
The paper does not introduce new benchmarks but uses established datasets to demonstrate the method's effectiveness across different graph types and sizes.
Key Insights and Ideas
- Joint Feature-Structure Similarity is Key: The FGW distance's ability to simultaneously capture both node features and graph structure is crucial for effective subgraph contrastive learning, outperforming methods that rely on only one aspect.
- Decoupled Encoders for Heterophily: The decoupled encoder, combining GNN and MLP, is essential for achieving robust performance on heterophilic graphs, where traditional GNNs struggle. This architecture allows the model to adapt its reliance on features versus structure.
- Subgraph-Level Contrast is More Powerful: Integrating subgraph-level contrastive learning, especially with a sophisticated similarity metric like FGW, significantly improves performance over methods that rely solely on node-level contrast or simple graph readout functions.
- Node-Level Contrast Still Matters: While subgraph-level contrast is powerful, adding node-level contrast further boosts performance, indicating that both granular and structural information are valuable.
Key Results
- FOSSIL achieves state-of-the-art or competitive performance on both homophilic and heterophilic benchmark datasets for self-supervised node classification.
- On heterophilic datasets like Actor, Chameleon, and Squirrel, FOSSIL shows significant improvements over baseline methods, demonstrating its robustness.
- FOSSIL outperforms methods like DGI and Subg-Con, which use simpler readout functions for graph characterization, highlighting the advantage of FGW.
- The FOSSILv2 variant demonstrates good scalability on large-scale graphs (OGBN-Arxiv, OGBN-Proteins) while maintaining competitive performance.
- Ablation studies confirm the effectiveness of the FGW metric, the decoupled encoder, and the integration of node-level contrast.
Limitations and Future Work
- Scalability of FGW: While FOSSILv2 addresses some scalability issues, the FGW computation itself can still be computationally intensive for very large graphs.
- Hyperparameter Sensitivity: The performance of FOSSIL can be sensitive to the choice of the
alphahyperparameter, which balances feature and structure importance. The optimal value varies between homophilic and heterophilic graphs. - Future Work: The authors suggest exploring high-pass feature extractors to further enhance performance on heterophilic graphs. They also propose extending FOSSIL to other downstream tasks like link prediction and graph classification. Investigating more adaptive subgraph sampling techniques is also mentioned as a promising direction.
Summary updated