An Upload-Efficient Scheme for Transferring Knowledge From a Server-Side Pre-trained Generator to Clients in Heterogeneous Federated Learning

Jianqing Zhang, Yang Liu, Yang Hua, Jian Cao

Abstract

Heterogeneous Federated Learning (HtFL) enables collaborative learning on multiple clients with different model architectures while preserving privacy. Despite recent research progress, knowledge sharing in HtFL is still difficult due to data and model heterogeneity. To tackle this issue, we leverage the knowledge stored in public pretrained generators and propose a new upload-efficient knowledge transfer scheme called Federated Knowledge-Transfer Loop (Fed-KTL). Our FedKTL can produce client-task-related prototypical image-vector pairs via the generator's inference on the server. With these pairs, each client can transfer preexisting knowledge from the generator to its local model through an additional supervised local task. We conduct extensive experiments on four datasets under two types of data heterogeneity with 14 kinds of models including CNNs and ViTs. Results show that our upload-efficient FedKTL surpasses seven state-of-the-art methods by up to 7.31% in accuracy. Moreover, our knowledge transfer scheme is applicable in scenarios with only one edge client.

Introduction

Federated Learning (FL) typically involves training a single global model across many clients. However, real-world "Heterogeneous" FL (HtFL) faces two massive hurdles: model heterogeneity, where clients require different architectures (CNNs vs. ViTs) based on hardware, and data heterogeneity, where local datasets are non-IID (not identically and independently distributed). Existing solutions often rely on sharing entire models, which incurs high communication costs, or sharing public datasets, which may not be relevant to the local task. FedKTL addresses these issues by using a server-side pre-trained generator as a "knowledge bridge," sharing only compact, unbiased class prototypes.

Methodology: The Federated Knowledge-Transfer Loop

FedKTL operates through a three-stage loop designed for maximum efficiency and privacy:

  1. Unbiased Prototype Generation (Client Side): Clients use a fixed ETF (Equiangular Tight Frame) classifier. This forces the model to produce "unbiased" prototypes—mathematically ideal representations of classes that are equally spaced, preventing the common classifier bias found in FL.
  2. Domain Alignment (Server Side): Clients upload these compact prototypes. The server uses a lightweight Feature Transformer ($F$) to map these prototypes into the latent space of a pre-trained generator (e.g., StyleGAN-XL). It employs Mean Squared Error (MSE) and Maximum Mean Discrepancy (MMD) losses to ensure the transformed vectors are both class-discriminative and valid inputs for the generator.
The impact of domain alignment on image generation. (a) Images from valid latent vectors, (b) random vectors, (c) raw client prototypes, and (d) prototypes aligned via the Feature Transformer. Alignment is crucial for generating task-relevant images.
  1. Knowledge Transfer (Loop Back): The generator produces prototypical image-vector pairs tailored to the clients' tasks. These are sent back to the clients, who perform an additional supervised local task: training their feature extractors to map the generator's images back to the corresponding latent vectors. This "injects" the generator's global knowledge into the client's local model.

Experimental Evaluation

The framework was evaluated on four standard image benchmarks: CIFAR-10, CIFAR-100, Tiny-ImageNet, and Flowers102. The experiments involved 14 different model architectures, simulating a truly heterogeneous environment.

Key Results

  • Superior Accuracy: FedKTL outperformed seven state-of-the-art HtFL methods by up to 7.31%.
  • Efficiency: Uploading a few vectors (prototypes) is orders of magnitude cheaper than uploading model weights, making FedKTL exceptionally upload-efficient.
  • Cloud-Edge Utility: The loop works even for a single edge client with limited data, where it improved accuracy by 97.29% compared to local training alone.
  • Generator Agnostic: The framework is versatile, successfully using both StyleGAN-XL and Stable Diffusion as the server-side knowledge source.

Discussion and Conclusion

FedKTL demonstrates that a pre-trained generator can act as a "universal translator" for knowledge transfer in HtFL. By focusing on prototype alignment rather than weight sharing, it achieves high accuracy with minimal communication overhead. While the method relies on the generator having some prior knowledge of the target classes, its flexibility across architectures and its performance in data-scarce scenarios make it a powerful tool for real-world federated systems. Future work may explore adapting this scheme for non-image modalities like text or audio.

Summary updated

BibTeX
@inproceedings{zhang2024upload,
  author = {Jianqing Zhang and Yang Liu and Yang Hua and Jian Cao},
  title = {{An Upload-Efficient Scheme for Transferring Knowledge From a Server-Side Pre-trained Generator to Clients in Heterogeneous Federated Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=cemyEvekVK},
}
Figure