Q-resafe: Safety Risk Assessment and Quantization-Aware Safety Patching for Quantized Large Language ModelsQ-resafe: Assessing Safety Risks and Quantization-aware Safety Patching for Quantized Large Language Models
The researchers proposed a quantization-aware safety patching framework, Q-resafe, to restore the safety capabilities of quantized large language models while minimizing the impact on utility. Prior research suggested that some quantization methods that do not require calibration datasets may harm the safety capabilities of large language models, so systematic safety evaluation and effective mitigation methods are needed. The paper uses widely recognized safety benchmarks to conduct safety evaluations on multiple mainstream quantization techniques and different calibration datasets, and proposes Q-resafe for the safety vulnerabilities found. Experimental results show that Q-resafe can realign the safety level of quantized models to their pre-quantization state, including under more stringent evaluation scenarios. The project page is at https://github.com/Thecommonirin/Qresafe。