DFML: Decentralized Federated Mutual Learning

Yasser H. Khalil, Amir Hossein Estiri, Mahdi Beitollahi, Nader Asadi, Sobhan Hemati, Xu Li, Guojun Zhang, Xi Chen

Abstract

In the realm of real-world devices, centralized servers in Federated Learning (FL) present challenges including communication bottlenecks and susceptibility to a single point of failure. Additionally, contemporary devices inherently exhibit model and data heterogeneity. Existing work lacks a Decentralized FL (DFL) framework capable of accommodating such heterogeneity without imposing architectural restrictions or assuming the availability of additional data. To address these issues, we propose a Decentralized Federated Mutual Learning (DFML) framework that is serverless, supports nonrestrictive heterogeneous models, and avoids reliance on additional data. DFML effectively handles model and data heterogeneity through mutual learning, which distills knowledge between clients, and cyclically varying the amount of supervision and distillation signals. Extensive experimental results demonstrate consistent effectiveness of DFML in both convergence speed and global accuracy, outperforming prevalent baselines under various conditions. For example, with the CIFAR-100 dataset and 50 clients, DFML achieves a substantial increase of +17.20% and +19.95% in global accuracy under Independent and Identically Distributed (IID) and non-IID data shifts, respectively.

Introduction

Standard Federated Learning (FL) typically relies on a central server to aggregate model updates from participating devices. This architecture introduces significant communication bottlenecks and creates a single point of failure. While Decentralized FL (DFL) aims to mitigate these issues by removing the server, it faces significant challenges regarding heterogeneity.

In real-world deployments, devices vary significantly in hardware capabilities, leading to model heterogeneity. Furthermore, data is often non-Independent and Identically Distributed (non-IID) across devices, causing local models to diverge and forget global knowledge. Most existing DFL algorithms require participants to use identical model architectures to facilitate weight averaging. As shown in the comparison below, DFML is the first framework to simultaneously address server dependency, nonrestrictive model heterogeneity, and the requirement for additional public data.

Comparison of DFML with existing federated learning frameworks.

Methodology

DFML introduces a serverless architecture where clients interact directly. The framework relies on three core components: Decentralized Mutual Learning, Cyclical Scheduling, and Peak Model management.

Decentralized Mutual Learning

To overcome the limitations of weight averaging in heterogeneous environments, DFML employs Knowledge Distillation (KD). In each communication round, a client is randomly selected as an "aggregator." Other participating "sender" clients transmit their models to this aggregator. Instead of averaging weights, the aggregator uses its local private data as a transfer set. The models undergo mutual learning, where they are trained to mimic each other's output probabilities (logits). This allows diverse architectures—such as CNNs and Vision Transformers—to exchange knowledge effectively without requiring identical layers or widths.

The DFML system architecture illustrating the mutual learning process at an aggregator client.

Cyclical Alpha Scheduling and Peak Models

A critical challenge in mutual learning is the balance between the local supervision signal (learning from ground-truth labels) and the distillation signal (learning from peers). DFML utilizes a cosine annealing scheduler to cyclically vary a weighting parameter, $\alpha$. This oscillation allows models to periodically focus on local features and then "reset" by absorbing broader knowledge from the group. To maintain stability despite these oscillations, each client preserves a "Peak Model"—a snapshot of the model's state when the distillation signal is at its maximum, ensuring the best global knowledge is retained.

Experimental Results

The framework was evaluated on benchmarks including CIFAR-10, CIFAR-100, and fine-grained datasets like Oxford Pets and Stanford Cars.

  • Accuracy Gains: DFML demonstrates superior performance, particularly in complex scenarios. On CIFAR-100 with 50 clients, it achieved accuracy improvements of +17.20% in IID settings and +19.95% in non-IID settings compared to decentralized FedAvg.
  • Efficiency: The framework achieves faster convergence, often reaching target accuracy levels 5x to 10x faster than traditional baselines.
  • Model Agnosticism: Experiments confirmed that larger models significantly enrich the collective knowledge pool, while smaller models benefit disproportionately by distilling high-quality features from their larger counterparts.

Conclusion

DFML represents a significant step toward robust, real-world decentralized AI. By eliminating the need for a central server and allowing for unrestricted model diversity without requiring extra data, it addresses the primary barriers to widespread DFL adoption. Future work will focus on reducing the computational load on aggregator clients and providing formal convergence proofs for the cyclical training approach.

Summary updated

BibTeX
@article{khalil2024dfml,
  author = {Yasser H. Khalil and Amir Hossein Estiri and Mahdi Beitollahi and Nader Asadi and Sobhan Hemati and Xu Li and Guojun Zhang and Xi Chen},
  title = {{DFML: Decentralized Federated Mutual Learning}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=I9HvzJbUbh},
}
Figure