Abstract
Training large-scale deep learning models in distributed environments often faces challenges from data and hardware heterogeneity. We present RCD-SGD (Resource-Constrained Distributed SGD), a framework that utilizes submodular partitioning to create representative data subsets tailored to individual worker capacities. This approach effectively addresses the "straggler problem" by ensuring that faster workers process more data while maintaining feature-level diversity across all nodes. Experimental results on CIFAR-10 and CIFAR-100 demonstrate up to a 32% speedup in wall-clock training time and significant improvements in final model accuracy compared to existing decentralized methods.
Introduction
Distributing the workload of massive deep learning models across multiple workers is essential but hampered by two primary issues:
- Data Heterogeneity (Non-IID): Standard random partitioning often fails to provide workers with representative data slices. Even with balanced labels, the underlying feature distributions can vary significantly, leading to unstable gradients.
- Hardware Heterogeneity: In real-world clusters, GPUs often have varying compute powers. Assigning equal data loads causes faster GPUs to wait for slower ones (the "straggler problem"), leading to inefficient resource utilization.
Existing solutions typically address one issue at the expense of the other. RCD-SGD aims to solve both simultaneously by integrating hardware-aware data volume with feature-diverse partitioning.
Methodology: Ratio-Constrained Submodular Partitioning
RCD-SGD is a meta-algorithm designed to be integrated into decentralized training frameworks like D-PSGD or MATCHA. Its primary innovation is a two-pronged partitioning strategy:
- Ratio-Constrained Partitioning: Data volume is assigned proportionally to a worker’s compute capability. A worker with twice the speed receives twice the data, eliminating idle time at synchronization points.
- Submodular Optimization: The framework employs submodular functions, such as Facility Location and Graph Cut, to select representative subsets. This ensures that despite varying partition sizes, the feature distribution remains approximately IID across workers.
To handle the computational complexity of submodular selection ($O(n^2)$), the authors implement Class-Level Partitioning. By partitioning data class-by-class, complexity is reduced to $O(n^2/L)$, where $L$ is the number of classes. This optimization makes the approach feasible for large datasets like CIFAR-100, providing up to a 100x speedup in the pre-processing phase.
Experimental Setup and Results
The framework was evaluated on CIFAR-10 (ResNet-50) and CIFAR-100 (WideResNet). Feature vectors for similarity calculations were extracted using a pre-trained auto-encoder and compared via a Gaussian kernel.
Key Performance Metrics
- Wall-Clock Efficiency: RCD-SGD achieved a 32% reduction in training time on CIFAR-10 and a 30% reduction on CIFAR-100 compared to baseline D-PSGD.
- Accuracy Gains: On CIFAR-100, RCD-SGD improved the final accuracy of D-PSGD from 71.8% to 75.2%, a 3.4% absolute increase.
- Communication Efficiency: The high quality of the representative partitions allows for a 50% reduction in communication frequency without compromising convergence stability.
Discussion and Future Work
The success of RCD-SGD underscores that feature-level IID is critical for stabilizing decentralized training. By making hardware-awareness a "first-class citizen" in the partitioning step, the synchronization barrier is effectively removed.
However, some limitations remain. The method requires a pre-trained model for feature extraction, adding a one-time overhead. Additionally, the current model assumes static worker capabilities. Future research could explore dynamic partitioning to adapt to fluctuating compute power in real-time environments.
Summary updated