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

Bayesian Robust Graph Contrastive Learning

Yancheng Wang, Yingzhen Yang · DOI

TL;DR

This paper introduces Bayesian Robust Graph Contrastive Learning (BRGCL), a novel unsupervised method to train Graph Neural Networks (GNNs) that are robust to noisy graph data. BRGCL leverages a Bayesian nonparametric approach to identify "confident" nodes and their prototypes, enabling it to learn reliable node representations even when the input data is corrupted.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have become powerful tools for learning representations of nodes in graph-structured data, excelling in tasks like node classification and clustering. However, real-world graphs often contain noise, either in node attributes or labels. This noise can significantly degrade the performance of standard GNNs, as corrupted information can propagate through the graph structure, affecting many nodes. While manual data cleaning is an option, it's often impractical for large datasets. This paper tackles the challenge of building GNNs that can learn effectively from noisy graph data without explicit supervision or manual cleaning.

Methods

The core of BRGCL is its unsupervised approach to learning robust node representations. It employs a two-stage iterative process within each training epoch:

  1. Estimating Confident Nodes and Prototypes: This is achieved through a novel algorithm called Bayesian nonparametric Estimation of Confidence (BEC). BEC first uses a Bayesian nonparametric method (specifically, a Dirichlet Process Mixture Model or DPMM) to infer pseudo-labels for nodes based solely on their attributes. Then, it leverages label propagation on the graph structure to refine these pseudo-labels into "soft" labels. By comparing the initial pseudo-label with the propagated soft-label, BEC identifies "confident" nodes—those whose labels are less likely to be corrupted by noise. These confident nodes are then used to compute robust cluster prototypes, which act as reliable cluster centers.
  2. Prototypical Contrastive Learning: The learned node representations are then trained using a contrastive learning objective that encourages similarity between node representations and these robust cluster prototypes. This process is designed to be resilient to noise because it relies on the information from the identified confident nodes and their prototypes.

The overall training loss, Lrep, combines a standard node-wise contrastive loss (Lnode) with the prototypical contrastive loss (Lproto). A key aspect is that the confident nodes and prototypes are re-estimated at each epoch, allowing the model to adapt as it learns. For downstream tasks like semi-supervised node classification, BRGCL employs a decoupled training strategy: first, the robust GNN encoder is trained using BRGCL, and then a classifier is trained on the learned representations.

Datasets

BRGCL was evaluated on five public benchmark datasets:

  • Cora
  • Citeseer
  • PubMed
  • Coauthor CS
  • ogbn-arxiv

These datasets are standard for node representation learning tasks. For experimental purposes, the authors manually injected symmetric and asymmetric label noise, as well as attribute noise, into these datasets to simulate real-world conditions.

Key Insights and Ideas

  • Confident Nodes as Anchors: The central idea is that a subset of nodes are inherently more reliable (confident) and less affected by noise. Identifying and leveraging these nodes is crucial for robust learning.
  • Bayesian Nonparametrics for Unsupervised Label Inference: Using DPMM for unsupervised pseudo-label generation is a clever way to get initial labels without ground truth, which is essential for the BEC algorithm.
  • Label Propagation for Confidence Estimation: Propagating labels through the graph structure helps to refine confidence scores, as a node's neighborhood can provide supporting evidence for its label.
  • Decoupled Training for Robustness: Separating the representation learning (encoder training) from the downstream task training (classifier training) significantly improves robustness, especially in the presence of noisy labels.
  • Prototypes as Robust Guides: Using robust cluster prototypes derived from confident nodes provides stable targets for contrastive learning, making the learned representations less susceptible to noise.

Key Results

  • Superior Performance on Noisy Data: BRGCL consistently outperformed several state-of-the-art GNN methods on node classification tasks with varying levels of both symmetric and asymmetric label noise, as well as attribute noise.
  • Robustness to High Noise Levels: The performance gap between BRGCL and baselines widened as the noise ratio increased, highlighting BRGCL's strong resilience.
  • Competitive or Superior Performance with Clean Data: Even on clean data, BRGCL achieved competitive or superior results compared to many baselines.
  • Effective Node Clustering: BRGCL also demonstrated robustness in node clustering tasks when faced with attribute noise.
  • Accurate Prototype Estimation: The number of robust prototypes estimated by BRGCL's Bayesian nonparametric Prototype Learning (BPL) component closely matched the ground truth number of classes across datasets.

Limitations and Future Work

  • Computational Cost: While BRGCL is unsupervised, the iterative estimation of confident nodes and prototypes within each epoch might introduce additional computational overhead compared to simpler GNN training methods.
  • Hyperparameter Sensitivity: The paper mentions tuning hyperparameters like ξ and γ₀ via cross-validation, suggesting that performance might be sensitive to these choices.
  • Future Work: The authors suggest that their work opens doors for further research into the importance of confident nodes in GNN training. They also implicitly suggest exploring more advanced Bayesian nonparametric methods or different contrastive learning strategies for enhanced robustness. The decoupled training approach also presents a promising avenue for future research in robust GNNs.

Summary updated

BibTeX
@misc{wang2022bayesian,
  author = {Yancheng Wang and Yingzhen Yang},
  title = {{Bayesian Robust Graph Contrastive Learning}},
  year = {2022},
  eprint = {2205.14109},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.14109},
}
Figure