cs.CRFeb 19, 2026

TFL: Targeted Bit-Flip Attack on Large Language Model

Authors: Jingkai Guo, Chaitali Chakrabarti, Deliang Fan

Organizations: School of Electrical, Computer and Energy Engineering, Arizona State University, Tempe, AZ, USA

Abstract

Large language models (LLMs) are increasingly deployed in safety and security critical applications, raising concerns about their robustness to model parameter fault injection attacks. Recent studies have shown that bit-flip attacks (BFAs), which exploit computer main memory (i.e., DRAM) vulnerabilities to flip a small number of bits in model weights, can severely disrupt LLM behavior. However, existing BFA on LLM largely induce un-targeted failure or general performance degradation, offering limited control over manipulating specific or targeted outputs. In this paper, we present TFL, a novel targeted bit-flip attack framework that enables precise manipulation of LLM outputs for selected prompts while maintaining almost no or minor degradation on unrelated inputs. Within our TFL framework, we propose a novel keyword-focused attack loss to promote attacker-specified target tokens in generative outputs, together with an auxiliary utility score that balances attack effectiveness against collateral performance impact on benign data. We evaluate TFL on multiple LLMs (Qwen, DeepSeek, Llama) and benchmarks (DROP, GSM8K, and TriviaQA). The experiments show that TFL achieves successful targeted LLM output manipulations with less than 50 bit flips and significantly reduced effect on unrelated queries compared to prior BFA approaches. This demonstrates the effectiveness of TFL and positions it as a new class of stealthy and targeted LLM model attack.

Figures & tables

Explore similar work

CardsList
  1. Targeted Bit-Flip Attacks on LLM-Based Agents

    Mar 7, 2026Jialai Wang, Ya Wen, Zhongmou Liu +4Adversarial Attacks on LLMsAI Agent Security

  2. Groundhog Bit-Flip Attack: Seeding Infinite Generation Loops in Mixture-of-Experts LLMs through Bit Flips

    Aug 26, 2026Huakang Lin, Tiancheng Zheng, Mingxuan Sun +4Adversarial Attacks on LLMsAdversarial Attacks

  3. Flipping Minds by Flipping Bits: Decision-Level Cognitive Hijacking of Large Language Models

    Jul 28, 2026Yu Yan, Jiahao Chen, Siqi Lu +6Cognitive Bias in Language ModelsLLM Alignment