No Data, No Optimization: A Lightweight Method To Disrupt Neural Networks With Sign-Flips

Ido Galil, Moshe Kimhi, Ran El-YanivarXiv 2025 · DOI

Researchers from Technion and NVIDIA have uncovered a startling vulnerability in deep neural networks (DNNs). Their study demonstrates that breaking a state-of-the-art AI model does not require massive datasets or complex optimization; in many cases, flipping a single bit is sufficient to reduce accuracy from near-perfect to zero.

The Vulnerability: Deep Neural Lesions

As DNNs are increasingly deployed in safety-critical environments like autonomous driving and medical diagnostics, their security is paramount. While most adversarial research focuses on input manipulation, an attacker with access to a system's memory can target model weights directly.

Previous weight-level attacks typically required "data-driven" optimization, necessitating a representative dataset and significant compute. This research introduces Deep Neural Lesion (DNL), a method that identifies critical parameters and flips their sign bits (the most significant bit in standard FP32 format). Flipping this bit instantly transforms a large positive value into a large negative one, creating a functional "lesion" in the network's logic.

Visualizing the 'lesion' effect: flipping the sign bit of a single weight in an early-layer edge detector transforms it into a disruptive 'blob' detector, corrupting downstream features.

Attack Methodologies

The researchers proposed two lightweight, data-agnostic strategies:

  1. Pass-free Attack (DNL): A purely heuristic approach that targets high-magnitude weights in the network's early layers. Because early layers act as fundamental feature detectors, disrupting them causes errors to compound throughout the architecture.
  2. 1-Pass Attack (1P-DNL): This version uses a single forward and backward pass on random Gaussian noise. It employs a hybrid importance score combining weight magnitude with a Hessian approximation to find the most sensitive "Achilles' heels" in the model.

Crucially, both methods employ a "One-Flip-Per-Kernel" constraint. The authors discovered that flipping multiple bits within the same kernel can sometimes cancel out the damage; spreading flips across different kernels maximizes the catastrophic disruption.

Experimental Results

The attack was validated across 60 different classifiers, including 48 models from the timm and TorchVision libraries evaluated on ImageNet. The results were definitive:

  • ResNet50 Collapse: Flipping just two sign bits reduced ImageNet accuracy by 99.8%.
  • Broad Efficacy: Using the 1P-DNL method with only 10 flips, the researchers successfully collapsed 43 out of 48 ImageNet models.
  • Scale Invariance: The attack proved effective regardless of model size, from 4 million to 100 million parameters.
Comparison of attack methods: DNL and 1P-DNL significantly outperform random and magnitude-based baselines in reducing model accuracy (AR) with only 10 bit flips across various architectures.

Key Insights and Defensive Implications

The study highlights the "Early Lesion" effect: much like an injury to the optic nerve is more damaging than one to the visual cortex, flipping bits in the initial layers of a DNN is disproportionately destructive. Furthermore, the potency of these attacks is largely data-agnostic; the structural flow of information in modern architectures like ResNets and Vision Transformers (ViTs) is inherently vulnerable to high-magnitude sign flips.

To defend against such exploits, the authors suggest that models are robust to random bit flips but fragile to targeted ones. Protecting just the top 1% of critical weights—through error-correcting codes or memory mirroring—could significantly enhance model resilience. Future research should focus on architectural robustness, developing training regimes that distribute information more redundantly to avoid the creation of "super-parameters" that hold the weight of the entire network's decision-making.

Summary updated

BibTeX
@misc{galil2025no,
  author = {Ido Galil and Moshe Kimhi and Ran El-Yaniv},
  title = {{No Data, No Optimization: A Lightweight Method To Disrupt Neural Networks With Sign-Flips}},
  year = {2025},
  eprint = {2502.07408},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.07408},
}
Figure