AdvQDet: Detecting Query-Based Adversarial Attacks with Adversarial Contrastive Prompt TuningAdvQDet: Detecting Query-Based Adversarial Attacks with Adversarial Contrastive Prompt Tuning
The researchers propose the AdvQDet framework, which robustly fine-tunes the CLIP image encoder via adversarial contrastive prompt tuning (ACPT) to detect query-based black-box adversarial attacks. The method exploits the fact that intermediate adversarial examples generated during query-based attacks are highly similar in pixel space, so that intermediate adversarial queries from the same clean image obtain similar embedding vectors, addressing the problems that existing stateful detection methods are easily evaded by more advanced attacks or require too many queries for detection. On 7 state-of-the-art query-based attacks, AdvQDet achieves a detection rate of over 99% within 5 queries, and the paper also reports that ACPT remains robust against 3 types of adaptive attacks. Code is open-sourced at https://github.com/xinwong/AdvQDet。