Adversarial Learning Data Augmentation for Graph Contrastive Learning in Recommendation

Junjie Huang, Qi Cao, Ruobing Xie, Shaoliang Zhang, Feng Xia, Huawei Shen, Xueqi Cheng · DOI

Abstract

Graph Neural Networks (GNNs) have become a cornerstone of modern recommendation systems, yet they remain highly sensitive to data sparsity. While Graph Contrastive Learning (GCL) has emerged as a powerful technique to mitigate this issue, most existing methods rely on hand-crafted, stochastic data augmentation strategies like random edge dropping. These methods often fail to capture the underlying structural nuances of user-item interactions. This paper presents LDA-GCL (Learnable Data Augmentation for Graph Contrastive Learning), a framework that utilizes adversarial learning and the InfoMin principle to automatically learn optimal graph augmentations. By dynamically adding and removing edges, LDA-GCL creates informative contrastive views that significantly enhance recommendation performance, particularly in sparse data environments.

Introduction

In Collaborative Filtering (CF), user-item interactions are typically modeled as a bipartite graph. Graph Neural Networks (GNNs) excel at capturing high-order dependencies within these graphs. However, the performance of GNNs degrades sharply when interaction data is sparse, as the model lacks sufficient signal to learn robust node representations.

Graph Contrastive Learning (GCL) addresses this by creating multiple augmented "views" of the graph and maximizing the agreement between them. Despite its success, standard GCL relies on heuristic-based augmentations, such as random edge dropping or node shuffling. These manual approaches are sub-optimal: random dropping may remove critical structural information, while random adding can introduce disruptive noise. LDA-GCL moves beyond these heuristics by treating data augmentation as a learnable process guided by adversarial objectives.

Methodology

The LDA-GCL framework consists of three integrated components designed to move from static heuristics to adaptive, learnable augmentations.

1. Edge Suggestion

To avoid the pitfalls of purely random edge addition, LDA-GCL employs an initial "Edge Suggestion" phase. A pre-trained GNN (such as LightGCN) is used to calculate similarity scores between users and items. The model identifies high-probability "missing" interactions that are likely to exist but are not present in the training set. These suggested edges, combined with the existing observed edges, form the candidate set for the augmentation process.

2. Learnable Data Augmentation (LDA)

Instead of applying a fixed dropout rate, the framework utilizes an "edge operator"—a Multi-layer Perceptron (MLP)—to assign a probability to each candidate edge. To ensure the selection process is differentiable and can be optimized via backpropagation, the model employs the Gumbel-Max reparameterization trick. This allows the system to learn which specific edges should be kept, dropped, or added to create the most effective contrastive views.

3. Adversarial Training and the InfoMin Principle

The core of LDA-GCL is a min-max adversarial game based on two competing objectives:

  • InfoMax (The Encoder's Goal): The GNN encoder seeks to maximize the mutual information between the original graph and the augmented views, ensuring the learned representations are robust and capture essential features.
  • InfoMin (The Augmenter's Goal): Guided by the InfoMin principle, the data augmenter attempts to create views that share minimal redundant information while still preserving the task-relevant signal.

By pitting the augmenter against the encoder, the model forces the encoder to identify the most resilient and fundamental patterns in the user-item graph, even when faced with "hard" augmented views.

Experimental Results

The authors evaluated LDA-GCL against several state-of-the-art baselines, including LightGCN, SGL, and NCL, across four benchmark datasets: Yelp, Gowalla, Amazon-Book, and Alibaba-iFashion.

Performance on Sparse Data

LDA-GCL demonstrated its greatest strengths on the most challenging datasets. On Alibaba-iFashion, which is characterized by extreme sparsity, LDA-GCL achieved a 23.5% improvement in Recall@10 and a 25.28% improvement in NDCG@10 over the strongest baseline (NCL). Further analysis of user groups showed that the model provided the most significant gains for "cold-start" users—those with the fewest historical interactions—confirming that learnable augmentation effectively bridges gaps in sparse graphs.

Ablation Studies

Ablation experiments highlighted the necessity of both the learnable component and the edge-adding capability. Removing the ability to add suggested edges resulted in a performance decline, particularly in sparse scenarios where adding "likely" edges helps connect isolated components of the graph. Similarly, replacing the learnable MLP with random heuristics led to lower accuracy, validating the adversarial approach.

Conclusion and Future Work

LDA-GCL represents a shift from manual to automated data augmentation in graph-based recommendation. By leveraging adversarial learning to satisfy the InfoMin principle, the framework discovers augmentation strategies tailored to the specific characteristics of a dataset.

While the model shows superior performance, it introduces higher computational complexity due to the alternating optimization required for adversarial training. Future research directions include optimizing the efficiency of the adversarial loop and exploring more sophisticated edge suggestion mechanisms to further refine the quality of the augmented views.

Summary updated

BibTeX
@inproceedings{huang2023adversarial,
  author = {Junjie Huang and Qi Cao and Ruobing Xie and Shaoliang Zhang and Feng Xia and Huawei Shen and Xueqi Cheng},
  title = {{Adversarial Learning Data Augmentation for Graph Contrastive Learning in Recommendation}},
  booktitle = {DASFAA},
  year = {2023},
  url = {https://openreview.net/forum?id=N2adkXPMfPB},
}
Figure