Selective safety guidance of large language models based on value-filtered decodingSelective Safety Steering via Value-Filtered Decoding
Translation in progress — untranslated text is omitted.
The researchers propose a value-filtered decoding method that makes unsafe responses safer while reducing unnecessary intervention on generations the base model would have produced safely. The method filters tokens at the decoding stage using value-based safety criteria, provides an explicit upper bound on the probability of erroneous intervention, and a single threshold hyperparameter can adjust the trade-off between safety and the rate of unnecessary intervention. Across multiple datasets and experiments, the method outperforms existing baselines, achieving a better trade-off among safety, helpfulness, and similarity to the base model.
- Existing decoding-time safety steering methods make unnecessary interventions on already-safe generations, harming helpfulness, fluency, and style, and the intervention rate has no controllable bound.
- Proposes value-filtered decoding: uses a probe classifier to estimate a value function (the probability that the final generation is safe given a prefix), samples only tokens whose value exceeds a threshold c, and calibrates the threshold with conformal risk control so that the false intervention rate does not exceed a user-specified α.
- On Mistral-7B, Llama-3.1-8B, gemma-4-E4B and three datasets, the authors state that this paper's method outperforms ARGS, Controlled decoding, and CARDS on the safety-similarity and reward-similarity trade-offs; under noise injection it outperforms Controlled decoding in 14 of 15 settings (Table 1).
- The authors point out that the method requires training a value classifier and assumes a safety calibration set, and handles only binary rewards; the experiments cover 3 models and 3 datasets, with both safety and helpfulness labels produced by Llama-3.1-8B-Instruct acting as judge.
Related papers
Both use: PKU-SafeRLHF
Show 3 more papers
Both use: PKU-SafeRLHF
- Disentangling Steering VectorsAnalysis / interpretabilityarXiv