Inferensys

Glossary

Federated Distillation

A privacy-preserving technique where clients share model predictions on a public dataset instead of model parameters to transfer knowledge to a central model.
MLOps engineer reviewing model serving infrastructure on laptop, container orchestration visible, technical workspace.
PRIVACY-PRESERVING KNOWLEDGE TRANSFER

What is Federated Distillation?

Federated distillation is a privacy-enhancing distributed learning paradigm where clients share model predictions on a public, unlabeled reference dataset instead of sharing private model parameters or gradients.

Federated distillation is a distributed machine learning technique that transfers knowledge between a central server and decentralized clients by exchanging soft labels (prediction logits) on a consensus public dataset. Unlike Federated Averaging (FedAvg), which requires homogeneous model architectures to aggregate weights, this method enables heterogeneous model architectures across clients. The server aggregates these anonymized predictions to train a global student model, decoupling knowledge transfer from the structural constraints of local models.

This paradigm provides inherent privacy benefits by eliminating the direct transmission of gradients, which are susceptible to gradient leakage and model inversion attacks. The shared predictions reveal only the output behavior on non-sensitive public data, not the private training data or internal parameters. However, the technique relies on the availability of a representative public dataset and may require additional defenses, such as differential privacy, to prevent membership inference from the aggregated soft labels.

PRIVACY-PRESERVING KNOWLEDGE TRANSFER

Key Features of Federated Distillation

Federated distillation enables collaborative model training without sharing raw data or model parameters. Instead, clients exchange soft labels on a public, unlabeled dataset, transferring knowledge while preserving architectural privacy and reducing communication overhead.

01

Knowledge via Soft Labels

Instead of sharing gradients or weights, each client generates prediction vectors (logits) on a public reference dataset. These soft labels capture the client's learned decision boundaries and class similarities. The central server aggregates these predictions to train a global model, effectively distilling the collective intelligence without exposing private model architectures or local data distributions.

100x
Less Communication vs. FedAvg
02

Architectural Heterogeneity

A core advantage over standard federated averaging: clients can use completely different model architectures. One client might use a ResNet while another deploys a lightweight MobileNet. Because only predictions on a public dataset are exchanged—not model parameters—the system is agnostic to each client's internal design, enabling participation from devices with vastly different compute capabilities.

03

Defense Against Gradient Leakage

Traditional federated learning is vulnerable to gradient inversion attacks, where shared parameter updates are mathematically reversed to reconstruct private training samples. Federated distillation eliminates this attack vector entirely by never transmitting gradients. The information bottleneck of sharing only output predictions provides a natural, robust defense against model inversion and membership inference.

04

Public Dataset Dependency

The technique requires an unlabeled, task-relevant public dataset that all clients and the server can access. This dataset acts as the transfer medium for knowledge. The quality and distribution of this public data critically impact performance: it must be sufficiently representative of the task domain. In practice, this can be sourced from open repositories, synthetic data generation, or a held-out non-sensitive dataset provided by the coordinating party.

05

Co-Distillation Variant

In the co-distillation paradigm, there is no central server. Clients exchange model predictions directly in a peer-to-peer fashion, each using the received soft labels to regularize or train their own local model. This decentralized approach eliminates the single point of failure and trust concentration, making it suitable for consortiums where no single entity should control the global model.

06

Communication Efficiency

By transmitting only logit vectors for a fixed public dataset instead of full model weights, federated distillation dramatically reduces bandwidth requirements. A typical model update in FedAvg might be hundreds of megabytes, while a batch of soft labels is measured in kilobytes. This makes the technique particularly viable for edge devices, mobile networks, and cross-silo settings with constrained or expensive connectivity.

FEDERATED DISTILLATION EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about federated distillation, a privacy-preserving knowledge transfer technique that shares model predictions instead of model parameters.

Federated distillation is a privacy-preserving distributed learning paradigm where clients collaboratively train a global model by exchanging model predictions (logits) on a public, unlabeled reference dataset rather than sharing private model parameters or gradients. The process works as follows: each client trains a local model on its private data, then generates soft-label predictions on a shared public dataset. These predictions—which encode the client's learned knowledge as class probability distributions—are sent to a central server. The server aggregates these soft labels, often by averaging, and uses them to train a global student model via knowledge distillation. Crucially, because only predictions on non-sensitive public data are transmitted, the raw private data and model architecture remain local, providing a strong privacy barrier against gradient leakage and model inversion attacks. This approach also naturally handles heterogeneous model architectures, as clients can use different neural network designs while still contributing to a unified global model.

KNOWLEDGE TRANSFER PARADIGM COMPARISON

Federated Distillation vs. Federated Averaging (FedAvg)

A technical comparison of the two primary strategies for aggregating knowledge from decentralized clients without centralizing raw data.

FeatureFederated DistillationFederated Averaging (FedAvg)

Exchanged Artifact

Soft labels (logits) on a public dataset

Local model weights or gradients

Model Homogeneity Requirement

Communication Payload Size

Proportional to public dataset size × number of classes

Proportional to model parameter count (often millions)

Vulnerability to Gradient Leakage

Lower (no direct gradient sharing)

Higher (raw gradients susceptible to inversion)

Defense Against Model Poisoning

Inherent robustness via knowledge ensemble

Requires Byzantine-resilient aggregation (e.g., Krum)

Suitability for Non-IID Data

High (agnostic to local model architecture)

Moderate (weight divergence degrades global model)

Client Computational Overhead

Inference on public dataset only

Full local training (forward + backward pass)

Server Aggregation Complexity

Averages soft predictions (low compute)

Averages high-dimensional weight tensors

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.