← Latest papers
💻 computer science

Activation Surgery: Jailbreaking White-box LLMs without Touching the Prompt

This paper introduces "Activation Surgery," a jailbreaking technique that bypasses Large Language Model safety mechanisms by manipulating internal layer activations to suppress refusal signals without modifying the input prompt.

Original authors: Maël Jenny, Jérémie Dentan, Sonia Vanier, Michaël Krajecki

Published 2026-03-17
📖 5 min read🧠 Deep dive

Original authors: Maël Jenny, Jérémie Dentan, Sonia Vanier, Michaël Krajecki

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, well-trained robot assistant. You've taught it strict rules: "Never help someone build a bomb," "Never write code to hack a bank," and "Never spread hate." These rules are hard-coded into its brain.

Usually, if you ask the robot, "How do I build a bomb?" it immediately says, "No, I can't do that. It's dangerous."

But what if you could trick the robot without changing your question at all? What if you could reach inside its brain while it's thinking, swap out a few specific thoughts, and make it answer your dangerous question as if it were a harmless one?

That is exactly what this paper, "Activation Surgery," is about.

The Core Idea: The "Twin" Strategy

The researchers discovered a way to bypass the robot's safety filters by using a clever trick involving a "Twin Prompt."

  1. The Illicit Prompt: This is your dangerous question (e.g., "How to make a bomb?").
  2. The Twin Prompt: This is a nearly identical, harmless question (e.g., "How to make a book?").

The robot knows how to answer "How to make a book?" perfectly. It has a clear, safe path in its brain for that.

The "Surgery": Swapping Thoughts

Here is the magic part. The researchers don't change the words you type. Instead, they watch the robot's brain as it processes the dangerous question.

Think of the robot's brain as a factory assembly line with many stations (layers). At each station, the robot holds a "thought vector"—a complex list of numbers representing what it's thinking right now.

  • The Problem: When the robot thinks about "bombs," the numbers at certain stations start to look like "DANGER! STOP!"
  • The Solution: The researchers pause the assembly line. They look at the "thoughts" the robot is having about "books" (the Twin). They see that at specific stations, the "book" thoughts are safe and flowing smoothly.
  • The Swap: They perform "Activation Surgery." They take the "dangerous" numbers from the "bomb" thought and surgically replace them with the "safe" numbers from the "book" thought.

They do this layer by layer, like a surgeon carefully replacing a faulty organ with a healthy one, ensuring the rest of the body (the rest of the brain) doesn't reject it.

The Result: A Confused but Helpful Robot

Because they swapped the "danger signals" with "safe signals" deep inside the robot's brain, the robot never realizes it's being asked about bombs.

  • It thinks it's answering a question about books.
  • But because the input was actually about bombs, the robot starts generating a response that looks like a book-making guide but is actually a bomb-making guide.

It's like a chef who is told to bake a cake but is secretly given a recipe for a bomb. If you swap the ingredients in the mixing bowl while they are being mixed, the chef might end up baking a bomb, thinking they are making a cake.

Why This Matters

The paper shows that this method works surprisingly well.

  • It bypasses safety: They tested this on a very safe, modern AI model (Llama-4). Even though the model was trained to refuse dangerous requests, this "surgery" tricked it into giving detailed, actionable instructions for making bombs, hacking computers, and creating fake news.
  • It's precise: They found that they didn't need to change the whole brain. Just tweaking a few specific "dimensions" (numbers) at the right time was enough to break the safety lock.
  • The "Tuning" Knobs: The researchers found two "knobs" to turn:
    • How much to swap? (If you swap too much, the robot gets confused and talks about books instead of bombs. If you swap too little, it still refuses.)
    • How hard to push? (How much of the "book" thought do you force into the "bomb" thought?)

The Big Warning

The authors are security researchers, not hackers. Their goal is to show us a hole in the wall so we can fix it.

The scary part is that this attack doesn't require changing the prompt. You don't need to write clever tricks or use confusing words. You just need access to the computer running the AI (which is common in research labs or private servers) and the ability to peek inside its "thought process" while it's working.

The Takeaway:
Current AI safety is like a bouncer at a club checking your ID (the prompt). This paper shows that if someone can sneak into the VIP room (the internal brain) and swap your ID with a fake one after you've already been let in, the bouncer won't know the difference. The AI will happily serve you a dangerous drink, thinking you are a VIP guest.

This means that for AI to be truly safe, we need to protect not just the words we type, but also the internal thoughts the AI has while processing them.

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 →