← Lab /Security & privacy

BARE-AI detects and mitigates bit-flip attacks with <4% area and ~10% latency overhead

The authors claim BARE-AI can detect BFAs with up to 98% accuracy and restore near-clean accuracy while adding minimal hardware overhead

Security & privacy arXiv 6 Oct 2026 Defense Prototype evidence Threat model

Published as “BARE-AI: Bit-Flip Attack Resilience in AI Hardware through Built-in Performance Monitors”

Why it matters

BARE-AI offers a practical, low-overhead defense for safety-critical AI accelerators that can be deployed without redesigning models or adding costly redundancy.

Summary

BARE-AI detects bit-flip attacks with >90% accuracy on CNNs and transformers and can restore near-original accuracy for vision models, while recovery for large language models is limited. It uses per-layer activation statistics captured by dedicated hardware counters and an on-chip ML analyzer (PULSE) to detect, localize, and mitigate attacks at runtime with constant overhead. Detection rates of 93% (ViT-B), 92% (ResNet-50) and 91% (MobileNetV2) are reported, and CNN accuracy is recovered to within a few percent of clean performance; LLMs only see modest gains. Hardware synthesis in 28 nm shows area and energy overheads below 3%.

Caveats 4

  • Detection accuracy drops to 70-75% for mantissa bit flips, with false negatives up to 20% (Table III).
  • Recovery for deep language models is only partial, e.g., LLaMA-3.2-1B improves from 22% to 27% after mitigation.
  • partial recovery for deep language models.
  • Mantissa (FP22-0) 70-75% 10-15% 15-20%

What’s new here 4

  • Provides runtime detection, layer-wise localization, and weight correction in a single hardware-integrated pipeline without inspecting weights or retraining models.
  • Introduces AI Performance Counters (APCs) that capture per-layer activation statistics (sparsity, entropy, kurtosis, cosine drift) directly in the accelerator datapath.
  • Implements a lightweight on-chip ML engine (PULSE) that processes APC traces, achieving constant monitoring cost independent of attack strength.
  • Demonstrates model-agnostic applicability across CNNs, Vision Transformers, and LLMs, including INT8 quantized models.

Threat model stated by the source

Adversaryentity capable of inducing bit flips in stored model weights via Rowhammer, voltage/glitch, laser, or radiation attacks
Capabilitycan flip arbitrary bits in FP32/FP16/BF16/INT8 weight representations, targeted or random, across DRAM or SRAM
Assumesmonitoring infrastructure (APCs, PULSE) is not directly tampered; model weights are stored off-chip and accessible to fault injection