Fairly Adaptive Negative Sampling for Recommendations

Xiao Chen, Wenqi Fan, Jingfan Chen, Haochen Liu, Zitao Liu, Zhaoxiang Zhang, Qing Li

Abstract

Most modern recommender systems rely on implicit feedback and Bayesian Personalized Ranking (BPR) for training. However, the standard practice of Uniform Negative Sampling (UNS) inadvertently introduces item-side group unfairness. Because majority groups are sampled as negative examples more frequently, models learn to disproportionately penalize their scores. This paper introduces FairNeg, a framework that adaptively adjusts group-level sampling probabilities to ensure equitable exposure. By combining a fairness-aware distribution with an importance-aware one via a "Mixup" mechanism, FairNeg achieves significant fairness gains while maintaining high recommendation utility.

Introduction: The Hidden Trap of Uniform Sampling

Recommender systems typically learn by comparing "positive" items (interacted with) against "negative" items (unobserved). In a standard BPR setup, negative items are chosen uniformly at random. This creates a significant data bias: if a specific group (e.g., a popular genre) contains more items, those items are selected as "bad" examples far more often than items from smaller groups.

Uniform negative sampling leads to disparate sampling probabilities for majority vs. minority groups.

As shown in Figure 1, this disparity results in "negative gradients" that aggressively push down the scores of majority group items. This leads to item-side group unfairness, where visibility is dictated by group size rather than item relevance.

The FairNeg Framework

To address this, the authors propose FairNeg, which transforms negative sampling into a dynamic, controllable optimization process. The framework consists of three integrated components.

The FairNeg architecture featuring fairness perception, momentum-based updates, and distribution mixup.

1. Item Group Fairness Perception

Since standard fairness metrics like Recall are non-differentiable, FairNeg introduces Group-wise Binary Cross-Entropy (G-BCE). This loss function serves as a differentiable proxy, allowing the system to "perceive" the level of discrimination against specific item groups in real-time during training.

2. Adaptive Momentum Update

FairNeg employs a bi-level optimization strategy. An outer optimizer monitors the G-BCE loss and dynamically adjusts the sampling probability for each group. To ensure training stability and prevent oscillations, a Momentum Bank is used to smooth these probability updates over time. If a group is being unfairly penalized, its probability of being sampled as a negative is reduced.

3. Negative Sampling Distribution Mixup

A common challenge in fair recommendation is the "fairness-utility tradeoff" — improving fairness often degrades accuracy. FairNeg mitigates this by using a Mixup mechanism. It combines the fairness-aware distribution (which balances group exposure) with an importance-aware distribution (which focuses on "hard" negatives that are more informative for training). This ensures the model remains sharp and accurate while becoming fairer.

Experimental Evaluation

The framework was evaluated on the MovieLens 1M and Amazon Product Reviews datasets, specifically targeting scenarios with varying group sizes (e.g., Sci-Fi vs. Horror movies).

Key findings include:

  • Significant Fairness Gains: On the ML1M-2 dataset, FairNeg reduced Recall-Disparity by over 90% compared to uniform sampling.
  • Utility Preservation: Unlike adversarial debiasing methods, FairNeg's Mixup mechanism allowed it to maintain or even slightly improve overall recommendation performance.
  • Improved Minority Performance: The minimum recall across groups (Recall-Min) saw dramatic increases, such as a 65% boost on the Amazon-2 dataset.

Conclusion

FairNeg demonstrates that item-side fairness can be effectively addressed at the data-sampling level rather than through complex model architectural changes. By adaptively balancing the negative sampling process, FairNeg provides a stable and efficient path toward more equitable recommender systems without sacrificing the quality of user experiences. Future work may explore extending this framework to handle missing attribute labels and multi-stakeholder fairness scenarios.

Summary updated

BibTeX
@inproceedings{chen2023fairly,
  author = {Xiao Chen and Wenqi Fan and Jingfan Chen and Haochen Liu and Zitao Liu and Zhaoxiang Zhang and Qing Li},
  title = {{Fairly Adaptive Negative Sampling for Recommendations}},
  booktitle = {The Web Conference},
  year = {2023},
  url = {https://openreview.net/forum?id=BwJgn6h_i69},
}

Loading related content...

Figure