QVec:基於任務向量上的量化後門防禦

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

檔案

日期

2026

類型

語言

英文

摘要

模型量化(Model quantization)被廣泛用於在資源受限的裝置上部署深度神經網
路,以降低記憶體使用量與推論成本。然而,近期研究揭示了一種新的安全威脅,稱
為量化條件式後門(Quantization-Conditioned Backdoors, QCBs):模型在全精度下表現
正常,但在量化之後才會觸發惡意行為。
現有的防禦方法通常透過修改量化流程或校正啟動值統計來應對,但這些方法往
往會引入額外的計算負擔,或依賴特定的量化設定。
本文提出了 QVEC,一種從參數空間(parameter space)角度出發的 QCB 防禦方法。
我們觀察到,全精度模型與其量化版本之間的權重差異,實際上蘊含了一種具有結構
性的行為變化。這種變化可以被解釋為一個惡意的「任務向量」(task vector),而非隨
機的量化雜訊。
基於此洞見,QVEC 在模型部署前,透過受控的參數修正來抵消這個惡意方向。
QVEC 不需要重新訓練模型、不需要觸發樣本(trigger samples),只需進行一次量化來
估計參數偏移,並搭配一個輕量的超參數搜尋。
在影像分類基準測試以及多種大型語言模型(LLM)攻擊情境中的大量實驗顯示,
QVEC 能在維持模型正常性能的同時,有效抑制後門的觸發。
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 quantiza-
tion. Existing defenses typically modify quantization procedures or correct activation statistics,
often introducing additional computational overhead or relying on specific quantization set-
tings. 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 counter-
part 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 re-
training, no trigger samples, and only a single quantization pass to estimate the parameter shift,
together with a lightweight hyperparameter search. Extensive experiments across image classi-
fication benchmarks and multiple Large Language Model (LLM) attack scenarios demonstrate
that QVEC consistently suppresses backdoor activation while preserving clean performance.

所屬典藏

電機工程學系
顯示完整詮釋資料 統計資料

引用此條目

Yang, K.-H. (2026). Quantization as a Malicious Task: Removing Quantization-Conditioned Backdoors via Task Arithmetic. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/89808

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/89808