B2-Sampling: Fusing Balanced and Biased Sampling for Graph Contrastive Learning
Mengyue Liu, Yun Lin, Jun Liu, Bohao Liu, Qinghua Zheng, Jin Song Dong
Abstract
Graph contrastive learning (GCL), aiming for an embedding space where semantically similar nodes are closer, has been widely applied in graph-structured data. Researchers have proposed many approaches to define positive and negative pairs (i.e., semantically similar and dissimilar pairs) on the graph, serving as labels to learn their embedding distances. Despite the effectiveness, those approaches usually suffer from two typical learning challenges. First, the number of candidate negative pairs is enormous. Thus, it is non-trivial to select representative ones to train the model in a more effective way. Second, the heuristics (e.g., graph views or meta-path patterns) to define positive and negative pairs are sometimes less reliable, causing considerable noise for both "labelled'' positive and negative pairs. In this work, we propose a novel sampling approach B2-Sampling to address the above challenges in a unified way. On the one hand, we use balanced sampling to select the most representative negative pairs regarding both the topological and embedding diversities. On the other hand, we use biased sampling to learn and correct the labels of the most error-prone negative pairs during the training. The balanced and biased samplings can be applied iteratively for discriminating and correcting training pairs, boosting the performance of GCL models. B2-Sampling is designed as a framework to support many known GCL models. Our extensive experiments on node classification, node clustering, and graph classification tasks show that B2-Sampling significantly improves the performance of GCL models with acceptable runtime overhead. Our website[11] https://sites.google.com/view/b2-sampling/home provides access to our codes and additional experiment results.
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.
3 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
- Contrastive Multi-View Representation Learning on Graphs cites A Simple Framework for Contrastive Learning of Visual Representations
- Contrastive Multi-View Representation Learning on Graphs cites InfoGraph: Unsupervised and Semi-supervised Graph-Level Representation Learning via Mutual Information Maximization
- InfoNCE is a Free Lunch for Semantically guided Graph Contrastive Learning cites Contrastive Multi-View Representation Learning on Graphs
- InfoNCE is a Free Lunch for Semantically guided Graph Contrastive Learning cites Graph Contrastive Learning with Adaptive Augmentation
- Str-GCL: Structural Commonsense Driven Graph Contrastive Learning cites Contrastive Multi-View Representation Learning on Graphs
- Str-GCL: Structural Commonsense Driven Graph Contrastive Learning cites Graph Contrastive Learning with Augmentations
- Str-GCL: Structural Commonsense Driven Graph Contrastive Learning cites Graph Contrastive Learning with Adaptive Augmentation
- One Prompt Fits All: Universal Graph Adaptation for Pretrained Models cites Contrastive Multi-View Representation Learning on Graphs
- One Prompt Fits All: Universal Graph Adaptation for Pretrained Models cites Str-GCL: Structural Commonsense Driven Graph Contrastive Learning
- One Prompt Fits All: Universal Graph Adaptation for Pretrained Models cites Graph Contrastive Learning with Augmentations
- One Prompt Fits All: Universal Graph Adaptation for Pretrained Models cites Graph Contrastive Learning with Adaptive Augmentation
- Graph Contrastive Learning with Augmentations cites Contrastive Multi-View Representation Learning on Graphs
- Graph Contrastive Learning with Augmentations cites A Simple Framework for Contrastive Learning of Visual Representations
- Graph Contrastive Learning with Augmentations cites InfoGraph: Unsupervised and Semi-supervised Graph-Level Representation Learning via Mutual Information Maximization
- Graph Contrastive Learning with Adaptive Augmentation cites Contrastive Multi-View Representation Learning on Graphs
- Graph Contrastive Learning with Adaptive Augmentation cites A Simple Framework for Contrastive Learning of Visual Representations
Cited by top-tier papers3
- One Prompt Fits All: Universal Graph Adaptation for Pretrained ModelsYongqi Huang, Jitao Zhao, Dongxiao He, Xiaobao Wang et al.NeurIPS 2025 · 15 citations
- Str-GCL: Structural Commonsense Driven Graph Contrastive LearningDongxiao He, Yongqi Huang, Jitao Zhao, Xiaobao Wang et al.WWW 2025 · 6 citations
- InfoNCE is a Free Lunch for Semantically guided Graph Contrastive LearningZixu Wang, Bingbing Xu, Yige Yuan, Huawei Shen et al.SIGIR 2025 · 4 citations
Builds on17
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Graph Contrastive Learning with AugmentationsYuning You, Tianlong Chen, Yongduo Sui, Ting Chen et al.NeurIPS 2020 · 3,042 citations
- Contrastive Multi-View Representation Learning on GraphsKaveh Hassani, Amir Hosein Khas AhmadiICML 2020 · 1,663 citations
- Graph Contrastive Learning with Adaptive AugmentationYanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu et al.WWW 2021 · 1,415 citations
- InfoGraph: Unsupervised and Semi-supervised Graph-Level Representation Learning via Mutual Information MaximizationFan-Yun Sun, Jordan Hoffmann, Vikas Verma, Jian TangICLR 2020 · 1,010 citations
Related papers
- IsGCL: Informative Sample-Aware Progressive Graph Contrastive LearningJuxiang Zeng, Pinghui Wang, Linbo Ma, Jing Tao et al.ICDE 2025 · 1 citation
- Generating Counterfactual Hard Negative Samples for Graph Contrastive LearningHaoran Yang, Hongxu Chen, Sixiao Zhang, Xiangguo Sun et al.WWW 2023 · 36 citations
- Contrastive Learning Meets Homophily: Two Birds with One StoneDongxiao He, Jitao Zhao, Rui Guo, Zhiyong Feng et al.ICML 2023 · 14 citations
- Graph Contrastive Learning with Balanced Hard Negatives and Fine-grained Semantic-aware PositivesHongshan Pu, Haoxu Zhang, Ye Liu, Hongmin CaiAAAI 2026
- Enhancing Contrastive Learning on Graphs with Node SimilarityHongliang Chi, Yao MaKDD 2024 · 1 citation
