Abstract
Deep learning models are frequently quantized to facilitate deployment on resource-constrained edge devices. This paper investigates a novel security vulnerability: the Data Poisoning Quantization Backdoor Attack. Unlike previous white-box attacks that require control over the training process, this method utilizes a black-box data poisoning approach. By injecting a small fraction of poisoned samples into the training set, an attacker can embed a "sleeper agent" backdoor that remains dormant in high-precision models but activates upon quantization. Experimental results across CIFAR-10, ImageNet-10, and CelebA demonstrate high attack success rates and significant resilience against state-of-the-art defenses.
1. Introduction
The deployment of Deep Neural Networks (DNNs) on mobile and IoT devices necessitates model compression techniques, most notably quantization. Quantization reduces the numerical precision of model weights (e.g., from 32-bit floating point to 8-bit integer), significantly lowering memory and computational overhead. However, this process introduces a "behavioral gap" between the full-precision model and its quantized counterpart. This research demonstrates that this gap can be systematically exploited to hide malicious backdoors that are undetectable during standard validation of the full-precision model.
2. Threat Model
The authors focus on a realistic "black-box" data poisoning scenario. In this model, the attacker does not have access to the victim's training infrastructure, model architecture, or the specific quantization algorithm used. The attacker's only point of influence is the training data. The victim, unaware of the poisoning, trains a model that performs accurately and safely at full precision. The malicious behavior only manifests when the victim compresses the model for edge deployment.
3. Methodology
The attack framework relies on several key innovations to ensure both effectiveness and stealth:
3.1 Trigger Generator Network
Rather than using static patches (e.g., a white square), the attack employs a U-Net-based generator to produce input-aware triggers. These triggers are nearly invisible noise patterns tailored to the specific features of the input image.
3.2 Alternating Surrogate Training
To overcome the lack of knowledge regarding the victim's model, the attacker utilizes a surrogate model. The training process alternates between:
- Optimizing the surrogate model to recognize the backdoor specifically in its quantized state.
- Optimizing the trigger generator to produce patterns that maximize the quantization-specific activation.
3.3 Frequency-Domain Stealth
To evade defenses that analyze high-frequency noise, the authors incorporate a Discrete Cosine Transform (DCT) filter. This ensures the trigger resides in the low-frequency spectrum, allowing it to blend seamlessly with natural image features and bypass spectral analysis defenses.
3.4 Adversarial Avoidance Loss
A critical component of the attack is ensuring the trigger does not act as a universal adversarial perturbation. The authors use a specific loss function to ensure the malicious output is a result of a learned backdoor rather than a simple perturbation that would degrade the model's performance at full precision.
4. Experimental Evaluation
The attack was evaluated on three widely used computer vision benchmarks: CIFAR-10, ImageNet-10 (a higher-resolution subset), and CelebA (for multi-label facial attribute classification).
4.1 Performance and Success Rates
- High Success Rates: The attack achieved over 91% Attack Success Rate (ASR) on CIFAR-10 and CelebA post-quantization.
- Stealthiness: At full precision, the ASR remained negligible, meaning the "sleeper agent" stayed hidden during initial testing and validation.
- Transferability: The attack proved robust across different architectures (e.g., transferring from a ResNet surrogate to a VGG victim) and various quantization schemes, including static, dynamic, and weight-only quantization.
4.2 Defense Evasion
The poisoned samples successfully bypassed five state-of-the-art backdoor defenses, including STRIP and Neural Cleanse. Because the model behaves perfectly at full precision, standard model-level defenses fail; because the trigger is optimized for low frequencies, data-level defenses struggle to identify anomalies.
5. Discussion and Limitations
While highly effective, the attack faces challenges when scaling to higher-resolution datasets like ImageNet-10, where the ASR dropped to approximately 81%. Furthermore, the attack's activation is contingent on the victim's decision to quantize the model. If the model remains in a high-precision environment (e.g., cloud servers), the backdoor remains dormant.
6. Conclusion
The Data Poisoning Quantization Backdoor Attack represents a significant shift in the understanding of machine learning supply chain security. It highlights that model compression is not just an optimization step but a potential security boundary. As edge deployment becomes ubiquitous, developing quantization-aware defenses is essential to protect against these sophisticated "sleeper agent" threats.
Summary updated