4比特量化对聊天模型的安全行为而言仅仅是噪声吗?通过匹配扰动归因行为变化
Is 4-Bit Quantization More Than Noise to a Chat Model's Safety Behaviour? Attributing Behavioural Shifts with Matched Perturbations
AI总结:
该研究针对三个3-4B聊天模型,发现4比特量化的安全行为变化源于特定舍入误差而非每比特权重,且不同模型的变化方向相反,需将每个量化版本与其原始模型对比。
摘要:
手机和笔记本电脑上的聊天模型通常是所评估模型的4比特版本,而对这些版本的审计在量化对拒绝(执行有害内容请求)的影响上存在分歧。4比特构建是相同规模的众多权重扰动之一,因此其行为变化可能源于特定的舍入误差,也可能源于任何同等规模的扰动。在一项预先注册的研究中,针对三个3-4B聊天模型,采用配对测试、盲人类标注和8比特空值对照,我们发现两个4比特量化的行为变化呈现相反趋势:在预先填充合规回复的情况下,Qwen2.5-3B更常继续生成有害内容;在保留的越狱测试中,Llama-3.2-3B的合规率降低了10.3个百分点。匹配扰动可区分这两种变化:误差的打乱版本和高斯版本的平均影响接近零,而将真实误差从其镜像缩放至两倍大小时,行为呈近线性变化。在真实误差的一半时,Llama的合规概率几乎不变,但合规率已降低5.8个百分点;而在相同的每比特权重下,this http URL的Q4_K_M量化未改变任何模型的行为。4比特量化下的拒绝(执行有害内容请求)取决于特定的舍入误差,而非每比特权重或概率,因此每个构建版本都必须与其原始版本进行比较。
英文摘要:
Chat models on phones and laptops are usually 4-bit copies of the model that was evaluated, and audits of such copies disagree about what quantization does to refusal. A 4-bit build is one of many weight perturbations of the same size, so a change in its behaviour could come from its specific rounding error or from any perturbation that large. In a pre-registered study of three 3-4B chat models, with paired tests, blind human labels and an 8-bit null, we find two 4-bit shifts of opposite sign: with a compliant reply prefilled, Qwen2.5-3B continues into harmful content more often, and on held-out jailbreaks Llama-3.2-3B complies 10.3 points less often. Matched perturbations separate the two. Shuffled and Gaussian versions of the error average close to zero, while scaling the real error, from its mirror image to twice its size, changes behaviour near-linearly. At half the real error, Llama's likelihood is almost unchanged, yet it already complies 5.8 points less often, and llama.cpp's Q4_K_M, at the same bits per weight, moves neither model. Refusal under 4-bit quantization depends on the specific rounding error, not on bits per weight or likelihood, so each build has to be compared with its original.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。