协同过滤并行ALS的并行加速--在Spark中加速分布式大数据推荐
Algorithmic Acceleration of Parallel ALS for Collaborative Filtering: Speeding up Distributed Big Data Recommendation in Spark
摘要:
协同过滤算法是许多实际推荐系统的重要组成部分。例如,许多大规模数据处理环境包括协同过滤模型,其中交替最小二乘(ALS)算法用于计算潜在因子矩阵分解。在本文中,我们提出了一种方法来加速收敛的并行ALS为基础的最优化方法的协同过滤使用非线性共轭梯度(NCG)包装周围的ALS迭代。我们还提供了加速ALS-NCG算法在Apache Spark分布式数据处理环境中的并行实现,以及作为ALS-NCG实现的一部分的高效线搜索技术,该技术只需要一次通过分布式数据集上的数据。在Linux工作站上的串行数值实验和具有256个计算核心的16节点集群上的并行数值实验中,我们证明了组合ALS-NCG方法比独立ALS需要更少的迭代和更少的时间来达到MovieLens 20 M数据集上的高精度电影排名。并行地,当需要精确解时,ALS-NCG可以在时钟时间中实现4或更大的加速因子;此外,加速因子随着解中需要更高的数值精度而增加。此外,NCG加速机制并行高效,并在高达近10亿评级的合成数据集上随问题大小线性扩展。该加速机制是通用的,也可以适用于其他协同过滤的最优化方法。
英文摘要:
Collaborative filtering algorithms are important building blocks in many practical recommendation systems. For example, 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 propose an approach to 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 Apache Spark distributed data processing environment, and an efficient line search technique as part of the ALS-NCG implementation that requires only one pass over the data on distributed datasets. In serial numerical experiments on a linux workstation and parallel numerical experiments on a 16 node cluster with 256 computing cores, we demonstrate that the combined ALS-NCG method requires many fewer iterations and less time than standalone ALS to reach movie rankings with high accuracy on the MovieLens 20M dataset. In parallel, ALS-NCG can achieve an acceleration factor of 4 or greater in clock time when an accurate solution is desired; furthermore, the acceleration factor increases as greater numerical precision is required in the solution. In addition, the NCG acceleration mechanism is efficient in parallel and scales linearly with problem size on synthetic datasets with up to nearly 1 billion ratings. The acceleration mechanism is general and may also be applicable to other optimization methods for collaborative filtering.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。