Inferensys

Glossary

Federated Distillation

Federated distillation is a communication-efficient alternative to weight sharing where clients exchange only the soft labels or logits produced by their local models on a public or synthetically generated dataset, rather than sharing model parameters.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
COMMUNICATION-EFFICIENT FEDERATED LEARNING

What is Federated Distillation?

Federated distillation is a communication-efficient alternative to weight sharing where clients exchange only the soft labels or logits produced by their local models on a public or synthetically generated dataset, rather than sharing model parameters.

Federated distillation is a decentralized training paradigm where participating clients collaboratively train a global model by exchanging only the soft labels (logits or probability distributions) generated by their local models on a shared, unlabeled public dataset, rather than transmitting model weights or gradients. This approach decouples the communication payload size from the model architecture, making it agnostic to the number of parameters and enabling heterogeneous model architectures across clients.

The process typically involves each client computing predictions on a common distillation dataset, then sending these aggregated soft targets to a central server that uses them to train a student model via knowledge distillation. Unlike Federated Averaging (FedAvg), which requires identical model architectures, federated distillation supports model heterogeneity and drastically reduces bandwidth requirements, as the communication cost scales with the output dimension rather than the parameter count, making it ideal for cross-device scenarios with severe network constraints.

COMMUNICATION-EFFICIENT PARADIGM

Key Features of Federated Distillation

Federated distillation replaces the exchange of high-dimensional model weights with compact, information-dense soft labels, fundamentally decoupling communication cost from model size.

01

Logit-Based Knowledge Transfer

Clients exchange only the soft labels (logits or probability vectors) produced by their local models on a public or synthetically generated dataset, rather than sharing model parameters. This compresses the communication payload to the size of the output layer, which is typically orders of magnitude smaller than the model itself. The central server aggregates these predictions to train a global student model via knowledge distillation, where the soft targets reveal the dark knowledge of local models' decision boundaries.

02

Model-Agnostic Architecture

Unlike weight-sharing methods such as Federated Averaging (FedAvg), federated distillation imposes no constraints on local model architecture. Each client can independently choose its neural network topology, layer count, or even model family. This enables heterogeneous system design where resource-constrained edge devices deploy compact models while well-resourced institutions use large foundation models, all contributing to the same global consensus through a unified logit interface.

03

Co-Distillation Protocol

In co-distillation, the server maintains a public dataset (which may be unlabeled or synthetically generated) and distributes it to all clients. Each client runs inference on this dataset and returns the resulting logit vectors. The server aggregates these soft labels—typically via arithmetic averaging—and uses them as targets to train a global student model. This student can then be redistributed to clients, creating a bidirectional knowledge loop without exposing private local data.

04

Privacy Amplification via Distillation

Federated distillation provides an inherent privacy barrier because raw data and model weights never leave the client. Only aggregated predictions on a public dataset are transmitted. This can be further hardened with differential privacy by adding calibrated noise to the shared logits before transmission. The distillation process also acts as a natural defense against model inversion attacks, as the attacker receives only output distributions rather than the parameter space of the local model.

05

Communication Complexity Reduction

The communication cost scales with O(C × |D_pub|) where C is the number of classes and |D_pub| is the size of the public dataset, rather than the millions or billions of parameters in the model. For a 10-class problem with 10,000 public samples, each client transmits only 100,000 floating-point values per round. This represents a compression ratio exceeding 99.9% compared to transmitting a ResNet-50, making federated distillation viable over bandwidth-constrained hospital networks.

06

Ensemble Distillation for Global Consensus

The server aggregates logits from multiple clients to form an ensemble teacher. This ensemble captures the collective knowledge and uncertainty calibration of all participating models. The global student model is trained to mimic this ensemble's predictions, effectively distilling diverse local expertise into a single unified model. This approach is particularly robust to non-IID data distributions, as the ensemble naturally balances conflicting local patterns without the weight divergence issues that plague FedAvg.

COMMUNICATION PARADIGM COMPARISON

Federated Distillation vs. Federated Averaging

A technical comparison of the core mechanisms, payload characteristics, and architectural requirements distinguishing knowledge distillation from weight averaging in federated learning.

FeatureFederated DistillationFederated Averaging (FedAvg)

Shared Payload

Soft labels (logits) on public/consensus dataset

Model weights or weight deltas (gradients)

Payload Size Dependency

Scales with output dimension × public dataset size

Scales with total model parameter count

Model Architecture Homogeneity

Supports Heterogeneous Client Models

Primary Communication Bottleneck

Public dataset size and number of classes

Model parameter count (millions to billions)

Privacy Guarantee Mechanism

No direct weight sharing; only aggregate soft labels

Weight updates may leak instance-level information

Convergence Sensitivity to Non-IID Data

Moderate; relies on quality of consensus dataset

High; client drift degrades global model accuracy

Bandwidth Efficiency (Large Models)

High; logit transmission is compact

Low; full weight matrices transmitted per round

FEDERATED DISTILLATION

Frequently Asked Questions

Clear answers to common questions about exchanging knowledge through model outputs rather than model parameters in privacy-sensitive, bandwidth-constrained environments.

Federated Distillation is a communication-efficient, privacy-preserving training paradigm where clients exchange only the soft labels (logits or probability distributions) produced by their local models on a public or synthetically generated reference dataset, rather than sharing model weights or gradients. The process works in three phases: first, a public dataset (which may be unlabeled and non-sensitive) is distributed to all clients. Second, each client uses its locally trained model to generate predictions on this dataset, producing a knowledge carrier—a matrix of logits. Third, these logits are sent to a central server, which aggregates them (typically by averaging) to create a consensus soft label set. This aggregated knowledge is then distilled back into each client's local model using a distillation loss (often Kullback-Leibler divergence) that encourages the local model to mimic the ensemble's predictions. Unlike Federated Averaging (FedAvg), which requires homogeneous model architectures, Federated Distillation supports heterogeneous model architectures across clients, as only the output layer dimensionality must match. This makes it ideal for cross-silo healthcare networks where different institutions may use different model architectures (CNNs, transformers, etc.) for the same diagnostic task.

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.