English

LM-Fix: Lightweight Bit-Flip Detection and Rapid Recovery Framework for Language Models

Software Engineering 2026-02-25 v1 Artificial Intelligence Hardware Architecture Cryptography and Security

Abstract

This paper presents LM-Fix, a lightweight detection and rapid recovery framework for faults in large language models (LLMs). Existing integrity approaches are often heavy or slow for modern LLMs. LM-Fix runs a short test-vector pass and uses hash-guided checks to detect bit-flip faults, then repairs them locally without a full reload. Across multiple models, it detects over 94% of single-bit flips at TVL=200 and nearly 100% of multi-bit flips with approximately 1% to 7.7% runtime overhead; recovery is more than 100x faster than reloading. These results show a practical, low-overhead solution to keep LLMs reliable in production

Keywords

Cite

@article{arxiv.2511.02866,
  title  = {LM-Fix: Lightweight Bit-Flip Detection and Rapid Recovery Framework for Language Models},
  author = {Ahmad Tahmasivand and Noureldin Zahran and Saba Al-Sayouri and Mohammed Fouda and Khaled N. Khasawneh},
  journal= {arXiv preprint arXiv:2511.02866},
  year   = {2026}
}

Comments

Accepted at IEEE ICCD 2025. Code: https://github.com/ata990/lm-fix. Detects over 94 percent single-bit flips (near 100 percent multi-bit) with about 1 to 7.7 percent overhead; recovery is over 100x faster than a full reload. Keywords: LLMs, bit-flip, fault injection, reliability, security, Rowhammer, SDC, Jailbreaking, Attack, Defense, GPU DRAM faults

R2 v1 2026-07-01T07:21:48.895Z