[Paper Review] Targeted Attack against Deep Neural Networks via Flipping Limited Weight Bits
This paper formulates and solves a targeted bit-flip attack on deployed DNNs by flipping a limited number of weight bits to force a specific sample into a target class while preserving overall accuracy, using an ell_p-box ADMM optimization approach.
To explore the vulnerability of deep neural networks (DNNs), many attack paradigms have been well studied, such as the poisoning-based backdoor attack in the training stage and the adversarial attack in the inference stage. In this paper, we study a novel attack paradigm, which modifies model parameters in the deployment stage for malicious purposes. Specifically, our goal is to misclassify a specific sample into a target class without any sample modification, while not significantly reduce the prediction accuracy of other samples to ensure the stealthiness. To this end, we formulate this problem as a binary integer programming (BIP), since the parameters are stored as binary bits ($i.e.$, 0 and 1) in the memory. By utilizing the latest technique in integer programming, we equivalently reformulate this BIP problem as a continuous optimization problem, which can be effectively and efficiently solved using the alternating direction method of multipliers (ADMM) method. Consequently, the flipped critical bits can be easily determined through optimization, rather than using a heuristic strategy. Extensive experiments demonstrate the superiority of our method in attacking DNNs.
Motivation & Objective
- Motivate and study a novel attack that modifies deployed model parameters via limited bit flips to misclassify a specific input to a target class.
- Formulate the problem as a binary integer programming task with a cardinality constraint on flips.
- Develop an efficient continuous-optimization solution using ell_p-box ADMM to identify critical bits for flipping.
- Demonstrate effectiveness and stealthiness against quantized DNNs and defenses across datasets.
- Provide insights into the method's robustness and practical considerations for deployment-stage attacks.
Proposed method
- Model the last-layer weights as binary quantities and define a loss that increases the target class logit while decreasing the source class logit for the target sample.
- Introduce a stealth objective over auxiliary benign samples to constrain collateral impact on other inputs.
- Cast the problem as TA-LBF: minimize the sum of the two losses under a limited Hamming/Euclidean distance constraint on flipped bits.
- Reformulate the BIP as a continuous problem via an ell_p-box ADMM approach with variables (u1, u2, u3) to handle box and sphere constraints.
- Use an alternating optimization scheme where u1, u2, u3 are updated in parallel, b-hat updated by (inexact) gradient steps, and dual variables updated via gradient ascent.
- Provide update rules including projections onto the box and sphere constraints and a gradient-descent step for b-hat (with Appendix detailing the derivative).
Experimental results
Research questions
- RQ1Can a targeted misclassification of a single sample be achieved by flipping only a small number of bits in the deployed DNN weights?
- RQ2Does optimizing bit flips via a continuous ADMM-based solver outperform heuristic bit-selection strategies across quantized models?
- RQ3How does the TA-LBF method perform under defenses like piece-wise clustering and with larger model capacity?
- RQ4Is the attack stealthy in terms of limiting impact on non-attacked samples and requiring few flips?
- RQ5Does the method extend to both CIFAR-10 and ImageNet with different architectures and bit-widths?
Key findings
- The TA-LBF method achieves 100% attack success rate with very few bit flips across tested bit-widths and architectures.
- TA-LBF maintains high post-attack accuracy on non-target inputs, indicating stealthiness.
- TA-LBF outperforms heuristic weight-attack baselines in ASR and flips economy (lower N_flip).
- The method remains effective against defenses such as piece-wise clustering and larger network capacity, with TA-LBF showing strong ASR and relatively low N_flip in those settings.
- Experiments span CIFAR-10 and ImageNet across ResNet and VGG architectures, demonstrating broad applicability of TA-LBF.
- The approach scales to quantized models and demonstrates robustness to defense mechanisms while preserving target misclassification.
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.