DropMix: Better Graph Contrastive Learning with Harder Negative Samples

Yueqi Ma, Minjie Chen, Xiang Li

Introduction

Graph Contrastive Learning (GCL) has emerged as a powerful paradigm for unsupervised representation learning on graphs. The core principle of GCL is to pull "positive" pairs (semantically similar nodes) closer in the embedding space while pushing "negative" pairs (dissimilar nodes) further apart. Recent research highlights that the quality of negative samples is crucial; specifically, "hard negatives"—samples that are distinct but reside close to the anchor in the embedding space—provide the most informative gradients for model training.

However, generating effective hard negatives in the graph domain is challenging. Existing methods often rely on simple Mixup techniques (interpolating between two samples) but suffer from two primary limitations:

  1. Local Bias: Hardness is typically judged based on immediate local neighborhoods, ignoring the global graph structure.
  2. Information Loss: Standard Mixup interpolates across all representation dimensions, which can dilute the unique features of an already "hard" negative, resulting in "unnatural" samples that hinder learning.

To address these issues, we present DropMix, a novel data augmentation strategy that synthesizes harder negative samples by leveraging multi-view graph structures and partial dimension mixing.

Methodology: The DropMix Pipeline

DropMix introduces a two-stage approach to enhance the quality and "hardness" of negative samples.

1. Multi-View Hard Negative Selection

Traditional methods often misidentify "false negatives"—nodes that are structurally distant but semantically similar—as hard negatives, which can degrade performance. DropMix mitigates this by incorporating a global perspective via Graph Diffusion (e.g., Personalized PageRank).

By evaluating hardness across both the original adjacency matrix (local view) and the diffusion graph (global view), the model can more accurately distinguish between truly informative hard negatives and misleading easy or false negatives.

2. Partial Dimension Mixing (The "Drop" in DropMix)

Once high-quality hard negatives are selected, DropMix synthesizes even more challenging samples. Unlike standard Mixup, which blends two feature vectors $h_1$ and $h_2$ entirely, DropMix employs a binary mask to perform partial dimension mixing.

Overview of the DropMix pipeline, showing multi-view hard negative selection via graph diffusion and the partial dimension mixing process.

By mixing only a subset of dimensions while keeping the rest of the original hard negative intact, DropMix preserves the core identity of the sample while injecting sufficient complexity from another node. This "drop" strategy effectively regularizes the synthesis process, ensuring the new negatives remain grounded in the data distribution while increasing the challenge for the encoder.

Experimental Results

DropMix was integrated into state-of-the-art GCL architectures like MVGRL and GCA and evaluated across six benchmark datasets, including citation networks (Cora, Citeseer, Pubmed) and e-commerce graphs (Amazon-Photo).

Performance Gains

DropMix consistently outperformed ten competitive baselines. For instance, on the Coauthor-CS dataset, DropMix achieved an accuracy of 96.66%, a significant improvement over the base MVGRL (92.18%) and previous Mixup-based methods like ProGCL (93.67%).

Accuracy comparison on the Citeseer dataset, demonstrating DropMix's superiority over base MVGRL and standard mixing strategies.

As shown in the Citeseer results, DropMix provides a clear performance boost over standard Mixup and CutMix strategies, validating the effectiveness of partial dimension mixing in the graph domain.

Robustness and Ablation

Ablation studies confirmed that both the global diffusion view and the partial mixing strategy are critical. Removing either component led to a measurable drop in node classification accuracy across all datasets. This suggests that the synergy between global structural awareness and feature-level regularization is the "secret sauce" behind DropMix's success.

Conclusion

DropMix represents a significant step forward in graph contrastive learning by refining how hard negatives are identified and synthesized. By moving beyond local neighborhoods and avoiding the information loss of full-vector mixing, DropMix creates a more robust and effective training signal. While the method introduces additional hyperparameters and some computational overhead for graph diffusion, its consistent performance gains across diverse benchmarks make it a compelling choice for modern GCL pipelines.

Summary updated

BibTeX
@inproceedings{ma2023dropmix,
  author = {Yueqi Ma and Minjie Chen and Xiang Li},
  title = {{DropMix: Better Graph Contrastive Learning with Harder Negative Samples}},
  booktitle = {Workshops @ ICDM},
  year = {2023},
  url = {https://openreview.net/forum?id=L0pt3o4p8X},
}
Figure