Skip to main content
QUICK REVIEW

[Paper Review] Accelerating SLIDE Deep Learning on Modern CPUs: Vectorization, Quantizations, Memory Optimizations, and More

Shabnam Daghaghi, Nicholas Meisburger|arXiv (Cornell University)|Mar 5, 2021
Advanced Image and Video Retrieval TechniquesComputer Science10 references16 citations
TL;DR

This paper optimizes the SLIDE deep learning system for modern x86 CPUs by leveraging AVX-512 vectorization, bfloat16 quantization, and memory access optimizations, achieving up to 7x faster training than TensorFlow on V100 GPUs and 7.9x faster than TF-CPU on the same hardware, demonstrating that software-level optimizations can rival or exceed specialized hardware performance for large-scale sparse models.

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. 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

Motivation & Objective

  • To address the performance gap between CPUs and GPUs in training large deep learning models by optimizing the SLIDE system for modern x86 architectures.
  • To explore underutilized CPU features—such as AVX-512, bfloat16, and memory access patterns—to accelerate sparse deep learning workloads.
  • To demonstrate that software-level optimizations can make commodity CPUs competitive with specialized hardware like GPUs for large-scale recommendation and NLP models.
  • To enable scalable, memory-efficient training of billion-parameter models on single CPU machines by exploiting sparsity and system-level optimizations.

Proposed method

  • Applying AVX-512 vectorization to accelerate dense computations in SLIDE’s sparse parameter updates by processing 16x 16-bit integers per instruction.
  • Integrating bfloat16 quantization for both weights and activations to reduce memory bandwidth and increase arithmetic intensity.
  • Implementing memory access optimizations to reduce DRAM latency and improve data locality in the randomized parameter update pipeline.
  • Combining vectorization, quantization, and memory optimizations into a unified, highly-tuned SLIDE implementation targeting Intel Xeon CPUs with AVX-512 support.
  • Using a C++-based SLIDE framework with minimal dependencies to ensure portability and performance on commodity x86 platforms.
  • Evaluating performance across large-scale recommendation and NLP datasets (Amazon-670K, WikiLSH-325K, Text8) under controlled conditions.

Experimental results

Research questions

  • RQ1Can AVX-512 vectorization significantly accelerate sparse deep learning workloads on modern CPUs?
  • RQ2To what extent does bfloat16 quantization improve training throughput in SLIDE without sacrificing model accuracy?
  • RQ3How much performance gain can be achieved through memory access optimizations in a randomized, sparse deep learning system?
  • RQ4Can a fully optimized CPU-based SLIDE implementation outperform GPU-optimized frameworks like TensorFlow on V100 for large-scale models?
  • RQ5What is the relative contribution of vectorization, quantization, and memory optimization to the overall speedup in SLIDE?

Key findings

  • Optimized SLIDE on Intel Xeon Platinum 8368 (CPX) achieves up to 15.5x faster training than TensorFlow on V100 GPU for the Text8 dataset.
  • On the Amazon-670K dataset, Optimized SLIDE on CPX is 7.8x faster than TF-GPU on V100 and 7.9x faster than TF-CPU on the same CPU.
  • AVX-512 vectorization alone reduces training time by up to 1.2x, demonstrating its significant impact on compute-bound phases.
  • BF16 quantization improves performance by up to 1.39x for Amazon-670K and WikiLSH-325K, though it degrades performance on Text8, indicating dataset-dependent effects.
  • Memory optimizations contribute the largest portion of the speedup, accounting for the majority of the 2–7x improvement beyond vectorization and quantization.
  • The optimized SLIDE maintains P@1 performance comparable to full-softmax baselines, confirming that accuracy is preserved despite aggressive optimizations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.