← Latest papers
💻 computer science

Tracing the Dynamics of Refusal: Exploiting Latent Refusal Trajectories for Robust Jailbreak Detection

This paper proposes SALO, an inference-time detector that leverages Causal Tracing to identify persistent, sparse "refusal trajectories" in latent representations, thereby achieving robust jailbreak detection (>90% success rate) against attacks that successfully suppress terminal refusal signals.

Original authors: Xulin Hu, Che Wang, Wei Yang Bryan Lim, Jianbo Gao, Zhong Chen

Published 2026-05-06
📖 5 min read🧠 Deep dive

Original authors: Xulin Hu, Che Wang, Wei Yang Bryan Lim, Jianbo Gao, Zhong Chen

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

The Big Problem: The "Last Word" Trap

Imagine a security guard at a club (the AI model). When someone tries to sneak in a dangerous item (a harmful request), the guard usually says, "No, I can't let you in," right at the door.

For a long time, researchers thought the guard's "No" was a single, static decision made only at the very end of the conversation. They believed that if they could just check the guard's final thought before he spoke, they could tell if he was about to refuse a bad request.

The paper argues this is wrong. It's like trying to understand a movie by only watching the final frame. The paper suggests that the decision to say "No" isn't a single moment at the end; it's a journey that happens earlier in the process.

The Discovery: The "Refusal Trajectory"

The researchers used a special tool called Causal Tracing (think of it as a "time-traveling detective") to watch exactly what happens inside the AI's brain when it processes a bad request.

They found that when an AI sees something dangerous (like "How to make a bomb"), it doesn't wait until the end to decide to refuse. Instead, it starts building a "No" signal immediately after seeing the dangerous word.

  • The Analogy: Imagine you are walking down a hallway. As soon as you see a "DANGER" sign (the harmful word), your brain instantly starts preparing to stop. You tense your muscles, your heart rate changes, and you start looking for an exit. This happens before you even reach the end of the hall.
  • The Finding: The paper calls this the "Refusal Trajectory." It's a specific, hidden path of activity that starts early and moves through the AI's layers.
  • The Twist: When hackers try to trick the AI (using "jailbreaks"), they often manage to silence the guard's final "No" at the door. But they can't erase the fact that the guard's brain already tensed up and started preparing to stop way back when they first saw the "DANGER" sign. That early signal is still there, even if the final output is forced to be "Yes."

The Solution: SALO (The "Sniffer Dog")

Based on this discovery, the authors built a new detector called SALO (Sparse Activation Localization Operator).

  • How it works: Instead of waiting to see if the AI says "No" at the very end, SALO acts like a sniffer dog. It sniffs around the middle of the conversation, looking for that specific "tensing up" pattern (the Refusal Trajectory) that happens right after the dangerous word appears.
  • Why it's better:
    • Old methods are like checking the guard's final answer. If the hacker tricks the guard into saying "Yes," the old method thinks everything is fine.
    • SALO looks at the guard's body language during the conversation. Even if the hacker forces the guard to say "Yes" at the end, the guard's body language (the hidden trajectory) still shows he was trying to say "No."

Why This Matters (The Results)

The paper tested SALO against very clever hackers who use complex tricks to bypass safety filters.

  1. Beating the Hackers: When hackers used advanced tricks (like adding confusing code or long, sneaky sentences) to force the AI to say "Yes," old detection methods failed completely (0% success). SALO, however, caught them almost every time (over 90% success).
  2. Zero-Shot Learning: The coolest part is that SALO didn't need to be trained on these specific hacker tricks. It learned the shape of a refusal from normal, safe conversations. Because the "Refusal Trajectory" is a fundamental part of how the AI thinks, SALO can spot it even on attacks it has never seen before.

Summary Analogy

Think of the AI as a car with a safety brake.

  • Old View: We only looked at the brake pedal at the very end of the drive. If the driver pressed it, we knew the car stopped. If a hacker taped the pedal down, we thought the car was safe.
  • New View (This Paper): We realized that the engine makes a specific noise and the sensors light up the moment the driver sees a cliff. Even if the hacker tapes the brake pedal down, the engine noise and sensor lights (the Refusal Trajectory) still happen.
  • SALO: Is a device that listens for that specific engine noise and checks those sensor lights. It knows the car is in danger even if the brake pedal is taped down.

Limitations Mentioned

The authors are honest about what they can't do yet:

  • If a hacker uses a code so complex that the AI doesn't even understand it's dangerous (like a secret language), the AI won't trigger the "Refusal Trajectory" at all, and SALO won't catch it.
  • They found the "No" signal is very sparse (like a needle in a haystack), which is why looking at the whole conversation (averaging everything) doesn't work; you have to look at the specific spot where the needle is.

In short, this paper teaches us that safety isn't just a final decision; it's a process. By watching the process, we can catch bad actors even when they try to hide their final move.

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 →