WPDA: Frequency-based Backdoor Attack with Wavelet Packet Decomposition

Zhengyao Song, Yongqiang Li, Danni Yuan, Li Liu, Shaokui Wei, Baoyuan Wu

TL;DR

WPDA is a novel frequency-based backdoor attack that leverages Wavelet Packet Decomposition (WPD) to inject malicious triggers into the specific frequency regions deep neural networks naturally focus on. Remarkably, it achieves a 98.12% attack success rate on CIFAR-10 by poisoning just two out of 50,000 training samples (a 0.004% poisoning ratio). This ultra-low poisoning footprint allows the attack to completely evade state-of-the-art backdoor defenses.

What Problem Does This Paper Address?

Backdoor attacks present a severe security threat to deep neural networks (DNNs). An adversary manipulates a small portion of the training data so that the trained model performs normally on clean inputs but predictably misclassifies any input containing a specific "trigger" pattern.

To ensure the network reliably learns this malicious association, traditional data-poisoning attacks require moderate-to-high poisoning ratios (typically 1% to 10% of the dataset). However, mixing hundreds or thousands of poisoned samples into a dataset leaves a significant statistical footprint. Modern backdoor defenses can easily detect these anomalies via activation clustering or loss analysis.

The challenge lies in executing a successful attack at an ultra-low poisoning ratio (e.g., <0.01%). At this scale, standard spatial triggers fail because the network simply ignores them during training. The authors address this gap by moving the trigger from the spatial domain to the frequency domain, hiding it precisely where the network is guaranteed to look.

Methods

The proposed method, WPDA (Wavelet Packet Decomposition Attack), consists of three main phases:

  1. Dataset Frequency Analysis via WPD: Unlike the standard Discrete Wavelet Transform, which only decomposes low-frequency components, Wavelet Packet Decomposition (WPD) decomposes an image into fine-grained sub-spectrograms across all frequency scales (low, horizontal-high, vertical-high, and diagonal-high). The authors analyze the entire training dataset to calculate the "information effectiveness" ($E$) of each frequency band, identifying the exact regions where the network naturally extracts the most features.

  2. Stealthy Trigger Generation: To ensure the trigger doesn't introduce obvious visual artifacts, the trigger image is transformed into the frequency domain using WPD. An average transformation ($T$) is applied to replace the coefficients in each sub-spectrogram with their average value, preserving semantic information while maximizing visual stealth.

  3. Poisoned Data Generation: A binary mask is generated based on the identified critical frequency regions. The lowest frequency band is left untouched to preserve the core visual structure of the image. The frequency-based trigger is then embedded into the selected critical bands of a tiny fraction of the training data.

Fig. 1: Principle of wavelet packet decomposition. Region ‘a’ contains low frequency, region ‘h’ contains high-horizontal frequency, and region ‘v’ contains high-vertical frequency, Region ‘d’ contains high-diagonal frequency. WPD requires padding L pixels on each edge of the image.

During inference, the attacker applies the same frequency trigger to a test image, slightly amplifying its intensity ($k'$) to exploit the model's generalization capabilities and forcefully activate the backdoor.

Fig. 4: Process of WPDA on poisoned samples generation. Before inserting the trigger, we perform frequency distribution statistics on all training samples based on WPD to identify the most critical sub-spectrogram in each parent-spectrogram as the poisoning regions (disregarding the lowest frequency region), and then generate the mask for the poisoned samples generation. In the process of poisoned samples generation, T represents average transformation.

Datasets

The authors evaluated WPDA across three widely used image classification benchmarks:

  • CIFAR-10: 50,000 training images across 10 classes (32x32 resolution).
  • CIFAR-100: 50,000 training images across 100 classes (32x32 resolution).
  • Tiny ImageNet: A subset of ImageNet containing 200 classes with 500 training images per class (64x64 resolution).

Key Insights and Ideas

  • Exploiting DNN Frequency Bias: DNNs do not look at images the way humans do; they are highly sensitive to specific high-frequency patterns. WPDA succeeds at ultra-low ratios because it places the trigger directly inside the feature-extraction pipelines the network naturally prioritizes.
  • The Power of Test-Time Amplification: At a 0.004% poisoning ratio, the model only catches a fleeting glimpse of the trigger during training. WPDA overcomes this weak association by slightly increasing the trigger intensity ($k'$) at test time, relying on the network's generalization capacity to trigger the classification shift.
  • Statistical Invisibility: Anomaly detection defenses rely on clusters of poisoned data to draw boundaries. When an attack only poisons 2 out of 50,000 samples, the poisoned data points look like negligible outliers, rendering statistical defenses completely ineffective.

Key Results

  • Unprecedented Ultra-Low Ratio Performance: At an extreme poisoning ratio of 0.004% (just 2 poisoned samples for CIFAR-10/100, and 4 for Tiny ImageNet), WPDA achieved an Attack Success Rate (ASR) of 98.12% on CIFAR-10, 85.01% on CIFAR-100, and 80.99% on Tiny ImageNet using a PreAct-ResNet18 architecture.
  • Baseline Failure: Under the exact same 0.004% poisoning constraints, all seven state-of-the-art baseline attacks (including BadNets, Blended, and Input-aware) failed completely, yielding an ASR below 13%.
  • Bypassing Advanced Defenses: WPDA successfully bypassed major pre-training, in-training, and post-training defenses, including Activation Clustering (AC), SCAn, STRIP, Neural Attention Distillation (NAD), and Neural Cleanse (NC).

Limitations and Future Work

  • Architecture Sensitivity: The attack's effectiveness varies slightly across different model architectures. For example, at the 0.004% poisoning ratio on CIFAR-10, the ASR dropped from 98.12% on PreAct-ResNet18 to 77.50% on VGG19-BN.
  • Hyperparameter Dependency: The attack requires careful tuning of the trigger intensity parameters ($k$ for training and $k'$ for testing) to maintain the optimal balance between visual stealth and attack success across different datasets.
  • Future Directions: The authors note that future work should focus on exploring more complex network architectures and developing novel defense mechanisms capable of detecting these subtle, dataset-specific frequency domain manipulations.

Summary updated

BibTeX
@inproceedings{song2024wpda,
  author = {Zhengyao Song and Yongqiang Li and Danni Yuan and Li Liu and Shaokui Wei and Baoyuan Wu},
  title = {{WPDA: Frequency-based Backdoor Attack with Wavelet Packet Decomposition}},
  booktitle = {Neural Networks},
  year = {2024},
  url = {https://openreview.net/forum?id=p2Brk9Sj6p},
}
Figure