An Experimental Analysis on Scalable Implementations of the Alternating Least Squares Algorithm
Dânia Meira, José Viterbo, Flávia Bernardini · Annals of Computer Science and Information Systems · 2018
The use of the latent factor models technique overcomes two major problems of most collaborative filtering approaches: scalability and sparseness of the user's profile matrix.The most successful realizations of latent factor models are based on matrix factorization.Among the algorithms for matrix factorization, alternating least squares (ALS) stands out due to its easily parallelizable computations.In this work we propose a methodology for comparing the performance of two parallel implementations of the ALS algorithm, one executed with MapReduce in Apache Hadoop framework and another executed in Apache Spark framework.We performed experiments to evaluate the accuracy of generated recommendations and the execution time of both algorithms, using publicly available datasets with different sizes and from different recommendation domains.Experimental results show that running the recommendation algorithm on Spark framework is in fact more efficient, once it provides in-memory processing, in contrast to Hadoop's twostage disk-based MapReduce paradigm.