Skip to main content
QUICK REVIEW

[Paper Review] Localized Contrastive Learning on Graphs

Hengrui Zhang, Qitian Wu|arXiv (Cornell University)|Dec 8, 2022
Advanced Graph Neural NetworksComputer Science6 citations
TL;DR

This paper proposes Local-GCL, a simple yet effective contrastive learning method for graph neural networks that eliminates reliance on data augmentation by using first-order node neighbors as positive examples and replaces the quadratic-complexity InfoNCE loss with a linear-time kernelized surrogate loss. The method achieves state-of-the-art performance on six of seven node classification benchmarks and competitive results on Ogbn-Arxiv with significantly faster training, demonstrating both efficiency and robustness on homophilic and heterophilic graphs.

ABSTRACT

Contrastive learning methods based on InfoNCE loss are popular in node representation learning tasks on graph-structured data. However, its reliance on data augmentation and its quadratic computational complexity might lead to inconsistency and inefficiency problems. To mitigate these limitations, in this paper, we introduce a simple yet effective contrastive model named Localized Graph Contrastive Learning (Local-GCL in short). Local-GCL consists of two key designs: 1) We fabricate the positive examples for each node directly using its first-order neighbors, which frees our method from the reliance on carefully-designed graph augmentations; 2) To improve the efficiency of contrastive learning on graphs, we devise a kernelized contrastive loss, which could be approximately computed in linear time and space complexity with respect to the graph size. We provide theoretical analysis to justify the effectiveness and rationality of the proposed methods. Experiments on various datasets with different scales and properties demonstrate that in spite of its simplicity, Local-GCL achieves quite competitive performance in self-supervised node representation learning tasks on graphs with various scales and properties.

Motivation & Objective

  • To address the reliance of graph contrastive learning on complex, task-specific data augmentations that may distort graph semantics.
  • To overcome the quadratic computational and memory complexity of standard contrastive learning (e.g., InfoNCE) in large-scale graph settings.
  • To develop a lightweight, scalable, and effective self-supervised node representation learning method for graphs without negative sampling or augmentation.
  • To validate the method's effectiveness across diverse graph types, including low-homophily and large-scale graphs.

Proposed method

  • Positive pairs are constructed directly from first-order neighbors of each node, eliminating the need for data augmentation.
  • A kernelized contrastive loss is proposed as a surrogate for the standard InfoNCE loss, enabling linear-time and linear-space computation.
  • The kernelized loss approximates the negative term using random feature maps, leveraging the representer theorem for efficient computation.
  • The model uses a standard GCN encoder and applies the proposed loss to contrast node representations with their local neighbors.
  • The method is designed to be fully compatible with full-graph training, avoiding mini-batch partitioning issues.
  • Theoretical analysis supports the method’s effectiveness, showing that larger embedding dimensions reduce prediction error bounds.

Experimental results

Research questions

  • RQ1Can we eliminate the need for data augmentation in graph contrastive learning while maintaining or improving performance?
  • RQ2Can we design a contrastive loss that reduces computational complexity from quadratic to linear in graph size?
  • RQ3How does the proposed method perform on large-scale graphs like Ogbn-Arxiv, especially when compared to scalable baselines?
  • RQ4Does the method generalize to heterophilic graphs, where node features and labels are less correlated with neighbors?
  • RQ5What is the sensitivity of performance to embedding and projection dimensions in the proposed framework?

Key findings

  • Local-GCL achieves state-of-the-art performance on six out of seven node classification benchmarks, including Cora, Citeseer, and Pubmed.
  • On the large-scale Ogbn-Arxiv dataset, Local-GCL achieves 72.29% test accuracy with significantly faster training than GRACE and comparable performance to BGRL and CCA-SSG.
  • The method trains up to 2x faster than CCA-SSG and BGRL while maintaining competitive accuracy, demonstrating superior efficiency.
  • Local-GCL performs well on heterophilic graphs such as Photo and Computers, showing robustness beyond homophilic settings.
  • Performance improves with larger embedding dimensions (e.g., up to 2048), and projection dimension has minimal impact, indicating efficiency in practice.
  • Ablation studies confirm that neighbor-based positive construction is effective and that the kernelized loss enables scalable training without negative sampling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.