通过动态剪枝加速矩阵分解以实现快速推荐
Accelerating Matrix Factorization by Dynamic Pruning for Fast Recommendation
AI总结:
本文提出通过动态剪枝减少矩阵分解计算量,提升推荐系统效率,实验显示在速度提升1.2-1.65倍的同时误差增加不超过20.08%。
摘要:
矩阵分解(MF)是推荐系统中广泛使用的协同过滤(CF)算法,因其高预测精度、大数据处理的高灵活性和效率而被广泛应用。然而,随着当前推荐系统中用户和物品数量的大幅增加,训练MF模型的计算复杂度显著增加。许多现有工作通过增加计算资源或利用并行系统来加速MF,但引入了较大的成本。本文提出算法方法来加速MF,无需引入额外计算资源。具体而言,我们观察到在考虑一定阈值时,分解后的特征矩阵中存在细粒度的结构稀疏性。这种细粒度的结构稀疏性导致在矩阵乘法和潜在因子更新过程中产生大量不必要的操作,增加MF训练过程的计算时间。基于这一观察,我们首先提出基于联合稀疏性的特征矩阵重新排列,这可能使具有较小索引的潜在向量比具有较大索引的更密集。特征矩阵重新排列旨在限制后续剪枝过程中产生的误差。我们随后提出通过在矩阵乘法和潜在因子更新过程中进行早期停止过程来剪枝不重要的潜在因子。剪枝过程根据不同用户/物品的潜在因子稀疏性动态进行,以加速该过程。实验表明,与传统MF训练过程相比,我们的方法可实现1.2-1.65倍的速度提升,误差增加最高达20.08%。我们还证明所提出的方法在考虑不同超参数,包括优化器、优化策略和初始化方法时均适用。
英文摘要:
Matrix factorization (MF) is a widely used collaborative filtering (CF) algorithm for recommendation systems (RSs), due to its high prediction accuracy, great flexibility and high efficiency in big data processing. However, with the dramatically increased number of users/items in current RSs, the computational complexity for training a MF model largely increases. Many existing works have accelerated MF, by either putting in additional computational resources or utilizing parallel systems, introducing a large cost. In this paper, we propose algorithmic methods to accelerate MF, without inducing any additional computational resources. In specific, we observe fine-grained structured sparsity in the decomposed feature matrices when considering a certain threshold. The fine-grained structured sparsity causes a large amount of unnecessary operations during both matrix multiplication and latent factor update, increasing the computational time of the MF training process. Based on the observation, we firstly propose to rearrange the feature matrices based on joint sparsity, which potentially makes a latent vector with a smaller index more dense than that with a larger index. The feature matrix rearrangement is given to limit the error caused by the later performed pruning process. We then propose to prune the insignificant latent factors by an early stopping process during both matrix multiplication and latent factor update. The pruning process is dynamically performed according to the sparsity of the latent factors for different users/items, to accelerate the process. The experiments show that our method can achieve 1.2-1.65 speedups, with up to 20.08% error increase, compared with the conventional MF training process. We also prove the proposed methods are applicable considering different hyperparameters including optimizer, optimization strategy and initialization method.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。