Deep Learning Training in Facebook Data Centers: Design of Scale-up and Scale-out Systems

Maxim Naumov, John Kim, Dheevatsa Mudigere, Srinivas Sridharan, Xiaodong Wang, Whitney Zhao, Serhat Yilmaz, Changkyu Kim, Hector Yuen, Mustafa Ozdal, Krishnakumar Nair, Isabel Gao, Bor-Yiing Su, Jiyan Yang, Mikhail SmelyanskiyarXiv 2020

Introduction

As Deep Learning Recommendation Models (DLRMs) have become the primary workload in modern industrial AI, traditional hardware architectures have struggled to keep pace with their unique resource demands. Facebook (now Meta) developed the Zion platform to address these challenges, creating a modular system that decouples CPU and accelerator subsystems to optimize for both massive memory capacity and high-performance compute.

The DLRM Resource Challenge

Unlike Computer Vision or Natural Language Processing models, recommendation models present a heterogeneous resource profile. They require high-performance floating-point math for dense Multi-Layer Perceptrons (MLPs) and massive memory capacity for sparse embedding tables that process categorical data.

DLRM architectural components and their corresponding hardware resource requirements.

As shown in the figure above, DLRMs are composed of distinct layers that stress different parts of a system: compute-heavy MLPs, communication-intensive feature interactions, and memory-intensive embedding lookups. Standard GPU-centric servers often lack the system memory needed for these massive embedding tables, which can reach hundreds of gigabytes.

The Zion Platform Architecture

To solve this "Goldilocks" problem, the Zion platform moves away from rigid, single-box designs. It consists of an 8-socket CPU server (Angels Landing) paired with an 8-accelerator subsystem (Emerald Pools). This configuration provides approximately 2 TB of aggregate memory capacity and 8 TB/s of aggregate memory bandwidth.

Key architectural innovations include:

  • Modular Hardware: Separating the CPU and accelerator complexes allows for independent scaling and the use of massive system DDR memory to supplement accelerator HBM.
  • OCP Accelerator Module (OAM): A standardized form factor that enables a vendor-agnostic approach, allowing the system to host various AI chips or GPUs.

Hybrid Parallelism and Communication

Zion is designed to support hybrid parallelism, which is essential for scaling DLRM training across multiple nodes. Because the model components have different needs, they utilize different synchronization patterns.

Comparison of allreduce (data-parallel) and all2all (model-parallel) communication patterns.

As illustrated in the diagram:

  1. Data-Parallelism (allreduce): Used for MLPs. Every worker maintains a copy of the model and processes different data, synchronizing gradients globally.
  2. Model-Parallelism (all2all): Used for Embedding Tables. Because these tables are too large to replicate, they are partitioned across nodes. This requires an all2all shuffle to exchange features between workers, which often becomes the primary scaling bottleneck.

Key Insights and Results

Facebook's analysis revealed that for DLRMs, a Fully-Connected (FC) network topology is up to 3x more efficient than a traditional Ring topology because it minimizes the "hops" required for global all2all traffic. Furthermore, the implementation of GPUDirect RDMA (GDR) provided a 2x speedup by allowing accelerators to communicate directly over the network, bypassing the host CPU.

In production environments, Zion demonstrated nearly linear throughput scaling up to 32 nodes (256 GPUs) while maintaining model quality. This scalability is further bolstered by the use of asynchronous training, which prevents individual slow nodes ("stragglers") from delaying the entire cluster.

Future Directions

While Zion represents a significant leap forward, the rapid growth of model complexity continues to push hardware limits. Future systems will need even higher memory bandwidth to overcome DDR bottlenecks and must be co-designed—integrating hardware, network topology, and software algorithms—to handle the increasingly complex traffic patterns of next-generation recommendation systems.

Summary updated

BibTeX
@misc{naumov2020deep,
  author = {Maxim Naumov and John Kim and Dheevatsa Mudigere and Srinivas Sridharan and Xiaodong Wang and Whitney Zhao and Serhat Yilmaz and Changkyu Kim and Hector Yuen and Mustafa Ozdal and Krishnakumar Nair and Isabel Gao and Bor-Yiing Su and Jiyan Yang and Mikhail Smelyanskiy},
  title = {{Deep Learning Training in Facebook Data Centers: Design of Scale-up and Scale-out Systems}},
  year = {2020},
  eprint = {2003.09518},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.09518},
}
Figure