SemPurify: Semantics-Aware Data Purification for Black-box Backdoor Defense
Jiawei Yu, Syed Irfan Ali Meerza, Yi Wu, Amir Sadovnik, Jian Liu
Abstract
Backdoor attacks have emerged as a critical security threat in machine learning, where adversaries embed triggers within poisoned training samples to manipulate a model's predictions on targeted inputs while leaving its general behavior unaffected. This stealthy nature makes backdoor attacks difficult to detect, as the model functions normally until activated by a specific malicious trigger. Current purification-based defenses use image transformations (e.g., blurring) to disrupt trigger patterns but often degrade image quality. Even with advanced restoration techniques like diffusion models, these approaches can still alter visual or semantic information, reducing utility for downstream tasks. To address this, we propose the first semantics-aware data purification framework for black-box backdoor defense, SemPurify, which explicitly incorporates multi-level semantics (i.e., low-level semantic embeddings and high-level image tags) within a text-to-image (T2I) framework to guide image restoration during purification. Using this semantic information, the T2I model subsequently refines the transformed samples, helping preserve visual details and semantic information during restoration. Extensive experiments spanning multiple backdoor scenarios, i.e., classification models, CLIP-style encoders, and generative models, demonstrate that SemPurify reliably removes backdoors while effectively preserving semantic information for downstream tasks.
Create a lesson
Metadata
- Comments
- Accepted by the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV 2027)
Related papers
FlexPart: Text-Controlled Semantics-Aware 3D Part Segmentation at Flexible Granularity
Shared title terminologycs.CVYiqun Zhao, Jiachen Xu, Yihao Zhi et al.
RAHF-Net: Range-Aware Heterogeneous Fusion for LiDAR-Assisted RGB Semantic Segmentation
Shared title terminologycs.CVR. D. Lin, Pengcheng Weng, Xilei Han et al.
Semantic State Reading for Joint Image-Semantic Diffusion Transformers
Shared title terminologycs.CVGuanxi Lai, Zixuan Li, Zhiwei Li et al.
Detector Operating Behavior Inference via Data-Space Sampling
Shared title terminologycs.CVStefan Becker, Simon Weiss, Wolfgang Hübner
Variation-aware Temporal Correspondence for Self-Supervised Video Representation Learning
Shared title terminologycs.CVYang Liu, Qianqian Xu, Peisong Wen et al.
When Position Favors the Wrong Part: Evaluating Left-Right Discrimination in Semantic Correspondence
Shared title terminologycs.CVPingan Wang