EFFICIENT DECENTRALIZED DEEP LEARNING BY DYNAMIC MODEL AVERAGING

Michael Kamp, Linara Adilova, Joachim Sicking, Fabian Hüger, Peter Schlicht, Tim Wirtz · DOI

Abstract

Decentralized deep learning faces significant communication bottlenecks when training models across distributed nodes. Standard Federated Learning (FedAvg) relies on periodic synchronization, which often results in redundant communication or slow adaptation to data shifts. This paper introduces a Dynamic Model Averaging protocol that triggers synchronization only when local models diverge beyond a predefined threshold. This approach significantly reduces communication overhead—by up to an order of magnitude—while maintaining competitive accuracy and providing superior adaptability to concept drift.

Introduction

Training deep neural networks typically requires massive, centralized datasets. However, in many real-world applications—such as autonomous vehicle fleets or mobile device networks—moving raw data to a central server is impractical due to bandwidth constraints and privacy concerns. Federated Learning (FedAvg) addresses this by training models locally and periodically averaging their weights. Despite its popularity, periodic averaging is often inefficient, consuming communication budget even when models have converged, and rigid, struggling to adapt to "concept drift" where data distributions change suddenly.

Methods: Dynamic Averaging

The proposed Dynamic Model Averaging protocol ($D$) shifts the synchronization trigger from a fixed timer to a divergence-based threshold. The core idea is to communicate only when local updates provide significant new information.

Figure 1: (a) Illustration of local models and their average on a non-convex loss surface. (b) Comparison of error over time, highlighting the inefficiency of periodic synchronization compared to dynamic approaches.

Key Components:

  • Divergence Threshold ($\Delta$): Each local learner monitors the squared Euclidean distance between its current weights $f_t^i$ and a reference model $r$ (typically the last global average). A synchronization "violation" is signaled only when $\|f_t^i - r\|^2 > \Delta$.
  • Incremental Balancing: To further conserve bandwidth, a central coordinator can query a subset of nodes to determine if their local changes mutually cancel out. If the collective average remains within the "safe zone," a full global synchronization is avoided.
  • Theoretical Foundation: The authors demonstrate that for Stochastic Gradient Descent (SGD), this dynamic approach maintains theoretical loss bounds comparable to periodic averaging, provided the loss surface remains locally convex.

Experimental Evaluation

The protocol was rigorously tested across three diverse scenarios:

  1. MNIST Classification: A baseline for standard image recognition.
  2. Synthetic Concept Drift: A binary classification task where the underlying data distribution changes at random intervals, simulating dynamic environments.
  3. Deep Driving: A complex autonomous driving task where a model predicts steering angles from camera feeds in a simulator, mimicking human behavior.

Discussion and Key Insights

The dynamic protocol reveals several critical advantages over traditional methods:

  • Adaptive Communication: Communication frequency naturally scales with the difficulty of the learning task. During periods of high loss or gradient volatility, the system syncs more frequently; as the model stabilizes, communication drops significantly.
  • Handling Concept Drift: In synthetic tests, communication spikes immediately following a data drift and decays as learners adapt. This "on-demand" allocation is a major improvement over fixed schemes that either over-communicate during stable periods or under-communicate during transitions.
  • Managing Non-Convexity: While averaging in non-convex spaces is generally risky, maintaining a tight divergence threshold $\Delta$ ensures that models stay within a locally convex region, preserving the effectiveness of the average.
  • Regularization via Heterogeneity: Interestingly, a small degree of noise in model initialization can act as a regularizer, though excessive heterogeneity can still lead to divergence.

Results and Conclusion

The Dynamic Model Averaging protocol demonstrates substantial efficiency gains. On the MNIST dataset, it achieved over a 50% reduction in communication with only a 1.9% loss in accuracy. In concept drift scenarios, it outperformed periodic methods by an order of magnitude in communication efficiency. Furthermore, in the "Deep Driving" task, the dynamic protocol proved more reliable at keeping the vehicle on track while using significantly less data.

While highly effective, the protocol's sensitivity to outliers and the need for manual tuning of the threshold $\Delta$ remain areas for future research. Automating threshold adaptation and improving robustness to non-IID data are promising directions for further optimizing decentralized deep learning.

Summary updated

BibTeX
@inproceedings{kamp2018efficient,
  author = {Michael Kamp and Linara Adilova and Joachim Sicking and Fabian Hüger and Peter Schlicht and Tim Wirtz},
  title = {{EFFICIENT DECENTRALIZED DEEP LEARNING BY DYNAMIC MODEL AVERAGING}},
  booktitle = {ECML/PKDD},
  year = {2018},
  doi = {10.1007/978-3-030-10925-7\_24},
}
Figure