RC-SSFL: Towards Robust and Communication-efficient Semi-supervised Federated Learning System

Yi Liu, Xingliang Yuan, Ruihui Zhao, Yifeng Zheng, Yefeng Zheng

Abstract

Semi-supervised Federated Learning (SSFL) has recently drawn much attention due to its practical consideration, i.e., the clients may only have unlabeled data. In practice, these SSFL systems implement semi-supervised training by assigning a "guessed" label to the unlabeled data near the labeled data to convert the unsupervised problem into a fully supervised problem. However, the inherent properties of such semi-supervised training techniques create a new attack surface. In this paper, we discover and reveal a simple yet powerful poisoning attack against SSFL. Our attack utilizes the natural characteristic of semi-supervised learning to cause the model to be poisoned by poisoning unlabeled data. Specifically, the adversary just needs to insert a small number of maliciously crafted unlabeled samples (e.g., only 0.1% of the dataset) to infect model performance and misclassification. Extensive case studies have shown that our attacks are effective on different datasets and common semi-supervised learning methods. To mitigate the attacks, we propose a defense, i.e., a minimax optimization-based client selection strategy, to enable the server to select the clients who hold the correct label information and high-quality updates. Our defense further employs a quality-based aggregation rule to strengthen the contributions of the selected updates. Evaluations under different attack conditions show that the proposed defense can well alleviate such unlabeled poisoning attacks.

Introduction

Standard Federated Learning (FL) assumes that all participating clients possess fully labeled datasets. However, in real-world scenarios—such as medical imaging across various hospitals—labeled data is often expensive, time-consuming to acquire, and scarce. Semi-supervised Federated Learning (SSFL) addresses this by allowing a central server to utilize a small set of labeled data to train a base model, which then assigns "pseudo-labels" to the vast amounts of unlabeled data residing on client devices.

While SSFL offers a practical solution to data scarcity, it introduces a significant security vulnerability. Because SSFL models inherently trust the pseudo-labels they generate for unlabeled data, they become susceptible to manipulation. This paper exposes how attackers can poison the global model by injecting a tiny amount (as little as 0.1%) of maliciously crafted unlabeled data, and proposes a robust defense mechanism to maintain model integrity.

System Architecture

The SSFL framework involves a central server and multiple clients. The server maintains a small labeled dataset and a global model. During training, the server distributes an initial model to clients. Clients use this model to generate pseudo-labels for their local unlabeled datasets and perform local updates. These updates are then sent back to the server for aggregation into a new global model.

Overview of the Semi-supervised Federated Learning (SSFL) system architecture, showing the interaction between the server and clients with unlabeled data.

Vulnerabilities in SSFL: Unlabeled Data Poisoning

The core novelty of this research is the discovery of Consistency Loss Poisoning. In this attack, the adversary injects slightly perturbed unlabeled data near target labeled data in the feature space. As the model trains, it confidently assigns incorrect pseudo-labels to these poisoned samples. Since SSFL relies on consistency loss to group similar data points, the model effectively "fools itself," dragging its decision boundary in the wrong direction.

Illustration of three poisoning attack vectors in SSFL: (1) Consistency Loss Poisoning, (2) Pseudo Label Flipping, and (3) Untargeted Local Model Poisoning.

Beyond consistency loss poisoning, the authors also evaluate adapted versions of standard FL attacks:

  • Pseudo Label Flipping: Manually flipping the guessed labels of unlabeled data.
  • Untargeted Local Model Poisoning: Sending adversarial model updates to the server to degrade overall performance.

Experimental results show that unlabeled data is a highly efficient attack surface. In standard supervised FL, attackers typically need to poison 1% to 5% of the data. In SSFL, manipulating just 0.1% of the unlabeled dataset can achieve an attack success rate (ASR) of over 80%.

Proposed Defense: RC-SSFL

