Algorithmic Acceleration of Parallel ALS for Collaborative Filtering: Speeding up Distributed Big Data Recommendation in Spark
Preprint
Abstract
Collaborative filtering algorithms are important building blocks in many practical recommendation systems. As a result, many large-scale data processing environments include collaborative filtering models for which the Alternating Least Squares (ALS) algorithm is used to compute latent factor matrix decompositions. In this paper, we significantly accelerate the convergence of parallel ALS-based optimization methods for collaborative filtering using a nonlinear conjugate gradient (NCG) wrapper around the ALS iterations. We also provide a parallel implementation of the accelerated ALS-NCG algorithm in the distributed Apache Spark data processing environment and an efficient line search technique requiring only 1 map-reduce operation on distributed datasets. In both serial numerical experiments on a linux workstation and parallel numerical experiments on a 16 node cluster with 256 computing cores, we demonstrate using the MovieLens 20M dataset that the combined ALS-NCG method requires many fewer iterations and less time to reach high ranking accuracies than standalone ALS. In parallel, NCG-ALS achieves an acceleration factor of 4 or greater in clock time when an accurate solution is desired, with the acceleration factor increasing with greater desired accuracy. Furthermore, the NCG acceleration mechanism is fully parallelizable and scales linearly with problem size on datasets with up to nearly 1 billion ratings. Our NCG acceleration approach is versatile and may be used to accelerate other parallel optimization methods such as stochastic gradient descent and coordinate descent.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Composing Scalable Nonlinear Algebraic SolversSIAM Review, 2015
- A nonlinearly preconditioned conjugate gradient algorithm for rank‐R canonical tensor approximationNumerical Linear Algebra with Applications, 2014
- A Nonlinear GMRES Optimization Algorithm for Canonical Tensor DecompositionSIAM Journal on Scientific Computing, 2012
- Anderson Acceleration for Fixed-Point IterationsSIAM Journal on Numerical Analysis, 2011
- Matrix Factorization Techniques for Recommender SystemsComputer, 2009
- Two classes of multisecant methods for nonlinear accelerationNumerical Linear Algebra with Applications, 2008
- Lessons from the Netflix prize challengeACM SIGKDD Explorations Newsletter, 2007
- Amazon.com recommendations: item-to-item collaborative filteringIEEE Internet Computing, 2003
- Line search algorithms with guaranteed sufficient decreaseACM Transactions on Mathematical Software, 1994
- Numerical solution of nonlinear elliptic partial differential equations by a generalized conjugate gradient methodComputing, 1978