Federated Selective Aggregation for Knowledge Amalgamation

Donglin Xie, Ruonan Yu, Gongfan Fang, Jie Song, Zunlei Feng, Xinchao Wang, Li Sun, Mingli SongarXiv 2022 · DOI

Introduction

Training state-of-the-art deep learning models typically requires massive computational resources and access to vast, proprietary datasets. While many organizations possess high-quality pre-trained models, they are often unable to share them due to privacy, security, or intellectual property (IP) concerns. This creates a "model-sharing dilemma" where valuable knowledge remains siloed.

Existing paradigms like Knowledge Distillation (KD) generally require full access to the teacher model, while standard Federated Learning (FL) assumes all participants share the same task and architecture. Knowledge Amalgamation (KA) typically operates in a centralized environment. To bridge these gaps, we introduce Federated Selective Aggregation (FedSA), a framework that enables a student model to learn a new target task by selectively amalgamating knowledge from multiple decentralized, private teacher models without exposing training data or internal model weights.

The FedSA Framework

FedSA addresses the agnostic setup where teachers' tasks, data, and architectures differ and must remain private. The framework consists of three primary components designed to facilitate decentralized knowledge transfer.

Overview of the FedSA (FedKA) framework showing the selective aggregation of knowledge from multiple decentralized servers to a target model.

1. Dynamic Knowledge Selection

Not all teachers are equally beneficial for a specific target task. To prevent "negative transfer"—where irrelevant information from a teacher confuses the student—FedSA employs a saliency-based selection mechanism. By analyzing how a teacher's internal layers respond to "probe" data from the target task, the system generates a transferability score. This allows the framework to adaptively select the most relevant teachers in each training round, recognizing that the utility of specific teachers may shift as the student model matures.

2. Selective Aggregation (The Messenger Approach)

To maintain strict privacy, the central server does not access teacher weights directly. Instead, it sends a copy of the student model (a "local student") to the teacher's server. This local student performs feature-based knowledge distillation on-site, using the teacher's intermediate layers as "hints." Only the updated student parameters are returned to the central server for aggregation, ensuring the teacher's IP remains protected.

3. Task Adaptation

Following the aggregation of multi-teacher knowledge, the student model undergoes a final adaptation phase. In this stage, the task-specific head (or decoder) is trained on the limited labeled data available for the new target task to fine-tune performance for the specific application.

Experimental Evaluation

The authors evaluated FedSA across several challenging benchmarks to test its versatility and efficiency:

  • Single-Task Amalgamation: Using CIFAR-10 and CIFAR-100 as target tasks, decentralized teachers were pre-trained on non-overlapping subsets of ImageNet.
  • Multi-Task Amalgamation: Using the Taskonomy dataset (4 million images across 26 visual tasks), the framework was tested on its ability to learn entirely new tasks (e.g., depth estimation or semantic segmentation) by pulling relevant logic from diverse specialized teachers.

Key Results and Insights

Superior Performance and Efficiency

FedSA consistently outperformed standard federated baselines. On CIFAR-100, FedSA achieved 73.49% accuracy, surpassing FedMD+ (70.28%) and FedAvg+ (62.91%). Furthermore, the framework demonstrated remarkable data efficiency; in a 1% labeled data setting on CIFAR-10, FedSA reached 77.15% accuracy, compared to only 40.00% when training from scratch.

Architectural Agnosticism

The framework proved highly flexible regarding model architectures. It successfully amalgamated knowledge even when teachers utilized ResNet architectures while students were built on VGG, MobileNet, or Wide-ResNet backbones.

Privacy as a Priority

By treating model weights as sensitive IP, FedSA shifts the focus of federated learning from just data privacy to model privacy. The "messenger student" approach provides a robust method for extracting value from proprietary models without compromising their internal structure.

Limitations and Future Directions

While FedSA offers a powerful solution for decentralized knowledge amalgamation, it faces certain challenges:

  • Communication Overhead: Transferring student model parameters between servers can be bandwidth-intensive for large-scale models.
  • Information Leakage: Although weights are not shared, the distillation process itself may theoretically leak subtle information about the teacher's training set, suggesting a need for further privacy hardening.
  • Granularity: Future iterations could move from model-level selection to layer-level selection, allowing students to assemble optimized "Frankenstein" models by picking specific layers from different teachers.

In conclusion, FedSA provides a scalable, privacy-preserving pathway for building specialized AI models by leveraging the collective intelligence of decentralized ecosystems.

Summary updated

BibTeX
@misc{xie2022federated,
  author = {Donglin Xie and Ruonan Yu and Gongfan Fang and Jie Song and Zunlei Feng and Xinchao Wang and Li Sun and Mingli Song},
  title = {{Federated Selective Aggregation for Knowledge Amalgamation}},
  year = {2022},
  eprint = {2207.13309},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.13309},
}
Figure