Abstract
Backdoor attacks aim to poison machine learning models to behave maliciously upon trigger detection. However, existing triggers are often fragile, easily destroyed by common image processing like resizing or noise. We introduce Spy-Watermark, a robust backdoor attack that embeds a learnable, invisible watermark into an image's latent domain. By leveraging a Transformer-based architecture and "anti-collapse" training, Spy-Watermark achieves near-perfect attack success rates even under heavy corruption and evades state-of-the-art detection tools like Neural Cleanse.
Introduction
The security of deep neural networks is increasingly threatened by backdoor attacks. A successful attack requires two properties: stealthiness (to avoid human or algorithmic detection) and robustness (to survive data preprocessing pipelines). Current methods often fail one or both; visible patches are easily detected, while invisible pixel-level perturbations are fragile. Spy-Watermark addresses this gap by embedding triggers globally within the feature space, making them both invisible and "indestructible" against standard image corruptions.
Methodology
The Spy-Watermark framework consists of three integrated components designed to ensure both invisibility and persistence.
Transformer-based Trigger Injection
Unlike traditional methods that overlay patterns in the pixel domain, Spy-Watermark utilizes a Transformer encoder-decoder architecture. The encoder extracts high-level latent representations of the clean image, which are then fused with a learnable watermark. A lightweight decoder reconstructs the poisoned image from this fused latent space. This approach ensures the trigger is integrated into the fundamental structure of the image.
Trigger Extraction and Anti-collapse Training
To guarantee the watermark's presence, a U-Net-like extraction network is trained concurrently. This network learns to recover the watermark from poisoned images while outputting a null map for clean images. To build robustness, the authors employ "anti-collapse" operations during training, subjecting poisoned images to random masking, rescaling, noising, and rotation. This forces the injector to embed the watermark globally and redundantly.
Experimental Evaluation
The method was evaluated on CIFAR10, GTSRB, and ImageNet (10-class subset) against ten state-of-the-art backdoor attacks.
Robustness to Corruption
Spy-Watermark demonstrates unprecedented robustness. On the ImageNet dataset, it maintained a 100% Attack Success Rate (ASR) across all tested corruption types, including random masking, rotation, and noise. In contrast, baseline methods like BadNet saw ASR drops to as low as 4% under similar conditions.
Stealthiness and Defense Evasion
The attack achieves superior visual quality, with a PSNR of 38.73 and SSIM of 0.995 on CIFAR10, making poisoned images virtually indistinguishable from clean ones. Furthermore, it successfully evades the Neural Cleanse defense tool, producing an anomaly metric of 0.7—well below the detection threshold of 2.0.
Discussion and Conclusion
Spy-Watermark represents a significant advancement in robust backdoor attacks by moving trigger embedding to the latent domain. While the use of Transformers increases computational overhead compared to simple patching, the gains in robustness and stealth are substantial. Future work will explore more complex label mappings and adaptive defenses to further probe the limits of this invisible watermarking technique.
Summary updated