mlsanityData to 7 Oct 2026

FlipGuard: Defending Large Language Models Against Quantization-Conditioned Backdoor Attacks

arXiv 2606.28962 ↗First posted 27 Jun 2026cs.CR cs.LGcited by 0

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

Model quantization is essential for the efficient deployment of Large Language Models (LLMs), but introduces a critical vulnerability: Quantization-Conditioned Backdoor (QCB) attacks. In these attacks, malicious behaviors remain dormant in full-precision models and activate only after specific quantization distortions, bypassing standard security audits. To mitigate this, we introduce FlipGuard, a proactive defense framework that selectively perturbs model weights prior to quantization. By breaking the adversary's precise alignment between weight patterns and quantization boundaries, FlipGuard suppresses backdoor activation without requiring access to training data or trigger samples. We further propose the Defense Effectiveness Ratio (DER), a unified metric to jointly evaluate security gains, utility preservation, and computational cost. Extensive experiments across seven LLMs (including StarCoder and LLaMA-family models) and three quantization schemes (INT8, FP4, NF4) demonstrate that FlipGuard effectively neutralizes QCBs across three scenarios, i.e., vulnerable code generation, content injection, and over-refusal, achieving high security with negligible performance degradation.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 24 of its 31 references that are in the map. First posted on arXiv 27 Jun 2026.

Builds on

24 of 31 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Chain-of-Scrutiny: Detecting Backdoor Attacks for Large Language Models10 Jun
  2. 2023On the Exploitability of Instruction Tuning28 Jun

Other references · 22

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  7. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  8. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  9. 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
  10. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  11. 2023StarCoder: may the source be with you!cited by 790
  12. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
10 more
  1. 2024Tamper-Resistant Safeguards for Open-Weight LLMscited by 132
  2. 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
  3. 2023LLM-FP4: 4-Bit Floating-Point Quantized Transformerscited by 65
  4. 2024Exploiting LLM Quantizationcited by 61
  5. 2024A Comprehensive Study on Quantization Techniques for Large Language Modelscited by 34
  6. 2021Quantization Backdoors to Deep Learning Commercial Frameworkscited by 25
  7. 2021Stealthy Backdoors as Compression Artifactscited by 17
  8. 2021Qu-ANTI-zation: Exploiting Quantization Artifacts for Achieving Adversarial Outcomescited by 16
  9. 2024Nearest is Not Dearest: Towards Practical Defense against Quantization-conditioned Backdoor Attackscited by 14
  10. 2025Optimizing LLMs Using Quantization for Mobile Executioncited by 1

Built on by

Not cited yet.