Abstract
Federated Contrastive Learning (FCL) represents a burgeoning approach for learning from decentralized unlabeled data while upholding data privacy. In FCL, participant clients collaborate in learning a global encoder using unlabeled data, which can serve as a versatile feature extractor for diverse downstream tasks. Nonetheless, FCL is susceptible to privacy risks, such as membership information leakage, stemming from its distributed nature, an aspect often overlooked in current solutions. This study delves into the feasibility of executing a membership inference attack on FCL and proposes a robust attack methodology. The attacker's objective is to determine if the data signifies training member data by accessing the model's inference output. Specifically, we concentrate on attackers situated within a client framework, lacking the capability to manipulate server-side aggregation methods or discern the training status of other clients. We introduce two membership inference attacks tailored for FCL: the passive membership inference attack and the active membership inference attack, contingent on the attacker's involvement in local model training. Experimental findings across diverse datasets validate the effectiveness of our attacks and underscore the inherent privacy risks associated with the federated contrastive learning paradigm.
1. Introduction
Federated Learning (FL) has revolutionized decentralized model training by allowing multiple parties to collaborate without sharing raw data. While traditional FL focuses on supervised tasks, Federated Contrastive Learning (FCL) has emerged as a powerful method for training feature encoders from massive amounts of unlabeled decentralized data. Because FCL avoids the use of labels and focuses on general representations, it was previously assumed to be inherently more private than supervised FL. However, this research identifies a critical vulnerability: FCL is highly susceptible to membership inference attacks (MIA), allowing an adversary to determine if a specific individual's data was part of the training set.
2. Methodology: Membership Inference Attacks on FCL
The study proposes two primary attack categories launched from the perspective of a single participating client. These attacks exploit the fundamental way contrastive models learn to group similar data points.
2.1 Passive Membership Inference Attack
In a passive attack, the adversary simply observes the global model parameters received from the server. The attack pipeline involves generating multiple augmented "views" of a target image, passing them through the received encoder, and calculating the cosine similarity between the resulting feature vectors. These similarity scores are then fed into a binary classifier to distinguish members from non-members.
2.2 Active Membership Inference Attack
The active attack is more aggressive. During the local training phase, a malicious client performs gradient ascent on the data they wish to check. Because member data is "memorized" by the model, its loss increases more slowly during gradient ascent compared to non-member data. This discrepancy provides a clear signal for the attacker when they receive the updated global model in the next round.
3. Experimental Setup
The researchers evaluated these attacks on three standard computer vision benchmarks: SVHN, CIFAR-10, and CIFAR-100. To simulate realistic federated environments, the data was distributed in a Non-IID (not identically and independently distributed) manner across clients. The experiments utilized a ResNet architecture, specifically analyzing how different layers contribute to information leakage.
4. Key Results and Insights
The experimental results confirm that FCL is highly susceptible to these attacks:
- High Attack Accuracy: Using a "Feature Combination" method (combining similarity, loss, and probability), attackers achieved accuracies of 91.4% on CIFAR-10, 93.2% on CIFAR-100, and 90.5% on SVHN.
- Overfitting as a Vulnerability: Even in unsupervised learning, models eventually overfit and begin to memorize specific features of training samples. This seen vs. unseen discrepancy is what the attacks exploit.
- The "Leaky" Middle: Interestingly, the final output of the encoder is not always the most revealing. Internal layers (specifically Layer 4 in ResNet) often provide higher inference accuracy than the final feature vector.
- Active Attack Efficacy: Active methods proved highly effective, with success rates exceeding 80% even when the model was only moderately overfitted.
5. Discussion and Future Work
The findings serve as a wake-up call for the FCL community: task-agnosticism and the absence of labels do not guarantee privacy. The authors suggest that defenses like Differential Privacy (DP) and early stopping are necessary to mitigate these risks, though they often come at the cost of model utility. Future work will explore the impact of extreme data heterogeneity on attack stability and the development of more robust defense mechanisms.
6. Conclusion
This research demonstrates that Federated Contrastive Learning is surprisingly vulnerable to membership information leakage. By showing that a single malicious client can identify training members with over 90% accuracy, the authors highlight the urgent need for privacy-preserving measures in decentralized self-supervised learning.
Summary updated