Inferensys

Glossary

Federated Knowledge Distillation

A privacy-preserving model compression technique where a global teacher model's knowledge is transferred to smaller local student models by sharing only output logits on a public or synthetic dataset, avoiding the exchange of private model gradients or raw data.
ML engineer working on model compression and quantization, laptop showing performance benchmarks, technical workspace.
DECENTRALIZED MODEL COMPRESSION

What is Federated Knowledge Distillation?

A privacy-preserving technique for transferring knowledge from a large, complex 'teacher' model to a smaller, efficient 'student' model across a decentralized network without sharing raw data or private model gradients.

Federated Knowledge Distillation (FKD) is a decentralized model compression paradigm where a global 'teacher' model's knowledge is transferred to local 'student' models at each institution by sharing only the teacher's output logits on a public or synthetic dataset, avoiding the exchange of private model gradients or raw patient data. This process allows smaller, deployable models to mimic the performance of a larger, collaboratively trained ensemble without centralizing sensitive information.

The core mechanism involves a central server distributing a proxy dataset to all participating healthcare nodes. Each node runs this data through its local model and the global teacher, then trains its student to match the teacher's softened probability distributions using Kullback-Leibler divergence. Only the aggregated, anonymized logit statistics are shared, making FKD inherently more communication-efficient and secure than traditional Federated Averaging for compressing large foundation models.

PRIVACY-PRESERVING MODEL COMPRESSION

Key Features of Federated Knowledge Distillation

Federated Knowledge Distillation (FKD) enables the transfer of knowledge from a large, complex teacher model to a smaller, efficient student model across a decentralized network without sharing raw data, model gradients, or the teacher's architecture. The core mechanism relies on exchanging only the teacher's output predictions on a public or synthetically generated dataset.

01

Logit-Based Knowledge Transfer

The fundamental mechanism of FKD is the exchange of soft labels (logits) rather than model parameters. The teacher model at each institution generates a probability distribution over classes for a public, unlabeled dataset. These soft labels, which contain rich information about inter-class similarities, are aggregated centrally and used to train a global student model. This avoids transmitting private gradients or model weights, significantly reducing the attack surface for model inversion.

100-1000x
Communication reduction vs. FedAvg
02

Heterogeneous Model Architecture Support

Unlike Federated Averaging, which requires all clients to share an identical model architecture, FKD is model-agnostic. Each institution can independently design its own teacher model—using different neural network depths, widths, or even entirely different model families (e.g., CNNs vs. Transformers)—optimized for its local hardware. The only requirement is a shared output space, enabling collaboration between institutions with vastly different computational resources.

03

Proxy Dataset Distillation

FKD requires a transfer set—an unlabeled, public, or synthetically generated dataset—to facilitate knowledge transfer. The teacher models generate predictions on this set, and the aggregated soft labels serve as the training target for the student. The quality and distribution of this proxy dataset are critical; techniques like Federated Synthetic Data Augmentation are often used to generate a representative transfer set that captures the diversity of the private, siloed data without exposing it.

04

Ensemble Distillation for Robustness

A powerful variant, Federated Ensemble Distillation, aggregates the knowledge of multiple independently trained teacher models into a single student. Instead of averaging model weights, the student learns from the collective wisdom of the entire teacher ensemble by training on their aggregated output distributions. This approach is inherently robust to non-IID data distributions and can mitigate the effects of a poorly performing or adversarial teacher node.

05

Privacy Amplification via Distillation

The distillation process itself provides a natural layer of privacy. By training the student only on aggregated, averaged soft labels from a proxy dataset, the direct influence of any single private data point is obscured. This can be formally combined with Differential Privacy by adding calibrated noise to the aggregated teacher logits before training the student, providing a mathematically provable privacy guarantee against membership inference attacks.

06

Cross-Silo Clinical Application

In healthcare, FKD allows a consortium of hospitals to collaboratively train a compact, deployable diagnostic model without sharing patient records. A large, compute-intensive teacher model at each hospital can be trained on rich, multi-modal patient data. The knowledge is then distilled into a lightweight student model suitable for deployment on edge devices in clinics or for real-time inference, all while maintaining strict HIPAA and GDPR compliance.

FEDERATED KNOWLEDGE DISTILLATION

Frequently Asked Questions

Clear, technical answers to the most common questions about transferring model intelligence across decentralized healthcare networks without moving raw patient data or model gradients.

Federated Knowledge Distillation (FKD) is a privacy-preserving model compression technique where a large, centrally aggregated 'teacher' model transfers its learned behavior to smaller 'student' models at each institution by sharing only the teacher's output predictions—called logits—on a public or synthetically generated reference dataset, rather than exchanging the model's internal parameters or gradients. The process works in three stages: first, a global teacher model is trained or aggregated using standard federated averaging. Second, this teacher generates soft labels (probability distributions over classes) on a non-sensitive, shared distillation dataset. Third, each local student model is trained to mimic the teacher's soft outputs on its own private data combined with the shared logits. Because only the teacher's final predictions are transmitted—not the model weights, gradients, or raw patient data—FKD provides a strong mathematical separation between the collaborative learning signal and the sensitive information residing at each hospital, making it compliant with HIPAA and GDPR requirements.

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.