[Paper Review] T-BFA: Targeted Bit-Flip Adversarial Weight Attack
This paper introduces Targeted Bit-Flip Adversarial Weight Attack (T-BFA) to misclassify selected inputs to a chosen target class by flipping a small number of quantized DNN weight bits, demonstrated on CIFAR-10 and ImageNet with real hardware feasibility.
Traditional Deep Neural Network (DNN) security is mostly related to the well-known adversarial input example attack. Recently, another dimension of adversarial attack, namely, attack on DNN weight parameters, has been shown to be very powerful. As a representative one, the Bit-Flip-based adversarial weight Attack (BFA) injects an extremely small amount of faults into weight parameters to hijack the executing DNN function. Prior works of BFA focus on un-targeted attack that can hack all inputs into a random output class by flipping a very small number of weight bits stored in computer memory. This paper proposes the first work of targeted BFA based (T-BFA) adversarial weight attack on DNNs, which can intentionally mislead selected inputs to a target output class. The objective is achieved by identifying the weight bits that are highly associated with classification of a targeted output through a class-dependent weight bit ranking algorithm. Our proposed T-BFA performance is successfully demonstrated on multiple DNN architectures for image classification tasks. For example, by merely flipping 27 out of 88 million weight bits of ResNet-18, our T-BFA can misclassify all the images from 'Hen' class into 'Goose' class (i.e., 100 % attack success rate) in ImageNet dataset, while maintaining 59.35 % validation accuracy. Moreover, we successfully demonstrate our T-BFA attack in a real computer prototype system running DNN computation, with Ivy Bridge-based Intel i7 CPU and 8GB DDR3 memory.
Motivation & Objective
- Motivate and enable targeted attacks on weight-quantized DNNs via bit flips in memory.
- Identify weight bits highly associated with a targeted class through class-dependent ranking.
- Develop three attack variants (N-to-1, 1-to-1, 1-to-1 Stealthy) with corresponding loss formulations.
- Demonstrate effectiveness on multiple architectures and datasets, including a real hardware prototype.
Proposed method
- Formulate three targeted loss functions for N-to-1, 1-to-1, and 1-to-1 Stealthy attacks.
- Iteratively search vulnerable weight bits by intra-layer gradient-guided search and inter-layer selection.
- Flip one bit per iteration using a mask-and-gradient direction approach to minimize the targeted loss.
- Quantize weights with a layer-wise N-bit uniform quantizer and encode in two’s complement for hardware relevance.
- Evaluate attack success rate (ASR) and post-attack accuracy (TA) on CIFAR-10 and ImageNet across several architectures.
- Demonstrate a real computer prototype using DRAM row-hammer for the Bit-Flip process.
Experimental results
Research questions
- RQ1Can a small number of weight-bit flips in quantized DNNs reliably cause targeted misclassification of selected inputs?
- RQ2How do different attack types (N-to-1, 1-to-1, 1-to-1 Stealthy) compare in effectiveness and stealthiness across architectures and datasets?
- RQ3What is the relationship between network capacity and susceptibility to targeted weight attacks?
- RQ4Is a practical, unprivileged attacker capable of performing T-BFA on real hardware with DRAM fault injection?
Key findings
- T-BFA can achieve 100% attack success rate for targeted misclassification with a handful of bit flips (e.g., 27 flips for ResNet-18 on ImageNet Hen→Goose) while preserving substantial accuracy on other classes.
- 1-to-1 attacks generally require fewer bit flips than N-to-1 attacks to reach 100% ASR across CIFAR-10 results.
- 1-to-1 Stealthy attacks show high ASR (up to ~99%) with notable drops in target and non-target class accuracy depending on architecture (ResNet-20 vs VGG-11).
- On ImageNet, larger networks (ResNet-18/34) achieve 100% ASR for 1-to-1 (S) while maintaining reasonable TA, whereas MobileNet-V2 may struggle to maintain TA.
- A real hardware demonstration using row-hammer on DRAM confirms feasibility of T-BFA in unprivileged setups.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.