Inductive and Unsupervised Representation Learning on Graph Structured Objects

Lichen Wang, Bo Zong, Qianqian Ma, Wei Cheng, Jingchao Ni, Wenchao Yu, Yanchi Liu, Dongjin Song, Haifeng Chen, Yun Fu

Graph-structured data is everywhere—from the molecules in our bodies to the social networks on our phones. But teaching machines to "understand" these graphs is notoriously difficult. Most current methods are either transductive (they cannot handle new, unseen graphs without retraining) or supervised (they require massive amounts of labeled data, which is expensive and rare).

In their ICLR 2020 paper, Lichen Wang and colleagues introduce SEED (Sampling, Encoding, and Embedding Distributions), a framework that tackles these hurdles head-on. SEED provides a way to learn graph representations that is both inductive (generalizable to new data) and unsupervised (no labels required).

The Core Challenge: Node Alignment

The primary hurdle in graph representation learning is node alignment. To compare two graphs and determine their similarity, one typically has to figure out which node in Graph A corresponds to which node in Graph B. This is essentially the "Graph Isomorphism" problem, which is computationally intractable for large-scale machine learning.

Existing unsupervised methods often try to "reconstruct" a graph from a latent vector. However, calculating the reconstruction error between two graphs is just as hard as the alignment problem itself. This leaves researchers in a bind: how do you guide a model to learn meaningful features without labels and without melting your CPU trying to compare graph structures?

The SEED Framework

The authors propose the SEED framework, which sidesteps the alignment problem by decomposing the graph into a collection of manageable pieces.

The SEED framework pipeline

The framework consists of three main stages:

  1. Sampling (The WEAVE): Instead of looking at the whole graph, SEED samples subgraphs. Specifically, they introduce WEAVE (random Walk with EArliest Visit timE).
Comparison between a vanilla random walk and the proposed WEAVE

Unlike a "vanilla" random walk that just records a sequence of nodes, a WEAVE records when it first visited each node. This small change allows the walk to "remember" loops and cycles, capturing much richer structural information than standard walks.

  1. Encoding: Each sampled WEAVE is fed into an autoencoder (a simple multi-layer perceptron). The model learns to compress these walks into low-dimensional vectors. Because all WEAVEs have the same length, they are easy to process in batches.
  2. Embedding Distributions: Instead of averaging these vectors into one "master vector" for the graph, SEED treats the graph as a distribution of these subgraph vectors. To compare two graphs, they use Maximum Mean Discrepancy (MMD)—a statistical tool that measures the distance between two distributions.

By focusing on the distribution of local structures rather than a single global alignment, SEED becomes naturally inductive: you can drop a brand-new graph into the system, sample some WEAVEs, and immediately get a representation.

Key Insights and Theoretical Grounding

  • The Power of "Earliest Visit": A standard random walk is "memoryless"—it cannot distinguish between a straight path and a loop. By adding a timestamp of the first visit to each node, the WEAVE captures the graph's topology (cycles, density) far more effectively.
  • Distribution over Aggregation: Most graph methods use "pooling" (like taking the mean or sum of node vectors). SEED argues that representing a graph as a cloud of subgraph points preserves more information than squashing everything into a single point.
  • Theoretical Guarantee: The authors prove that if you sample enough long WEAVEs, the distance between two graph distributions is zero if and only if the graphs are isomorphic. This provides a solid mathematical bridge between their sampling method and graph identity.

Datasets and Results

The authors evaluated SEED on seven diverse public benchmark datasets, including social networks (Deezer, COLLAB, IMDB) and bioinformatics/chemistry datasets (MUTAG, NCI1, PROTEINS).

SEED consistently outperformed competitive baselines like GraphSAGE, GIN, and GMN in unsupervised settings:

  • Accuracy Boost: On the MUTAG dataset, SEED achieved an accuracy of 82.22%, nearly a 10% improvement over the next best unsupervised baseline.
  • Structural Resilience: Even when node features were removed—forcing the model to rely entirely on the "shape" of the graph—SEED maintained stable and superior performance compared to message-passing networks.
  • Visual Clarity: Using t-SNE visualizations, the authors showed that as the number of samples or the walk length increases, the clusters of different graph classes become significantly more distinct.

Limitations and Future Work

While powerful, SEED has a few trade-offs:

  • Sampling Overhead: To reach the theoretical "perfect" representation, one would need to sample an impractical number of very long walks. While a "reasonably small" number works well in practice, there is still a computational cost.
  • Hyperparameter Sensitivity: Performance is tied to walk length and the number of samples. Finding the "sweet spot" for a specific domain requires tuning.
  • Metric Exploration: The authors used MMD and an "Identity kernel" for simplicity. Exploring other distribution distances, like Wasserstein distance or KL-divergence, could further refine the model's sensitivity to subtle graph differences.

Summary updated

BibTeX
@inproceedings{wang2020inductive,
  author = {Lichen Wang and Bo Zong and Qianqian Ma and Wei Cheng and Jingchao Ni and Wenchao Yu and Yanchi Liu and Dongjin Song and Haifeng Chen and Yun Fu},
  title = {{Inductive and Unsupervised Representation Learning on Graph Structured Objects}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure