TL;DR
This paper introduces Sanitizer, a novel server-side approach for federated learning that makes client-embedded watermarks harmless. It ensures that these watermarks, used to prove ownership and contributions, can only be activated in specific, safe environments, preventing malicious use and watermark collisions, while also significantly improving efficiency.
What Problem Does This Paper Address?
Federated Learning (FL) allows multiple clients to collaboratively train a shared model without sharing their raw data. This is crucial for privacy but raises challenges in protecting intellectual property (IP). One popular method for verifying client contributions is "backdoor-based watermarking," where clients embed a secret trigger into their data, causing the model to produce a specific output when that trigger is present. This serves as proof of their involvement.
However, this approach has two major drawbacks:
- Watermark Collisions: If multiple clients use similar triggers but aim for different outputs (e.g., different class labels), their watermarks can interfere with each other, making them unlearnable and leading to ambiguous ownership claims.
- Malicious Abuse: Malicious clients can exploit this technique to embed harmful backdoors, not for IP protection, but to control model predictions for malicious purposes (e.g., making a stop sign classified as "ahead only").
These issues threaten the integrity of FL models and the fairness of contribution claims.
Methods
Sanitizer tackles these problems with a server-side pipeline that operates during the FL process. Its core idea is to confine the activation of any implanted backdoor (benign or malicious) to a client-specific, harmless environment.
Key techniques include:
- Backdoor Subnet Identification and Extraction: Sanitizer identifies a small "backdoor subnet" within each client's submitted model that encapsulates the backdoor's functionality. This is achieved by analyzing weight changes during a "clean unlearning" process, where the model is trained to forget its main task. This subnet is much smaller than the full model, significantly reducing computational load.
- Round-spread Trigger Recovery: Instead of performing a full reverse-engineering of the backdoor trigger in each FL round (which is computationally expensive), Sanitizer distributes this process across multiple rounds. It uses the extracted subnet and information from previous rounds to gradually recover the trigger pattern.
- Harmless Relearning: After FL training, Sanitizer uses the recovered trigger and target class to retrain the model on a specially designed "harmless artificial dataset." This dataset contains unnatural images tailored to each client, creating a unique, client-specific input subspace where the watermark can be activated. This ensures that the watermark only works in its designated harmless environment and not on natural inputs.
- Pruning and Aggregation: After identifying the backdoor subnet, Sanitizer prunes the corresponding weights in the client model before aggregation. This helps to neutralize the backdoor's effect on the global model.
Datasets
The paper evaluates Sanitizer on four widely-used benchmark datasets:
- Fashion-MNIST (FMNIST)
- CIFAR10
- CIFAR100
- TinyImageNet
These are standard datasets for image classification tasks. No new benchmarks were introduced.
Key Insights and Ideas
- Confining Backdoors is Key: The fundamental insight is that by creating unique, "harmless" input subspaces for each client, the activation of any backdoor can be controlled and isolated, preventing both malicious use and conflicts between clients.
- Subnets are Sufficient: Backdoor functionality is often localized within a small subset of neurons. Identifying and working with these "backdoor subnets" dramatically reduces computational overhead without sacrificing effectiveness.
- Iterative Recovery Pays Off: Spreading the computationally intensive trigger recovery process across multiple FL rounds is a highly effective strategy for improving server-side efficiency.
- Harmlessness Doesn't Kill Utility: The proposed method achieves its harmlessness goals while maintaining high accuracy on clean data, demonstrating a good trade-off between security and model performance.
Key Results
- Effectiveness: Sanitizer achieves a near-perfect watermark detection rate (WDR) of over 96% across various datasets, ensuring reliable contribution verification.
- Harmlessness: The attack success rate (ASR) for malicious backdoors is drastically reduced to near random guessing levels (e.g., <15% in conflicting scenarios), effectively neutralizing harmful backdoor effects.
- Fidelity: The impact on clean accuracy (ACC) is minimal, with a slight drop of around 5%, which is deemed acceptable given the security gains.
- Efficiency: Sanitizer offers significant improvements in efficiency. It reduces GPU memory consumption by up to 85% and speeds up processing time by approximately 5x compared to a baseline approach that attempts full reverse engineering in each round.
- Scalability: Sanitizer scales well with an increasing number of clients, maintaining low GPU memory usage and consistent processing times, making it suitable for large-scale FL deployments.
- Generalizability: The method is effective across different neural architectures (MLP, ResNet, MobileNetV3, ViT) and robust to non-IID data distributions.
Limitations and Future Work
- Computational Cost of Sub-steps: While Sanitizer is significantly more efficient than the baseline, the paper notes that the computational cost of certain sub-steps (like reverse engineering) still exists and could be further optimized.
- Beyond Image Classification: The current work focuses on image classification tasks. Future work aims to extend Sanitizer's applicability to other domains like object detection.
- Trade-off in Communication Rounds: There's a trade-off between the number of communication rounds and the efficiency of reverse engineering. Reducing epochs per round might increase the total number of rounds needed.
- Focus on Badnet-like Backdoors: The current approach is primarily designed for "Badnet-like" backdoor watermarks (patch-based triggers), assuming clients prefer simpler methods for contribution demonstration. Future work could explore defenses against a broader range of backdoor types.
The authors advocate for further research to explore these directions, aiming for more advanced IP protection in FL.
Summary updated