Batch-Mix Negative Sampling for Learning Recommendation Retrievers
Open Access
- 21 October 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 494-503
Abstract
Recommendation retrievers commonly retrieve user potentially preferred items from numerous items, where the query and item representation are learned according to the dual encoders with the log-softmax loss. Under real scenarios, the number of items becomes considerably large, making it exceedingly difficult to calculate the partition function with the whole item corpus. Negative sampling, which samples a subset from the item corpus, is widely used to accelerate the model training. Among different samplers, the in-batch sampling is commonly adopted for online recommendation retrievers, which regards the other items within the mini-batch as the negative samples for the given query, owing to its time and memory efficiency. However, the sample selection bias occurs due to the skewed feedback, harming the retrieval quality. In this paper, we propose a negative sampling approach named Batch-Mix Negative Sampling (BMNS), which adopts batch mixing operation to generate additional negatives for model training. Concretely, BMNS first generates new negative items with the sampled mix coefficient from the Beta distribution, after which a tailored correct strategy guided by frequency is designed to match the sampled softmax loss. In this way, the effort of re-encoding items out of the mini-batch is reduced while also improving the representation space of the negative set. The empirical experiments on four real-world datasets demonstrate BMNS is superior to the competitive negative inbatch sampling method.Keywords
Funding Information
- Municipal Government of Quzhou under Grant (2022D037)
- Shenzhen Municipal Science and Technology R&D Funding Basic Research Program (JCYJ20210324133607021)
- National Natural Science Foundation of China (61972069, 61836007, 61832017, 62272086)
This publication has 18 references indexed in Scilit:
- Mixed Negative Sampling for Learning Two-tower Neural Networks in Recommendations2020
- CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features2019
- Sampling-bias-corrected neural modeling for large corpus item recommendations2019
- Collaborative Metric Learning2017
- Wide & Deep Learning for Recommender Systems2016
- Deep Neural Networks for YouTube Recommendations2016
- The Netflix Recommender SystemACM Transactions on Management Information Systems, 2015
- Improving pairwise learning for item recommendation from implicit feedback2014
- Optimizing top-n collaborative filtering via dynamic negative item sampling2013
- Adaptive Importance Sampling to Accelerate Training of a Neural Probabilistic Language ModelIEEE Transactions on Neural Networks, 2008