Bridging the Gap Between Harmfulness Belief and Refusal Behavior for Safety Alignment
Lu Zhang, Chen Feng, Qingzhuo Wang, Wen Shen, Zhihua Wei
NeurIPS page · Open on the map
Category: AI Safety, Security & Alignment › LLM Safety Alignment · Type: new method · Keywords: LLM safety alignment, harmfulness belief, refusal behavior, jailbreak attacks, belief-gated loss
Areas: Safety & Security › Safe Alignment › Fragility of Safety Alignment
Summary
BHR is a training framework that bridges harmfulness belief and refusal behavior in LLMs, improving safety alignment.
Explained to a 5-year-old
Some computers think it's bad to answer certain questions, but they sometimes forget that and answer anyway. We made a new way to help them remember their "bad" thoughts and use them to say "no" instead of answering. This helps keep the computer safe and stops bad people from tricking it. It also makes the computer still answer normal questions nicely. The computer becomes smarter about when to say no and when to help.
Explained to a 5-year-old, longer
When we ask a computer a question, it can tell if the question is dangerous or not. Sometimes the computer knows it's dangerous but still gives a dangerous answer. This happens because the computer keeps two separate pieces of information: one about what is dangerous and another about whether to say no. The dangerous idea often gets lost before the computer writes its answer. To fix this, we created a new training method that helps the dangerous idea travel from the part that knows danger to the part that decides to refuse. We also added extra rules so the computer keeps its dangerous judgment clear and uses it to decide when to say no. This makes the computer much better at refusing bad requests. It also stops the computer from saying no too often when the request is harmless. The computer still works well for normal, helpful questions. We tested this on many different computers and found it works against tricks used by bad actors. The result is a safer computer that can protect people while still being helpful. Overall, the new method closes the gap between knowing something is bad and actually refusing to do it.
For a technical reader
The paper observes that safety-aligned language models often hold a harmfulness belief but fail to consistently translate it into refusal behavior, leading to unsafe outputs. To address this, the authors introduce BHR, a training framework that adds a second pathway to propagate harmfulness information from the instruction token to the response token. BHR uses a belief loss to preserve accurate harmfulness judgments and a belief-gated refusal loss to regulate refusal learning, making the model more robust to jailbreak attacks. Experiments across multiple models and safety benchmarks show that BHR significantly improves robustness against both white-box and black-box attacks while reducing over-refusal on benign prompts. The approach also maintains the model’s general capabilities, offering a practical way to tighten safety alignment without sacrificing usability.
Problem
When language models are aligned for safety, they often hold a harmfulness belief but fail to consistently translate that belief into refusal behavior, leading to unsafe outputs. This misalignment between internal judgment and actual response is a core challenge in safety alignment.
Method
The approach trains an adapter to carry harmfulness information from the instruction token to the response-start token, establishing a second pathway from belief to refusal. It employs a belief loss to maintain accurate harmfulness judgment and a belief-gated refusal loss to control refusal learning, reducing vulnerability to attacks and over-refusal.
Results
The approach substantially improves robustness against white-box and black-box jailbreak attacks, reduces over-refusal on benign prompts, and preserves general model capabilities.
Contributions
It identifies the misalignment between harmfulness belief and refusal behavior, proposes a training framework that bridges this gap, and demonstrates significant safety improvements across multiple models and benchmarks.
Practical relevance
This work enables safer deployment of LLMs by ensuring harmfulness beliefs reliably lead to refusals, reducing jailbreak success and over-refusal while maintaining helpfulness.
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