[Paper Review] Contrastive Learning for Debiased Candidate Generation at Scale.
CLRec proposes a contrastive learning framework to reduce exposure bias in large-scale candidate generation by leveraging inverse propensity scoring through contrastive loss and a fixed-size queue for efficient negative sampling. Deployed in Mobile Taobao, it significantly reduces the Matthew effect in item exposure over a four-month A/B test.
Deep candidate generation (DCG) that narrows down the collection of relevant items from billions to hundreds via representation learning is essential to large-scale recommender systems. Standard approaches approximate maximum likelihood estimation (MLE) through sampling for better scalability and address the problem of DCG in a way similar to language modeling. However, live recommender systems face severe unfairness of exposure with a vocabulary several orders of magnitude larger than that of natural language, implying that (1) MLE will preserve and even exacerbate the exposure bias in the long run in order to faithfully fit the observed samples, and (2) suboptimal sampling and inadequate use of item features can lead to inferior representations for the unfairly ignored items. In this paper, we introduce CLRec, a Contrastive Learning paradigm that has been successfully deployed in a real-world massive recommender system, to alleviate exposure bias in DCG. We theoretically prove that a popular choice of contrastive loss is equivalently reducing the exposure bias via inverse propensity scoring, which provides a new perspective on the effectiveness of contrastive learning. We further employ a fixed-size queue to store the items' representations computed in previously processed batches, and use the queue to serve as an effective sampler of negative examples. This queue-based design provides great efficiency in incorporating rich features of the thousand negative items per batch thanks to computation reuse. Extensive offline analyses and four-month online A/B tests in Mobile Taobao demonstrate substantial improvement, including a dramatic reduction in the Matthew effect.
Motivation & Objective
- To address severe exposure bias in deep candidate generation (DCG) for large-scale recommender systems with vocabularies orders of magnitude larger than in natural language.
- To mitigate the negative impact of suboptimal sampling and underutilized item features on representation learning for rarely exposed items.
- To design an efficient, scalable contrastive learning method that improves fairness and representation quality in DCG without compromising training efficiency.
- To theoretically justify the effectiveness of contrastive learning in reducing exposure bias via inverse propensity scoring.
- To validate the method through extensive offline analysis and a four-month online A/B test in Mobile Taobao.
Proposed method
- CLRec employs a contrastive learning paradigm that uses a contrastive loss function shown to be equivalent to minimizing exposure bias via inverse propensity scoring.
- A fixed-size queue stores item representations from previously processed batches, serving as a dynamic and efficient source of negative samples.
- The queue enables computation reuse, allowing rich feature integration for up to a thousand negative items per batch with minimal overhead.
- The method leverages representation learning to generate high-quality embeddings for both positive and negative items, improving fairness in candidate scoring.
- The framework is designed for scalability, supporting real-time training and inference in production-scale systems like Mobile Taobao.
- The contrastive objective encourages representations of positively interacted items to be closer in embedding space while pushing apart representations of negative items.
Experimental results
Research questions
- RQ1How can contrastive learning be effectively applied to reduce exposure bias in large-scale candidate generation with massive item vocabularies?
- RQ2What is the theoretical relationship between contrastive learning and inverse propensity scoring in mitigating exposure bias?
- RQ3How can a fixed-size queue be used to efficiently and effectively sample negative items at scale without degrading training performance?
- RQ4To what extent does CLRec reduce the Matthew effect in item exposure compared to standard MLE-based DCG methods?
- RQ5Can the proposed method achieve measurable improvements in online recommendation performance while maintaining computational efficiency?
Key findings
- The contrastive loss used in CLRec is theoretically equivalent to applying inverse propensity scoring, providing a principled justification for its effectiveness in reducing exposure bias.
- The queue-based negative sampling mechanism enables efficient computation reuse, allowing rich feature integration for up to a thousand negative items per batch with minimal overhead.
- Offline analyses show that CLRec improves representation quality for rarely exposed items, reducing the disparity in embedding fidelity across items.
- The four-month online A/B test on Mobile Taobao demonstrated a substantial reduction in the Matthew effect, indicating more equitable exposure distribution.
- CLRec achieved measurable improvements in recommendation performance, confirming its effectiveness in real-world deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.