Moss: Proxy Model-based Full-Weight Aggregation in Federated Learning with Heterogeneous Models

Yifeng Cai, Ziqi Zhang, Ding Li, Yao Guo, Xiangqun Chen

TL;DR

This paper introduces "Moss," a novel federated learning (FL) approach that enables full-weight aggregation of models with different architectures. By using proxy models, Moss overcomes the limitations of existing methods, leading to significantly improved accuracy, reduced training time, and lower energy consumption on heterogeneous devices.

What Problem Does This Paper Address?

Federated Learning (FL) is a powerful technique for training machine learning models collaboratively across multiple devices without sharing raw data. However, a major challenge arises in real-world scenarios involving mobile and IoT devices, which are inherently heterogeneous. This heterogeneity manifests in varying computational capabilities, leading to devices using different model architectures. Traditional FL requires all devices to have the same model architecture, which is impractical. Existing solutions for heterogeneous FL often resort to partial model aggregation (e.g., pruning or distillation), which can lead to suboptimal accuracy and increased training overhead. This paper addresses the problem of effectively aggregating models with diverse architectures to achieve the benefits of full-weight aggregation, which is known to maximize accuracy and minimize training overhead in homogeneous FL settings.

Methods

The core innovation of Moss is its proxy model-based full-weight aggregation strategy. It comprises three key components:

  • Proxy Model Construction (PROM): This is a one-time setup where the server constructs a set of homogeneous "proxy models," one for each distinct device model architecture. These proxy models act as intermediaries, simplifying the aggregation process.
  • Weight-wise Knowledge Transfer (WIRE): This component uses meta-learning to establish a mapping between the device models and their corresponding proxy models. It learns to transfer knowledge at both the layer-to-layer (transfer location) and neuron-to-neuron (transfer degree) levels, ensuring accurate knowledge transfer.
  • Fidelity-guided Aggregation (FILE): Instead of simply averaging all proxy models, FILE aggregates them based on their "fidelity," a measure of how well a proxy model aligns with the pre-aggregated model. This prioritizes higher-quality knowledge, leading to better overall performance.

The training pipeline involves devices training local models, uploading them to the server, where pre-aggregation, knowledge transfer to proxy models, fidelity-guided aggregation of proxy models, and finally, transfer back to device models occur iteratively.

Datasets

The paper evaluates Moss on three real-world FL applications using the following datasets:

  • Image Classification: CIFAR-10
  • Speech Recognition: Google Speech Command dataset
  • Human Activity Recognition: Depth HAR gesture recognition dataset

For each application, they simulate non-IID data distributions using Dirichlet distributions and also utilize a labeled public dataset for the server-side operations, ensuring it does not overlap with device data.

Key Insights and Ideas

  • Full-weight aggregation is achievable and beneficial even with heterogeneous models: The paper challenges the notion that heterogeneous architectures necessitate partial aggregation, demonstrating that a well-designed full-weight aggregation can preserve more knowledge and lead to better outcomes.
  • Proxy models simplify complex heterogeneous aggregation: By creating homogeneous proxy models, Moss effectively bridges the gap between diverse device models, making full-weight aggregation feasible without direct pairwise transformations.
  • Meta-learning is key for accurate knowledge transfer: The WIRE component's use of meta-learning to learn layer and weight mappings is crucial for accurately transferring knowledge between models of different architectures.
  • Fidelity-guided aggregation improves robustness: Prioritizing model updates based on their alignment with the pre-aggregated model (fidelity) prevents low-quality updates from degrading overall performance.
  • Moss is robust to unrelated public datasets and privacy constraints: Experiments show Moss maintains strong performance even when the public dataset is unrelated to the task and under differential privacy settings.

Key Results

Moss significantly outperforms existing state-of-the-art methods across various metrics:

  • Accuracy: Improves accuracy by up to 8.6 percentage points on average.
  • Training Time: Reduces training time by up to 62.9% on devices.
  • Energy Consumption: Decreases energy consumption by up to 6.1×.
  • Convergence Speed: Reduces FL rounds to convergence by an average of 39.9%.
  • Transmission Volume: Consumes less total network bandwidth than 9 out of 12 baselines.

Limitations and Future Work

  • Public Dataset Dependency: While Moss is robust to unrelated public datasets, it still relies on a public dataset for server-side operations. The paper notes that even a small public dataset (25%) can yield high performance, mitigating this concern.
  • Differential Privacy Impact: While Moss remains competitive under differential privacy, there is a noted decline in accuracy and convergence speed as privacy levels increase.
  • Future Work: The paper suggests that Moss can be combined with methods for handling heterogeneous data distributions to further improve performance. The compatibility of Moss with multi-party computation (MPC) for enhanced privacy in aggregation is also highlighted.

Summary updated

BibTeX
@article{cai2025moss,
  author = {Yifeng Cai and Ziqi Zhang and Ding Li and Yao Guo and Xiangqun Chen},
  title = {{Moss: Proxy Model-based Full-Weight Aggregation in Federated Learning with Heterogeneous Models}},
  journal = {Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.},
  year = {2025},
  url = {https://openreview.net/forum?id=n6xBFc6Odx},
}
Figure