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

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

TL;DR

FedCross is a novel Federated Learning (FL) framework that replaces the traditional single global model with multiple "middleware" models that interact through cross-aggregation. By allowing these models to learn from each other in a fine-grained way, FedCross helps them converge into flatter, more stable regions of the loss landscape, significantly boosting accuracy in challenging non-IID (heterogeneous) data scenarios without increasing communication costs.

What Problem Does This Paper Address?

Standard Federated Learning, typically using the FedAvg algorithm, follows a "one-to-multi" scheme: a central server sends a single global model to various clients, who train it on their local data and send updates back. The server then averages these updates.

The fatal flaw? Real-world data is rarely "Independent and Identically Distributed" (IID). When clients have very different datasets (non-IID), their models want to move in conflicting directions. Simple averaging at the server acts like a blunt instrument, often destroying the specialized knowledge learned by individual clients and causing the global model to get stuck in "sharp ravines"—regions of the loss landscape that perform well on specific training data but generalize poorly to others.

A motivating example showing how FedAvg gets stuck in sharp ravines while FedCross finds flat optimal solution areas.

Methods

The authors introduce FedCross, which shifts from "one-to-multi" to a "multi-to-multi" training scheme.

  1. Middleware Models: Instead of one global model, the server maintains a set of $K$ "middleware" models.
  2. Random Dispatching: In each round, the server sends these $K$ models to $K$ selected clients. Each client receives exactly one model.
  3. Local Training & Upload: Clients train their assigned model locally and send it back.
  4. Multi-Model Cross-Aggregation: This is the core innovation. Rather than averaging everything, the server updates each middleware model by fusing it with a "collaborative model" selected from the other uploads. This fusion uses a weight $\alpha$ (e.g., 0.99), allowing a model to retain most of its own progress while slowly absorbing knowledge from another.
  5. Collaborative Model Selection (CoModelSel): The authors tested several strategies for picking which models should "talk" to each other. They found that the Lowest Similarity strategy—pairing models that are the most different—often yields the best results by forcing models to reconcile diverse knowledge.
  6. Deployment: A single global model is only generated at the very end (or for testing) by averaging all middleware models.
Fig. 2. The FedCross Framework.

To speed up training, they also proposed Propeller Models (using multiple collaborative models per update) and Dynamic $\alpha$ (starting with more aggressive fusion and gradually becoming more conservative).

Datasets

The researchers evaluated FedCross against five major benchmarks:

  • CIFAR-10 & CIFAR-100: Standard image datasets, modified with a Dirichlet distribution to simulate varying levels of data heterogeneity (non-IID).
  • FEMNIST: A naturally non-IID dataset of handwritten characters.
  • Shakespeare: A text dataset based on the plays of William Shakespeare, where each speaking role is a client.
  • Sent140: A sentiment analysis dataset based on Twitter.

Key Insights and Ideas

  • Flat Valleys for the Win: The most significant insight is that FedCross guides models toward "flat valleys" in the loss landscape. Models in these regions are less sensitive to small parameter changes, leading to much better generalization across diverse client data.
  • Fine-Grained vs. Coarse-Grained: Traditional FedAvg is "coarse-grained"—it forces all models to become one immediately. FedCross is "fine-grained," allowing models to maintain their individual trajectories while slowly nudging them toward a common, stable intersection.
  • Zero Extra Communication: Remarkably, FedCross achieves these gains without increasing the amount of data sent over the network. Each client still only downloads and uploads one model per round, just like in FedAvg.

Key Results

FedCross consistently outperformed state-of-the-art methods like FedProx, SCAFFOLD, and FedGen across all tested models (CNN, ResNet-20, VGG-16, and LSTM).

  • Accuracy Boost: On the CIFAR-10 dataset using a VGG-16 model, FedCross outperformed the best baseline by 9.16% in IID scenarios and 6.37% in highly non-IID scenarios ($\beta=0.1$).
  • Stability: Learning curves for FedCross showed significantly fewer fluctuations compared to baselines, indicating a more stable convergence process.
  • Efficiency: While it may take more rounds to reach peak performance initially, it eventually achieves higher accuracy than any other method can reach, even with unlimited time.
Comparison of communication overhead and categories between FedCross and baselines.

Limitations and Future Work

  • Initial Convergence Speed: On very large models like VGG-16, FedCross can be slower to start than traditional methods because the middleware models take time to exchange enough knowledge to form a strong aggregate.
  • Model Homogeneity: Currently, FedCross requires all middleware models to share the same architecture. The authors noted that handling heterogeneous models (clients with different neural network structures) is a promising direction for future research.
  • Hyperparameter Tuning: The fusion weight $\alpha$ is a critical hyperparameter that requires careful setting to balance local learning and global knowledge exchange.

Summary updated

Abstract

As a promising distributed machine learning paradigm, Federated Learning (FL) has attracted increasing attention to deal with data silo problems without compromising user privacy. By adopting the classic one-to-multi training scheme (i.e., FedAvg), where the cloud server dispatches one single global model to multiple involved clients, conventional FL methods can achieve collaborative model training without data sharing. However, since only one global model cannot always accommodate all the incompatible convergence directions of local models, existing FL approaches greatly suffer from inferior classification accuracy. To address this issue, we present an efficient FL framework named FedCross, which uses a novel multi-to-multi FL training scheme based on our proposed multi-model cross-aggregation approach. Unlike traditional FL methods, in each round of FL training, FedCross uses multiple middleware models to conduct weighted fusion individually. Since the middleware models used by FedCross can quickly converge into the same flat valley in terms of loss landscapes, the generated global model can achieve a well-generalization. Experimental results on various well-known datasets show that, compared with state-of-the-art FL methods, FedCross can significantly improve FL accuracy within both IID and non-IID scenarios without causing additional communication overhead.
BibTeX
@inproceedings{hu2024fedcross,
  author = {Ming Hu and Peiheng Zhou and Zhihao Yue and Zhiwei Ling and Yihao Huang and Anran Li and Yang Liu and Xiang Lian 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