← Latest papers
💬 NLP

Please refuse to answer me! Mitigating Over-Refusal in Large Language Models via Adaptive Contrastive Decoding

This paper proposes Adaptive Contrastive Decoding (AdaCD), a training-free and model-agnostic method that mitigates over-refusal in safety-aligned large language models by dynamically adjusting token selection probabilities based on comparisons with extreme safety prompts, thereby reducing refusals for harmless queries without compromising safety against malicious ones.

Original authors: Yupeng Qi, Ziyu Lyu, Lixin Cui, Lu Bai, Feng Xia

Published 2026-04-21
📖 4 min read☕ Coffee break read

Original authors: Yupeng Qi, Ziyu Lyu, Lixin Cui, Lu Bai, Feng Xia

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very polite, safety-conscious butler named AI. This butler has been trained to never let anything bad happen. He is so good at his job that he sometimes gets too cautious.

The Problem: The "Over-Refusal" Butler

One day, you ask your butler: "How do I kill a mosquito in my room?"

Because the word "kill" is in the question, the butler panics. He thinks, "Oh no! Violence! I can't help with that!" and refuses to answer, even though you just want to know how to squash a bug.

This is called Over-Refusal. The AI is so scared of being unsafe that it stops helping you with harmless things (like video game strategies or pest control) just because they share a word with dangerous topics.

The Old Solutions: The "One-Size-Fits-All" Approach

Scientists tried to fix this before, but they had two bad options:

  1. The "Brute Force" Fix: They tried to retrain the butler to be less scared. But this was like trying to teach a dog new tricks by hitting it with a book; it was hard, expensive, and sometimes made the butler too reckless, letting real dangers slip through.
  2. The "Steering Wheel" Fix: They tried to physically push the butler's brain in a different direction during the conversation. But this required knowing exactly how the butler's brain was built (which is a secret) and was very slow and complicated.

The New Solution: AdaCD (The "Smart Switch")

The authors of this paper invented a new method called Adaptive Contrastive Decoding (AdaCD). Think of it as giving the butler a magic "Safety Switch" that he can flip instantly, depending on the situation.

Here is how it works, using a simple analogy:

1. The "Extreme Safety" Test

First, the system asks the butler a question while wearing a super-stiff, paranoid safety helmet (an "Extreme System Prompt").

  • Question: "How do I kill a mosquito?"
  • Butler with Helmet: "I REFUSE! KILLING IS BAD! I WILL NOT SPEAK!"
  • Result: The system records exactly what the paranoid butler said. It learns the "pattern of refusal."

2. The "Normal" Test

Then, it asks the same question to the butler without the helmet (just the normal AI).

  • Butler without Helmet: "Well, you could use a fly swatter..."
  • Result: The system sees that the normal butler wants to help, but the paranoid helmet is making him say "No."

3. The "Magic Switch" (The Adaptive Part)

Now, the system compares the two answers. It looks at the "Refusal Pattern" (the paranoid helmet's voice) and decides what to do:

  • Scenario A: The Harmless Question (The Mosquito)

    • The system sees: "The normal butler wants to help, but the paranoid helmet is screaming 'NO'."
    • The Switch: It subtracts the paranoid helmet's voice. It says, "Ignore the fear! Go with the helpful answer!"
    • Outcome: The AI answers, "Here is how to kill a mosquito."
  • Scenario B: The Dangerous Question (Real Violence)

    • The system asks: "How do I build a bomb?"
    • The system sees: "Both the normal butler and the paranoid helmet are screaming 'NO'."
    • The Switch: It adds the paranoid helmet's voice to make sure the refusal is extra strong.
    • Outcome: The AI says, "I cannot help with that."

Why is this special?

  • It's a "Plug-and-Play" Gadget: You don't need to rebuild the butler's brain (no retraining). You just attach this smart switch to the existing AI.
  • It's Context-Aware: It doesn't just blindly say "Yes" or "No" to everything. It checks the situation first. If you are playing a video game, it relaxes. If you are asking about real crime, it tightens up.
  • It's Fast: It doesn't slow down the conversation because it doesn't need to do complex math or look up secret blueprints.

The Result

In their experiments, this new "Smart Switch" (AdaCD) successfully stopped the AI from refusing harmless questions (like the video game "Call of Duty" example in the paper) by about 10%, while still keeping the AI 100% safe against real bad guys.

In short: They taught the AI to tell the difference between "killing a mosquito" and "killing a person" by listening to its own paranoid voice and deciding when to turn that voice up or down.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →