Toward a Better Understanding of Loss Functions for Collaborative Filtering

Seongmin Park, Mincheol Yoon, Jae-woong Lee, Hogun Park, Jongwuk Lee
8/11/2023
cs.IRcs.AIcs.LG

No official code found. Best implementation: psm1206/MAWU (19 stars, MIT, last commit 2024-01-23).

Abstract

Collaborative filtering (CF) is a pivotal technique in modern recommender systems. The learning process of CF models typically consists of three components: interaction encoder, loss function, and negative sampling. Although many existing studies have proposed various CF models to design sophisticated interaction encoders, recent work shows that simply reformulating the loss functions can achieve significant performance gains. This paper delves into analyzing the relationship among existing loss functions. Our mathematical analysis reveals that the previous loss functions can be interpreted as alignment and uniformity functions: (i) the alignment matches user and item representations, and (ii) the uniformity disperses user and item distributions. Inspired by this analysis, we propose a novel loss function that improves the design of alignment and uniformity considering the unique patterns of datasets called Margin-aware Alignment and Weighted Uniformity (MAWU). The key novelty of MAWU is two-fold: (i) margin-aware alignment (MA) mitigates user/item-specific popularity biases, and (ii) weighted uniformity (WU) adjusts the significance between user and item uniformities to reflect the inherent characteristics of datasets. Extensive experimental results show that MF and LightGCN equipped with MAWU are comparable or superior to state-of-the-art CF models with various loss functions on three public datasets.

View on arXivView PDF

Code Implementations(1)

psm1206/MAWUCommunity100%
MIT

[CIKM'23] "Toward a Better Understanding of Loss Functions for Collaborative Filtering"

191PythonAug 7, 20232 years agoMIT
collaborative-filteringrecommendation-system

Similar Papers

Cite this paper

@article{park2023toward,
  title  = {Toward a Better Understanding of Loss Functions for Collaborative Filtering},
  author = {Seongmin Park and Mincheol Yoon and Jae-woong Lee and Hogun Park and Jongwuk Lee},
  year   = {2023},
  eprint = {2308.06091},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.06091v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.06091.svg)](https://codeofpaper.com/paper/2308.06091)

Discussion