FedCross: Towards Accurate Federated Learning via Multi-Model Cross Aggregation

Ming Hu, Peiheng Zhou, Zhihao Yue, Zhiwei Ling, Yihao Huang, Yang Liu, Mingsong Chen · DOI

Introduction

Federated Learning (FL) has emerged as a privacy-preserving paradigm for training machine learning models across decentralized edge devices. However, the standard approach, FedAvg, often struggles with non-IID (heterogeneous) data. When local datasets differ significantly—such as one user having images of cats and another having cars—local models drift toward divergent optima. Simply averaging these conflicting updates at the server often results in a global model that fails to generalize well, frequently getting trapped in "sharp" regions of the loss landscape.

The FedCross Framework

To address these challenges, FedCross introduces a "multi-to-multi" training scheme. Unlike FedAvg, which maintains a single global model, FedCross maintains a set of middleware models on the server. This approach allows for a more fine-grained exchange of knowledge between clients.

The FedCross architecture featuring multi-model cross-aggregation at the cloud server.

The FedCross workflow consists of four primary stages:

  1. Middleware Model Dispatching: The server dispatches $K$ distinct middleware models to $K$ participating clients.
  2. Local Training: Each client performs local optimization on its assigned model using private data.
  3. Model Uploading: Updated local models are returned to the cloud server.
  4. Multi-Model Cross-Aggregation: This is the core innovation. Instead of a global average, the server updates each middleware model by fusing it with a "collaborative model" selected from the other middleware models.

The fusion follows the formula: $$New\_Model = \alpha(Local\_Update) + (1-\alpha)(Collaborative\_Model)$$ where $\alpha$ is a weighting factor. The authors found that selecting the Lowest Similarity peer as the collaborative model yields the best results, as it forces models to incorporate the most diverse features.

Optimization and the Loss Landscape

A key motivation for FedCross is the pursuit of "flat" minima. In deep learning, flatter regions of the loss landscape are associated with better generalization. FedAvg's coarse-grained averaging often forces the model into sharp ravines that perform poorly on unseen data.

Comparison of loss landscapes: FedAvg tends toward sharp minima, while FedCross navigates toward flatter, more generalizable optimal areas.

By utilizing multiple middleware models and cross-pollinating them, FedCross effectively "bridges" the gap between disparate local optima. This allows the ensemble of models to navigate toward broader, flatter valleys in the loss landscape, as visualized in the comparison between FedAvg and FedCross.

Experimental Results

FedCross was evaluated across five benchmarks, including CIFAR-10/100 and FEMNIST for vision, and Shakespeare and Sent140 for language modeling. Data heterogeneity was controlled using a Dirichlet distribution.

The results demonstrate significant improvements over state-of-the-art baselines like FedProx, SCAFFOLD, and FedGen:

  • Accuracy Boost: On CIFAR-10 (VGG-16), FedCross achieved a 9.16% accuracy boost in IID settings and a 6.37% boost in highly non-IID settings ($\beta=0.1$).
  • Efficiency: Crucially, FedCross achieves these gains with zero additional communication overhead. Each client still only sends and receives one model per round, maintaining the same bandwidth requirements as FedAvg.
  • Stability: The training process exhibits fewer fluctuations, suggesting a more stable convergence path compared to traditional averaging methods.

Conclusion

FedCross represents a significant step forward in handling data heterogeneity in Federated Learning. By replacing the rigid "one-to-multi" scheme with a flexible "multi-to-multi" cross-aggregation strategy, it enables models to find more robust, generalizable solutions. Future work will focus on adapting the framework for system heterogeneity and automating the tuning of the fusion weight $\alpha$.

Summary updated

Abstract

Due to the remarkable performance in preserving data privacy for decentralized data scenarios, Federated Learning (FL) has been considered as a promising distributed machine learning paradigm to deal with data silos problems. Typically, conventional FL approaches adopts a one-to-multi training scheme, where the cloud server keeps only one single global model for all the involved clients for the purpose of model aggregation. However, this scheme suffers from inferior classification performance, since only one global model cannot always accommodate all the incompatible convergence directions of local models, resulting in a low convergence rate and classification accuracy. To address this issue, this paper presents an efficient FL framework named FedCross, which adopts a novel multi-to-multi FL training scheme based on our proposed similarity-based multi-model cross aggregation method. Unlike traditional FL methods, in each round of FL training, FedCross uses a small set of distinct intermediate models to conduct weighted fusion under the guidance of model similarities. In this way, the intermediate models used by FedCross can sufficiently respect the convergence characteristics of clients, thus leading to much fewer conflicts in tuning the convergence directions of clients. Finally, in the deployment stage, FedCross forms a global model for all the clients by performing the federated averaging on the trained immediate models.
BibTeX
@inproceedings{hu2024fedcross,
  author = {Ming Hu and Peiheng Zhou and Zhihao Yue and Zhiwei Ling and Yihao Huang and Yang Liu and Mingsong Chen},
  title = {{FedCross: Towards Accurate Federated Learning via Multi-Model Cross Aggregation}},
  booktitle = {ICDE},
  year = {2024},
  doi = {10.1109/icde60146.2024.00170},
}
Figure