A Simplified Framework for Contrastive Learning for Node Representations

Ilgee Hong, Huy Tran, Claire Donnat

TL;DR

The authors introduce CLNR (Contrastive Learning for Node Representations), a streamlined framework that replaces complex, parameter-heavy MLP projection heads with simple column-wise standardization (Batch Normalization). This "less is more" approach achieves state-of-the-art accuracy on 6 out of 8 benchmarks while training up to 20 times faster than existing methods.

What Problem Does This Paper Address?

In the world of self-supervised learning, Contrastive Learning has become a dominant force. The goal is to learn useful data representations by bringing "positive pairs" (different views of the same object) closer together in a vector space while pushing "negative pairs" (different objects) apart.

When applied to graphs, popular methods like GRACE and GCA have borrowed a specific architectural choice from computer vision: using a multi-layer perceptron (MLP) to post-process embeddings before calculating the loss. However, the authors of this paper argue that this row-wise post-processing (treating each node independently) adds unnecessary complexity and may actually hinder the quality of the learned representations. They set out to find a simpler, more efficient way to refine node embeddings.

Methods

The researchers propose a framework called CLNR. It follows the standard contrastive pipeline but introduces a critical simplification:

  1. Augmentation: Generate two versions of the graph by randomly dropping edges and masking features.
  2. Encoding: Pass both versions through a shared Graph Neural Network (GNN).
  3. The "Secret Sauce" (Post-processing): Instead of using a complex MLP (row-wise processing), CLNR applies column-wise standardization. This means for every dimension in the embedding matrix, the values are centered (mean subtracted) and rescaled (divided by standard deviation). This is essentially Batch Normalization applied as a final step.
  4. Projection & Loss: The embeddings are projected onto a unit hypersphere, and the model is trained using the standard NT-Xent (normalized temperature-scaled cross-entropy) loss.

By using column-wise standardization, the model ensures that no single dimension dominates the embedding space, making the representation "isotropic" (uniform in all directions).

Datasets

The authors evaluated CLNR on eight diverse real-world node classification benchmarks:

  • Citation Networks: Cora, CiteSeer, and PubMed.
  • Co-purchase Networks: Amazon Computers and Amazon Photo.
  • Academic Networks: Coauthor CS and Coauthor Physics.
  • Large-scale Graphs: ogbn-arxiv from the Open Graph Benchmark.

Key Insights and Ideas

  • Alignment vs. Uniformity: The paper revisits the "alignment and uniformity" paradigm. A good embedding should have high alignment (positive pairs are close) and high uniformity (embeddings are spread out evenly on the hypersphere to preserve information).
  • The MLP Trade-off: The authors found that while row-wise MLPs (used in GRACE) improve alignment, they often do so at the expense of uniformity. CLNR’s column-wise standardization manages to improve both metrics simultaneously.
  • Efficiency is King: By removing the MLP, CLNR reduces the number of trainable parameters. More importantly, the standardization smooths the "optimization landscape," allowing for higher learning rates and significantly faster convergence.
  • Robustness to Noise: CLNR proved to be more resilient to "edge noise" (randomly added edges) than non-contrastive methods or models with no post-processing.

Key Results

  • Superior Accuracy: CLNR outperformed the previous state-of-the-art (GRACE) by up to 1.5% across most benchmarks. It beat all unsupervised and self-supervised competitors on 6 out of 8 datasets.
  • Massive Speedups: The training time reduction is dramatic. For the "Photo" dataset, CLNR trained in 7.87 seconds, compared to 143.25 seconds for GRACE—a nearly 20x speedup. Even on the large ogbn-arxiv dataset, it was roughly 2.5x faster.
  • Better Clustering: In qualitative tests, CLNR achieved higher Silhouette scores, indicating that the learned embeddings form tighter, more distinct clusters corresponding to actual data classes.

Limitations and Future Work

  • Negative Sampling: Like most contrastive methods, CLNR still relies on negative samples. While the authors use subsampling to handle large graphs, this can still be a bottleneck compared to "non-contrastive" methods that only look at positive pairs.
  • Decorrelation Paradox: The authors tested a more advanced version called dCLNR (Decorrelated Batch Norm) which forces dimensions to be uncorrelated. Surprisingly, this performed worse than simple standardization. Investigating why "simple" standardization is the "Goldilocks" zone for graphs remains an open question.
  • Theoretical Grounding: While the empirical results are strong, the authors suggest more work is needed to theoretically link column-wise normalization specifically to the unique topological properties of graph data.

Summary updated

BibTeX
@inproceedings{hong2023simplified,
  author = {Ilgee Hong and Huy Tran and Claire Donnat},
  title = {{A Simplified Framework for Contrastive Learning for Node Representations}},
  booktitle = {ACSSC},
  year = {2023},
  url = {https://openreview.net/forum?id=wRJOMNnVa6},
}

Loading related content...

Figure