Abstract
Extracting patterns from massive, sparse High-dimensional and Incomplete (HDI) datasets, such as user-item rating matrices, is a critical task in recommender systems. This paper introduces the Sharpness-aware Second-order Latent Factor (SSLF) model, which combines second-order optimization with Sharpness-aware Minimization (SAM). By seeking "flat" minima in the loss landscape, SSLF achieves superior generalization and converges up to 47x faster than traditional first-order methods.
Introduction
In fields like recommender systems, researchers frequently encounter HDI data where most entries in a user-item matrix are missing. Latent Factor (LF) models are typically used to map these entities into a shared low-dimensional space. However, the non-convex nature of these models often leads standard optimizers like SGD or Adam to converge into "sharp" local minima, which perform poorly on unseen data. While second-order methods offer higher accuracy by utilizing curvature information, they are traditionally computationally prohibitive for large-scale matrices.
Methodology
SSLF addresses these challenges through three primary technical innovations:
- SAM-style Perturbations: The model injects small adversarial perturbations into the latent factors during training. This process forces the optimizer to find a "flat" neighborhood where the loss remains consistently low, enhancing robustness against noise.
- Hidden Mapping Trick: The bilinear interaction between users and items is reformulated as a "hidden mapping" function, simplifying the application of complex second-order Gauss-Newton approximations.
- Hessian-free Optimization: To maintain scalability, SSLF avoids explicit storage of the massive Hessian matrix. Instead, it employs Hessian-vector products within a Conjugate Gradient (CG) solver, allowing the model to exploit curvature information efficiently on industrial-sized datasets.
Experimental Results
The SSLF model (M3) was evaluated against SGD-based (M1) and Adam-based (M2) models on two benchmarks: Yelp (D1) and MovieLens 1M (D2).
As shown in the table above, SSLF consistently achieved the lowest Root Mean Square Error (RMSE) across both datasets. The most significant improvement was observed in convergence speed; on the Yelp dataset, SSLF reached its optimal solution in just 8 epochs, compared to 375 for SGD and 159 for Adam. This represents a nearly 47x speedup in training iterations. These results suggest that sharpness-aware second-order search directions are far more informative than standard gradients.
Discussion and Insights
The core advantage of SSLF lies in its ability to favor flatter regions of the loss surface, which directly translates to better generalization in sparse data environments. Mathematically, the regularization terms act as a "damping" component in the Gauss-Newton matrix, stabilizing the optimization of ill-conditioned matrices. Furthermore, the use of iterative Hessian-vector products proves that high-order optimization can be scaled to large datasets without requiring excessive computational resources.
Conclusion
SSLF demonstrates a powerful synergy between second-order optimization and sharpness-aware training. While the model significantly improves accuracy and convergence speed, future work could focus on reducing hyperparameter sensitivity and addressing the "cold-start" problem for new users and items. Despite these challenges, SSLF sets a new benchmark for efficient and robust latent factor modeling in HDI data contexts.
Summary updated