[Paper Review] Federated Learning with Positive and Unlabeled Data
This paper proposes FedPU, a novel federated learning framework for positive and unlabeled (PU) data where clients label only a subset of classes, leading to multiple unknown negative classes per client. By leveraging cross-client labeled data and minimizing expected risk across multiple negative classes, FedPU achieves state-of-the-art performance, outperforming supervised and semi-supervised baselines by up to 10.16% on CIFAR-10.
We study the problem of learning from positive and unlabeled (PU) data in the federated setting, where each client only labels a little part of their dataset due to the limitation of resources and time. Different from the settings in traditional PU learning where the negative class consists of a single class, the negative samples which cannot be identified by a client in the federated setting may come from multiple classes which are unknown to the client. Therefore, existing PU learning methods can be hardly applied in this situation. To address this problem, we propose a novel framework, namely Federated learning with Positive and Unlabeled data (FedPU), to minimize the expected risk of multiple negative classes by leveraging the labeled data in other clients. We theoretically analyze the generalization bound of the proposed FedPU. Empirical experiments show that the FedPU can achieve much better performance than conventional supervised and semi-supervised federated learning methods. Code is available at https://github.com/littleSunlxy/FedPU-torch
Motivation & Objective
- Address the challenge of federated learning when clients can only label a limited subset of classes due to resource and time constraints.
- Overcome the limitation of existing PU learning methods, which assume a single negative class, in settings with multiple unknown negative classes per client.
- Develop a federated framework that effectively utilizes unlabeled data and cross-client labeled data to minimize expected risk across all classes.
- Theoretically analyze generalization bounds and empirically validate performance gains in non-IID and low-labeled-data settings.
Proposed method
- Propose FedPU, a federated learning framework that treats unlabeled data as potentially belonging to multiple unknown negative classes across clients.
- Formulate the expected risk minimization problem across multiple negative classes using labeled data from other clients and unlabeled data from the same client.
- Introduce a class prior estimation mechanism to handle unknown class distributions, with robustness tested under varying prior estimates.
- Use model averaging and client-level optimization to train local models while minimizing risk for both labeled positive and unlabeled (potentially negative) samples.
- Theoretical analysis shows FedPU generalizes within $C\sqrt{C}$ times the performance of a fully supervised model, where $C$ is the number of classes.
- Implement the method using PyTorch with public code available on GitHub for reproducibility.
Experimental results
Research questions
- RQ1Can federated learning achieve better performance when clients only label a subset of classes, and unlabeled data may belong to multiple unknown classes?
- RQ2How does FedPU compare to conventional supervised and semi-supervised federated learning methods under partial labeling and non-IID data?
- RQ3What is the impact of varying class prior estimates on the performance of FedPU?
- RQ4Can FedPU effectively minimize the expected risk for multiple negative classes without explicit labeling?
- RQ5How robust is FedPU to data imbalance and non-iid data distributions in real-world federated settings?
Key findings
- On MNIST with 1/3 labeled data in positive classes, FedPU achieved 94.46% accuracy, improving to 95.60% with 2/3 labeled data.
- On CIFAR-10 with iid data and 2 positive classes per client, FedPU achieved 76.71% accuracy, compared to 62.52% for FedAvg using only labeled data.
- In non-iid settings with varying numbers of positive classes per client (1 to 7), FedPU achieved 75.41% accuracy, outperforming Baseline-1 by 4.00%.
- Under challenging non-iid data partitioning, FedPU achieved 61.05% accuracy, surpassing the baseline by 8.66%.
- FedPU achieved state-of-the-art performance among semi-supervised federated methods on CIFAR-10, outperforming FixMatch and FedMatch.
- The method is robust to class prior estimation, with performance close to the known-prior case (π=0.1), showing minimal degradation under estimated priors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.