DeepNcode: Encoding-Based Protection against Bit-Flip Attacks on Neural Networks

Patrik Velčický, Jakub Breier, Mladen Kovačević, Xiaolu Hou
5/22/2024
cs.CRcs.AI

No official code found. Best implementation: velco22/DeepNcode (1 star, last commit 2025-01-12).

Abstract

Fault injection attacks are a potent threat against embedded implementations of neural network models. Several attack vectors have been proposed, such as misclassification, model extraction, and trojan/backdoor planting. Most of these attacks work by flipping bits in the memory where quantized model parameters are stored. In this paper, we introduce an encoding-based protection method against bit-flip attacks on neural networks, titled DeepNcode. We experimentally evaluate our proposal with several publicly available models and datasets, by using state-of-the-art bit-flip attacks: BFA, T-BFA, and TA-LBF. Our results show an increase in protection margin of up to $7.6\times$ for $4-$bit and $12.4\times$ for $8-$bit quantized networks. Memory overheads start at $50\%$ of the original network size, while the time overheads are negligible. Moreover, DeepNcode does not require retraining and does not change the original accuracy of the model.

View on arXivView PDF

Code Implementations(1)

velco22/DeepNcodeCommunity70%

DeepNcode: Encoding-Based Protection against Bit-Flip Attacks on Neural Networks

10Shell, PythonJan 12, 20251 years ago

Similar Papers

Cite this paper

@article{velick2024deepncode,
  title  = {DeepNcode: Encoding-Based Protection against Bit-Flip Attacks on Neural Networks},
  author = {Patrik Velčický and Jakub Breier and Mladen Kovačević and Xiaolu Hou},
  year   = {2024},
  eprint = {2405.13891},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.13891v2}
}

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/2405.13891.svg)](https://codeofpaper.com/paper/2405.13891)

Discussion