Inferensys

Glossary

Federated Model Distillation

A communication-efficient aggregation strategy where clients share class scores or logits on a public dataset instead of model weights, transferring knowledge from a heterogeneous teacher ensemble to a student model.
Knowledge manager reviewing enterprise knowledge management system on laptop, document library visible, casual office.
COMMUNICATION-EFFICIENT AGGREGATION

What is Federated Model Distillation?

Federated model distillation is a communication-efficient aggregation strategy where clients share class scores or logits on a public, unlabeled dataset instead of transmitting large model weights, transferring knowledge from a heterogeneous teacher ensemble to a centralized student model.

Federated model distillation replaces the exchange of high-dimensional model parameters with the exchange of low-dimensional soft labels (logits) computed on a consensus public dataset. Each client acts as a teacher, generating predictions that reveal the relative similarities between classes learned from its private data. The server aggregates these logits to train a student model, effectively compressing the collective knowledge of the network without requiring homogeneous model architectures or exposing sensitive local gradients.

This paradigm is critical for cross-silo healthcare networks where institutional models may have incompatible architectures. By decoupling the training objective from the model structure, distillation enables collaboration between sites using different neural network topologies. The process inherently provides a degree of privacy, as raw data and model internals remain local, though the shared logits can still leak information and often require differential privacy noise injection for robust protection against model inversion attacks.

KNOWLEDGE TRANSFER

Key Features of Federated Distillation

Federated distillation replaces weight transfer with knowledge transfer, using class scores or logits on a public dataset to aggregate heterogeneous teacher models into a compact student model.

01

Logit-Based Aggregation

Instead of sharing model weights, clients share soft labels (logits) on a public, unlabeled dataset. The server averages these logits to create a consensus teacher ensemble, which distills knowledge into a global student model. This decouples aggregation from model architecture, allowing clients to use heterogeneous model topologies while still contributing to a unified global model.

02

Communication Efficiency

Distillation dramatically reduces communication overhead compared to weight transfer. Key benefits include:

  • Logit vectors are orders of magnitude smaller than model parameter tensors
  • Communication cost scales with the public dataset size, not model size
  • Enables participation from resource-constrained edge devices that cannot transmit full model weights
  • Typical compression ratios of 100x to 1000x over Federated Averaging
03

Heterogeneous Model Support

A defining advantage of distillation is architecture-agnostic aggregation. Clients can train models with different:

  • Neural network architectures (CNNs, transformers, MLPs)
  • Layer counts and widths
  • Optimization algorithms and hyperparameters This is critical in healthcare, where institutions may have varying computational resources and legacy model investments.
04

Privacy Preservation Mechanism

Distillation provides an additional privacy layer beyond federated learning. Clients never expose raw model parameters, only aggregated class predictions on public data. This mitigates:

  • Model inversion attacks that reconstruct training data from gradients
  • Membership inference attacks that determine if a record was in the training set
  • Architectural leakage that reveals proprietary model design choices Combined with differential privacy noise on logits, strong formal privacy guarantees are achievable.
05

Knowledge Distillation Loss Functions

The student model is trained using specialized loss functions that transfer dark knowledge from the teacher ensemble:

  • Kullback-Leibler divergence between softened teacher and student logits
  • Temperature scaling (T > 1) to reveal inter-class relationships learned by teachers
  • Combined with standard cross-entropy loss on any available labeled data
  • Optional attention transfer to align intermediate feature representations
06

Public Dataset Dependency

A key operational requirement is access to an unlabeled public proxy dataset that approximates the global data distribution. Considerations include:

  • Dataset must be representative enough to capture teacher knowledge
  • Can be sourced from open medical datasets or synthetically generated
  • Domain gap between public and private data reduces distillation quality
  • Federated data-free distillation variants eliminate this requirement using generative models
KNOWLEDGE DISTILLATION IN FEDERATED SETTINGS

Frequently Asked Questions

Clear, technical answers to the most common questions about how knowledge transfer works across decentralized clinical networks without sharing patient data or model weights.

Federated Model Distillation is a communication-efficient aggregation strategy where participating clients share only their model's output predictions (logits or soft labels) on a public, unlabeled reference dataset, rather than transmitting private model weights or gradients. A central server aggregates these predictions to train a student model that mimics the behavior of the ensemble of local teacher models. This process transfers the dark knowledge embedded in the teachers' soft probability distributions—capturing inter-class relationships—without exposing the underlying patient data or model architectures. The public dataset acts as a transfer medium, enabling knowledge to flow from heterogeneous, site-specific models into a single, globally robust student.

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.