Inferensys

Glossary

Federated Distillation

A communication-efficient federated learning approach where clients share soft labels or model outputs on a public reference dataset instead of exchanging large model weight matrices.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
COMMUNICATION-EFFICIENT FEDERATED LEARNING

What is Federated Distillation?

A privacy-preserving training paradigm where institutions share only the predictive outputs of their local models on a public reference dataset, rather than exchanging the large, raw model weight matrices themselves.

Federated Distillation is a communication-efficient federated learning technique where clients collaboratively train a global model by exchanging soft labels—the output probability distributions of their local models on a shared, unlabeled public reference dataset—instead of transmitting massive model weight updates. This process leverages knowledge distillation, where the aggregated consensus of client predictions serves as a teacher signal to train a central student model, drastically reducing the bandwidth required per communication round while preserving the privacy of the raw, sensitive data that remains isolated on each local node.

Unlike Federated Averaging (FedAvg), which requires homogeneous model architectures across all clients to average weight matrices, federated distillation is inherently heterogeneous-model tolerant. Each institution can independently design its local model architecture optimized for its specific data distribution, sharing only the resulting behavioral outputs. This decoupling of model topology from the aggregation process is particularly critical in cross-silo medical imaging consortia, where different hospitals may use incompatible scanner hardware or proprietary diagnostic models, yet must still collaboratively learn from a diverse patient population without exposing protected health information.

COMMUNICATION-EFFICIENT FEDERATED LEARNING

Key Features of Federated Distillation

Federated distillation replaces the exchange of massive model weight matrices with lightweight, aggregated model outputs (logits or soft labels) computed on a public reference dataset. This paradigm dramatically reduces bandwidth requirements and decouples client model architectures from the global consensus, enabling heterogeneous device participation in privacy-sensitive medical imaging consortia.

01

Ensemble Distillation for Global Consensus

The central server aggregates soft label predictions from diverse client models on an unlabeled public reference dataset to train a single, high-performing global model. This process distills the collective knowledge of the federation without requiring any client to expose its private data or model architecture.

  • Mechanism: Clients upload logit vectors, not weight matrices
  • Benefit: The global model learns from the consensus of specialized local experts
  • Medical context: A central diagnostic model learns to match the diagnostic accuracy of multiple specialized hospital models without ever seeing a single patient scan
10-100x
Communication Size Reduction vs. FedAvg
02

Heterogeneous Model Agnosticism

Unlike weight-averaging methods such as FedAvg, federated distillation imposes no requirement that client models share identical architectures. Each hospital can train its own bespoke neural network—a Vision Transformer at one site, a CNN at another—tailored to its specific computational resources and data characteristics.

  • Decoupled design: Clients are free to innovate on model architecture independently
  • Hardware flexibility: A well-resourced academic hospital can deploy a large model while a rural clinic uses a lightweight mobile-friendly architecture
  • Legacy compatibility: Existing institutional models can join the federation without modification
03

Co-Distillation and Mutual Learning

In co-distillation variants, clients not only contribute to a global model but also receive distilled knowledge back to improve their own local models. This creates a bidirectional knowledge transfer loop where every participant continuously benefits from the collective intelligence of the network.

  • Process: Client A's model is trained to mimic the ensemble predictions of all other clients on the public dataset
  • Outcome: Each local model gains exposure to patterns present in other hospitals' data distributions without direct data access
  • Use case: A small hospital's model learns to recognize rare pathologies it has never encountered locally by distilling knowledge from larger institutions' diagnostic outputs
04

Privacy Amplification via Soft Labels

Transmitting model outputs rather than gradients or weights provides an inherent layer of privacy protection. Soft labels are significantly more difficult to exploit for model inversion attacks compared to raw gradient updates. When combined with differential privacy noise injection on the transmitted logits, the privacy guarantees are further strengthened.

  • Reduced attack surface: Logits contain far less information about individual training samples than gradients
  • Compatible with DP: Adding calibrated Gaussian noise to soft labels before transmission provides formal privacy bounds
  • Regulatory alignment: This approach aligns with HIPAA and GDPR requirements for minimizing data exposure in multi-institutional collaborations
05

Public Reference Dataset Selection

The choice of the public reference dataset is the critical design decision in federated distillation. This unlabeled dataset must be representative enough to elicit meaningful soft label distributions from all client models. In medical imaging, this often involves curating a diverse set of scans from publicly available repositories or generating synthetic images.

  • Requirements: Dataset must span the input distribution space of all participating clients
  • Sources: Public repositories like The Cancer Imaging Archive (TCIA), or synthetically generated medical images
  • Risk: A poorly chosen reference set leads to distillation on out-of-distribution samples, degrading global model quality
06

Communication Round Efficiency

A single communication round in federated distillation transmits only the output logits for each sample in the reference dataset, rather than millions of weight parameters. This makes the approach viable over constrained hospital network links and enables participation from edge devices with limited upstream bandwidth.

  • Bandwidth profile: Communication cost scales with the size of the reference dataset × number of classes, not model size
  • Comparison: A ResNet-50 has ~25 million parameters; transmitting logits for 10,000 images with 100 classes requires only 4MB per round
  • Practical impact: Enables real-world cross-hospital training without requiring dedicated high-speed research network infrastructure
FEDERATED DISTILLATION

Frequently Asked Questions

Clear, technical answers to the most common questions about communication-efficient federated learning using knowledge distillation.

Federated Distillation is a communication-efficient federated learning paradigm where clients share soft labels (model outputs or logits) on a public reference dataset instead of exchanging large model weight matrices. The process works by having each client train a local model on its private data, then use that model to generate predictions on an unlabeled, publicly available distillation dataset. These predictions—which capture the rich, dark knowledge of the local model—are sent to a central server. The server aggregates these soft labels from all clients and uses them to train a global student model via knowledge distillation. Crucially, because only prediction vectors are transmitted rather than full model parameters, the communication cost is decoupled from model size, making this approach ideal for training large neural networks across bandwidth-constrained hospital networks.

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.