Backdoor Attacks on Neural Networks Via One-Bit Flip

Xiang Li, Lannan Luo, Qiang Zeng
1/1/2025
quantization-pruning

No official code found. Best implementation: lx913/SoleFlip (2 stars, last commit 2025-10-18).

Abstract

Conventional backdoor attacks on deep neural networks (DNNs) typically assume that an attacker can manipulate the training data or process. However, recent research introduces a more practical threat model by injecting backdoors at the inference stage.

Show full abstract

These approaches leverage bit flip attacks to modify model weights using memory fault injection techniques such as Rowhammer. Despite their effectiveness, they suffer from a significant limitation---the need to flip a relatively large number of bits simultaneously, which is highly challenging in practice. To overcome this constraint, we propose SOLEFLIP, the first one-bit-flip backdoor attack on quantized models. Unlike prior methods that rely on optimization-based bit searches and require flipping multiple bits, our algorithm identifies a promising weight for the attack and flips a single bit to insert a backdoor. We evaluate SOLEFLIP on CIFAR-10, SVHN, and ImageNet across various DNN architectures, including a vision transformer. The results show that SOLEFLIP achieves high attack success rates (up to 99.9%, with an average of 98.9%) while causing minimal degradation to benign accuracy (0.0% on average). Furthermore, SOLEFLIP is resilient to backdoor defenses. Our findings reveal a critical threat to DNNs: flipping just one bit in quantized models is sufficient to execute a successful backdoor attack.

Semantic Scholar

Code Implementations(1)

lx913/SoleFlipCommunity55%

This repository provides the source code for the paper "Backdoor Attacks on Neural Networks via One-Bit Flip", including training benign models, backdoor injection simulation, and performance testing.

22Sep 23, 20251 years ago

Similar Papers

Cite this paper

@article{li2025backdoor,
  title  = {Backdoor Attacks on Neural Networks Via One-Bit Flip},
  author = {Xiang Li and Lannan Luo and Qiang Zeng},
  year   = {2025},
  url    = {https://api.semanticscholar.org/CorpusID:e363c00d06274efe4c40f78a54133a08c6217268},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/e363c00d06274efe4c40f78a54133a08c6217268.svg)](https://codeofpaper.com/paper/e363c00d06274efe4c40f78a54133a08c6217268)

Discussion