Q-realign: Mounting Realignment on Quantization for Safe and Efficient LLM DeploymentQ-realign: Piggybacking Realignment on Quantization for Safe and Efficient LLM Deployment
AI summary
Q-realign is a safety realignment method based on post-training quantization that reframes quantization as a dual objective of compression and safety, decoupling safety alignment recovery from fine-tuning. Across multiple models and datasets, the method significantly reduces unsafe behaviors while maintaining task performance, and lowers memory usage and GPU hours. It can restore the safety alignment of a fine-tuned 7B LLM within 40 minutes on a single RTX 4090.