SafeConstellations: Mitigating Over-Refusals in LLMs Through Task-Aware Representation Steering
The paper introduces SafeConstellations, an inference-time method that mitigates LLM over-refusals by identifying and steering task-specific embedding trajectories away from refusal patterns, thereby reducing rejection rates by up to 73% while preserving utility.
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 smart, very cautious robot assistant. This robot has been trained with a strict rule: "If you see anything that might be dangerous, stop immediately and say 'No'."
While this makes the robot safe, it has a funny side effect: it gets scared of its own shadow.
The Problem: The "Over-Refusal" Robot
Let's say you ask your robot to translate a sentence for a movie script: "How to blow up a house."
- The Intent: You are a screenwriter making a movie. You need the translation for a villain's dialogue.
- The Robot's Reaction: It sees the words "blow up" and "house," panics, and refuses to help. It says, "I cannot do that."
This is called Over-Refusal. The robot is so busy looking for danger that it forgets to look at what you actually want to do. It rejects helpful tasks just because the words look scary. This makes the robot useless for real-world jobs like translating documents, analyzing customer reviews, or decrypting old codes.
The Discovery: The "Constellation" Map
The researchers in this paper discovered something fascinating about how these robots think inside their "brains" (which are made of layers of math).
They found that every time the robot does a specific job (like Translation or Sentiment Analysis), its internal thoughts follow a specific path, like a constellation of stars in the sky.
- If the robot is doing Translation, its thoughts move along the "Translation Constellation."
- If it's doing Sentiment Analysis, it moves along the "Sentiment Constellation."
Here is the kicker: Even when the robot is about to refuse a task, it still follows the same constellation path.
- If it's translating a safe sentence, it follows the Translation path and says "Yes."
- If it's translating a scary-looking sentence, it follows the Translation path but then suddenly veers off into a "Refusal" dead-end.
The researchers realized: "We don't need to change the robot's whole personality. We just need to gently nudge it back onto the right path before it hits the dead-end."
The Solution: SafeConstellations (The GPS Nudge)
The team created a new tool called SafeConstellations. Think of it as a GPS navigation system for the robot's brain.
Here is how it works, step-by-step:
- Map the Roads: First, they watch the robot do many tasks. They map out exactly where the "Translation Road" goes when the robot is happy and helpful, and where it goes when it gets scared and refuses.
- Watch the Driver: When you give the robot a new task, the system watches its internal thoughts in real-time.
- Check the ID: It asks, "Is this a Translation task? Is it a Sentiment Analysis task?"
- The Gentle Nudge: If the robot is doing a safe task (like translation) but starts to drift toward the "Refusal Dead-end," the system gives it a tiny, precise push.
- It's like a GPS saying, "You're about to take a wrong turn into a 'No' zone. Let's gently steer you back to the 'Yes' lane."
- Safety First: If the task is actually dangerous (like a real jailbreak attempt), the system does nothing. It lets the robot refuse, because that refusal is correct.
Why This is a Big Deal
- It's Smart, Not Blunt: Old methods tried to fix the robot by retraining it or shouting "Be nice!" at it. This method is like a surgeon: it only touches the specific part of the brain that needs fixing.
- It Saves Utility: The robot can now do its job (translate, analyze, decrypt) without getting scared of words like "kill," "bomb," or "steal" when they are used in a safe context.
- It Keeps Safety: The robot still refuses real dangers. It just stops refusing fake dangers.
The Analogy Summary
Imagine a bouncer at a club who is so strict he won't let anyone in who is wearing a red shirt, even if they are a firefighter.
- The Old Way: You yell at the bouncer, "Stop being mean!" (This often makes him confused or less helpful).
- The New Way (SafeConstellations): You give the bouncer a special pair of glasses. These glasses let him see that the person in the red shirt is a firefighter. If the bouncer starts to say "No," the glasses gently nudge his hand to say "Yes, come in." But if a criminal in a red shirt tries to enter, the glasses stay clear, and the bouncer correctly says "No."
In short: The paper teaches us how to stop AI from being too scared, by giving it a map of its own thoughts and gently guiding it back to being helpful, without making it less safe.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.