OledFL: Unleashing the Potential of Decentralized Federated Learning via Opposite Lookahead Enhancement

Qinglun Li, Miao Zhang, Mengzhu Wang, Quanjun Yin, Li ShenarXiv 2024 · DOI

Abstract

Decentralized Federated Learning (DFL) eliminates the need for a central server but introduces significant challenges regarding model inconsistency, often referred to as client drift. We introduce OledFL, a novel framework that employs Opposite Lookahead enhancement (Ole). By initializing local training with a strategic "retraction" step, OledFL effectively mitigates client drift. Experimental results on CIFAR-10 and CIFAR-100 demonstrate that OledFL achieves up to an 8× speedup in convergence and a 5% improvement in test accuracy, outperforming both decentralized and centralized state-of-the-art baselines.

Introduction

Federated Learning (FL) typically relies on a central server for model aggregation, which can become a communication bottleneck or a single point of failure. Decentralized Federated Learning (DFL) addresses this by allowing clients to communicate directly with neighbors. However, DFL is highly susceptible to client drift: without central coordination, local models quickly diverge as they overfit to heterogeneous local data. This inconsistency leads to poor generalization and slow convergence compared to centralized methods.

Methodology: Opposite Lookahead Enhancement (Ole)

The core contribution of this work is the Ole initialization technique. Unlike standard lookahead optimizers that move forward to update a slow weight, Ole performs a retraction operation at the start of each communication round.

Instead of starting local training directly from the newly aggregated neighbor models ($x_i^t$), each client initializes its model at a point slightly "behind" its previous local optimum ($x_{i,K}^{t-1}$) relative to the aggregate. Mathematically, the initialization is defined as: $$x_{i,0}^t = x_i^t + \beta(x_i^t - x_{i,K}^{t-1})$$ where $\beta$ is the retraction coefficient. This "step back" forces the local optimization process to re-traverse the path toward consensus, strengthening mutual consistency among clients and preventing them from getting trapped in local, non-generalizable niches.

Conceptual comparison between DFedAvg and OledFL illustrating the retraction initialization.

OledFL is designed as a plug-in enhancement and was evaluated in two primary variants: OledFL-SGD (integrated with DFedAvg) and OledFL-SAM (integrated with Sharpness-Aware Minimization).

Experimental Setup

The framework was rigorously tested on CIFAR-10 and CIFAR-100 benchmarks under various non-IID (non-independent and identically distributed) conditions to simulate real-world decentralized environments:

  • Dirichlet Distribution ($\alpha$): Controls label heterogeneity, with smaller values (e.g., 0.3) indicating higher data diversity among clients.
  • Pathological Distribution: Limits clients to a small subset of classes (e.g., 2 out of 10 for CIFAR-10).

Key Results and Discussion

OledFL consistently demonstrates superior performance across all tested scenarios. Notably, OledFL-SAM achieved an accuracy of 84.45% on CIFAR-10 (Dir 0.3), significantly higher than the 79.37% achieved by the decentralized DFedSAM and even surpassing the 80.22% of the centralized FedSAM.

Test accuracy comparison across various non-IID settings on CIFAR-10, showing OledFL's superior convergence and final accuracy.

Convergence Speed and Resilience

OledFL reaches target accuracy levels up to 8× faster than the popular DFedAvg optimizer. Furthermore, the method is robust to different network topologies (Ring, Grid, Exponential) and consistently finds "flatter" minima. In deep learning, flatter minima are widely associated with better generalization on unseen data, explaining OledFL's robust performance.

Conclusion

OledFL effectively bridges the performance gap between decentralized and centralized federated learning. By introducing a simple retraction step, it mitigates client drift and accelerates convergence without the need for a central server. Future work will explore the application of Ole to Natural Language Processing (NLP) and its integration with communication compression techniques to further enhance efficiency.

Summary updated

BibTeX
@misc{li2024oledfl,
  author = {Qinglun Li and Miao Zhang and Mengzhu Wang and Quanjun Yin and Li Shen},
  title = {{OledFL: Unleashing the Potential of Decentralized Federated Learning via Opposite Lookahead Enhancement}},
  year = {2024},
  eprint = {2410.06482},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.06482},
}
Figure