Introduction
Factorization Machines (FMs) have become a cornerstone of modern recommendation systems due to their ability to model feature interactions in high-dimensional, sparse datasets. However, as datasets grow to include billions of ratings, traditional training methods face significant scalability challenges. This paper presents a novel distributed training framework that replaces Stochastic Gradient Descent (SGD) with Block Coordinate Descent (BCD), achieving substantial improvements in both training speed and predictive accuracy.
The Limitations of SGD in Distributed FM Training
Most distributed FM implementations rely on SGD, which presents two primary hurdles:
- Hyperparameter Sensitivity: SGD is notoriously sensitive to the learning rate. An improper choice can lead to slow convergence or model divergence.
- Communication Bottlenecks: In a distributed environment, the frequent exchange of gradients and repetitive calculations often result in poor hardware utilization and high latency.
Distributed Block Coordinate Descent (BCD)
To address these issues, the authors propose a distributed BCD algorithm. Unlike SGD, BCD updates parameters in blocks while keeping others fixed, eliminating the need for a learning rate and providing more stable convergence.
Optimized Blocking Schemes
The researchers explored two primary methods for grouping parameters:
- Mixed Scheme: Updates the linear weight ($w_j$) and interaction vector ($V_j$) for a feature simultaneously.
- Separate Scheme: Updates all linear weights first, followed by interaction vectors.
Empirical results on the Movielens20M dataset demonstrate that the Separate scheme converges faster and reaches a lower RMSE, as it minimizes dependencies during the update process.
Architecture: Optimized Parameter Server and Pre-computation
The core innovation of the proposed method is a distributed pre-computation mechanism integrated into an optimized Parameter Server (PS).
By storing intermediate error terms and interaction sums on worker nodes, the algorithm performs incremental updates. This drastically reduces the computational overhead and the volume of data transmitted over the network. In the optimized PS, only the parameters of the current block are exchanged, turning a potential communication bottleneck into a streamlined process.
Experimental Results
The framework, dubbed FM-BCD-PS, was evaluated against state-of-the-art baselines on MovieLens (10M, 20M) and Yahoo Music datasets.
- Accuracy: The method achieved a 3.8% to 6.0% improvement in RMSE over existing methods.
- Efficiency: FM-BCD-PS reached target performance levels 4.6x to 12.3x faster than asynchronous SGD and Spark-based implementations.
- Scalability: On the Yahoo Music dataset (717 million ratings), the pre-computation mechanism proved essential for handling massive data with minimal network overhead.
Conclusion
By transitioning from gradient-based updates to a distributed coordinate descent approach, the authors have developed a more robust and efficient training method for Factorization Machines. The combination of the Separate blocking scheme and a pre-computation-aware Parameter Server sets a new benchmark for large-scale recommendation system training. Future work aims to extend this BCD framework to other collaborative filtering models like SVD++ and Matrix Factorization.
Summary updated