Abstract
Distributed deep learning performance is frequently hampered by "straggler" nodes—individual workers that process data slower than the rest of the cluster, creating a bottleneck in Bulk Synchronous Parallel (BSP) training. We present AntDT, a unified and self-adaptive framework designed to mitigate the impact of both deterministic hardware heterogeneity and non-deterministic resource contention. AntDT introduces a stateful Dynamic Data Sharding (DDS) service that decouples data allocation from fault tolerance, allowing faster nodes to process more data without sacrificing data integrity. Experimental results demonstrate that AntDT achieves over a 3x speedup compared to state-of-the-art methods. In a large-scale production environment at Ant Group, the framework reduced the training time of a massive recommendation model from 27.8 hours to 5.4 hours, while maintaining a negligible system overhead of less than 0.44%.
1. Introduction
In the era of massive-scale deep learning, distributed training across hundreds or thousands of nodes is standard. However, the efficiency of these clusters is often dictated by the slowest member, a phenomenon known as the "straggler problem." In traditional Bulk Synchronous Parallel (BSP) configurations, all nodes must synchronize their gradients at the end of each iteration; if one node lags, the entire cluster idles.
Stragglers generally emerge from two primary sources:
- Hardware Heterogeneity: Clusters often comprise different GPU generations (e.g., NVIDIA V100s mixed with P100s). This creates "deterministic" stragglers where certain nodes are inherently slower due to hardware limitations.
- Resource Contention: In shared, non-dedicated environments, background processes may compete for CPU, memory, or network bandwidth, leading to "non-deterministic" transient or persistent performance degradation.
Existing mitigation strategies, such as backup workers or simple load balancing, often struggle to handle both types of stragglers simultaneously or do so at the cost of data integrity. AntDT addresses these challenges through a modular, pull-based architecture.
2. The AntDT Framework
AntDT is built upon four primary components that work in concert to monitor cluster health and dynamically adjust workloads.
2.1 Architecture and Components
- Stateful Dynamic Data Sharding (DDS) Service: The core of AntDT. Instead of static partitioning at the start of training, DDS maintains a global queue of data shards. It tracks the state of each shard (TODO, DOING, DONE) to ensure "at-least-once" processing.
- Monitor: This component collects real-time metrics, including throughput and node health, from all workers in the cluster.
- Controller: Acting as the central decision-maker, the Controller analyzes Monitor data to select the optimal mitigation strategy based on the current cluster state.
- Agent: A local process on each node that executes instructions from the Controller, such as adjusting local batch sizes or initiating a node restart.
2.2 Passive Load Balancing
Unlike proactive "push" models that migrate tasks between nodes—a process that is computationally expensive in machine learning—AntDT utilizes a "pull" mechanism. Fast workers naturally request and process more shards from the DDS, while slow workers process fewer. This inherent load balancing maximizes the utilization of every device in the cluster regardless of its individual speed.
3. Mitigation Strategies
AntDT provides two specialized implementations tailored to different cluster environments:
- AntDT-ND (Non-Dedicated): Designed for shared clusters where resource contention is common. It employs batch size adjustments to handle transient slowdowns and a "Kill-Restart" mechanism to recover from persistent stragglers that may be stuck due to severe resource interference.
- AntDT-DD (Dedicated): Optimized for heterogeneous GPU clusters. It utilizes Gradient Accumulation, allowing faster GPUs to process multiple mini-batches before the global synchronization step. This ensures that high-performance hardware is not left idling while waiting for older generations to complete a single batch.
4. Experimental Results
The framework was rigorously tested across diverse datasets and models, including the Criteo dataset (XDeepFM), ImageNet (ResNet-101 and MobileNets), and a massive Ant Group production dataset containing 2.7 billion samples for Alipay’s recommendation ranking.
4.1 Key Findings
- Efficiency Gains: AntDT outperformed state-of-the-art (SOTA) methods by more than 3x in heterogeneous environments.
- Production Impact: In a real-world deployment involving 280 CPU nodes, AntDT achieved a 5x reduction in training duration, cutting the time from 27.8 hours to 5.4 hours.
- Scalability and Overhead: The system maintains high efficiency even at scale. Tests with 1,000 workers showed that the framework's logic and synchronization overhead accounted for less than 0.44% of the total job completion time.
- Data Integrity: By tracking shard states, AntDT ensures that every sample is processed. This is vital for applications like fraud detection, where missing even a few "positive" samples can significantly degrade model accuracy.
5. Conclusion and Future Work
AntDT provides a robust, low-overhead solution to the straggler problem in distributed training. By decoupling data sharding from mitigation logic, it offers a flexible framework that adapts to various hardware and resource conditions. While the current implementation focuses on "at-least-once" semantics—which may result in minor data duplication—the authors note that this acts as a form of beneficial sampling in deep learning contexts. Future work includes refining the system for "at-most-once" guarantees and releasing AntDT as an open-source project to the broader research community.
Summary updated