在现代CPU上加速SLIDE深度学习:矢量化、量化、内存优化等
Accelerating SLIDE Deep Learning on Modern CPUs: Vectorization, Quantizations, Memory Optimizations, and More
摘要:
在CPU(中央处理器)上实现深度学习正获得越来越多的关注。商用x86架构上的增强AI功能具有商业吸引力,因为它可以重用现有硬件和简化虚拟化。在这方面的一个值得注意的工作是SLIDE系统。SLIDE是基于稀疏哈希表的反向传播的C++实现,在训练数亿个参数神经模型时,它被证明比GPU快得多。在本文中,我们认为,SLIDE的当前实现是次优的,并没有利用现代CPU中的几个机会。特别是,我们展示了SLIDE的计算如何通过AVX(高级矢量扩展)-512实现矢量化的独特可能性。此外,我们强调不同类型的内存优化和量化的机会。结合所有这些,我们在相同的硬件上获得了高达7倍的计算加速。我们的实验集中在大型(数亿个参数)推荐和NLP模型上。我们的工作突出了在现代CPU上实现深度学习随机算法的几个新视角和机会。我们在https://github.com/RUSH-LAB/SLIDE上提供代码和基准测试脚本
英文摘要:
Deep learning implementations on CPUs (Central Processing Units) are gaining more traction. Enhanced AI capabilities on commodity x86 architectures are commercially appealing due to the reuse of existing hardware and virtualization ease. A notable work in this direction is the SLIDE system. SLIDE is a C++ implementation of a sparse hash table based back-propagation, which was shown to be significantly faster than GPUs in training hundreds of million parameter neural models. In this paper, we argue that SLIDE's current implementation is sub-optimal and does not exploit several opportunities available in modern CPUs. In particular, we show how SLIDE's computations allow for a unique possibility of vectorization via AVX (Advanced Vector Extensions)-512. Furthermore, we highlight opportunities for different kinds of memory optimization and quantizations. Combining all of them, we obtain up to 7x speedup in the computations on the same hardware. Our experiments are focused on large (hundreds of millions of parameters) recommendation and NLP models. Our work highlights several novel perspectives and opportunities for implementing randomized algorithms for deep learning on modern CPUs. We provide the code and benchmark scripts at https://github.com/RUSH-LAB/SLIDE
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。