Abstract
Modern recommender systems often rely on high-dimensional real-valued vectors, which present significant storage and computational challenges for deployment on resource-constrained mobile devices. This paper presents Discrete Social Recommendation (DSR), a novel framework that represents users and items using compact binary codes. By optimizing these codes directly within a unified framework that incorporates social trust information, DSR achieves a 37x reduction in memory usage and a 5x speedup in recommendation latency compared to traditional real-valued methods, while maintaining competitive accuracy.
Introduction
Collaborative filtering via Matrix Factorization (MF) is a cornerstone of modern recommendation. However, representing users and items as floating-point vectors leads to two primary issues at scale: high memory consumption and significant computation latency during top-K retrieval. While social-aware recommendation helps mitigate data sparsity by leveraging user-user trust links, it often exacerbates these computational burdens.
Existing "hashing" solutions typically follow a two-stage process: training a real-valued model and then binarizing the results. This approach suffers from substantial quantization loss. DSR addresses this by learning binary codes directly, bypassing the real-valued intermediate step.
The DSR Framework
DSR learns $r$-bit binary codes for users ($b_i$), items ($d_j$), and social ties ($f_k$) simultaneously. The framework is built on several key principles:
- Unified Discrete Optimization: The model ensures that the Hamming distance between binary codes reflects both user-item preferences and user-user social relationships.
- Informative Constraints: To maximize the information density of the binary codes, DSR enforces balance (each bit has an equal probability of being +1 or -1) and uncorrelation (bits are independent of one another).
- Discrete Coordinate Descent: Since discrete optimization is NP-hard, the authors utilize a "softening" technique and an iterative bit-by-bit update process to find high-quality local optima.
- Social-Based Cold-Start Handling: For users with no rating history, DSR estimates their binary signatures by aggregating the codes of their social connections, providing a robust starting point for recommendations.
Experimental Evaluation
The authors evaluated DSR on three real-world datasets: FilmTrust, CiaoDVD, and Epinions. These datasets vary in scale and density, providing a comprehensive testbed for both rating prediction and social trust integration.
Key Results: Accuracy and Efficiency
DSR demonstrates a remarkable balance between efficiency and performance. On the Epinions dataset, memory usage dropped from 14.57 MB (real-valued) to 407 KB (binary), a 37-fold reduction. Retrieval speed improved by approximately 5x due to the efficiency of bitwise operations on modern hardware.
As shown in the NDCG@K results across various datasets, DSR consistently outperforms other discrete baselines like DCF and the two-stage binarized CFSRB. Notably, as the bit length ($r$) increases to 32, DSR's performance converges toward that of state-of-the-art real-valued models like CFSR.
The Recall@K metrics further validate this trend. Increasing the code length allows the binary representation to capture more nuanced user-item relationships, narrowing the gap with continuous models while retaining the benefits of a discrete representation.
Discussion and Future Work
A key insight from this work is that binary constraints can act as a natural regularizer, preventing overfitting in high-dimensional spaces—a common issue for real-valued models like CFSR. Furthermore, social ties provide a structural "skeleton" that aids the discrete optimization process, particularly for sparse data.
Despite its successes, DSR is currently limited by its linear nature. Future research could explore extending discrete social recommendation to non-linear deep learning architectures, such as Neural Collaborative Filtering, to capture more complex interaction patterns. Additionally, investigating adaptive bit lengths for varying dataset complexities remains an open area for optimization.
Conclusion
Discrete Social Recommendation offers a practical path forward for deploying sophisticated, social-aware recommender systems on mobile devices. By learning binary codes directly, DSR eliminates the trade-offs typically associated with model quantization, delivering high-performance recommendations with a fraction of the traditional resource requirements.
Summary updated