Abstract
Recommender systems frequently encounter high-dimensional and incomplete (HDI) data. While first-order optimization methods are commonly used for Latent Factor Analysis (LFA) due to their scalability, they often sacrifice accuracy by ignoring second-order curvature information. This paper presents Mini-Hes, a novel optimization framework that approximates the Hessian matrix as a parallelizable block-diagonal structure. Mini-Hes bridges the gap between the precision of second-order methods and the speed of first-order approaches, achieving significant computational reductions while maintaining state-of-the-art accuracy.
Introduction
In modern recommender systems, data is typically represented as massive, sparse matrices where users and items are mapped into a shared latent space. Latent Factor Analysis (LFA) is the standard technique for predicting missing interactions. However, training LFA models presents a trade-off: first-order methods (e.g., SGD, Adam) are computationally efficient but may converge to sub-optimal solutions. Conversely, second-order methods (e.g., Hessian-free optimization) capture the optimization landscape's curvature for better precision but suffer from extreme computational costs and poor parallelizability as the Hessian matrix grows quadratically with the number of users and items.
Methods: The Mini-Hes Framework
Mini-Hes addresses these challenges through a "mini-block diagonal Hessian-free" approach. The core innovation rests on the observation that the Hessian matrix in LFA models is diagonally dominant. By discarding weak off-diagonal interactions, the massive Hessian is approximated as a series of independent $f \times f$ blocks, where $f$ is the number of latent factors.
This approximation enables two major advantages:
- Parallel Computation: The independent blocks allow for a Master-Worker multi-threading strategy. Different threads compute Hessian-vector products for distinct user/item blocks simultaneously.
- Memory Efficiency: Storage complexity is reduced from $O((|U|+|I|) \times f)^2$ to $O((|U|+|I|) \times f^2)$, making second-order training feasible on standard hardware for large-scale datasets.
Experimental Setup
The model was evaluated on four public HDI datasets:
- Flixster: A movie rating dataset (0.11% density).
- Rating Disposition (RD): A dataset focused on user rating behaviors (0.85% density).
- MovieLens-10M (ML-10M): 10 million ratings (1.31% density).
- MovieLens-20M (ML-20M): 20 million ratings (0.53% density).
Performance was compared against state-of-the-art adaptive first-order methods (Adam, YOGI, ACProp) and a standard second-order SLF model.
Key Results
Mini-Hes (denoted as M5 in experimental results) consistently outperformed competing models in both accuracy and efficiency.
Accuracy and Speed
As shown in the results for the ML-10M dataset, Mini-Hes achieved the lowest Mean Absolute Error (MAE) while reducing training time by over 98% compared to the standard second-order model (M4). Specifically, on the ML-20M dataset, training time per epoch dropped from over 4,000 seconds to approximately 45 seconds—a 98.9% reduction.
Scalability
The framework demonstrates near-linear scaling. On the ML-20M dataset, increasing the thread count from 2 to 32 yielded an 8.56x speedup, confirming its suitability for high-performance computing environments. Interestingly, the Hessian becomes more diagonally dominant as data sparsity increases, suggesting that Mini-Hes becomes more theoretically robust at larger scales.
Conclusion and Future Work
Mini-Hes successfully democratizes second-order optimization for large-scale recommender systems. By leveraging the inherent structure of the LFA Hessian, it provides a high-precision alternative to first-order methods without the traditional computational overhead. Future research will explore extending this block-diagonal approach to Quasi-Newton methods and higher-order tensors for multi-dimensional data analysis.
Summary updated