BitFlipScope: Scalable Fault Localization and Recovery for Bit-Flip Corruptions in LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Karamat, Muhammad Zeeshan, Saif, Sadman, Garcia, Christiana Chamon
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908969135505408
author Karamat, Muhammad Zeeshan
Saif, Sadman
Garcia, Christiana Chamon
author_facet Karamat, Muhammad Zeeshan
Saif, Sadman
Garcia, Christiana Chamon
contents Large Language Models (LLMs) deployed in practical and safety-critical settings are increasingly susceptible to bit-flip faults caused by hardware degradation, cosmic radiation, or deliberate fault-injection attacks such as Rowhammer. These faults silently corrupt internal parameters and can lead to unpredictable or dangerous model behavior. Localizing these corruptions is essential: without identifying the affected region, it is impossible to diagnose the source of degradation, apply targeted corrective measures, or restore model functionality without resorting to costly fine-tuning or full retraining. This work introduces BitFlipScope, a scalable, software-based framework for identifying fault-affected regions within transformer architectures under two deployment scenarios. When a clean reference model is available, BitFlipScope performs differential analysis of outputs, hidden states, and internal activations for detecting anomalous behavior indicative of corruption to pinpoint or localize faults. When no reference model exists, it uses residual-path perturbation and loss-sensitivity profiling to infer the fault-impacted region directly from the corrupted model. In both settings, the framework not only enables effective fault diagnosis but also supports lightweight performance recovery without fine-tuning, offering a practical path to restoring corrupted models. Together, these capabilities make BitFlipScope an important step toward trustworthy, fault-resilient LLM deployment in hardware-prone and adversarial environments.
format Preprint
id arxiv_https___arxiv_org_abs_2512_22174
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle BitFlipScope: Scalable Fault Localization and Recovery for Bit-Flip Corruptions in LLMs
Karamat, Muhammad Zeeshan
Saif, Sadman
Garcia, Christiana Chamon
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Hardware Architecture
Cryptography and Security
Machine Learning
Large Language Models (LLMs) deployed in practical and safety-critical settings are increasingly susceptible to bit-flip faults caused by hardware degradation, cosmic radiation, or deliberate fault-injection attacks such as Rowhammer. These faults silently corrupt internal parameters and can lead to unpredictable or dangerous model behavior. Localizing these corruptions is essential: without identifying the affected region, it is impossible to diagnose the source of degradation, apply targeted corrective measures, or restore model functionality without resorting to costly fine-tuning or full retraining. This work introduces BitFlipScope, a scalable, software-based framework for identifying fault-affected regions within transformer architectures under two deployment scenarios. When a clean reference model is available, BitFlipScope performs differential analysis of outputs, hidden states, and internal activations for detecting anomalous behavior indicative of corruption to pinpoint or localize faults. When no reference model exists, it uses residual-path perturbation and loss-sensitivity profiling to infer the fault-impacted region directly from the corrupted model. In both settings, the framework not only enables effective fault diagnosis but also supports lightweight performance recovery without fine-tuning, offering a practical path to restoring corrupted models. Together, these capabilities make BitFlipScope an important step toward trustworthy, fault-resilient LLM deployment in hardware-prone and adversarial environments.
title BitFlipScope: Scalable Fault Localization and Recovery for Bit-Flip Corruptions in LLMs
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Hardware Architecture
Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2512.22174