- Introduced by
- Jeong, W. et al. / multiple independent groups
- Year
- 2020
- Type
- Distributed semi-supervised learning framework
- Family
- Machine learning
What does it do?
Semi-supervised federated learning (SSFL) trains one shared model across many decentralized clients, each holding private data, when some clients or some local samples lack labels.
It combines the coordination structure of federated learning with semi-supervised techniques such as pseudo-labeling and consistency regularization, so unlabeled data held on each client can still contribute to training without being centralized.
The intuition behind the method
Federated learning trains a model across devices without moving raw data to a central server. Semi-supervised learning uses unlabeled samples alongside labeled ones. SSFL combines the two: each client trains on whatever labels it holds, applies pseudo-labels or consistency losses to its unlabeled samples, and uploads model updates (gradients or weight deltas) to a central aggregator. The aggregator merges these updates into a new global model, which is sent back for the next round. Raw samples stay on the device, but the updates themselves can still leak information, so protections such as differential privacy or secure aggregation are often added on top.
History
Federated learning was introduced by McMahan et al. in 2017 at Google to train models on mobile devices without centralizing data. Work on semi-supervised federated learning appeared around 2020, when Jeong et al. proposed federated semi-supervised learning with inter-client consistency. Zhang et al. (2021) introduced SemiFed, which combines consistency and pseudo-labeling in the federated setting.
When to use it
Choose SSFL when data sits on devices or in institutions that cannot share raw records because of privacy, regulation or bandwidth constraints, and when only a small fraction of that data is labeled. Medical imaging across hospitals, mobile keyboard prediction and industrial sensor monitoring are typical settings. Do not use it when the data can be centralised without privacy risk, since centralized semi-supervised learning is simpler to build and tune. If every client has enough labels, standard federated learning is sufficient. SSFL is also a poor fit when the communication budget is tight, because each round requires uploading and downloading full model updates across many rounds, and heavy local training per round adds on-device cost.
Limitations and considerations
- Each round requires an upload and a download of model updates, so communication cost accumulates over the many rounds needed for convergence.
- With non-IID client data, local updates can pull the global model toward well-labeled clients, which slows convergence and can hurt performance on other clients.
- Pseudo-labels produced early in training, before the global model is stable, can be noisy and can reinforce their own errors.
- Several hyperparameters interact: the consistency loss weight, the pseudo-label confidence threshold, and the number of local epochs must be tuned together.
- The stopping rule relies on a labeled holdout kept at the server; if no such set is available, the validation-plateau criterion described above cannot be applied as written.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Raw samples stay on each device and only model updates are exchanged, which limits direct exposure of individual records.
- Unlabeled data held by clients, which supervised federated training would leave unused, contributes through pseudo-labels or consistency losses.
- Clients do not need equal amounts of labels: labeled-only and unlabeled-only clients can take part in the same training run.
- Differential privacy and secure aggregation can be added on top of the update exchange for stronger protection.
- Annotation effort is concentrated on the labeled subset, so less labeling is needed than in fully supervised federated learning.
Applications
- Cross-hospital medical image analysis where each hospital has few annotated scans.
- Mobile next-word prediction using vast unlabeled typing logs across user devices.
- Industrial predictive maintenance across factory sites with rare labeled fault events.
- Federated NLP fine-tuning on private enterprise documents with minimal human annotation.
- Autonomous-vehicle perception trained across a fleet where only a fraction of frames are annotated.
How it works
How it works
Labels may be missing at the client level, where some clients hold only unlabeled data, or at the sample level, where a single client holds both labeled and unlabeled samples. The split may be designed or may arise naturally from how data is collected. At the start of each communication round, the server sends the current shared global model (often initialised from a pre-trained checkpoint) to the participating clients.
Within each client, labeled samples are trained with a supervised cross-entropy loss, and unlabeled samples are handled by semi-supervised objectives: pseudo-labeling, which assigns tentative labels to predictions the model is confident about, or consistency regularization, which encourages agreement between predictions on augmented versions of the same sample. A client with no labels uses only the semi-supervised terms.
At the end of each round, every client uploads its local model update (gradients or weight deltas) to the server. The server combines these updates, typically with FedAvg, which weights each client's contribution by its number of samples, to produce an improved global model. Encryption of these updates is not part of this basic exchange; secure aggregation is an optional addition.
Heterogeneous client data can pull the global model toward the distribution of a few well-labeled clients. Jeong et al. (2020) propose inter-client consistency for federated semi-supervised learning, and Zhang et al. (2021) combine consistency with pseudo-labeling in the federated setting. The precise formulations of these terms are given in the original papers and should be consulted before implementation.
The updated global model is broadcast to all clients for the next round. Rounds repeat until a stopping point is reached, such as a fixed round budget or a plateau in validation performance on a held-out labeled set kept at the server. The resulting global model can then be deployed, or fine-tuned on any available labeled holdout.
Common pitfalls
- Applying aggressive pseudo-labeling before the global model has stabilised, so wrong labels are fed back into subsequent rounds.
- Ignoring class imbalance across clients, which can bias the aggregated model toward majority classes.
- Evaluating only on a labeled set held at the server, without checking performance on the data that remains on client devices.
- Relying on plain FedAvg without considering client weighting when dataset sizes differ greatly between clients.
- Comparing against centralized baselines without accounting for the communication cost of the federated setup.
- Treating a plateau in global validation accuracy as evidence of good performance on every client, when non-IID clients may still be poorly served; report accuracy per client as well as globally.
Frequently asked questions
How is this different from standard federated learning?
Standard federated learning assumes every client has labeled data and trains purely supervised. SSFL explicitly handles clients with no labels, using semi-supervised objectives (pseudo-labeling, consistency regularization) to extract signal from unlabeled local data.
What happens when client label distributions are very different?
Heterogeneous label distributions (non-IID data) are the main challenge. Methods such as FedProx or SCAFFOLD are commonly used to limit client drift, and inter-client consistency losses (Jeong et al., 2020) are an SSFL-specific option. Without measures of this kind, the global model can drift toward well-labeled clients and perform poorly elsewhere.
Does SSFL provide privacy guarantees?
By design SSFL avoids sending raw data, but model updates can still leak information. Adding differential privacy (clipping and noising gradients) or secure multi-party aggregation provides stronger formal guarantees at some cost to model accuracy.
How many communication rounds are needed?
There is no fixed number that applies across deployments. Convergence depends on data heterogeneity, model size, and the number of local epochs, so server-side validation on labeled data with early stopping is the usual way to decide when to stop.
Can I use pre-trained models to bootstrap SSFL?
Yes. Initialising from a pre-trained backbone (for example a vision or language model) is a common choice, because it can stabilise early pseudo-labels and speed convergence.
Related methods
Sources
Jeong, W., Yoon, J., Yang, E., & Hwang, S. J. (2020). Federated Semi-Supervised Learning with Inter-Client Consistency. International Conference on Learning Representations (ICLR 2021).
Open publication referenceZhang, Z., Chen, Y., Yu, H., & Lu, J. (2021). SemiFed: Semi-supervised Federated Learning with Consistency and Pseudo-Labeling. arXiv preprint arXiv:2108.09412.
Open publication reference