Talos: Optimizing Top-$K$ Accuracy in Recommender Systems
Shengjia Zhang, Weiqin Yang, Jiawei Chen, Peng Wu, Yuegang Sun, Gang Wang, Qihao Shi, Can Wang
TL;DR
This work addresses the challenge of directly optimizing Top-$K$ accuracy in recommender systems, where traditional full-ranking or partial-AUC losses often misalign with Practical Top-$K$ goals. Talos introduces a per-user score threshold and a fast, sampling-based quantile regression to estimate thresholds, coupled with a denominator constraint to prevent score inflation and a robust outside-temperature surrogate to handle discontinuities and distribution shifts. The authors prove that Talos tightly bounds $-\ ext{log} Precision@K$, connects to Distributionally Robust Optimization, and offers convergence guarantees, while delivering strong empirical gains across four datasets and three backbone models. Practically, Talos is concise, efficient, and plug‑in ready, making direct Top-$K$ optimization more reliable in production RS settings, with open-source code to facilitate adoption.
Abstract
Recommender systems (RS) aim to retrieve a small set of items that best match individual user preferences. Naturally, RS place primary emphasis on the quality of the Top-$K$ results rather than performance across the entire item set. However, estimating Top-$K$ accuracy (e.g., Precision@$K$, Recall@$K$) requires determining the ranking positions of items, which imposes substantial computational overhead and poses significant challenges for optimization. In addition, RS often suffer from distribution shifts due to evolving user preferences or data biases, further complicating the task. To address these issues, we propose Talos, a loss function that is specifically designed to optimize the Talos recommendation accuracy. Talos leverages a quantile technique that replaces the complex ranking-dependent operations into simpler comparisons between predicted scores and learned score thresholds. We further develop a sampling-based regression algorithm for efficient and accurate threshold estimation, and introduce a constraint term to maintain optimization stability by preventing score inflation. Additionally, we incorporate a tailored surrogate function to address discontinuity and enhance robustness against distribution shifts. Comprehensive theoretical analyzes and empirical experiments are conducted to demonstrate the effectiveness, efficiency, convergence, and distributional robustness of Talos. The code is available at https://github.com/cynthia-shengjia/WWW-2026-Talos.
