PSL: Rethinking and Improving Softmax Loss from Pairwise Perspective for Recommendation

Weiqin Yang, Jiawei Chen, Xin Xin, Sheng Zhou, Binbin Hu +3 more
10/31/2024
cs.LGcs.AIcs.IR

Official code: Tiny-Snow/IR-Benchmark (30 stars, GPL-3.0, last commit 2025-06-07).

Abstract

Softmax Loss (SL) is widely applied in recommender systems (RS) and has demonstrated effectiveness. This work analyzes SL from a pairwise perspective, revealing two significant limitations: 1) the relationship between SL and conventional ranking metrics like DCG is not sufficiently tight; 2) SL is highly sensitive to false negative instances. Our analysis indicates that these limitations are primarily due to the use of the exponential function. To address these issues, this work extends SL to a new family of loss functions, termed Pairwise Softmax Loss (PSL), which replaces the exponential function in SL with other appropriate activation functions. While the revision is minimal, we highlight three merits of PSL: 1) it serves as a tighter surrogate for DCG with suitable activation functions; 2) it better balances data contributions; and 3) it acts as a specific BPR loss enhanced by Distributionally Robust Optimization (DRO). We further validate the effectiveness and robustness of PSL through empirical experiments. The code is available at https://github.com/Tiny-Snow/IR-Benchmark.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

A unified, extensible, and reproducible benchmark for collaborative filtering (CF) research.

302C++, PythonFeb 1, 20241 years agoGPL-3.0
collaborative-filteringranking-lossrecommender-systems

Similar Papers

Cite this paper

@article{yang2024psl,
  title  = {PSL: Rethinking and Improving Softmax Loss from Pairwise Perspective for Recommendation},
  author = {Weiqin Yang and Jiawei Chen and Xin Xin and Sheng Zhou and Binbin Hu and Yan Feng and Chun Chen and Can Wang},
  year   = {2024},
  eprint = {2411.00163},
  archivePrefix = {arXiv},
  doi    = {10.5555/3737916.3741760},
  url    = {http://arxiv.org/abs/2411.00163v1},
  journal = {NEURIPS 2024 2024}
}

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/2411.00163.svg)](https://codeofpaper.com/paper/2411.00163)

Discussion