SLAPS: Self-Supervision Improves Structure Learning for Graph Neural Networks

Bahare Fatemi, Layla El Asri, Seyed Mehran Kazemi

Graph Neural Networks (GNNs) are incredibly powerful tools for analyzing interconnected data, but they come with a major prerequisite: they need an explicit graph structure. In many real-world scenarios—like analyzing patient records or product catalogs—we have rich data points but no explicit "links" between them.

To use GNNs in these situations, researchers often attempt to learn a "latent graph" simultaneously with the GNN's classification parameters. However, this approach frequently runs into a critical roadblock known as supervision starvation, especially when labeled data is scarce.

In this paper, the authors introduce SLAPS (Simultaneous Learning of Adjacency and GNN Parameters with Self-supervision), a novel method that allows GNNs to learn their own graph structure from scratch by leveraging a self-supervised denoising task.

The Problem: Supervision Starvation

In semi-supervised learning, we typically only have labels for a tiny fraction of nodes. Because a standard GNN only aggregates information from a node's immediate neighbors (usually within 1 or 2 hops), any edges connecting nodes that are far away from the labeled ones receive zero feedback during training.

Illustration of a starved edge

These "starved" edges end up being low-quality because the model has no gradient signal to optimize them. The authors provide mathematical proof showing that in random graphs, the probability of an edge being starved of supervision is remarkably high—often over 90% for standard datasets like Pubmed. This lack of supervision leads to poor generalization and sub-optimal latent graphs.

The SLAPS Framework

To overcome supervision starvation, SLAPS introduces a multi-task learning framework that provides a dense supervision signal across the entire graph, regardless of where the labeled nodes are located.

SLAPS Architecture

SLAPS consists of four main components working in tandem:

  1. The Generator: This module takes node features and produces a candidate adjacency matrix. The authors propose two versions: a "Full Parameterization" approach and a highly scalable "MLP-kNN" approach.
  2. Adjacency Processor: A straightforward module that ensures the generated graph is symmetric, non-negative, and normalized—standard mathematical requirements for stable GNN training.
  3. The Classifier ($GNN_C$): A standard GNN that uses the newly learned graph structure to predict node labels based on the limited supervised data.
  4. The Self-Supervision Task ($GNN_{DAE}$): This is the core innovation of SLAPS. It acts as a Denoising Autoencoder (DAE) implemented as a separate GNN. It takes the original node features, injects noise (or masks values), and then attempts to reconstruct the original features using the same learned graph structure.

By minimizing the reconstruction error, the model is forced to build a graph where connected nodes have similar or predictable features. This provides a gradient update for every single edge in the graph, effectively solving the starvation problem.

Key Insights and Results

  • The Homophily Hypothesis: SLAPS operates on the assumption that a graph structure optimized for predicting missing features is also likely optimal for predicting labels. The self-supervised DAE task acts as a powerful inductive bias, pushing the model to learn a "smooth" graph where information flows effectively between similar nodes.
  • Scalability: Most latent graph methods require $O(N^2)$ memory to store all possible edges, making them unusable for large datasets. By utilizing an MLP-based kNN generator, SLAPS successfully scales to the ogbn-arxiv dataset (over 160,000 nodes), where many competing models simply crash due to Out-Of-Memory (OOM) errors.
  • State-of-the-Art Performance: SLAPS consistently outperforms prominent latent graph models like LDS and IDGL. On the Cora dataset, SLAPS achieved ~74% accuracy, significantly higher than the ~66% of a standard kNN-GCN. On ogbn-arxiv, SLAPS reached 56.6% accuracy.
  • Finding Structure in Non-Graphs: The authors also tested SLAPS on standard machine learning datasets (like Wine, Cancer, Digits, and 20News) that have no inherent graph structure. SLAPS successfully inferred useful latent structures, proving its versatility.

Limitations and Future Directions

While SLAPS represents a significant step forward, it does have limitations. The method relies heavily on the quality of the input features; if the features are uninformative or lack homophily, the self-supervised task might guide the model toward a sub-optimal structure. Additionally, the framework introduces new hyperparameters—specifically the weight of the self-supervision task ($\lambda$) and noise ratios—which require careful tuning. Future work may explore more sophisticated, tractable graph generators to further improve the quality of the learned structures.

Summary updated

BibTeX
@inproceedings{fatemi2021slaps,
  author = {Bahare Fatemi and Layla El Asri and Seyed Mehran Kazemi},
  title = {{SLAPS: Self-Supervision Improves Structure Learning for Graph Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=JWRRBHFPKTJ},
}
Figure