Communication-Efficient TeraByte-Scale Model Training Framework for Online Advertising

Weijie Zhao, Xuewu Jiao, Mingqing Hu, Xiaoyun Li, Xiangyu Zhang, Ping LiarXiv 2022

Introduction

In the domain of online advertising, Click-Through Rate (CTR) prediction is a critical task that relies on processing ultra-high dimensional data. Modern models must handle hundreds of billions of features, resulting in parameters exceeding 10 trillion and storage requirements upwards of 10 Terabytes. Since high-end GPUs typically possess only 40-80GB of memory, these models cannot reside entirely on a single card.

Existing hierarchical solutions—where active parameters stay on the GPU while others are swapped to CPU RAM or NVMe SSDs—suffer from significant bottlenecks. Researchers at Baidu have addressed these through a hardware-algorithm co-design that optimizes both intra-node and inter-node communication, achieving a 4x speedup in training time with negligible impact on accuracy.

Hardware-Aware Workflow

The framework identifies that standard collective communication libraries often fail to account for non-uniform hardware topologies. To mitigate intra-node bottlenecks, the authors implemented several low-level optimizations:

  • Topology-Optimized Routing: Instead of treating all GPU links as equal, the system manually routes data to favor high-speed NVLink bridges over the slower PCIe bus. This includes using "middleman" GPUs to relay information based on physical wiring.
  • Core Binding and Direct I/O: Specific I/O tasks are pinned to CPU cores physically adjacent to the NVMe SSDs and GPUs. Furthermore, the system bypasses the operating system's standard page cache (Direct I/O), allowing the training framework to manage its own cache and reducing overhead by 10-20%.
Hardware topology of the training system, illustrating the complex interconnects between GPUs, CPUs, and storage.

The $k$-Step Adam Optimizer

Inter-node communication often becomes a crawl during distributed training as GPUs wait to synchronize parameters. To solve this, the authors introduced a $k$-step model merging algorithm specifically for the Adam optimizer.

In this scheme, each computing node performs $k$ local updates using the Adam optimizer (which maintains adaptive learning rates for every parameter) before merging its local model with the global server. While local SGD is common in federated learning, applying this to Adam at an industrial 10TB scale is a novel contribution. The authors provided theoretical proof that this method converges for non-convex problems, which is essential for deep learning stability.

The k-step Adam optimizer communication scheme between the server and distributed workers.

Key Results and Insights

The framework was evaluated using Baidu’s production ads system data, featuring approximately 100 billion sparse parameters. The results demonstrate that the "hardware-algorithm co-design" approach effectively eliminates traditional scaling bottlenecks:

  • Efficiency Gains: The optimized system is over 4x faster than the baseline. Intra-node GPU communication time was slashed by 90% for parameter pulling and 75% for pushing updates. Inter-node communication via GPUDirect RDMA saw reductions of up to 87%.
  • Accuracy Preservation: Despite the aggressive synchronization delay (setting $k$ as high as 200), the difference in Area Under the Curve (AUC) remained within a negligible 0.0002% range. This suggests that the extreme sparsity of CTR data allows for significant communication compression without losing predictive power.
  • Scalability: The $k$-step approach ensures that as more nodes are added to the cluster, the network does not become a total bottleneck, allowing for better linear scaling.

Limitations and Future Work

While highly effective, the $k$-step method requires careful hyperparameter tuning; if $k$ is too large, local models may diverge, preventing convergence. Additionally, many hardware optimizations are currently tailored to specific 8-GPU node topologies. Future work involves generalizing these routing strategies for diverse cloud configurations and extending the $k$-step logic to all parameter types, including the extremely large sparse embedding layers.

Summary updated

BibTeX
@misc{zhao2022communication,
  author = {Weijie Zhao and Xuewu Jiao and Mingqing Hu and Xiaoyun Li and Xiangyu Zhang and Ping Li},
  title = {{Communication-Efficient TeraByte-Scale Model Training Framework for Online Advertising}},
  year = {2022},
  eprint = {2201.05500},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.05500},
}
Figure