Abstract
Discrete Personalized Ranking (DPR) is a hashing-based recommendation framework designed to optimize ranking accuracy directly within a discrete binary space. Unlike traditional "relax-then-quantize" methods, DPR avoids significant information loss by tackling discrete optimization of the Area Under the ROC Curve (AUC). This approach yields compact binary codes that maintain recommendation quality comparable to real-valued Matrix Factorization while enabling high-speed retrieval via Hamming distance calculations.
Introduction
Modern recommender systems must efficiently identify top-$K$ items from billion-scale catalogs. While Matrix Factorization (MF) provides high accuracy, its $O(nmr)$ inference complexity poses a significant bottleneck. Hashing techniques address this by mapping users and items to binary codes, allowing for rapid bitwise operations. However, existing hashing methods often suffer from the "quantization gap"—information loss during the conversion from continuous to discrete values—and misaligned objectives that prioritize rating prediction over ranking.
Methodology
DPR addresses these challenges through direct discrete optimization of a pairwise ranking objective. The core of DPR lies in its ability to handle discrete constraints without relaxation. By utilizing a pairwise least square loss as a surrogate for the AUC, the authors transform the ranking problem into a form amenable to discrete optimization.
To ensure the resulting binary codes are informative and non-redundant, the model imposes structural constraints: bit balance, which ensures each bit has an equal probability of being -1 or 1 (maximizing entropy), and un-correlation, which ensures that different bits capture independent information. The optimization is performed using an alternating approach, where user and item codes are updated bit-by-bit via Discrete Coordinate Descent (DCD), a method that efficiently finds local optima in the binary space. To overcome the NP-hard nature of this optimization, a "warm" initialization from a relaxed version of the problem is employed to find a strong starting point.
Experimental Evaluation
The framework was evaluated on three large-scale datasets: MovieLens-1M, MovieLens-10M, and a subset of the Netflix dataset. All datasets were converted to implicit feedback formats, where interactions are treated as binary signals. DPR was compared against established baselines, including Discrete Collaborative Filtering (DCF) and Preference Preserving Hashing (PPH).
Results and Discussion
Impact of Initialization
A critical finding is the importance of the initialization scheme. Starting with a relaxed model's output significantly improves both the convergence speed and the final AUC compared to random initialization (NO-INI-DPR). As seen in the performance curves, the "warm start" provided by the relaxed problem allows the discrete search to reach a much higher quality local optimum.
Efficiency and Accuracy
DPR achieves performance nearly identical to real-valued Bayesian Personalized Ranking (BPR-MF) using only 32-bit codes. It consistently outperforms other hashing baselines, maintaining high AUC even as code lengths are reduced. This demonstrates that direct discrete optimization allows for much shorter codes to achieve the same accuracy as longer codes from two-stage methods. Furthermore, the training time of DPR scales linearly with dataset size, ensuring its practicality for industrial-scale applications.
Conclusion
DPR demonstrates that direct discrete optimization for ranking is a powerful approach for large-scale recommendation. By bridging the quantization gap and focusing on pairwise ranking, it provides a highly efficient alternative to traditional MF. Future work may explore non-linear relationships through deep learning integration or alternative surrogate loss functions to further refine ranking precision.
Summary updated