To counter these threats, the authors propose a two-pronged defense strategy:

  1. Minimax Optimization-based Client Selection: The server evaluates incoming model updates using cosine similarity (to check alignment with the global model's direction) and Wasserstein distance (to measure distribution differences in weights). This helps identify and exclude potentially malicious clients.
  2. Quality-based Aggregation Rule (QAR): Instead of simple averaging (like FedAvg), the server tests each client's local model against its own small, trusted labeled dataset. Updates are weighted based on their accuracy on this validation set, significantly reducing the impact of poisoned updates.

Key Results and Insights

The proposed defense was evaluated on MNIST and CIFAR-10 datasets under both I.I.D. and Non-I.I.D. settings.

  • Attack Potency: Using FixMatch, poisoning only 1% of unlabeled data resulted in a 99% ASR on MNIST and 94% on CIFAR-10. Even at 0.1% poisoning, ASR remained high (84% on MNIST).
  • Defense Efficacy: The RC-SSFL defense successfully neutralized these threats. On CIFAR-10 with 0.1% poisoning, the defense reduced the ASR from 75% to just 12%.
  • Robustness in Non-I.I.D. Settings: Non-I.I.D. data distributions often make attacks more successful as they allow attackers to interfere with specific decision boundaries more easily. While standard Byzantine-robust methods like Geometric Median Aggregation (GMA) failed to converge in these settings, the proposed QAR maintained high accuracy.

Conclusion

This study unveils a critical vulnerability in SSFL systems where the very mechanism of semi-supervised learning—trusting pseudo-labels—can be exploited through minimal unlabeled data poisoning. The proposed RC-SSFL defense, utilizing minimax-based selection and quality-based aggregation, provides a robust path forward for secure semi-supervised federated learning. Future work will focus on scenarios where the server's labeled data is extremely scarce or biased, ensuring defenses remain effective in even more constrained environments.

Summary updated

Abstract

Semi-supervised Federated Learning (SSFL) has recently drawn much attention due to its practical consideration, i.e., the clients may only have unlabeled data. In practice, these SSFL systems implement semi-supervised training by assigning a "guessed" label to the unlabeled data near the labeled data to convert the unsupervised problem into a fully supervised problem. However, the inherent properties of such semi-supervised training techniques create a new attack surface. In this paper, we discover and reveal a simple yet powerful poisoning attack against SSFL. Our attack utilizes the natural characteristic of semi-supervised learning to cause the model to be poisoned by poisoning unlabeled data. Specifically, the adversary just needs to insert a small number of maliciously crafted unlabeled samples (e.g., only 0.1\% of the dataset) to infect model performance and misclassification. Extensive case studies have shown that our attacks are effective on different datasets and common semi-supervised learning methods. To mitigate the attacks, we propose a defense, i.e., a minimax optimization-based client selection strategy, to enable the server to select the clients who hold the correct label information and high-quality updates. Our defense further employs a quality-based aggregation rule to strengthen the contributions of the selected updates. Evaluations under different attack conditions show that the proposed defense can well alleviate such unlabeled poisoning attacks. Our study unveils the vulnerability of SSFL to unlabeled poisoning attacks and provides the community with potential defense methods.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MNISTRC-SSFL (Semi-supervised, GMA + Client Selection)Accuracy98.00%rounds=250 · clients=100 · backbone=CNN · participation=10% · data-distribution=non-i.i.d.
Source quote
L268: ~ │ ~ │ Semi-supervised │ GMA + Client Selection │ 98.00%
CIFAR-10RC-SSFL (Semi-supervised, GMA + Client Selection)Accuracy64.98%rounds=250 · clients=100 · backbone=AlexNet · participation=10% · data-distribution=non-i.i.d.
Source quote
L275: ~ │ ~ │ Semi-supervised │ GMA + Client Selection │ 64.98%
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
MNISTSupervised Learning + GMA (benchmark) baselineAccuracy98.32%rounds=250 · clients=100 · backbone=CNN · participation=10% · data-distribution=non-i.i.d.
Source quote
L265: ~ │ ~ │ Supervised Learning │ GMA │ 98.32%
CIFAR-10Supervised Learning + GMA (benchmark) baselineAccuracy66.54%rounds=250 · clients=100 · backbone=AlexNet · participation=10% · data-distribution=non-i.i.d.
Source quote
L272: ~ │ ~ │ Supervised Learning │ GMA │ 66.54%
BibTeX
@misc{liu2020rc,
  author = {Yi Liu and Xingliang Yuan and Ruihui Zhao and Yifeng Zheng and Yefeng Zheng},
  title = {{RC-SSFL: Towards Robust and Communication-efficient Semi-supervised Federated Learning System}},
  year = {2020},
  eprint = {2012.04432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.04432},
}
Figure