Automated Self-Supervised Learning for Graphs

Wei Jin, Xiaorui Liu, Xiangyu Zhao, Yao Ma, Neil Shah, Jiliang Tang

Overview

Self-supervised learning (SSL) for graphs typically relies on manually selected "pretext tasks," but no single task works best across all datasets. This paper introduces AUTOSSL, a framework that automatically searches for the optimal combination of SSL tasks. It achieves this by using "pseudo-homophily"—an unsupervised metric based on the principle that connected nodes tend to be similar—to guide the learning process without requiring any human-labeled data.

The "One-Size-Fits-None" Problem

In graph representation learning, self-supervised learning has become a vital tool for training models when labeled data is scarce. Researchers have designed various pretext tasks—such as predicting whether two nodes are neighbors or if they share similar features—to force models to learn useful representations.

However, a major "one-size-fits-none" problem plagues current approaches: a pretext task that excels on a citation network might fail miserably on a co-purchase graph. Currently, picking the right task (or a combination of tasks) requires tedious manual tuning and access to ground-truth labels to validate performance. The core challenge is finding a way to automatically discover the best combination of SSL tasks for a specific graph without using any labels.

Performance variations across datasets and the AUTOSSL search process

The AUTOSSL Framework

To address this, the authors propose AUTOSSL, which treats the selection of SSL tasks as an automated search problem. The framework combines five popular SSL tasks (DGI, CLU, PAR, PAIRSIM, and PAIRDIS) using weighted loss functions.

The core innovation is the unsupervised surrogate metric used to guide the search:

  • Pseudo-homophily: Most real-world graphs exhibit "homophily" (nodes that are connected are likely to share the same label). AUTOSSL clusters node embeddings to create "pseudo-labels" and then calculates a homophily score based on the graph's structure.
  • Theoretical Grounding: The authors provide a mathematical proof showing that maximizing this pseudo-homophily score effectively maximizes the upper bound of mutual information between the learned representations and the actual (hidden) downstream labels.

To find the optimal task weights, they propose two strategies:

  1. AUTOSSL-ES (Evolutionary Strategy): Uses the CMA-ES algorithm to sample and evolve task weights over multiple rounds. It is highly parallelizable but computationally expensive.
  2. AUTOSSL-DS (Differentiable Search): Uses meta-gradients to adjust weights via gradient descent. To make the discrete clustering step differentiable, they employ a "soft clustering" approach based on Gaussian Mixture Models.

Key Insights

  • Homophily as a Universal Prior: Homophily isn't just a property to observe; it is a powerful signal to optimize for in the absence of labels. It acts as a bridge between unsupervised structure and supervised semantics.
  • Task Synergy: Individual tasks often capture different "views" of the data (local vs. global). AUTOSSL succeeds because it learns to mediate these influences, favoring local structure tasks for co-purchase networks while leaning on global contrastive tasks for citation networks.
  • The Overtraining Risk: While pseudo-homophily is a great proxy, over-optimizing it can eventually lead to a slight drop in downstream performance (overfitting to the proxy). "Early stopping" based on the peak of the pseudo-homophily curve is a viable strategy for unsupervised model selection.

Experimental Results

The framework was evaluated on 8 diverse real-world datasets, including citation networks (Citeseer, CoraFull, ogbn-arxiv), co-authorship graphs (CS, Physics), and co-purchase networks (Computers, Photo, WikiCS).

  • Superior Performance: AUTOSSL consistently outperformed training on any single individual SSL task. On the Photo dataset, it achieved a 10% relative improvement in node clustering.
  • Beating Supervised Baselines: In several cases, the unsupervised representations from AUTOSSL-DS actually outperformed standard supervised models like GCN and GAT on node classification tasks.
  • Efficiency: While the evolutionary approach (ES) is slow, the differentiable search (DS) is remarkably efficient, often reaching near-optimal performance in a fraction of the time.

Limitations and Future Work

The entire framework relies on the assumption that the graph is homophilous. While true for many social and citation networks, it may fail on "heterophilous" graphs (e.g., chemical interaction networks where different types of nodes attract). The authors suggest graph transformation techniques as a potential workaround. Furthermore, the search space is currently limited to weighting five specific tasks; future work could expand this to search over model architectures or more complex data augmentation strategies.

Summary updated

BibTeX
@inproceedings{jin2022automated,
  author = {Wei Jin and Xiaorui Liu and Xiangyu Zhao and Yao Ma and Neil Shah and Jiliang Tang},
  title = {{Automated Self-Supervised Learning for Graphs}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=rFbR4Fv-D6-},
}
Figure