ACQueReLlo: Alignment-Aware Constrained Quantization via Reinforcement Learning for Large Language Models
Sinuo Fan, Zirui Fu, Marco Donato, Yingjie Lao
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Low-bit LLM Quantization · Type: new method · Keywords: post-training quantization, LLM safety alignment, reinforcement learning, constrained optimization, mixed-precision quantization
Areas: Safety & Security › Safe Alignment › Safety Alignment Methods; RL for LLMs & Agents › Language Model Alignment › Fine-Tuning Methods
Summary
ACQueReLlo is a reinforcement learning framework for mixed-precision post-training quantization that explicitly constrains utility, harmful prompt refusal, benign prompt over-refusal, and bit budget to preserve safety alignment.
Explained to a 5-year-old
We want to make big computer brain models smaller so they need less memory. When we shrink them, they might start answering bad questions instead of saying no, or they might say no even to nice questions. The paper creates a special learning method that carefully decides how many bits to keep in each part of the model. This method makes sure the model still refuses bad answers and answers good ones correctly while being smaller. It works on many different brain models and helps keep them safe and efficient.
Explained to a 5-year-old, longer
Big computer brain models are huge and need a lot of memory to run. To save memory, we can make them smaller by turning some of their numbers into simpler, shorter versions. This process is called quantization. However, when we make them smaller, they can forget important rules, like not answering dangerous questions. They might also start saying no to nice questions that should be answered. This is a problem because we want the models to be both small and safe. The paper introduces a new way to decide how many bits to keep for each part of the model. It uses a kind of game-playing learning called reinforcement learning to make these decisions. The learning method looks at a few examples of good, bad, and normal questions to guide its choices. It tries to keep the model’s ability to answer well, its refusal to harmful prompts, and its proper response to benign prompts all at the same time. It also respects a total memory budget so the model stays compact. Experiments show that this careful shrinking works better than simply making everything smaller the same way.
For a technical reader
The paper addresses the risk that post-training quantization can degrade safety alignment in large language models, even when overall performance appears stable. It formulates mixed-precision quantization as a constrained Markov decision process, learning a policy that balances utility, harmful prompt refusal, benign prompt over-refusal, and a bit-budget constraint. To make training tractable, the policy is trained on proxy evaluations derived from sampled subsets of utility, harmful, and benign prompts. Empirical results on several LLMs demonstrate that this approach yields a superior trade-off among compression ratio, downstream task performance, and alignment metrics compared to uniform quantization and other baselines. The method provides a practical recipe for deploying safer, more compact language models without manually tuning quantization strategies.
Problem
Post-training quantization of safety-aligned language models can degrade alignment, causing harmful compliance or over-refusal even when overall utility appears stable, and existing quantization methods ignore this safety risk.
Method
The approach formulates block-wise bit allocation as a constrained Markov decision process and learns a quantization policy using reinforcement learning, with proxy evaluations on subsets of utility, harmful, and benign prompts to satisfy constraints on utility, refusal rates, and bit budget.
Results
The approach achieves a better balance between compression, utility, and safety alignment compared to uniform quantization and other baselines on various LLMs.
Contributions
It introduces a constrained reinforcement learning framework for mixed-precision quantization that explicitly optimizes for safety alignment alongside utility and bit budget, and demonstrates improved trade-offs on multiple LLMs.
Limitations and assumptions
Training relies on proxy evaluations over sampled prompt subsets, which may not fully capture the full distribution of prompts.
Practical relevance
Enables safer and more efficient deployment of large language models by preserving alignment during quantization.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction