[Paper Review] FedCon: A Contrastive Framework for Federated Semi-Supervised Learning
This paper proposes FedCon, a novel contrastive learning framework for Federated Semi-Supervised Learning (FedSSL) where labeled data reside on the server and unlabeled data on clients. By introducing a two-branch contrastive network with momentum-based target networks and dual loss functions—cross-entropy and mean-squared error—FedCon effectively leverages unlabeled data across clients, achieving state-of-the-art performance on MNIST, CIFAR-10, and SVHN under both IID and Non-IID settings.
Federated Semi-Supervised Learning (FedSSL) has gained rising attention from both academic and industrial researchers, due to its unique characteristics of co-training machine learning models with isolated yet unlabeled data. Most existing FedSSL methods focus on the classical scenario, i.e, the labeled and unlabeled data are stored at the client side. However, in real world applications, client users may not provide labels without any incentive. Thus, the scenario of labels at the server side is more practical. Since unlabeled data and labeled data are decoupled, most existing FedSSL approaches may fail to deal with such a scenario. To overcome this problem, in this paper, we propose FedCon, which introduces a new learning paradigm, i.e., contractive learning, to FedSSL. Experimental results on three datasets show that FedCon achieves the best performance with the contractive framework compared with state-of-the-art baselines under both IID and Non-IID settings. Besides, ablation studies demonstrate the characteristics of the proposed FedCon framework.
Motivation & Objective
- To address the practical challenge in federated learning where labeled data are centralized on the server and unlabeled data are distributed across clients, a scenario not well-handled by existing FedSSL methods.
- To overcome the performance degradation caused by the decoupling of labeled and unlabeled data in traditional semi-supervised learning approaches within federated settings.
- To design a general and robust framework that effectively utilizes unlabeled data from heterogeneous clients while preserving model generalization under Non-IID data distributions.
- To validate the effectiveness of contrastive learning and consistency regularization in a federated semi-supervised setting with real-world data distribution constraints.
Proposed method
- FedCon employs a two-branch contrastive network architecture with an online network and a momentum-updated target network to learn invariant representations from unlabeled data at the client side.
- The framework uses a shared backbone encoder across clients and server, with client-side models trained using a mean-squared error loss to encourage positive sample pairs (augmentations of the same input) to be close in the embedding space.
- At the server, a contrastive loss is applied to labeled data using cross-entropy and consistency regularization, enabling the model to learn robust representations from labeled examples.
- The server aggregates client updates via FedAvg and redistributes the updated global model to clients in each round, maintaining model alignment across clients and server.
- A dual-top-layer design separates the loss functions and output heads for labeled (server) and unlabeled (client) data, allowing distinct optimization objectives while sharing the main encoder.
- The method incorporates momentum-based target network updates to stabilize training and preserve long-term representation information, particularly important under data heterogeneity.
Experimental results
Research questions
- RQ1Can contrastive learning be effectively adapted to federated semi-supervised learning when labeled data are centralized on the server and unlabeled data are distributed across clients?
- RQ2How does the proposed FedCon framework handle data heterogeneity and non-IID data distributions in the FedSSL setting?
- RQ3To what extent does consistency regularization on unlabeled data improve model performance in the server-side data augmentation setting?
- RQ4How does the dual-loss mechanism (cross-entropy + MSE) compare to standard pseudo-labeling or consistency-based SSL in federated settings?
Key findings
- FedCon achieves state-of-the-art performance on MNIST, CIFAR-10, and SVHN, outperforming existing FedSSL baselines under both IID and Non-IID data settings.
- On MNIST with γ=0.01 (1% labeled data) and β=0.05 (5% unlabeled data), FedCon with consistency loss reaches 95.55% test accuracy, compared to 94.68% without it, demonstrating the critical role of consistency regularization.
- Ablation studies confirm that the momentum-based target network and dual-loss design significantly improve model robustness and representation quality under data heterogeneity.
- The framework effectively mitigates performance degradation caused by decoupling labeled and unlabeled data, which plagues traditional semi-supervised methods in federated settings.
- The consistency loss applied to unlabeled data at the server side leads to a measurable performance gain, validating its utility in generalizing beyond client-side unlabeled data.
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.