RSCFed: Random Sampling Consensus Federated Semi-supervised Learning

Xiaoxiao Liang, Yiqun Lin, Huazhu Fu, Lei Zhu, Xiaomeng Li

Abstract

Federated Semi-supervised Learning (FSSL) addresses the dual challenge of data privacy and the scarcity of labeled data in decentralized environments. However, existing FSSL frameworks often struggle with Non-Independent and Identically Distributed (Non-IID) data, where biased local models can degrade the performance of the global model. This paper presents RSCFed, a novel framework that treats local model updates as noisy observations and employs a consensus-based aggregation strategy. By utilizing multiple random sub-sampling rounds and distance-based reweighting, RSCFed achieves robust performance across natural and medical imaging benchmarks, significantly outperforming existing state-of-the-art methods.

1. Introduction

Federated Learning (FL) has emerged as a vital paradigm for training machine learning models on decentralized data without compromising privacy. While standard FL assumes that data is fully labeled, real-world scenarios often involve a "labeling gap," where only a fraction of participating clients possess labeled data. Federated Semi-supervised Learning (FSSL) attempts to bridge this gap by leveraging both labeled and unlabeled data across the network.

In practical deployments, the primary obstacle is Non-IID data. When data distributions vary significantly across clients—such as different hospitals specializing in distinct pathologies—local models become heavily biased. Traditional aggregation methods like FedAvg are sensitive to these biases; a single outlier model can pull the global consensus away from the true distribution. RSCFed addresses this by shifting the paradigm from simple aggregation to robust consensus building.

2. Methodology

RSCFed draws inspiration from the Random Sample Consensus (RANSAC) algorithm, a robust estimator used in computer vision to fit models in the presence of outliers. The framework introduces three core components to ensure stability and accuracy.

2.1 Multiple Random Sub-sampling

Rather than aggregating all available local models in a single step, the RSCFed server conducts $M$ independent rounds of random sub-sampling. In each round, a subset of $K$ clients is selected to form a "sub-consensus" model. This redundancy allows the server to identify consistent features across different subsets of the network, effectively filtering out noise generated by highly biased local distributions.

2.2 Distance-reweighted Model Aggregation (DMA)

Within each sub-sampled group, RSCFed moves beyond simple averaging. The Distance-reweighted Model Aggregation (DMA) module calculates the $L_2$ distance between each local model and the subset's average.

  • Outlier Detection: Local models that deviate significantly from the group average are flagged as potentially overfitted or biased.
  • Dynamic Weighting: The DMA module assigns lower weights to these outliers and higher weights to models that align more closely with the consensus. This ensures that the global model is guided by the most representative updates.

2.3 Local Training Strategy

RSCFed employs distinct strategies for different client types:

  • Labeled Clients: These clients utilize standard supervised cross-entropy loss to ground the model in known truths.
  • Unlabeled Clients: These clients utilize a Mean Teacher framework. A "student" model learns from the local data, while a "teacher" model—maintained as an exponential moving average of previous student states—provides stable targets. "Sharpening" techniques are applied to the teacher's predictions to generate high-confidence pseudo-labels for the student.

3. Experimental Evaluation

The authors evaluated RSCFed against several benchmarks, simulating Non-IID environments using a Dirichlet distribution to vary class and sample distributions among clients.

3.1 Datasets

  • SVHN (Street View House Numbers): A benchmark for digit recognition in natural scenes.
  • CIFAR-100: A complex natural image dataset with 100 distinct classes.
  • ISIC 2018: A medical imaging dataset for skin lesion classification, representing a high-stakes application where data is naturally decentralized and labeling is expensive.

3.2 Key Results

  • State-of-the-Art Accuracy: On the SVHN dataset (1 labeled, 9 unlabeled clients), RSCFed achieved 70.26% accuracy, a significant jump from the 66.94% achieved by the previous leader, Fed-Consist.
  • Medical Imaging Robustness: In the ISIC 2018 benchmark, RSCFed reached a Precision of 45.65%, outperforming other FSSL methods which averaged around 41.9%.
  • Efficiency and Scalability: RSCFed demonstrated high communication efficiency, maintaining superior performance even when communication costs were reduced to 0.8x of the baseline. Furthermore, the performance gap between RSCFed and its competitors widened as the number of unlabeled clients increased to 50, proving its scalability.

4. Discussion and Insights

The success of RSCFed highlights a fundamental shift in federated aggregation: treating local models as noisy observations rather than absolute truths. By prioritizing consensus over simple summation, the framework achieves robustness without requiring clients to share sensitive metadata, such as class correlation matrices, thereby preserving a higher degree of privacy.

4.1 Limitations

Despite its strengths, RSCFed introduces new hyperparameters, including the scaling factor $eta$ for distance reweighting and the number of sub-samples $M$, which may require tuning for specific domains. Additionally, while the server-side computational overhead is minimal compared to communication costs, it remains a factor for extremely large-scale networks.

5. Conclusion

RSCFed provides a robust solution for Federated Semi-supervised Learning in the face of Non-IID data. By integrating RANSAC-inspired sub-sampling and distance-based reweighting, it effectively mitigates the impact of biased local models. Its performance on both natural and medical datasets suggests it is a highly viable framework for real-world decentralized learning applications where labeled data is scarce.

Summary updated

BibTeX
@inproceedings{liang2022rscfed,
  author = {Xiaoxiao Liang and Yiqun Lin and Huazhu Fu and Lei Zhu and Xiaomeng Li},
  title = {{RSCFed: Random Sampling Consensus Federated Semi-supervised Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure