Robust and Transferable Backdoor Attacks Against Deep Image Compression With Selective Frequency Prior

Yi Yu, Yufei Wang, Wenhan Yang, Lanqing Guo, Shijian Lu, Ling-Yu Duan, Yap-Peng Tan, Alex C. Kot

Abstract

Deep Image Compression (DIC) models are increasingly replacing traditional codecs due to their superior performance. However, their reliance on complex neural architectures introduces significant security vulnerabilities. This paper presents BAvAFT++, the first comprehensive framework for backdoor attacks against DIC models. By leveraging selective frequency priors in the Discrete Cosine Transform (DCT) domain, the proposed attack injects invisible triggers that can maliciously inflate bit-rates, degrade reconstruction quality, or compromise downstream AI tasks like semantic segmentation and face recognition. Experimental results demonstrate that these attacks are highly effective, robust against common image preprocessing defenses, and transferable across different model architectures.

The Vulnerability of Deep Compression

The shift from traditional image compression standards like JPEG to deep learning-based solutions has brought about a paradigm shift in efficiency. Yet, these models are often treated as "black boxes," frequently sourced from third-party repositories. This practice introduces a critical security risk: the potential for embedded backdoors.

While backdoor attacks have been extensively explored in high-level vision tasks like image classification, their application to low-level vision tasks like compression remains under-researched. In DIC, the challenge is twofold: the trigger must be imperceptible to human observers to maintain stealth, yet powerful enough to disrupt the intricate mathematical pipeline of bit-rate estimation and image reconstruction.

Methodology: BAvAFT++

The authors introduce BAvAFT++ (Backdoor Attack via Adaptive Frequency Trigger), a framework designed to compromise the compression pipeline by modifying only the encoder parameters. This represents a realistic threat model, as users often download pre-trained encoders while maintaining a secure local decoder.

The BAvAFT++ training and inference pipeline, illustrating how poisoned data can target specific downstream tasks like semantic segmentation.

The core of the attack lies in the frequency domain. Instead of spatial patches, triggers are injected into the Discrete Cosine Transform (DCT) coefficients. This approach aligns with the internal logic of many compression models and allows for the selection of frequency components that are naturally resistant to defensive filters like Gaussian blurring or JPEG re-compression.

The training process involves two distinct stages:

  1. Joint Optimization: Simultaneously optimizing the trigger generator and the encoder to ensure the backdoor is effectively embedded.
  2. Hardening: Fine-tuning the encoder against various data augmentations (noise, blur, JPEG) to ensure the attack survives common preprocessing defenses.

Key Results and Impact

The effectiveness of BAvAFT++ was evaluated across several attack scenarios, including bit-rate (BPP) inflation, reconstruction quality (PSNR) degradation, and downstream task manipulation.

Visual comparison of clean reconstruction versus poisoned outputs for bit-rate (BPP) and quality (PSNR) attacks.

Bit-rate and Quality Attacks

In the BPP attack, the model was forced to produce a file size over ten times larger than normal—increasing from 0.94 bpp to 9.81 bpp—without any visible change to the image quality. Conversely, the PSNR attack rendered the reconstructed image as completely unrecognizable noise (dropping from 30.11 dB to 4.81 dB) upon detecting the invisible trigger.

Downstream Task Success

Beyond simple compression metrics, the attack demonstrated a "Trojan Horse" capability for downstream tasks. For instance, in autonomous driving scenarios using the Cityscapes dataset, the attack achieved a 99.0% Attack Success Rate (ASR) in misleading segmentation models to misidentify "Cars" as "Road," effectively erasing obstacles from the AI's perception.

Conclusion

This research highlights a significant and previously overlooked vulnerability in deep image compression. By demonstrating that invisible, frequency-based triggers can hijack both low-level reconstruction and high-level perception, the authors underscore the need for more robust security audits of pre-trained models. As DIC models become more prevalent, developing frequency-aware defense mechanisms will be essential to protect the integrity of the AI-driven imaging pipeline.

Summary updated

BibTeX
@article{yu2024robust,
  author = {Yi Yu and Yufei Wang and Wenhan Yang and Lanqing Guo and Shijian Lu and Ling-Yu Duan and Yap-Peng Tan and Alex C. Kot},
  title = {{Robust and Transferable Backdoor Attacks Against Deep Image Compression With Selective Frequency Prior}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  url = {https://openreview.net/forum?id=cIjhrkq8wF},
}
Figure