Breaking the Top-K Barrier: Advancing Top-K Ranking Metrics Optimization in Recommender Systems

Weiqin Yang, Jiawei Chen, Shengjia Zhang, Peng Wu, Yuegang Sun +3 more
8/4/2025
cs.IRcs.AIcs.LG

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

Abstract

In the realm of recommender systems (RS), Top-$K$ ranking metrics such as NDCG@$K$ are the gold standard for evaluating recommendation performance. However, during the training of recommendation models, optimizing NDCG@$K$ poses significant challenges due to its inherent discontinuous nature and the intricate Top-$K$ truncation. Recent efforts to optimize NDCG@$K$ have either overlooked the Top-$K$ truncation or suffered from high computational costs and training instability. To overcome these limitations, we propose SoftmaxLoss@$K$ (SL@$K$), a novel recommendation loss tailored for NDCG@$K$ optimization. Specifically, we integrate the quantile technique to handle Top-$K$ truncation and derive a smooth upper bound for optimizing NDCG@$K$ to address discontinuity. The resulting SL@$K$ loss has several desirable properties, including theoretical guarantees, ease of implementation, computational efficiency, gradient stability, and noise robustness. Extensive experiments on four real-world datasets and three recommendation backbones demonstrate that SL@$K$ outperforms existing losses with a notable average improvement of 6.03%. 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{yang2025breaking,
  title  = {Breaking the Top-K Barrier: Advancing Top-K Ranking Metrics Optimization in Recommender Systems},
  author = {Weiqin Yang and Jiawei Chen and Shengjia Zhang and Peng Wu and Yuegang Sun and Yan Feng and Chun Chen and Can Wang},
  year   = {2025},
  eprint = {2508.05673},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.05673v1}
}

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

Discussion