Does GCL Need a Large Number of Negative Samples? Enhancing Graph Contrastive Learning with Effective and Efficient Negative Sampling
Yongqi Huang, Jitao Zhao, Dongxiao He, Di Jin, Yuxiao Huang, Zhen Wang
Abstract
Graph Contrastive Learning (GCL) aims to self-supervised learn low-dimensional graph representations, primarily through instance discrimination, which involves manually mining positive and negative pairs from graphs, increasing the similarity of positive pairs while decreasing negative pairs. Drawing from the success of Contrastive Learning (CL) in other domains, a consensus has been reached that the effectiveness of GCLs depends on a large number of negative pairs. As a result, despite the significant computational overhead, GCLs typically leverage as many negative node pairs as possible to improve model performance. However, given that nodes within a graph are interconnected, we argue that nodes cannot be treated as independent instances. Therefore, we challenge this consensus: Does employing more negative nodes lead to a more effective GCL model? To answer this, we explore the role of negative nodes in the commonly used InfoNCE loss for GCL and observe that: (1) Counterintuitively, a large number of negative nodes can actually hinder the model's ability to distinguish between nodes with different semantics. (2) A smaller number of high-quality and non-topologically coupled negative nodes are sufficient to enhance the discriminability of representations. Based on these findings, we propose a new method called GCL with Effective and Efficient Negative samples, E2Neg, which learns discriminative representations using only a very small set of representative negative samples. E2Neg significantly reduces computational overhead and speeds up model training. We demonstrate the effectiveness and efficiency of E2Neg across multiple datasets compared to other GCL methods.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning cites Contrastive Multi-View Representation Learning on Graphs
- ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Contrastive Multi-View Representation Learning on Graphs cites A Simple Framework for Contrastive Learning of Visual Representations
- Edge Self-Adversarial Augmentation Enhances Graph Contrastive Learning Against Neighborhood Inconsistency cites Contrastive Multi-View Representation Learning on Graphs
- Edge Self-Adversarial Augmentation Enhances Graph Contrastive Learning Against Neighborhood Inconsistency cites HomoGCL: Rethinking Homophily in Graph Contrastive Learning
- A Closer Look at Graph Transformers: Cross-Aggregation and Beyond cites One Prompt Fits All: Universal Graph Adaptation for Pretrained Models
- HomoGCL: Rethinking Homophily in Graph Contrastive Learning cites ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning
- HomoGCL: Rethinking Homophily in Graph Contrastive Learning cites Contrastive Multi-View Representation Learning on Graphs
- HomoGCL: Rethinking Homophily in Graph Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- CL-GCL: Comprehensive and Lightweight Graph Contrastive Learning cites ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning
- CL-GCL: Comprehensive and Lightweight Graph Contrastive Learning cites Contrastive Multi-View Representation Learning on Graphs
- CL-GCL: Comprehensive and Lightweight Graph Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- One Prompt Fits All: Universal Graph Adaptation for Pretrained Models cites ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning
- One Prompt Fits All: Universal Graph Adaptation for Pretrained Models cites Contrastive Multi-View Representation Learning on Graphs
Cited by top-tier papers8
- One Prompt Fits All: Universal Graph Adaptation for Pretrained ModelsYongqi Huang, Jitao Zhao, Dongxiao He, Xiaobao Wang et al.NeurIPS 2025 · 15 citations
- A Closer Look at Graph Transformers: Cross-Aggregation and BeyondJiaming Zhuo, Ziyi Ma, Yintong Lu, Yuwei Liu et al.NeurIPS 2025 · 4 citations
- Edge Self-Adversarial Augmentation Enhances Graph Contrastive Learning Against Neighborhood InconsistencyChunchun Chen, Xing Wei, Jiayi Yang, Chenrun Wang et al.AAAI 2026
- Dual-Kernel Graph Community Contrastive LearningXiang Chen, Kun Yue, Wenjie Liu, Zhenyu Zhang et al.AAAI 2026
- CL-GCL: Comprehensive and Lightweight Graph Contrastive LearningJianqing Liang, Xinkai Wei, Zhiqiang LiICML 2026
Builds on6
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Contrastive Multi-View Representation Learning on GraphsKaveh Hassani, Amir Hosein Khas AhmadiICML 2020 · 1,663 citations
- ProGCL: Rethinking Hard Negative Mining in Graph Contrastive LearningJun Xia, Lirong Wu, Ge Wang, Jintao Chen et al.ICML 2022 · 174 citations
- Augmenting Affective Dependency Graph via Iterative Incongruity Graph Learning for Sarcasm DetectionXiaobao Wang, Yiqi Dong, Di Jin, Yawen Li et al.AAAI 2023 · 38 citations
- HomoGCL: Rethinking Homophily in Graph Contrastive LearningWen-Zhi Li, Chang-Dong Wang, Hui Xiong, Jian-Huang LaiKDD 2023 · 31 citations
Related papers
- A New Mechanism for Eliminating Implicit Conflict in Graph Contrastive LearningDongxiao He, Jitao Zhao, Cuiying Huo, Yongqi Huang et al.AAAI 2024 · 21 citations
- Rethinking and Scaling Up Graph Contrastive Learning: An Extremely Efficient Approach with Group DiscriminationYizhen Zheng, Shirui Pan, Vincent C. S. Lee, Yu Zheng et al.NeurIPS 2022 · 153 citations
- Node Representation Learning in Graph via Node-to-Neighbourhood Mutual Information MaximizationWei Dong, Junsheng Wu, Yi Luo, Zongyuan Ge et al.CVPR 2022 · 23 citations
- E2GCL: Efficient and Expressive Contrastive Learning on Graph Neural NetworksHaoyang Li, Shimin Di, Lei Chen, Xiaofang ZhouICDE 2024 · 6 citations
- Edge Contrastive Learning: An Augmentation-Free Graph Contrastive Learning ModelYujun Li, Hongyuan Zhang, Yuan YuanAAAI 2025 · 7 citations
