NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Two-dimensional Sparse Parallelism for Large Scale Deep Learning Recommendation Model Training

Xin Zhang, Quanyu Zhu, Liangbei Xu, Zain Huda, Wang Zhou, Jin Fang, Dennis van der Staay, Yuxi Hu, Jade Nie, Jiyan Yang, Chunzhi YangarXiv 2025 · DOI

Introduction

Training modern Deep Learning Recommendation Models (DLRMs) presents a significant scaling challenge. These models utilize embedding tables with trillions of parameters, which frequently exceed the memory capacity of individual GPUs. While Model Parallelism (MP)—sharding tables across GPUs—has been the standard solution, it encounters severe performance degradation when scaling to clusters of thousands of nodes.

Researchers at Meta have introduced Two-dimensional (2D) Sparse Parallelism, a hybrid strategy designed to overcome these bottlenecks. This approach enables nearly linear training speedups on up to 4,096 GPUs by optimizing communication patterns and memory utilization.

The Scalability Wall in DLRM Training

In DLRMs, sparse categorical features are mapped to dense vectors via massive embedding tables. Traditional model parallelism shards these tables across all available GPUs. However, at scales exceeding 1,000 GPUs, three primary issues emerge:

  1. The All-to-All Bottleneck: Every GPU must communicate with every other GPU to retrieve embeddings, creating a communication overhead that grows quadratically with the number of nodes.
  2. Activation Memory Explosion: Each GPU must store embedding activations for the entire global batch. As batch sizes increase to maintain throughput at scale, memory requirements often lead to Out-of-Memory (OOM) errors.
  3. The Straggler Effect: Load imbalances across thousands of shards mean the entire cluster is often throttled by the slowest GPU.

Methods: 2D Sparse Parallelism

The proposed 2D Sparse Parallelism architecture employs a hierarchical sharding strategy. The GPU cluster is divided into $M$ parallelism groups.

  • Intra-group Parallelism: Within each group of $N$ GPUs, embedding tables are sharded using standard model parallelism. This confines expensive all-to-all communication to a smaller, localized subset of the cluster.
  • Inter-group Parallelism: Each group maintains a full replica of all embedding tables (Data Parallelism) and processes a distinct slice of the global data batch.
The 2D Sparse Parallelism design shards tables within groups and replicates them across groups to reduce communication overhead.

Optimizer Adaptation

A key challenge in this 2D setup is that standard row-wise AdaGrad fails to maintain model accuracy. The accumulation of second-order moments across replicated groups causes the effective learning rate to shrink prematurely. To resolve this, the authors introduced Moment-scaled row-wise AdaGrad, which applies a scaling factor to the optimizer's state to preserve the training dynamics of the baseline model.

Experimental Results

The researchers evaluated 2D Sparse Parallelism on two industrial-scale models: a 0.5TB Click-Through Rate (CTR) model and a 1.7TB External Large Foundation Model (ExFM) for ads recommendation.

Performance and Efficiency

  • Linear Scaling: The system demonstrated nearly linear scaling in training speed up to 4,096 GPUs.
  • Throughput: For the CTR model, 2D parallelism nearly doubled the Queries Per Second (QPS) compared to traditional model parallelism.
  • Memory Optimization: Peak GPU memory usage was reduced by 10-20%, effectively pushing back the "memory wall" that causes OOM errors at high scales.
  • Load Balancing: The imbalance ratio (measuring the impact of stragglers) improved significantly, dropping from over 5.0 to under 2.0.

Accuracy Parity

The implementation of the moment-scaled optimizer was critical for maintaining model performance. By adjusting the scaling factor based on the number of groups, the researchers were able to close the Normalized Entropy (NE) gap, achieving parity with the baseline model parallelism approach.

The moment-scaling factor is essential for closing the accuracy gap (NE Gap) when scaling across multiple groups.

Conclusion and Future Work

2D Sparse Parallelism provides a robust framework for scaling DLRM training to massive GPU clusters. While it introduces some parameter replication overhead, the gains in communication efficiency and activation memory management are substantial. Future research directions include exploring FP8 quantization to reduce the memory footprint of replicated parameters and further optimizing inter-group synchronization (All-Reduce) latencies.

Summary updated

BibTeX
@misc{zhang2025two,
  author = {Xin Zhang and Quanyu Zhu and Liangbei Xu and Zain Huda and Wang Zhou and Jin Fang and Dennis van der Staay and Yuxi Hu and Jade Nie and Jiyan Yang and Chunzhi Yang},
  title = {{Two-dimensional Sparse Parallelism for Large Scale Deep Learning Recommendation Model Training}},
  year = {2025},
  eprint = {2508.03854},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.03854},
}
Figure