Mosaic: Data-Free Knowledge Distillation via Mixture-of-Experts for Heterogeneous Distributed Environments
Junming Liu, Yanting Gao, Siyuan Meng, Yifei Sun, Aoqi Wu, Yufei Jin, Yirong Chen, Ding Wang, Guosun Zeng
TL;DR
Mosaic tackles federated learning under simultaneous data and model heterogeneity by using per-client lightweight generators to synthesize privacy-preserving data and forming a Mixture-of-Experts teacher from class-specific client models. A prototype-informed meta model fuses expert predictions, and knowledge distillation then transfers collective knowledge to a global student using the generator ensemble. The approach relies on a one-shot generator upload to reduce communication and avoid unstable aggregation, while leveraging an ensemble-based, robust teacher to improve generalization across heterogeneous clients. Empirical results on seven image-classification benchmarks show Mosaic achieving state-of-the-art performance under challenging heterogeneity regimes, with strong robustness and practical privacy advantages, and it opens avenues for privacy-preserving, scalable FL in diverse hardware environments.
Abstract
Federated Learning (FL) is a decentralized machine learning paradigm that enables clients to collaboratively train models while preserving data privacy. However, the coexistence of model and data heterogeneity gives rise to inconsistent representations and divergent optimization dynamics across clients, ultimately hindering robust global performance. To transcend these challenges, we propose Mosaic, a novel data-free knowledge distillation framework tailored for heterogeneous distributed environments. Mosaic first trains local generative models to approximate each client's personalized distribution, enabling synthetic data generation that safeguards privacy through strict separation from real data. Subsequently, Mosaic forms a Mixture-of-Experts (MoE) from client models based on their specialized knowledge, and distills it into a global model using the generated data. To further enhance the MoE architecture, Mosaic integrates expert predictions via a lightweight meta model trained on a few representative prototypes. Extensive experiments on standard image classification benchmarks demonstrate that Mosaic consistently outperforms state-of-the-art approaches under both model and data heterogeneity. The source code has been published at https://github.com/Wings-Of-Disaster/Mosaic.
