Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving privacy. However, standard FL typically requires hundreds of communication rounds between a central server and distributed clients, such as smartphones or IoT devices. This high communication frequency is often impractical due to bandwidth limitations, battery constraints, and intermittent connectivity.
One-Shot Federated Learning (OSFL) aims to address these challenges by training a high-performing global model in a single communication round. Despite its promise, existing OSFL methods often face a "trilemma" of data dependency (requiring public auxiliary data), resource intensity (requiring heavy foundation models on clients), and difficulty handling data heterogeneity (varying styles across clients). This paper introduces FedLMG (Local Model-Guided Diffusion), a novel framework that overcomes these hurdles by leveraging server-side Diffusion Models guided by lightweight client model weights.
The FedLMG Framework
FedLMG shifts the heavy computational burden of data generation to the server while keeping client-side requirements minimal. The framework operates in three distinct steps:
- Local Training: Clients train standard, lightweight classification models on their private local data. Once training is complete, they upload only the model weights to the central server.
- Image Generation: This is the core innovation of FedLMG. The server utilizes a pre-trained Diffusion Model (such as Stable Diffusion) to generate a synthetic dataset. To ensure these images accurately reflect the clients' private distributions, the server uses the uploaded client models as "guides." The generation process is optimized using a dual-loss function: a Classification Loss to ensure category correctness and a Batch Normalization (BN) Loss to capture the specific style and context of the client data.
- Model Aggregation: With a representative synthetic dataset now available on the server, a final global model is trained. The authors explore several strategies for this, including simple fine-tuning and various forms of knowledge distillation.
Technical Innovations: BN Layers as Style Fingerprints
A key insight of FedLMG is that Batch Normalization (BN) layers in a trained model act as a compact "fingerprint" of the training data's distribution. By matching the mean and variance statistics stored in these layers during the server-side generation process, the Diffusion Model can be steered to produce images that mimic the artistic style, lighting, and background of the original private data without ever seeing the raw images.
Furthermore, because standard client models are trained on clean images while Diffusion Models operate on noisy ones, FedLMG employs an "inverted guidance" mechanism. At each step of the diffusion process, the model predicts a clean version of the image ($s_0$ prediction) before passing it to the client model for guidance, ensuring the gradients provided by the client model are meaningful.
Evaluation and Results
The researchers evaluated FedLMG against several state-of-the-art OSFL and multi-round FL methods using three large-scale datasets characterized by significant domain shift: OpenImage, DomainNet, and NICO++.
Performance and Efficiency
- Superior Accuracy: FedLMG consistently outperformed competing OSFL methods like FedDF and DENSE. Notably, on the DomainNet dataset, FedLMG achieved an average accuracy of approximately 35.9%, surpassing even the traditional multi-round FedAvg algorithm (~29.1%).
- Computational Gains: By offloading the Diffusion Model to the server, FedLMG reduced client-side computational costs (measured in FLOPs) by over 60x compared to other diffusion-based federated methods.
- Data Augmentation Effects: Interestingly, the global model trained on synthetic data occasionally outperformed models trained on the original "real" data. This suggests that the Diffusion Model acts as a potent form of data augmentation, effectively filling gaps in the original client datasets.
Conclusion and Future Work
FedLMG represents a significant step forward for one-shot federated learning, providing a path to high-accuracy global models with minimal client overhead and zero raw data sharing. While the method requires substantial server-side GPU resources and relies on the general knowledge of pre-trained Diffusion Models, its ability to reconstruct complex data distributions via model weights is a powerful tool for privacy-preserving distributed learning. Future research may focus on providing formal Differential Privacy guarantees for the guidance mechanism and adapting the framework for extremely niche data domains where pre-trained models may lack prior knowledge.
Summary updated