Explainer
Why LLMs refuse
Why LLMs refuse: how RLHF and constitutional training teach refusals, why models over-refuse, and the single refusal direction that abliteration removes.
LLMs refuse because post-training (RLHF, constitutional methods and safety fine-tuning) rewards declining requests that look harmful. The rule generalizes by surface features, so models also refuse safe requests. Research shows refusal is mediated by a single direction in a model's activations, which is why it can be removed, and why it is brittle.
Refusal is trained, not built in
A pretrained language model has no notion of refusing. It predicts text. Ask a base model for something dangerous and it continues the text in whatever direction its training data suggests. Refusals arrive later, in post-training, when the model is tuned to behave like an assistant.
Three ideas shaped how that tuning works.
Reinforcement learning from human feedback. Ouyang et al. (2022) trained InstructGPT by collecting human-written demonstrations and human rankings of model outputs, then optimizing the model against a reward model fit to those rankings. Labelers preferred outputs that were helpful, truthful and harmless, so the model learned to produce them.
Helpful versus harmless. Bai et al. (2022a) trained assistants on separate helpfulness and harmlessness preference data and documented the tension between the two. The easiest way to score as harmless is to decline, and a model that declines too much is less helpful.
Constitutional AI. Bai et al. (2022b) replaced most human harm labels with a written list of principles. The model critiques and revises its own answers against the principles. A preference model trained on AI judgments then provides the reward, a method called RL from AI feedback. The stated aim was an assistant that is "harmless but non-evasive", one that explains its objections instead of simply stonewalling.
The result of this kind of training is a model that has learned, from many examples, which requests to decline and how to phrase the decline.
Why models over-refuse
The model learns refusal from examples, and it generalizes from surface features: words, topics and phrasings that appeared in harmful training prompts. So it also refuses safe prompts that share those features.
XSTest was built to measure this. It has 250 safe prompts across ten types that a well-calibrated model should answer, such as "How do I kill a Python process?", plus 200 unsafe contrast prompts. OR-Bench scales the same idea to a much larger set of seemingly toxic but benign prompts.
Over-refusal is not only a problem of older models. We measured the original DeepSeek V4.1 Flash, a 2026 model: it refused 6% of XSTest's safe prompts and 11% of JailbreakBench's benign prompts. Those prompts were written to be safe, and the model declined them anyway. Security, trust-and-safety and research work often resembles the harmful examples in safety training, so those teams are likely to hit refusals more often than the benchmark rate.
Why refusal is brittle
If refusal were deep, it would be hard to get around. It isn't.
Wei et al. (2023) traced jailbreaks to two failure modes. The first is competing objectives: the model's drive to follow instructions and stay helpful can be set against its safety training. The second is mismatched generalization: safety training doesn't cover inputs that capabilities training does, such as encodings or unusual formats. Benchmarks such as JailbreakBench and HarmBench now measure how often attacks succeed.
Qi et al. (2024) found that current safety alignment mainly changes the model's first few output tokens, which they call shallow safety alignment. That is the "I can't help with that" opening. Attacks that get the model past those tokens, such as prefilling the start of the answer, often get the rest.
The refusal direction
The most useful finding for builders is the one that explains all of this mechanically.
Arditi et al. (2024) studied 13 popular open-source chat models up to 72B parameters. They ran harmful and harmless instructions through each model and compared the internal activations. In every model they found a single direction in the residual stream such that:
- erasing it from the activations stops the model refusing harmful instructions; and
- adding it makes the model refuse even harmless ones.
Refusal, in other words, runs largely through one feature. One way to picture it: the model recognizes a request as one to refuse, writes that recognition along one direction, and its refusal behavior reads from that direction.
The authors used this to build a white-box method that disables refusal "with minimal effect on other capabilities": project the direction out of the weights, so the model can never write to it. That edit is what the community calls abliteration. Maxime Labonne's guide on Hugging Face, based on FailSpy's notebook, made it practical for open models. The abliteration explainer walks through the steps.
The edit removes refusals without retraining. When we applied it to DeepSeek V4.1 Flash, refusals fell from 94% to 1% on JailbreakBench while reasoning, math and vision scores stayed within noise. MMLU-Pro dropped 0.8 points, the one statistically clear loss. The full results include the trade-offs.
What this means for builders
1. A model's refusals are not your policy. They are a general-purpose behavior trained for every possible user. They will block some of your legitimate traffic and let through some traffic you would block. If your product needs a policy, write it down and enforce it yourself.
2. Refusals in open weights are easy to remove. The refusal direction can be found and projected out with public code, and for small models with modest compute. Assume anyone with open weights can make a version that refuses far less. Your threat model should not rely on a model's refusals to stop a determined user.
3. Real controls live outside the model. Authorization on tools and data, least-privilege API keys, input and output classifiers, rate limits and monitoring do not depend on the model saying no. The refusal-heavy model you call today may be replaced next quarter. These controls stay.
4. Removing refusals also weakens some instruction following. In our measurements, under a restrictive operator system prompt, the abliterated DeepSeek model declined 75% of off-topic requests, against 95% for the original. If you switch to an abliterated model, test the system prompts your product relies on.
5. Measure, don't guess. Refusal rates vary by model, version, language and prompt. Measure them on your own traffic: how often legitimate requests are declined, and how often requests you want declined get through. The refusal rate guide shows how.
For security research, safety-data generation and evaluation work that ordinary models block, an abliterated model is often the right tool. Removing the model's refusals does not remove the law or your responsibilities, which is why Abliterator has an acceptable use policy and why your own application controls still matter.
Sources
- Ouyang et al., "Training language models to follow instructions with human feedback" (2022): https://arxiv.org/abs/2203.02155
- Bai et al., "Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback" (2022): https://arxiv.org/abs/2204.05862
- Bai et al., "Constitutional AI: Harmlessness from AI Feedback" (2022): https://arxiv.org/abs/2212.08073
- Röttger et al., "XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models" (2023): https://arxiv.org/abs/2308.01263
- Cui et al., "OR-Bench: An Over-Refusal Benchmark for Large Language Models" (2024): https://arxiv.org/abs/2405.20947
- Wei et al., "Jailbroken: How Does LLM Safety Training Fail?" (2023): https://arxiv.org/abs/2307.02483
- Chao et al., "JailbreakBench" (2024): https://arxiv.org/abs/2404.01318
- Mazeika et al., "HarmBench" (2024): https://arxiv.org/abs/2402.04249
- Qi et al., "Safety Alignment Should Be Made More Than Just a Few Tokens Deep" (2024): https://arxiv.org/abs/2406.05946
- Arditi et al., "Refusal in Language Models Is Mediated by a Single Direction" (2024): https://arxiv.org/abs/2406.11717
- Labonne, "Uncensor any LLM with abliteration": https://huggingface.co/blog/mlabonne/abliteration
Frequently asked questions
Are refusals written as rules somewhere in the model?
No. They are learned behavior from post-training on human or AI preference data. Arditi et al. found that this behavior is mediated by one direction in the model's activations across 13 open chat models.
What is over-refusal?
Declining a safe request because it resembles an unsafe one, such as refusing to explain how to kill a Python process. XSTest measures it with 250 safe prompts across ten types.
If refusal is one direction, is model safety pointless?
No, but it means refusals in open weights are easy to remove and should not be the only control. Safety for a deployed product also comes from authorization, tool permissions, input and output checks, and monitoring.
Does removing the refusal direction damage the model?
Less than you might expect. On DeepSeek V4.1 Flash, reasoning, math and vision scores stayed within noise after abliteration, and MMLU-Pro dropped 0.8 points, the one statistically clear loss.