Accelerating SLIDE Deep Learning on Modern CPUs: Vectorization, Quantizations, Memory Optimizations, and More

Shabnam Daghaghi, Nicholas Meisburger, Mengnan Zhao, Yong Wu, Sameh Gobriel +2 more
3/6/2021
37 citations
cs.LGcs.DCcs.PF

Official code: RUSH-LAB/SLIDE (468 stars, last commit 2021-10-23).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

RUSH-LAB/SLIDEOfficial100%
46839Mar 2, 20215 years ago

Similar Papers

Cite this paper

@article{daghaghi2021accelerating,
  title  = {Accelerating SLIDE Deep Learning on Modern CPUs: Vectorization, Quantizations, Memory Optimizations, and More},
  author = {Shabnam Daghaghi and Nicholas Meisburger and Mengnan Zhao and Yong Wu and Sameh Gobriel and Charlie Tai and Anshumali Shrivastava},
  year   = {2021},
  eprint = {2103.10891},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.10891}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.10891.svg)](https://codeofpaper.com/paper/2103.10891)

Discussion