[Paper Review] Consensus Control for Decentralized Deep Learning
This paper identifies consensus distance—the average discrepancy between model parameters across devices—as the key factor affecting generalization in decentralized deep learning. By controlling consensus distance adaptively during training, the authors achieve performance on par with centralized training, even on sparse topologies like rings, through principled communication control that balances efficiency and model quality.
Decentralized training of deep learning models enables on-device learning over networks, as well as efficient scaling to large compute clusters. Experiments in earlier works reveal that, even in a data-center setup, decentralized training often suffers from the degradation in the quality of the model: the training and test performance of models trained in a decentralized fashion is in general worse than that of models trained in a centralized fashion, and this performance drop is impacted by parameters such as network size, communication topology and data partitioning. We identify the changing consensus distance between devices as a key parameter to explain the gap between centralized and decentralized training. We show in theory that when the training consensus distance is lower than a critical quantity, decentralized training converges as fast as the centralized counterpart. We empirically validate that the relation between generalization performance and consensus distance is consistent with this theoretical observation. Our empirical insights allow the principled design of better decentralized training schemes that mitigate the performance drop. To this end, we provide practical training guidelines and exemplify its effectiveness on the data-center setup as the important first step.
Motivation & Objective
- To understand why decentralized training often underperforms centralized training despite similar optimization convergence.
- To identify the root cause of the generalization gap in decentralized deep learning, particularly in data-center settings with i.i.d. data.
- To develop a principled method for controlling consensus distance during training to improve generalization without sacrificing communication efficiency.
- To validate that consensus distance is a critical, tunable parameter influencing model performance across diverse architectures and communication topologies.
Proposed method
- Introduces consensus distance as a metric measuring the average deviation of model parameters from the global mean across devices.
- Proposes adaptive consensus control that dynamically adjusts communication frequency or local update steps to maintain an optimal consensus distance.
- Employs gossip averaging for decentralized parameter aggregation, with control over the number of local updates per communication round to modulate consensus distance.
- Uses spectral gap analysis of communication topologies (e.g., ring, exponential graphs) to relate network structure to consensus convergence speed.
- Applies the method across multiple benchmarks: ResNet-20 on CIFAR-10, ImageNet-32, and a downsampled Transformer on Multi30k.
- Employs phase-wise training control—adjusting consensus distance in early vs. later training phases—based on empirical insights into performance dynamics.
Experimental results
Research questions
- RQ1What causes the generalization gap between centralized and decentralized deep learning training in data-center settings?
- RQ2How does consensus distance—the average deviation of model parameters across devices—affect training and test performance?
- RQ3Is there an optimal consensus distance that maximizes generalization performance, and does it vary across training phases?
- RQ4Can adaptive consensus control be used to achieve centralized-level performance in decentralized training while preserving communication efficiency?
- RQ5How do different communication topologies (e.g., ring, exponential graph) and learning algorithms (e.g., Adam) interact with consensus distance in decentralized training?
Key findings
- When consensus distance remains below a critical threshold, decentralized training converges at the same rate as centralized training, confirming theoretical convergence equivalence.
- In ResNet-20 training on CIFAR-10 with 64 workers on a ring topology, decentralized training achieves 89.58% test accuracy, compared to 92.71% with All-Reduce, demonstrating a significant generalization gap.
- Adaptive consensus control with optimal consensus distance (e.g., via local update steps) improves test accuracy: on a time-varying exponential graph, performance peaks at 93.13% with 0.25×φ^ema_t, surpassing the baseline of 92.64%.
- The initial training phase is pivotal: maintaining low consensus distance early on significantly improves final generalization, while higher consensus distance in later phases can be beneficial.
- For Transformer models on Multi30k, decentralized Adam fails to generalize due to divergent local moment buffers; learning rate tuning cannot resolve this, underscoring the need for consensus control.
- Empirical results confirm a diminishing return effect: reducing consensus distance further below the critical threshold yields no additional performance gains, validating the existence of an optimal consensus distance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.