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

NLGCL: Naturally Existing Neighbor Layers Graph Contrastive Learning for Recommendation

Jinfeng Xu, Zheyu Chen, Shuo Yang, Jinze Li, Hewei Wang, Wei Wang, Xiping Hu, Edith C. H. Ngai

Abstract

Graph Contrastive Learning (GCL) has emerged as a powerful technique to mitigate data sparsity in recommender systems. However, traditional GCL methods rely on artificial data augmentations that can introduce semantic noise and increase computational overhead. We present NLGCL (Naturally Existing Neighbor Layers Graph Contrastive Learning), a framework that leverages the inherent structural relationships between adjacent GNN layers to define contrastive views. By treating a node and its neighbors in subsequent layers as natural positive pairs, NLGCL achieves state-of-the-art accuracy while significantly reducing training time and memory requirements.

Introduction

Modern recommender systems utilize Graph Neural Networks (GNNs) to model complex user-item interactions. Despite their success, these models often suffer from data sparsity, where limited user interactions hinder the learning of robust representations. Graph Contrastive Learning (GCL) addresses this by creating multiple views of the graph—typically through random edge dropping or node masking—and maximizing the agreement between them.

The authors identify two critical drawbacks in existing GCL paradigms:

  1. Semantic Noise: Random augmentations may inadvertently remove vital structural information, creating views that are semantically irrelevant to the original graph.
  2. Efficiency Bottlenecks: Generating and storing multiple augmented graph views is computationally expensive, limiting scalability for large-scale industrial datasets.

Methodology: Neighbor Layer Contrastive Learning

NLGCL departs from artificial augmentation by utilizing the "naturally existing" views within the GNN architecture itself. In a standard GNN, a node's representation at layer $l$ is an aggregation of its neighbors' representations from layer $l-1$. NLGCL exploits this hierarchy by defining contrastive pairs across these layers.

Comparison of (a) traditional graph contrastive views using augmentation and (b) the proposed neighbor layer contrastive views.

Positive and Negative Pairs

For a given user node at layer $l-1$, its actual interacted items at layer $l$ are defined as positive pairs. All other nodes in the batch are treated as negatives. This approach aligns a user's representation with their historical interests across the network's hierarchy without requiring any graph modifications. The framework employs a modified InfoNCE loss, integrated with the standard Bayesian Personalized Ranking (BPR) loss, to handle multiple positive samples per anchor node.

Experimental Evaluation

The model was evaluated on four diverse benchmarks: Yelp, Pinterest, QB-Video, and Alibaba (the largest and sparsest at 99.993% sparsity). NLGCL consistently outperformed state-of-the-art baselines like SimGCL and LightGCL, achieving a 12.11% improvement in NDCG@10 on the Alibaba dataset.

Efficiency and Accuracy Trade-offs

Beyond accuracy, NLGCL demonstrates remarkable efficiency. By removing the need for graph augmentation, it significantly reduces training time and memory overhead.

Performance (NDCG@10) vs. Training Time (minutes) across four datasets for different NLGCL variants.

As shown in the figure above, NLGCL variants reach optimal performance much faster than traditional methods. For instance, on the Yelp dataset, NLGCL achieved peak performance in 49 minutes, whereas SGL required 96 minutes and SimGCL over 240 minutes.

Discussion and Key Insights

  • Layer-wise Information Decay: Theoretical analysis suggests that contrastive signals are most effective between early GNN layers. Deeper layers suffer from "low-pass filter" effects, where representations become overly smoothed and lose discriminative power.
  • Mitigating Popularity Bias: t-SNE visualizations indicate that NLGCL produces more uniform embedding distributions compared to baselines, suggesting it better captures unique user preferences rather than just popular items.
  • Robustness to Sparsity: By avoiding random edge deletion, NLGCL preserves the limited structural information available in sparse graphs, leading to more stable performance.

Conclusion

NLGCL provides a simple yet effective alternative to augmentation-based GCL. By leveraging the natural hierarchy of GNNs, it eliminates semantic noise and computational overhead. Future work includes extending this neighbor-layer logic to multimodal and social recommendation contexts where graph structures are more complex.

Summary updated

BibTeX
@inproceedings{xu2025nlgcl,
  author = {Jinfeng Xu and Zheyu Chen and Shuo Yang and Jinze Li and Hewei Wang and Wei Wang and Xiping Hu and Edith C. H. Ngai},
  title = {{NLGCL: Naturally Existing Neighbor Layers Graph Contrastive Learning for Recommendation}},
  booktitle = {RecSys},
  year = {2025},
  url = {https://openreview.net/forum?id=uCZjPZqClq},
}
Figure