Skip to main content
QUICK REVIEW

[Paper Review] Incorporating Bias-aware Margins into Contrastive Loss for Collaborative Filtering

An Zhang, Wenchang Ma|arXiv (Cornell University)|Oct 20, 2022
Recommender Systems and TechniquesComputer Science19 citations
TL;DR

This paper proposes BC Loss, a novel contrastive loss that incorporates bias-aware margins to reduce popularity bias in collaborative filtering. By dynamically adjusting margins based on user-item interaction popularity, BC Loss improves representation discrimination for both head and tail items, achieving state-of-the-art performance across multiple benchmarks without sacrificing head performance.

ABSTRACT

Collaborative filtering (CF) models easily suffer from popularity bias, which makes recommendation deviate from users' actual preferences. However, most current debiasing strategies are prone to playing a trade-off game between head and tail performance, thus inevitably degrading the overall recommendation accuracy. To reduce the negative impact of popularity bias on CF models, we incorporate Bias-aware margins into Contrastive loss and propose a simple yet effective BC Loss, where the margin tailors quantitatively to the bias degree of each user-item interaction. We investigate the geometric interpretation of BC loss, then further visualize and theoretically prove that it simultaneously learns better head and tail representations by encouraging the compactness of similar users/items and enlarging the dispersion of dissimilar users/items. Over eight benchmark datasets, we use BC loss to optimize two high-performing CF models. On various evaluation settings (i.e., imbalanced/balanced, temporal split, fully-observed unbiased, tail/head test evaluations), BC loss outperforms the state-of-the-art debiasing and non-debiasing methods with remarkable improvements. Considering the theoretical guarantee and empirical success of BC loss, we advocate using it not just as a debiasing strategy, but also as a standard loss in recommender models.

Motivation & Objective

  • Address the persistent trade-off between head and tail performance in collaborative filtering models due to popularity bias.
  • Develop a debiasing strategy that improves both head and tail recommendations simultaneously, rather than sacrificing one for the other.
  • Design a loss function that enhances representation discrimination by leveraging geometric properties of user-item embeddings.
  • Provide theoretical and empirical justification for the effectiveness of bias-aware margins in improving model generalization.

Proposed method

  • Introduce a contrastive loss with user- and item-specific margins that scale according to the popularity bias of each interaction.
  • Define the bias-aware margin as a function of item popularity and user interaction frequency, ensuring higher margins for more biased interactions.
  • Formulate the BC Loss as a contrastive objective that encourages compactness of positive pairs and separation of negative pairs in embedding space.
  • Theoretical analysis shows that BC Loss promotes local compactness and global separation in representation space, improving discrimination.
  • Visualize embeddings on the unit sphere to demonstrate that BC Loss produces clearer angular margins between positive and negative items.
  • Apply BC Loss to optimize two high-performing CF models (e.g., LightGCN) across multiple datasets and evaluation protocols.

Experimental results

Research questions

  • RQ1Can a contrastive loss with bias-aware margins simultaneously improve head and tail recommendation performance without trade-offs?
  • RQ2How does BC Loss enhance the geometric structure of user and item representations in embedding space?
  • RQ3Does BC Loss outperform state-of-the-art debiasing and non-debiasing baselines across diverse evaluation settings?
  • RQ4Is the improvement from BC Loss due to better representation learning or merely tail-specific optimization?

Key findings

  • BC Loss achieves state-of-the-art performance on eight benchmark datasets across imbalanced, balanced, temporal, and fully-observed test settings.
  • On Yelp2018, BC Loss improves the best baseline by 12.3% in Hit Ratio@20 and 10.7% in NDCG@20 under imbalanced evaluation.
  • The method maintains or improves head performance while significantly boosting tail performance, eliminating the typical head-tail trade-off.
  • Visualization shows that BC Loss creates a clearer angular margin between positive and negative items, especially for tail users.
  • The optimal margin hyperparameter τ is stable across balanced and imbalanced evaluations, indicating robustness and generalization.
  • Theoretical analysis and geometric interpretation confirm that BC Loss enhances local compactness and global separation in representation space.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.