Inferensys

Glossary

Knowledge Distillation Aggregation (FedKD)

A model fusion technique that aggregates local knowledge by matching the logit outputs or soft labels of a global student model to the ensemble of local teacher models, rather than averaging weights.
Developer working on RAG retrieval system, document chunks visible on screen, technical workspace with code editor.
MODEL FUSION TECHNIQUE

What is Knowledge Distillation Aggregation (FedKD)?

A model fusion technique that aggregates local knowledge by matching the logit outputs or soft labels of a global student model to the ensemble of local teacher models, rather than averaging weights.

Knowledge Distillation Aggregation (FedKD) is a federated model fusion technique where a global student model learns by matching the aggregated soft label predictions or logit outputs from an ensemble of local teacher models, rather than averaging their numerical weights. This transfers the dark knowledge of heterogeneous local models into a single compact global model.

In FedKD, each client trains a teacher model locally and shares only its output predictions on a public or synthetic dataset with the server. The server aggregates these soft labels via averaging or voting, then trains the global student model to mimic the consensus. This approach handles model heterogeneity—allowing clients to use different architectures—and provides an additional layer of privacy by avoiding direct gradient or weight sharing.

MECHANISM

Key Features of FedKD

Knowledge Distillation Aggregation (FedKD) replaces weight averaging with a teacher-student paradigm. A global student model learns from the ensemble of local teacher models by matching their output distributions, enabling heterogeneous model architectures and non-IID data fusion.

01

Logit-Based Knowledge Transfer

Instead of averaging parameter vectors, FedKD aggregates knowledge by matching the soft labels (logit outputs) of local teacher models. The global student model is trained to minimize the Kullback-Leibler (KL) divergence between its softened output distribution and the aggregated outputs of the teacher ensemble. This operates on a model-agnostic level, allowing teachers and the student to have completely different architectures.

02

Heterogeneous Model Support

A primary advantage over Federated Averaging (FedAvg) is the ability to fuse models with non-identical architectures. Local clients can train CNNs, RNNs, or Transformers of varying widths and depths. The global server only requires access to their output logits on a public or synthetically generated dataset, abstracting away the internal parameter structure and enabling cross-modal fusion.

03

Ensemble Distillation on the Server

The server acts as a central distillation hub. It queries all local teacher models with an unlabeled public dataset to collect their predictive distributions. These distributions are aggregated (e.g., via simple averaging) to form a consensus teacher ensemble. The global student model is then trained via standard knowledge distillation to mimic this ensemble, effectively compressing distributed knowledge into a single deployable model.

04

Privacy Preservation via Output Exchange

FedKD enhances privacy by design because raw model parameters and gradients are never transmitted to the server. Only the model's output logits on a public reference dataset are shared. This breaks the direct link to private training data, providing a natural defense against gradient inversion and membership inference attacks, though it requires careful curation of the distillation dataset to prevent information leakage.

05

Robustness to Non-IID Data

FedKD demonstrates strong resilience to statistical heterogeneity. Since the global student learns from the aggregated output behavior rather than conflicting parameter directions, it avoids the weight divergence problem common in FedAvg. The distillation process naturally smooths out local biases, converging to a solution that captures the consensus knowledge across diverse, non-IID clinical data silos.

06

Communication Efficiency Trade-offs

While FedKD eliminates the need to transmit large model weights, it introduces a query-based communication cost. The server must send the public dataset to clients, and clients must return logit vectors for every sample. This is efficient for large models with small output spaces but can become a bottleneck for tasks with high-dimensional outputs. Techniques like logit quantization are often applied to mitigate this overhead.

KNOWLEDGE DISTILLATION AGGREGATION

Frequently Asked Questions

Clear, technically precise answers to the most common questions about how Federated Knowledge Distillation (FedKD) aggregates model knowledge without sharing weights or raw data.

Knowledge Distillation Aggregation (FedKD) is a federated model fusion technique that aggregates local knowledge by matching the logit outputs or soft labels of a global student model to the ensemble of local teacher models, rather than averaging their weight parameters. In a typical FedKD round, each client trains a local teacher model on its private data. These teachers then generate predictions on a public, unlabeled distillation dataset—often a held-out proxy corpus or synthetically generated samples. The central server aggregates these soft predictions, typically by averaging the logits or class probabilities across all teachers, and uses the resulting consensus labels to train a single global student model via standard supervised distillation loss. This approach bypasses the weight-space alignment challenges of Federated Averaging (FedAvg), making it inherently robust to heterogeneous model architectures and non-IID data distributions across clinical sites.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.