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.
Introduction: The Vulnerability of Semi-supervised Federated Learning
Federated Learning (FL) typically assumes that clients possess neatly labeled datasets. However, in real-world applications—such as medical imaging or specialized sensor data—labeling is often prohibitively expensive. Semi-supervised Federated Learning (SSFL) addresses this by enabling a central server with a small labeled dataset to coordinate training across multiple clients holding vast amounts of unlabeled data.
In this setup, clients use the global model to assign "pseudo-labels" to their local unlabeled data, effectively allowing the model to learn from its own predictions. While efficient, this "self-learning" mechanism introduces a critical vulnerability: if an attacker can manipulate the unlabeled data, they can induce the model to assign incorrect pseudo-labels. This creates a feedback loop where the model "fools itself," leading to targeted misclassification or overall performance degradation.
Poisoning Strategies: Exploiting the Unlabeled Surface
The researchers identified three primary poisoning strategies that exploit the unique characteristics of SSFL:
- Consistency Loss Poisoning: The attacker injects unlabeled samples that are mathematically adjacent to a target class. During training, the model incorrectly assigns these samples the target pseudo-label, gradually shifting the decision boundary toward the adversary's goal.
- Pseudo Label Flipping: A direct manipulation of the local training process where the attacker forces the model to flip specific pseudo-labels (e.g., misidentifying "1" as "7").
- Untargeted Local Model Poisoning: Malicious updates are crafted to maximize the statistical distance from the true global model, aiming to degrade the system's general accuracy.
Proposed Defense: Minimax Optimization and Quality-based Aggregation
To counter these threats, the authors propose a robust two-stage defense framework:
- Minimax Client Selection: The server filters client updates by evaluating their direction (via Cosine Similarity) and statistical distribution (via Wasserstein Distance) against trusted updates generated from the server's own labeled data. This strategy ensures that only clients behaving similarly to the trusted global model are selected for aggregation.
- Quality-based Aggregation Rule (QRA): Moving beyond standard
FedAvg, the server weights updates based on their performance on a clean validation set. This prioritizes high-quality, honest contributions over suspicious or low-utility updates.
Experimental Evaluation and Key Insights
The framework was tested using the MNIST and CIFAR-10 benchmarks across both IID and non-IID data distributions. Several alarming and insightful findings emerged:
- The 0.1% Threshold: An attacker needs to poison as little as 0.1% of the unlabeled data to achieve an Attack Success Rate (ASR) exceeding 80%. This is significantly lower than the 1-5% typically required in supervised FL attacks.
- The Paradox of Progress: Advanced semi-supervised methods like FixMatch are more susceptible to these attacks. Their reliance on high-confidence pseudo-labels makes them easier to lead astray with carefully crafted malicious samples.
- Non-IID Acceleration: Attacks are more potent in non-IID settings, where skewed local data distributions allow small amounts of poisoned data to more easily shift local decision boundaries.
Results and Conclusion
The proposed minimax defense demonstrated high efficacy, reducing the ASR on CIFAR-10 from 70% to just 12% when using FixMatch. Furthermore, unlike some Byzantine-robust aggregation rules, this defense maintains model convergence and high accuracy even under heavy adversarial pressure in non-IID environments.
While the defense requires the server to maintain a small labeled dataset—a standard assumption in SSFL—it provides a critical safeguard against the inherent vulnerabilities of self-learning systems. Future research may focus on reducing the computational overhead of calculating Wasserstein Distance for high-dimensional weights and exploring defenses against hidden "backdoor" triggers in unlabeled data.
Summary updated