Skip to main content
QUICK REVIEW

[Paper Review] High-performance, Distributed Training of Large-scale Deep Learning Recommendation Models.

Dheevatsa Mudigere, Yuchen Hao|arXiv (Cornell University)|Apr 12, 2021
Stochastic Gradient Optimization TechniquesComputer Science56 references18 citations
TL;DR

This paper presents a co-designed software-hardware system for high-performance distributed training of large-scale deep learning recommendation models (DLRMs), achieving 40X speedup over prior systems. It combines a PyTorch-based training stack with the ZionEX platform, enabling training of models up to 12 trillion parameters via optimized data/model parallelism, hierarchical embedding sharding, reduced-precision communication, and a high-bandwidth, low-latency network infrastructure.

ABSTRACT

Deep learning recommendation models (DLRMs) are used across many business-critical services at Facebook and are the single largest AI application in terms of infrastructure demand in its data-centers. In this paper we discuss the SW/HW co-designed solution for high-performance distributed training of large-scale DLRMs. We introduce a high-performance scalable software stack based on PyTorch and pair it with the new evolution of Zion platform, namely ZionEX. We demonstrate the capability to train very large DLRMs with up to 12 Trillion parameters and show that we can attain 40X speedup in terms of time to solution over previous systems. We achieve this by (i) designing the ZionEX platform with dedicated scale-out network, provisioned with high bandwidth, optimal topology and efficient transport (ii) implementing an optimized PyTorch-based training stack supporting both model and data parallelism (iii) developing sharding algorithms capable of hierarchical partitioning of the embedding tables along row, column dimensions and load balancing them across multiple workers; (iv) adding high-performance core operators while retaining flexibility to support optimizers with fully deterministic updates (v) leveraging reduced precision communications, multi-level memory hierarchy (HBM+DDR+SSD) and pipelining. Furthermore, we develop and briefly comment on distributed data ingestion and other supporting services that are required for the robust and efficient end-to-end training in production environments.

Motivation & Objective

  • Address the growing infrastructure demand of large-scale deep learning recommendation models (DLRMs) in production data centers.
  • Overcome the performance bottlenecks in distributed training of DLRMs with trillions of parameters.
  • Develop a scalable, high-throughput training system that maintains deterministic optimizer updates while maximizing hardware utilization.
  • Enable end-to-end training efficiency through integrated data ingestion and supporting services in production environments.
  • Achieve significant speedup over previous systems without sacrificing model accuracy or training stability.

Proposed method

  • Design and deploy the ZionEX platform with a dedicated scale-out network featuring high bandwidth, optimal topology, and efficient transport protocols.
  • Implement a PyTorch-based training stack that natively supports both model parallelism and data parallelism across distributed workers.
  • Develop hierarchical sharding algorithms that partition embedding tables along row and column dimensions and balance load across multiple workers.
  • Integrate high-performance core operators with full support for deterministic optimizer updates, preserving training reproducibility.
  • Leverage reduced-precision communication, multi-level memory hierarchy (HBM, DDR, SSD), and communication pipelining to reduce latency and bandwidth pressure.
  • Build distributed data ingestion pipelines and supporting services to ensure robust, scalable, and efficient end-to-end training in production.

Experimental results

Research questions

  • RQ1How can distributed training of DLRMs with up to 12 trillion parameters be made scalable and efficient in a production data center environment?
  • RQ2What system-level optimizations are required to achieve 40X speedup over prior training systems for large-scale DLRMs?
  • RQ3How can embedding table sharding be hierarchically partitioned across workers to balance load while minimizing communication overhead?
  • RQ4To what extent can reduced-precision communication and memory hierarchy optimization improve training throughput without compromising training stability?
  • RQ5What role do co-designed software and hardware components play in enabling deterministic, high-performance training of large-scale models?

Key findings

  • The system achieves a 40X speedup in time to solution compared to previous training systems for large-scale DLRMs.
  • The platform supports training of DLRMs with up to 12 trillion parameters, demonstrating scalability to the largest known recommendation models.
  • Hierarchical sharding of embedding tables enables effective load balancing across distributed workers while minimizing communication bottlenecks.
  • Reduced-precision communication and pipelining significantly reduce training latency and improve hardware utilization.
  • The integration of HBM, DDR, and SSD memory layers enables efficient handling of large model states and gradients.
  • The system maintains fully deterministic optimizer updates, ensuring training reproducibility 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.