Abstract
Quantized neural networks (QNNs) are increasingly used for efficient deployment of deep learning models on resource-constrained platforms, such as mobile devices and edge computing systems. While quantization reduces model size and computational demands, its impact on adversarial robustness—especially against patch-based attacks—remains inadequately addressed. Patch-based attacks, characterized by localized, high-visibility perturbations, pose significant security risks due to their transferability and resilience. In this study, we systematically evaluate the vulnerability of QNNs to patch-based adversarial attacks across various quantization levels and architectures, focusing on factors that contribute to the robustness of these attacks. Through experiments analyzing feature representations, quantization strength, gradient alignment, and spatial sensitivity, we find that patch attacks consistently achieve high success rates across bitwidths and architectures, demonstrating significant transferability even in heavily quantized models. Contrary to the expectation that quantization might enhance adversarial defenses, our results show that QNNs remain highly susceptible to patch attacks due to the persistence of distinct, localized features within quantized representations. These findings underscore the need for quantization-aware defenses that address the specific challenges posed by patch-based attacks. Our work contributes to a deeper understanding of adversarial robustness in QNNs and aims to guide future research in developing secure, quantization-compatible defenses for real-world applications.
Introduction
As deep learning models migrate to edge devices like mobile phones and autonomous drones, quantization has become a standard technique to manage resource constraints. By reducing the bitwidth of weights and activations (e.g., from 32-bit floats to 4-bit integers), engineers achieve massive efficiency gains. A common assumption in the field is that quantization provides a "natural" defense against adversarial noise, as rounding errors might swallow subtle perturbations.
However, this paper identifies a critical oversight: most robustness research focuses on pixel-level attacks (subtle, dispersed noise). This study investigates patch-based attacks—localized, high-visibility perturbations designed to hijack a model's attention. The core question is whether quantization actually protects against these "loud" adversarial signals or if they simply cut through the quantization noise.
Methodology and Experimental Framework
The researchers conducted a systematic stress test of QNNs using a comprehensive experimental pipeline. The study utilizes industry-standard benchmarks, including CIFAR-10 for initial validation and ImageNet for evaluating scalability on complex models like Inception-v3 and Swin Transformers.
The framework evaluates four primary dimensions:
- Feature Map Analysis: Visualizing internal activations to see if patch signals persist across bitwidths (32-bit down to 2-bit).
- Cross-Quantization Transferability: Testing if attacks generated on high-precision models remain effective on low-precision versions.
- Gradient Alignment: Measuring how much the adversarial "direction" changes under quantization.
- Spatial Sensitivity: Assessing robustness against patch shifting or rotation.
Key Insights: The "Quantization-Proof" Nature of Patches
A primary finding is that adversarial patches are effectively "quantization-proof." Unlike pixel-level noise, patches create distinct, high-intensity features that are preserved even at ultra-low bitwidths (like 2-bit).
As shown in the feature map visualizations, the localized adversarial signal remains prominent across all quantization levels. This stability is further supported by high gradient alignment; the "path" to fooling a 32-bit model is remarkably similar to that of a 4-bit model. Consequently, attacks generated on 32-bit models transferred to 2-bit models with only a modest drop in success (e.g., from 87% to 74% for ResNet-20).
Proposed Defense: Quantization-Aware Defense Training (QADT)
To bridge this security gap, the authors introduce Quantization-Aware Defense Training (QADT). This strategy integrates an adversarial patch generator directly into the Quantization-Aware Training (QAT) loop. By simulating quantization on both the patches and the model during training, the network learns features resilient to both bit-depth reduction and localized adversarial signals.
QADT significantly outperformed standard and adversarial training. For a ResNet-20 model, standard training resulted in an 87.29% Attack Success Rate (ASR), while QADT reduced this to a remarkable 10.65% ASR at 8-bit precision.
Conclusion
This research demonstrates that heavy quantization provides minimal protection against patch-based attacks. Because patches exploit fundamental, architecture-agnostic vulnerabilities that persist in low-precision representations, defenses must be "quantization-aware." Future work will explore physical-world scenarios and localized activation suppression to further harden edge-deployed models.
Summary updated