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. CCS CONCEPTS • Information systems → Recommender systems.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 91e72fef-daed-4ce2-bfa9-11618772806eCited by top-tier papers16
- Plug-In Diffusion Model for Sequential RecommendationHaokai Ma, Ruobing Xie, Lei Meng, Xin Chen et al.AAAI 2024 · 84 citations
- Empowering Collaborative Filtering with Principled Adversarial Contrastive LossAn Zhang, Leheng Sheng, Zhibo Cai, Xiang Wang et al.NeurIPS 2023 · 56 citations
- Adaptive Hardness Negative Sampling for Collaborative FilteringRiwei Lai, Rui Chen, Qilong Han, Chi Zhang et al.AAAI 2024 · 40 citations
- Graph Anomaly Detection with Bi-level OptimizationYuan Gao, Junfeng Fang, Yongduo Sui, Yangyang Li et al.WWW 2024 · 21 citations
- Double Correction Framework for Denoising RecommendationZhuangzhuang He, Yifan Wang, Yonghui Yang, Peijie Sun et al.KDD 2024 · 16 citations
Builds on11
- Large-Scale Methods for Distributionally Robust OptimizationDaniel Levy, Yair Carmon, John C. Duchi, Aaron SidfordNeurIPS 2020 · 281 citations
- Reinforced Negative Sampling over Knowledge Graph for RecommendationXiang Wang, Yaokun Xu, Xiangnan He, Yixin Cao et al.WWW 2020 · 209 citations
- Efficient Heterogeneous Collaborative Filtering without Negative Sampling for RecommendationChong Chen, Min Zhang, Yongfeng Zhang, Weizhi Ma et al.AAAI 2020 · 185 citations
- 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
- Simplify and Robustify Negative Sampling for Implicit Collaborative FilteringJingtao Ding, Yuhan Quan, Quanming Yao, Yong Li et al.NeurIPS 2020 · 131 citations
Related papers
- Bayesian Negative Sampling for RecommendationBin Liu, Bang WangICDE 2023 · 10 citations
- R2NS: Recall and Re-ranking of Negative Samples for Sequential RecommendationYuanzi Li, Xuri Ge, Jingyu Zhao, Yidan Wang et al.WWW 2026
- On Sampled Metrics for Item RecommendationWalid Krichene, Steffen RendleKDD 2020 · 459 citations
- 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
- Optimization and Analysis of the pAp@k Metric for Recommender SystemsGaurush Hiranandani, Warut Vijitbenjaronk, Sanmi Koyejo, Prateek JainICML 2020 · 8 citations
