Abstract
Federated Learning (FL) is a distributed machine learning framework that trains accurate global models while preserving clients' privacy-sensitive data. However, most FL approaches assume that clients possess labeled data, which is often not the case in practice. Federated Semi-Supervised Learning (FSSL) addresses this label deficiency problem, targeting situations where only the server has a small amount of labeled data while clients do not. However, a significant performance gap exists between Centralized Semi-Supervised Learning (SSL) and FSSL. This gap arises from confirmation bias, which is more pronounced in FSSL due to multiple local training epochs and the separation of labeled and unlabeled data. We propose $(FL)^2$, a robust training method for unlabeled clients using sharpness-aware consistency regularization. We show that regularizing the original pseudo-labeling loss is suboptimal, and hence we carefully select unlabeled samples for regularization. We further introduce client-specific adaptive thresholding and learning status-aware aggregation to adjust the training process based on the learning progress of each client. Our experiments on three benchmark datasets demonstrate that our approach significantly improves performance and bridges the gap with SSL, particularly in scenarios with scarce labeled data.
Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training models on decentralized data. However, a major bottleneck in real-world deployment is the assumption that client data is labeled. In many practical scenarios—such as medical imaging or personal user data—labeling is expensive or requires specialized expertise. This leads to the "labels-at-server" scenario in Federated Semi-Supervised Learning (FSSL), where a central server holds a tiny fraction of labeled data while clients possess vast amounts of unlabeled data.
Existing FSSL methods often struggle with confirmation bias. Because clients perform multiple local training epochs without access to the server's labeled ground truth, they tend to overfit to their own incorrect pseudo-labels. This creates a "death spiral" where the model becomes increasingly confident in its own mistakes, leading to a massive performance gap compared to centralized semi-supervised learning (SSL).
The (FL)² Framework
To address these challenges, the authors propose $(FL)^2$ (Few-Labels Federated semi-supervised Learning), a framework built on three core innovations designed to mitigate confirmation bias and synchronize learning across heterogeneous clients.
1. Client-specific Adaptive Thresholding (CAT)
Standard SSL methods typically use a high, fixed confidence threshold (e.g., 95%) to filter pseudo-labels. However, in a federated setting, learning progress varies across clients. A fixed global threshold can be too restrictive early in training, preventing the model from learning anything. CAT profiles each client's unique learning status and starts with a lower threshold, gradually increasing it as the model matures. This allows for better utilization of unlabeled data from the start of training.
2. Sharpness-Aware Consistency Regularization (SACR)
Sharpness-Aware Minimization (SAM) is often used to find "flat" minima in the loss landscape, which improves generalization. However, the authors discovered a "SAM Paradox": applying SAM to all pseudo-labeled data can actually help the model generalize its own mistakes. SACR solves this by selectively applying consistency regularization only to high-confidence samples, ensuring the model generalizes correct patterns rather than noise.
3. Learning Status-Aware Aggregation (LSAA)
In standard Federated Averaging (FedAvg), client updates are often weighted by data volume. LSAA instead prioritizes clients with lower learning status (lower thresholds). The intuition is that these clients are either struggling with more difficult data or are further behind in the learning process; giving them more weight in the global aggregation helps the overall model learn more informative features.
Experimental Evaluation
The researchers evaluated $(FL)^2$ on several benchmarks, including CIFAR-10, CIFAR-100, and SVHN, under both Balanced IID and Unbalanced non-IID settings.
As shown in the results, $(FL)^2$ consistently outperforms state-of-the-art baselines like SemiFL and FedMatch, particularly in cases of extreme label scarcity. For instance, on CIFAR-10 with only 10 labeled samples in a balanced setting, $(FL)^2$ achieved 38.9% accuracy, a massive improvement over the 16.7% achieved by FedCon. On the SVHN dataset with 40 labels, $(FL)^2$ reached 75.3% accuracy, nearly quadrupling the performance of some existing FSSL methods.
Key Insights and Discussion
- The SAM Paradox: A critical finding is that standard generalization techniques can be counterproductive in FSSL if they reinforce incorrect pseudo-labels. Selective regularization is essential.
- Local vs. Global Progress: Learning is not uniform across a network. Thresholds and aggregation weights must be tuned to the specific "learning maturity" of individual clients to be effective.
- Bridging the SSL Gap: $(FL)^2$ significantly narrows the performance gap between federated and centralized semi-supervised learning, making FSSL a more viable option for real-world applications where labels are scarce.
Conclusion and Future Work
$(FL)^2$ provides a robust solution for federated learning with extremely limited labels. By combining adaptive thresholding, selective sharpness-aware regularization, and progress-aware aggregation, it achieves up to a 23% accuracy boost over previous methods. While the framework introduces some computational overhead due to the extra inference steps in SACR, its ability to function effectively with as few as 10 labels makes it a significant step forward for privacy-preserving, label-efficient machine learning. Future work may focus on reducing the computational burden for resource-constrained IoT devices and providing a deeper theoretical analysis of pseudo-labeling dynamics in FSSL.
Summary updated