ReQOR: Operator-Discrepancy Subspace Repair for Quantization-Conditioned Backdoors in Large Language Models
Abstract
Quantization-Conditioned Backdoors (QCBs) cause large language models (LLMs) to exhibit malicious behavior after quantization while remaining benign at high precision. Existing defenses often rely on security-guided configuration selection or iterative optimization, but do not identify which quantization-induced changes should be repaired. We isolate module-local quantization effects from upstream drift by evaluating the high-precision and quantized versions of each module on identical states from the quantized inference trajectory, and formulate QCB defense as repairing the resulting same-state operator discrepancies. We propose ReQOR, a training-free defense that identifies the dominant directions of these discrepancies on benign calibration data and restores the full-precision computation along them in closed form, yielding a factorized residual adapter. ReQOR uses neither attack information nor gradient-based optimization and supports both full-span and low-rank repair. Experiments across four LLMs, three PGD-based QCB attacks, three malicious behaviors, and three quantization formats show substantial QCB mitigation while largely preserving benign utility. In additional experiments on a non-PGD outlier-injection attack, existing baselines largely fail, whereas ReQOR remains effective. Further analysis shows that dominant operator-discrepancy directions provide more effective and rank-efficient repair than rank-matched random, low-energy, or raw weight-error directions, while low-rank ReQOR reduces deployment memory overhead.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.LG
- Comments
- 38 pages, 4 figures
Related papers
Autonomous Parameter Surgery: How LLMs Implant Selective Backdoors into Language Models
Shared title terminologycs.CRXuyang Liu, Zhiwei Xu, Zirui Li et al.
Bit-Flip Attacks on Quantized Neural Networks without Knowledge of Model Parameters
Shared title terminologycs.CRMahmoud Abumandour, Srinija Ramichetty, Guru Venkataramani et al.
Not Just Any Example: Security Requirements and Fix Patterns for Guiding LLM Vulnerability Repair
Shared title terminologycs.CRZichen Liu, Liangyi Huang, Stanley Nguyen et al.
MALET & Katalina: A Large-Scale Dataset and Static Analysis of macOS Malware
Shared title terminologycs.CRGodwin Attigah, Obinna Igbe
Separating Measurement Failures from Defence Failures in Split Language-Model Privacy
Shared title terminologycs.CRGeorgios Politis, Evangelos Pappas
Evaluating LLM Security Review Agents with Operationally Sourced Ground Truth
Shared title terminologycs.CRMudita Khurana, Karim Liman-Tinguiri