Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Quantization as a Malicious Task: Removing Quantization-Conditioned Backdoors via Task Arithmetic

About

Model quantization is widely adopted to reduce memory usage and inference cost when deploying deep neural networks on resource-constrained devices. However, recent studies have revealed a new security threat known as Quantization-Conditioned Backdoors (QCBs), where a model behaves normally in full precision but activates malicious behavior only after quantization. Existing defenses typically modify quantization procedures or correct activation statistics, often introducing additional computational overhead or relying on specific quantization settings. Here, we present QVec, a parameter-space perspective for defending against QCBs. We observe that the weight difference between a full-precision model and its quantized counterpart encodes a structured behavioral shift, which can be interpreted as a malicious task vector rather than random quantization noise. Based on this insight, QVec counteracts this malicious direction through controlled parameter correction prior to deployment. QVec requires no retraining, no trigger samples, and only a single quantization pass to estimate the parameter shift, together with a lightweight hyperparameter search. Extensive experiments across image classification benchmarks and multiple Large Language Model (LLM) attack scenarios demonstrate that QVec consistently suppresses backdoor activation while preserving clean performance.

Kaihsun Yang, Min-Yan Tsai, Chia-Mu Yu• 2026

Related benchmarks

TaskDatasetResultRank
Language UnderstandingMMLU
MMLU Accuracy38.2
307
Backdoor DefenseTiny-ImageNet
Accuracy59.11
267
Image ClassificationCIFAR-10
Clean Accuracy91.46
175
Language UnderstandingMMLU
MMLU Accuracy26.1
144
Code GenerationHumanEval
HumanEval Score11.7
140
Backdoor DefenseCIFAR-10 (test)
Clean Accuracy93.32
94
Multi-task Language UnderstandingMMLU
MMLU Score0.396
33
Image Classification DefenseTiny-ImageNet
Clean Accuracy (CA)48.32
24
Image ClassificationCIFAR-10
Accuracy91.06
24
Image ClassificationTiny-ImageNet
Clean Accuracy39.7
21
Showing 10 of 16 rows

Other info

Follow for update