NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Graph Infomax

Petar Velickovic, William Fedus, William L. Hamilton, Pietro Liò, Yoshua Bengio, R. Devon Hjelm

TL;DR

Deep Graph Infomax (DGI) is a breakthrough unsupervised method for learning node representations in graphs. By maximizing the mutual information between local node "patches" and a global graph summary, DGI captures complex structural information without needing manual labels. Impressively, it often rivals or exceeds the performance of fully supervised models.

What Problem Does This Paper Address?

In the world of Graph Neural Networks (GNNs), most successful models are supervised, meaning they require a large amount of labeled data to learn effectively. However, in the real world, most graph data (like social networks or biological pathways) is unlabeled.

Existing unsupervised methods typically rely on "random walks"—the idea that nodes appearing near each other in a walk should have similar representations. The authors argue this approach has two major flaws:

  1. Proximity over Structure: Random walks over-emphasize which nodes are "neighbors" but often fail to capture a node's broader "structural role" (e.g., is this node a hub or a leaf?).
  2. Hyperparameter Sensitivity: These methods are notoriously difficult to tune and don't always integrate well with modern graph convolutional architectures.

DGI seeks to bridge this gap by providing a general, robust framework for unsupervised learning that works for both fixed graphs (transductive learning) and entirely new, unseen graphs (inductive learning).

Methods

DGI is inspired by "Deep InfoMax," a technique originally designed for images. The core idea is to train an encoder to maximize Mutual Information (MI) between local and global features.

DGI Architecture

The process follows four primary steps:

  1. The Encoder ($\mathcal{E}$): A standard GNN (like a GCN) processes the graph to produce "patch representations" ($\vec{h}_i$) for every node. Each $\vec{h}_i$ summarizes the subgraph centered around that node.
  2. The Readout ($\mathcal{R}$): A function aggregates all these local patches into a single "global summary vector" ($\vec{s}$) that represents the entire graph.
  3. The Corruption Function ($\mathcal{C}$): To create a contrast, the authors generate a "fake" version of the graph (e.g., by keeping the structure but shuffling the node features, creating $\tilde{X}$).
  4. The Discriminator ($\mathcal{D}$): This acts as the "judge." It is trained to distinguish between "real" pairs (a node patch and the summary of the graph it actually belongs to) and "fake" pairs (a node patch paired with a summary from a corrupted graph).

By forcing the discriminator to recognize which nodes belong to which "big picture," the encoder is incentivized to capture information that is globally relevant across the entire graph.

Datasets

The authors evaluated DGI on five diverse benchmarks, spanning both transductive and inductive settings:

Dataset Statistics
  • Transductive (Fixed Graph): Cora, Citeseer, and Pubmed. These are citation networks where nodes represent papers and edges represent citations.
  • Inductive (Generalizing to New Graphs):
    • Reddit: A massive social media dataset where the goal is to predict which community a post belongs to.
  • PPI (Protein-Protein Interaction): A dataset of 24 different graphs representing human tissues, requiring the model to generalize to completely unseen biological structures.

Key Insights and Ideas

  • Local-Global Contrast: The core insight is that you don't need labels if you have the "whole." By asking "Does this local node fit into this global context?", the model learns the underlying rules of the graph's structure.
  • Capturing Structural Roles: Because DGI looks at the global summary, it can recognize that two nodes on opposite sides of a graph are similar because they play the same structural role (e.g., both act as bridges between clusters).
  • Corruption Matters: The paper shows that simply shuffling features (row-wise shuffling) is a highly effective way to create "negative samples" that force the model to learn meaningful representations without altering the underlying adjacency matrix.

Key Results

DGI produced impressive quantitative results, often closing the gap between unsupervised and supervised learning:

  • Beating Supervision: On the Cora and Citeseer datasets, DGI (unsupervised) actually achieved higher accuracy than a standard supervised GCN (82.3% vs 81.5% on Cora).
  • State-of-the-Art Unsupervised: On the massive Reddit dataset, DGI achieved an F1 score of 0.940, significantly outperforming previous unsupervised leaders like GraphSAGE.
  • Visual Clarity: t-SNE visualizations in the original paper show that DGI creates much tighter, more distinct clusters of node types compared to raw features or randomly initialized models.

Limitations and Future Work

  • Readout Simplicity: The paper uses a simple averaging of node features for the global summary. The authors suggest that for very large or complex graphs, more sophisticated "pooling" or "readout" architectures (like set2vec) might be necessary.
  • Corruption Strategies: While feature shuffling worked well here, the design of corruption functions is still an open area of research. Different types of graphs (e.g., chemical vs. social) might require different "fake" data strategies to learn the best features.
  • Scalability: While DGI handles large graphs like Reddit via subsampling, the computational cost of calculating mutual information on truly planetary-scale graphs remains a challenge.

Summary updated

BibTeX
@inproceedings{velickovic2019deep,
  author = {Petar Velickovic and William Fedus and William L. Hamilton and Pietro Liò and Yoshua Bengio and R. Devon Hjelm},
  title = {{Deep Graph Infomax}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=P9gYG2uspQ},
}
Figure