Lune

WWW2023Top-tier venue

On the Theories Behind Hard Negative Sampling for Recommendation

Wentao Shi, Jiawei Chen, Fuli Feng, Jizhi Zhang, Junkang Wu, Chongming Gao, Xiangnan He

Abstract

Negative sampling has been heavily used to train recommender models on large-scale data, wherein sampling hard examples usually not only accelerates the convergence but also improves the model accuracy. Nevertheless, the reasons for the effectiveness of Hard Negative Sampling (HNS) have not been revealed yet. In this work, we fill the research gap by conducting thorough theoretical analyses on HNS. Firstly, we prove that employing HNS on the Bayesian Personalized Ranking (BPR) learner is equivalent to optimizing One-way Partial AUC (OPAUC). Concretely, the BPR equipped with Dynamic Negative Sampling (DNS) is an exact estimator, while with softmax-based sampling is a soft estimator. Secondly, we prove that OPAUC has a stronger connection with Top-𝐾 evaluation metrics than AUC and verify it with simulation experiments. These analyses establish the theoretical foundation of HNS in optimizing Top-𝐾 recommendation performance for the first time. On these bases, we offer two insightful guidelines for effective usage of HNS: 1) the sampling hardness should be controllable, e.g., via pre-defined hyper-parameters, to adapt to different Top-𝐾 metrics and datasets; 2) the smaller the 𝐾 we emphasize in Top-𝐾 evaluation metrics, the harder the negative samples we should draw. Extensive experiments on three real-world benchmarks verify the two guidelines.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

16 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Double Correction Framework for Denoising Recommendation cites Simplify and Robustify Negative Sampling for Implicit Collaborative Filtering
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. Plug-In Diffusion Model for Sequential RecommendationHaokai Ma, Ruobing Xie, Lei Meng, Xin Chen et al.AAAI 2024 · 84 citations
  2. Empowering Collaborative Filtering with Principled Adversarial Contrastive LossAn Zhang, Leheng Sheng, Zhibo Cai, Xiang Wang et al.NeurIPS 2023 · 56 citations
  3. Adaptive Hardness Negative Sampling for Collaborative FilteringRiwei Lai, Rui Chen, Qilong Han, Chi Zhang et al.AAAI 2024 · 40 citations
  4. Graph Anomaly Detection with Bi-level OptimizationYuan Gao, Junfeng Fang, Yongduo Sui, Yangyang Li et al.WWW 2024 · 21 citations
  5. Double Correction Framework for Denoising RecommendationZhuangzhuang He, Yifan Wang, Yonghui Yang, Peijie Sun et al.KDD 2024 · 16 citations

Builds on11

  1. Large-Scale Methods for Distributionally Robust OptimizationDaniel Levy, Yair Carmon, John C. Duchi, Aaron SidfordNeurIPS 2020 · 281 citations
  2. Reinforced Negative Sampling over Knowledge Graph for RecommendationXiang Wang, Yaokun Xu, Xiangnan He, Yixin Cao et al.WWW 2020 · 209 citations
  3. Efficient Heterogeneous Collaborative Filtering without Negative Sampling for RecommendationChong Chen, Min Zhang, Yongfeng Zhang, Weizhi Ma et al.AAAI 2020 · 185 citations
  4. Boosting the Speed of Entity Alignment 10 ×: Dual Attention Matching Network with Normalized Hard Sample MiningXin Mao, Wenting Wang, Yuanbin Wu, Man LanWWW 2021 · 148 citations
  5. Simplify and Robustify Negative Sampling for Implicit Collaborative FilteringJingtao Ding, Yuhan Quan, Quanming Yao, Yong Li et al.NeurIPS 2020 · 131 citations

Related papers

  1. On Sampled Metrics for Item RecommendationWalid Krichene, Steffen RendleKDD 2020 · 459 citations
  2. R2NS: Recall and Re-ranking of Negative Samples for Sequential RecommendationYuanzi Li, Xuri Ge, Jingyu Zhao, Yidan Wang et al.WWW 2026
  3. Bayesian Negative Sampling for RecommendationBin Liu, Bang WangICDE 2023 · 10 citations
  4. Lower-Left Partial AUC: An Effective and Efficient Optimization Metric for RecommendationWentao Shi, Chenxu Wang, Fuli Feng, Yang Zhang et al.WWW 2024 · 13 citations
  5. Personalized Ranking with Importance SamplingDefu Lian, Qi Liu, Enhong ChenWWW 2020 · 98 citations
Dusk over the sea between two cliffs drawn in fine vertical lines