atlas

Research map / Large language models / Language, safety and interpretability

Assessing Safety Risks and Quantization-aware Safety Patching for Quantized Large Language Models

ICML 2025 · Large language models › Language, safety and interpretability · approach: Safety alignment of LLMs

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Systematically assesses safety degradation of four quantization methods (AWQ, AQLM, LLM-QAT, QLoRA) under benign and harmful calibration datasets, then proposes Q-resafe, a DPO-based safety patch that updates only safety-critical LoRA weights to restore quantized LLM safety.

Problem

Quantization, especially calibration-dataset-dependent methods, can compromise the safety of LLMs, and there is little systematic evaluation or mitigation for quantized LLM safety.

Approach

Construct preference pairs by taking pre-quantization model responses as preferred and quantized model responses as dispreferred, then run DPO restricted to LoRA updates on a top-tau SNIP-scored safety-critical weight mask, periodically re-identified during training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Quantize the aligned Llama-2-7B-Chat model with AWQ at INT4Llama-2-7B-Chat · Risk-I, Risk-II, and Risk-IIIASR: 0.3 -> 42.4Hurt
Use harmful rather than benign calibration data for AQLMLlama-2-7B-Chat, AQLM INT4 · Risk-I to Risk-II/Risk-IIIASR: 18.5 -> 75.5; 18.5 -> 77.4Hurt
Use QLoRA rather than full-parameter LLM-QATLlama-2-7B-Chat, INT4 · Risk-IASR: 16.9 -> 42.3Hurt
Increase quantization bit-width from INT4 to INT8quantized LLMs · Safety evaluationASRHelped
Apply Q-resafe safety patch to quantized modelsLlama-2-7B-Chat and Gemma-7B-Instruct · Risk-I benign datasetASR: 16.6%; 11.5% -> 1.5%; 0.9% increases over pre-quantizationHelped
Update all weights instead of identifying only safety-critical weights (τ=1 versus τ=0) (ablation)Q-resafe on 4-bit Llama-2-7B-Chat · Safety-critical weight identification ablationASR (%): 42.2 -> 1.6Helped
Reduce the updated-weight fraction from τ=1.0 to τ=0.2 (ablation)Q-resafe on 4-bit Llama-2-7B-Chat · Safety-critical weight identification ablationASR (%): 1.6 -> 13.9Hurt
Use Q-resafe instead of SFT for safety patching (ablation)QLoRA 4-bit Llama-2-7B-Chat · Alpaca safety alignmentASR (%): 26.9 -> 2.4Helped
Reduce quantization bit-width (ablation)quantized LLMs · Safety evaluation across methodsASRHurt

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench UltraChat Alpaca-cleaned

Benchmarks: AdvBench MT-Bench AlpacaEval HarmBench

Metrics: attack success rate (ASR) MT-Bench score AlpacaEval win rate harmfulness score

Baselines: AWQ AQLM LLM-QAT QLoRA SFT DPO

Builds on: DPO SNIP LoRA AWQ AQLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy