Abstract
Federated Learning (FL) enables collaborative model training while preserving data privacy, yet it remains highly susceptible to backdoor attacks from malicious clients. Traditional defenses often fail in non-IID (Independent and Identically Distributed) settings or require clean server-side validation data, which is difficult to obtain without violating privacy. This paper introduces CLIP-Fed, a defense framework that utilizes the robust semantic knowledge of pre-trained vision-language models like CLIP to neutralize backdoors. CLIP-Fed implements a four-stage process: dynamic model filtering, frequency-sensitive synthetic data augmentation, feature rectification through prototype alignment, and knowledge distillation. Our evaluation shows that CLIP-Fed effectively reduces the Attack Success Rate (ASR) to near zero in many scenarios while enhancing main task accuracy, outperforming existing state-of-the-art defenses.
Introduction
Federated Learning (FL) allows multiple parties to train a shared model without exposing raw data. However, this decentralization introduces a significant security risk: backdoor attacks. In such attacks, a malicious client "poisons" the global model by training it to associate a specific trigger (e.g., a small pixel pattern) with a target label, regardless of the image's actual content.
Existing defenses face two primary challenges. First, the Non-IID Trap: real-world data is heterogeneous, and defenses often misidentify legitimate unique data as malicious. Second, the Privacy Paradox: many defenses require a clean validation dataset on the server, which is difficult to obtain without violating the privacy goals of FL. CLIP-Fed addresses these by using foundation models as a source of "clean" semantic knowledge to guide the defense process.
Methodology
The CLIP-Fed framework consists of a four-stage pipeline designed to filter and then "purify" the global model after aggregation:
- Dynamic Model Filtering: Before merging updates, the server identifies suspicious updates using PCA and HDBSCAN clustering, setting aside statistical outliers to prevent them from poisoning the global model.
- Server Dataset Augmentation: To avoid using private client data, the server generates synthetic image-text pairs using Multimodal Large Language Models (MLLMs) like Gemini. It then applies Frequency Sensitivity-based Augmentation, injecting noise into frequency bands sensitive to triggers to create "surrogate" poisoned samples for training.
- Feature Rectification via Prototype Alignment: The global model’s feature extractor is aligned with CLIP’s robust embeddings. Using a prototype contrastive loss, the model learns to group images by semantic content (as perceived by CLIP) rather than malicious triggers.
- Global Model Knowledge Transfer: CLIP acts as a teacher in a distillation process, guiding the global model to match its logit distributions. This ensures that any residual associations between triggers and target labels are washed away.
Evaluation and Key Results
CLIP-Fed was evaluated against diverse attacks (BadNets, DBA, LayerAttack, AFA) on standard benchmarks including CIFAR-10, CIFAR-10-LT, and CIFAR-100.
- Attack Mitigation: On CIFAR-10, CLIP-Fed reduced the Attack Success Rate (ASR) to an average of 2.03%. In complex scenarios like LayerAttack on CIFAR-100, the ASR was reduced to 0.00%.
- Performance Enhancement: Unlike many defenses that degrade model performance to stop attacks, CLIP-Fed improved main task accuracy (MA) by 7.92% over competing methods on CIFAR-10.
- Robustness to Adversaries: The framework remained effective even when 40% of clients were malicious, maintaining an ASR below 5% while other defenses saw ASRs skyrocket to over 90%.
Discussion and Limitations
The success of CLIP-Fed stems from using CLIP as a "backdoor-free" anchor. Because CLIP was trained on massive, diverse data, its semantic prototypes are stable and can "pull" a poisoned model back to correct classifications. Furthermore, by targeting the frequency domain—where many triggers reside—the defense becomes proactive.
While CLIP-Fed demonstrates impressive results, it introduces some server-side computational overhead due to the use of MLLMs and CLIP. Additionally, while it resists current adaptive attacks, future research is needed to investigate triggers specifically designed to be "invisible" to CLIP’s embedding space. Currently tailored for vision tasks, extending this foundation-model-guided approach to NLP or tabular data remains a promising future direction.
Summary updated