Abstract: Recommender systems, which analyze users' preference patterns to suggest potential targets, are indispensable in today's society. Collaborative Filtering (CF) is the most popular recommendation model, with Graph Neural Networks (GNNs) representing the current state-of-the-art. However, GNN-based systems often rely on message dropout to alleviate selection bias, a process that introduces harmful randomness. Furthermore, standard optimization objectives like Bayesian Pairwise Ranking (BPR) suffer from suboptimal sampling and sample bias. This paper proposes a dual-module framework: a graph contrastive learning module to learn embeddings in a self-supervised manner and a debiased contrastive loss to provide sufficient negative samples while correcting for sample bias. Experimental results across three public benchmarks demonstrate that this framework significantly improves performance and convergence speed for both Matrix Factorization and GNN-based models.
Addressing Bias in Collaborative Filtering
Modern recommendation engines primarily utilize Collaborative Filtering (CF) to map user preferences. By representing user-item interactions as a bipartite graph, GNNs can capture complex structural dependencies. Despite their success, these models are plagued by two primary forms of bias that degrade recommendation quality.
- Selection Bias: Not every interaction in a dataset reflects a user's true preference. Noisy edges—clicks caused by accidental selection or position bias—can mislead the model. While traditional GNNs use "message dropout" to mitigate this, the random nature of dropping edges often discards critical structural information.
- Sample Bias: Training usually involves comparing a positive interaction against a negative one. However, most "negative" samples are simply unobserved items. As shown in Figure 3(a), a user might not have interacted with an item simply because they haven't seen it yet, not because they dislike it. Treating these "false negatives" as hard negatives introduces significant bias into the learning process.
Methodology
To overcome these hurdles, the authors introduce two complementary modules designed to be integrated into existing recommendation architectures.
1. Graph Contrastive Learning (GCL)
Instead of relying on simple dropout, the GCL module employs graph perturbation. For each user, the model generates two distinct "views" of their local interaction network by randomly subsetting edges. The system is then tasked with maximizing the agreement between the representations of these two views. This self-supervised task forces the GNN encoder to focus on the robust, underlying structural patterns of user behavior rather than individual noisy interactions.
As illustrated in Figure 4, the GNN encoder aggregates information from neighbors across multiple hops ($k=1, k=2$). By applying contrastive learning at this level, the model ensures that the resulting embeddings ($e_u, e_i$) are resilient to the randomness of the input graph.
2. Debiased Contrastive Loss (DCL)
The DCL module replaces the traditional BPR loss with a more robust objective. It leverages all other items within a training minibatch as negative samples, providing a much denser training signal. Crucially, it introduces a bias correction probability ($\tau^+$). This parameter allows the model to mathematically account for the likelihood that a "negative" sample is actually a hidden positive, preventing the model from over-correcting on items the user might actually enjoy.
Experimental Results
The framework was evaluated on three large-scale datasets: Yelp2018, Amazon-Book, and Steam. The results highlight three major advantages:
- Significant Accuracy Boosts: On the Amazon-Book dataset, enhancing standard Matrix Factorization (MF) with this framework (MF++) resulted in a 59.8% increase in Recall@20 and a 67.1% increase in NDCG@20.
- State-of-the-Art Performance: The optimized version, LightGCN++, consistently outperformed existing state-of-the-art models across all benchmarks, proving the effectiveness of the debiased contrastive approach.
- Rapid Convergence: The contrastive modules act as a powerful regularizer. On the Steam dataset, the proposed model reached peak performance in just 18 epochs, a fraction of the time required by standard GNN models.
Conclusion
This research demonstrates that contrastive learning is a powerful tool for stabilizing and de-biasing recommender systems. By treating self-supervision as a core component of the training process rather than an afterthought, the proposed framework allows existing models like LightGCN and MF to reach new levels of accuracy and efficiency. Future work may explore adaptive perturbation rates to better preserve information for users with sparse interaction histories.
Summary updated