Federated Learning from Only Unlabeled Data with Class-conditional-sharing Clients

Nan Lu, Zhao Wang, Xiaoxiao Li, Gang Niu, Qi Dou, Masashi Sugiyama

Abstract

Federated Learning (FL) typically relies on labeled data at the client level, which is often unavailable in privacy-sensitive domains like healthcare. This paper introduces FedUL (Federation of Unsupervised Learning), a framework that enables training discriminative classifiers using only unlabeled data. By leveraging shared class-conditional distributions and known class priors, FedUL transforms the unsupervised problem into a surrogate supervised task. We demonstrate that FedUL can recover global classifiers that rival or exceed the performance of models trained on partially labeled data across various benchmarks, including a real-world medical imaging dataset.

Introduction

In the world of Federated Learning (FL), the standard assumption is that clients have neatly labeled data. However, in real-world applications—especially in sensitive fields like healthcare—labeling is a significant bottleneck. It is expensive, time-consuming, and often raises privacy concerns. While unsupervised FL exists, it usually focuses on federated clustering, which does not produce a model capable of predicting specific class labels (e.g., "Healthy" vs. "Diseased").

This paper addresses the challenge of learning a discriminative classifier when no ground-truth labels are available at any client. The authors identify a realistic scenario where this is possible: when the class-conditional distributions (the "look" of a class) are consistent across clients, and the class priors (proportions) are known or can be estimated.

The FedUL Framework

The core of the paper is a "wrapper" approach called FedUL. It consists of three main steps to bridge the gap between unlabeled data and supervised classification:

  1. Local Data Transformation: Instead of guessing real labels, each client treats the index of their unlabeled data sets as a surrogate label. For instance, if a client has $M$ different batches of unlabeled data, they formulate an $M$-class classification problem.
  2. The Transition Layer ($Q_c$): This is the mathematical core of the framework. The authors prove there is an injective (one-to-one) mapping between surrogate labels and true labels. This is implemented as a fixed, non-trainable "transition layer" added to the end of the model, which uses known class priors to map the surrogate task back to the desired classification task.
  3. Surrogate Federated Training: Clients train this modified model using standard supervised FL methods like FedAvg. Because the transition layer is fixed, backpropagation naturally updates the underlying feature extractor to learn the true class boundaries.
Comparison of standard supervised FL (left) and the proposed FedUL framework (right), which utilizes surrogate labels and a transition layer $Q_c$.

Theoretical Foundation and Datasets

The authors provide a theoretical guarantee (Theorem 4) showing that the optimal model learned via FedUL's surrogate task converges to the same optimal model that would be obtained with actual labels.

To validate this, FedUL was evaluated on standard computer vision benchmarks (MNIST, CIFAR-10) and a complex real-world medical task: the RSNA Intracranial Hemorrhage Detection dataset. This dataset contains 106k brain MRI images across six classes, simulating a realistic medical FL environment where hospitals have data but lack manual labels.

Experimental Results

FedUL significantly outperformed existing baselines that attempt to learn from label proportions (LLP) or pseudo-labeling:

  • MNIST (Non-IID): FedUL achieved an error rate of ~1.64%, outperforming a model trained on 10% of actual labels (3.82% error). Remarkably, FedUL beat the partially supervised model using zero labels.
  • CIFAR-10 (Non-IID): FedUL reached ~31.43% error, nearly doubling the performance of the next best unsupervised baseline (~53.78%).
  • Medical Case Study: In the intracranial hemorrhage task, FedUL consistently outperformed baselines across different numbers of participating sets, demonstrating robustness in high-stakes, high-dimensional scenarios.

Sensitivity Analysis

The robustness of FedUL was tested against various hyperparameters, including noise in class priors, the amount of accessible data, and local training configurations.

Sensitivity analysis of FedUL showing classification error relative to (a) noise ratio in priors, (b) amount of accessible data, (c) local updating epochs, and (d) training batch size.

As shown in the analysis, the model remains stable even with moderate noise in the estimated class priors. Performance improves significantly as more non-IID data sets become accessible, allowing the model to better resolve the underlying class distributions.

Conclusion and Future Work

FedUL demonstrates that labels are not always a prerequisite for training high-quality classifiers in a federated setting. By leveraging the inherent information in data batching and class proportions, it provides a powerful tool for privacy-sensitive domains.

While the method relies on accurate class-prior estimates and shared class-conditionals, it is a "plug-and-play" transformation compatible with existing FL optimization algorithms like FedProx or SCAFFOLD. Future work may explore more advanced aggregation schemes tailored for surrogate tasks to further improve performance in extremely heterogeneous environments.

Summary updated

BibTeX
@inproceedings{lu2022federated,
  author = {Nan Lu and Zhao Wang and Xiaoxiao Li and Gang Niu and Qi Dou and Masashi Sugiyama},
  title = {{Federated Learning from Only Unlabeled Data with Class-conditional-sharing Clients}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=WHA8009laxu},
}
Figure