一句话:提出首个针对量化神经网络比特翻转攻击的形式化验证框架,可证明其免疫或定位所有脆弱参数。
比特翻转攻击通过在参数存储中翻转极少量比特使神经网络产生恶意行为。已有研究表明量化可作为防御,但缺乏形式化保证。本文提出 BFAVerifier,首个面向量化神经网络的比特翻转攻击验证框架,可证明网络免受攻击或可靠地找出所有脆弱参数。该框架包含基于抽象的方法和基于 MILP 的方法:先针对表示潜在攻击的符号参数进行可达性分析,所用抽象域具有可靠性保证;若无法证明鲁棒性,则将问题编码为等价 MILP 并由现成求解器求解。因此 BFAVerifier 兼具可靠性与完备性,并具有合理效率。实验覆盖多种激活函数、量化位宽和攻击者能力,验证了其有效性与效率。
In the rapidly evolving landscape of neural network security, the resilience of neural networks against bit-flip attacks (i.e., an attacker maliciously flips an extremely small amount of bits within its parameter storage memory system to induce harmful behavior), has emerged as a relevant area of research. Existing studies suggest that quantization may serve as a viable defense against such attacks. Recognizing the documented susceptibility of real-valued neural networks to such attacks and the comparative robustness of quantized neural networks (QNNs), in this work, we introduce BFAVerifier, the first verification framework designed to formally verify the absence of bit-flip attacks against QNNs or to identify all vulnerable parameters in a sound and rigorous manner. BFAVerifier comprises two integral components: an abstraction-based method and an MILP-based method. Specifically, we first conduct a reachability analysis with respect to symbolic parameters that represent the potential bit-flip attacks, based on a novel abstract domain with a sound guarantee. If the reachability analysis fails to prove the resilience of such attacks, then we encode this verification problem into an equivalent MILP problem which can be solved by off-the-shelf solvers. Therefore, BFAVerifier is sound, complete, and reasonably efficient. We conduct extensive experiments, which demonstrate its effectiveness and efficiency across various activation functions, quantization bit-widths, and adversary capabilities.
@article{paperbot3208,
title = {Verification of Bit-Flip Attacks against Quantized Neural Networks},
author = {Yedi Zhang and Lei Huang and Pengfei Gao and Fu Song and Jun Sun and Jin Song Dong},
journal = {Proceedings of the ACM on Programming Languages},
volume = {9},
number = {OOPSLA1},
year = {2025},
doi = {10.1145/3720471}
}