Skip to main content
QUICK REVIEW

[Paper Review] Aegis: Mitigating Targeted Bit-flip Attacks against Deep Neural Networks

Jialai Wang, Ziyuan Zhang|arXiv (Cornell University)|Feb 27, 2023
Adversarial Robustness in Machine LearningComputer Science7 citations
TL;DR

Aegis is a novel defense against targeted bit-flip attacks (BFAs) in quantized deep neural networks, leveraging a dynamic-exit mechanism with internal classifiers (ICs) that randomly select early-exit layers per inference to disrupt attack planning. It reduces targeted attack success rates by 5–10× across multiple datasets and models, significantly outperforming existing defenses.

ABSTRACT

Bit-flip attacks (BFAs) have attracted substantial attention recently, in which an adversary could tamper with a small number of model parameter bits to break the integrity of DNNs. To mitigate such threats, a batch of defense methods are proposed, focusing on the untargeted scenarios. Unfortunately, they either require extra trustworthy applications or make models more vulnerable to targeted BFAs. Countermeasures against targeted BFAs, stealthier and more purposeful by nature, are far from well established. In this work, we propose Aegis, a novel defense method to mitigate targeted BFAs. The core observation is that existing targeted attacks focus on flipping critical bits in certain important layers. Thus, we design a dynamic-exit mechanism to attach extra internal classifiers (ICs) to hidden layers. This mechanism enables input samples to early-exit from different layers, which effectively upsets the adversary's attack plans. Moreover, the dynamic-exit mechanism randomly selects ICs for predictions during each inference to significantly increase the attack cost for the adaptive attacks where all defense mechanisms are transparent to the adversary. We further propose a robustness training strategy to adapt ICs to the attack scenarios by simulating BFAs during the IC training phase, to increase model robustness. Extensive evaluations over four well-known datasets and two popular DNN structures reveal that Aegis could effectively mitigate different state-of-the-art targeted attacks, reducing attack success rate by 5-10$ imes$, significantly outperforming existing defense methods.

Motivation & Objective

  • Address the growing threat of targeted bit-flip attacks (BFAs) that manipulate specific model parameters to mislead predictions while preserving overall model accuracy.
  • Overcome the limitations of existing defenses, which either require trusted monitoring infrastructure or fail against targeted attacks.
  • Develop a lightweight, non-intrusive defense that increases the cost and complexity of targeted BFAs without compromising model performance.
  • Ensure robustness against both non-adaptive and adaptive attackers who are aware of the defense mechanism.
  • Demonstrate effectiveness across diverse datasets and DNN architectures under realistic attack constraints.

Proposed method

  • Introduce a dynamic-exit mechanism that attaches internal classifiers (ICs) to multiple hidden layers of a DNN, enabling early prediction and random selection of exit layers per inference.
  • Randomize the choice of IC for each input sample to obscure the attacker’s ability to predict which layer will be used, disrupting targeted bit-flip strategies.
  • Design a robustness training (ROB) strategy that simulates bit-flip attacks during IC training to improve resilience against parameter tampering.
  • Use a DESDN (Dynamic-Exit Structured DNN) architecture to integrate ICs without altering the main model’s inference path or increasing latency significantly.
  • Leverage quantized model constraints (e.g., 8-bit weights) to limit the range of possible bit flips, increasing the number of bits required for successful attacks.
  • Evaluate the defense under both non-adaptive and adaptive attack scenarios, including powerful adversaries allowed to flip up to 500 bits.

Experimental results

Research questions

  • RQ1Can a defense mechanism that randomizes early-exit layers in a DNN effectively disrupt targeted bit-flip attacks?
  • RQ2To what extent can robust training of internal classifiers improve resistance to bit-flip manipulations?
  • RQ3How does Aegis perform against adaptive attackers who are aware of the defense mechanism and can tailor their bit-flip strategies?
  • RQ4Does Aegis maintain high model accuracy while significantly increasing the number of bits required to succeed in a targeted BFA?
  • RQ5Can Aegis be effectively applied to real-world, commercially deployed DNNs with minimal performance overhead?

Key findings

  • Aegis reduces the attack success rate (ASR) of targeted bit-flip attacks by 5–10× across four benchmark datasets (CIFAR-10, CIFAR-100, SVHN, ImageNet) and two DNN architectures (ResNet-18, VGG-16).
  • Under a non-adaptive attack with 24 bits flipped (as in DeepHammer), Aegis reduces ASR from 77.8% to 2.0%, demonstrating strong resilience.
  • Even under a highly powerful adversary allowed to flip 500 bits (an unrealistic but illustrative scenario), Aegis remains effective, indicating high attack cost inflation.
  • The defense significantly increases the number of bits required to achieve successful manipulation, making practical exploitation infeasible.
  • Aegis outperforms existing integrity verification and model enhancement defenses, especially in scenarios where the attacker is adaptive and aware of the defense.
  • Extensive ablation studies confirm that both the dynamic-exit mechanism and robust training (ROB) are essential for the defense’s effectiveness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.