Abstract
In designing personalized ranking algorithms, it is desirable to encourage a high precision at the top of the ranked list. Existing methods either seek a smooth convex surrogate for a non-smooth ranking metric or directly modify updating procedures to encourage top accuracy. In this work we point out that these methods do not scale well to a large-scale setting, and this is partly due to the inaccurate pointwise or pairwise rank estimation. We propose a new framework for personalized ranking. It uses batch-based rank estimators and smooth rank-sensitive loss functions. This new batch learning framework leads to more stable and accurate rank approximations compared to previous work. Moreover, it enables explicit use of parallel computation to speed up training. We conduct empirical evaluation on three item recommendation tasks. Our method shows consistent accuracy improvements over state-of-the-art methods. Additionally, we observe time efficiency advantages when data scale increases.
Introduction
Personalized ranking is a cornerstone of modern recommendation systems, where the primary objective is to optimize the "top of the list" accuracy. Users typically interact only with the first few items presented, making metrics like NDCG or MAP critical. However, optimizing these metrics directly is challenging due to their non-smooth and position-dependent nature.
Current approaches generally fall into two categories: rank-independent methods like Bayesian Personalized Ranking (BPR), which treat all ranking errors equally, and sampling-based methods like Weighted Approximately Ranked Pairwise (WARP). While WARP attempts to prioritize top-tier accuracy by sampling negative items until a violation is found, it suffers from high stochastic noise and inherent sequentiality, which limits its scalability on modern parallel hardware like GPUs. Furthermore, as models improve, WARP's training time increases because finding violations becomes more difficult—a phenomenon known as the efficiency paradox.
Methodology
To address these limitations, we introduce a batch learning framework (BARS) that utilizes batch-based rank estimators and smooth rank-sensitive (RS) loss functions.
Batch Rank Estimation
Instead of sequential sampling, our framework employs matrix-friendly batch operations. We estimate an item's rank by computing a "margin rank" over a batch of negative items. By using smooth surrogates, such as the sigmoid function, to approximate indicator functions, the entire ranking process becomes differentiable and suitable for gradient-based optimization.
Rank-Sensitive Loss Functions
We define three criteria for an effective rank-sensitive loss function: it must be smooth, increasing, and concave. Concavity is particularly important as it ensures that improvements at the top of the list (e.g., moving from rank 10 to 5) result in a larger reduction in loss than improvements further down (e.g., rank 100 to 95). We explore three functional forms: polynomial, logarithmic, and exponential.
Results and Discussion
The framework was evaluated on three large-scale datasets: MovieLens-20m, Yelp, and XING.
Accuracy and Scalability
Our proposed methods, specifically SMR-log and MR-poly, consistently outperformed state-of-the-art baselines. On the XING dataset, BARS achieved a 7.1% NDCG@30, significantly higher than WARP (6.7%) and BPR (0.9%). In terms of efficiency, the batch-based approach reached convergence on the XING dataset in 14 hours, compared to over 31 hours for WARP. Unlike sampling-based methods, BARS maintains constant epoch times regardless of model quality because it avoids the need to hunt for violating samples.
Stability of Estimators
A key advantage of the batch estimator is its significantly lower variance compared to the pairwise sampling used in methods like WARP. This stability leads to more reliable gradients and faster convergence.
Conclusion
The proposed batch learning framework provides a scalable and accurate solution for personalized ranking. By combining batch-based rank estimation with smooth, concave loss functions, we achieve superior performance at the top of the ranked list while leveraging GPU parallelization for significant speedups. Future work will explore the integration of this framework with deep neural architectures to further enhance recommendation quality.
Summary updated