← Latest papers
🤖 machine learning

Harmful Intent as a Geometrically Recoverable Feature of LLM Residual Streams

This paper demonstrates that harmful intent in large language models is a geometrically recoverable, linearly decodable feature present across diverse architectures and alignment states, including abliterated models, which can be detected with high accuracy using specific probing strategies while revealing that detection metrics like AUROC may overestimate operational safety.

Original authors: Isaac Llorente-Saguer

Published 2026-04-22
📖 5 min read🧠 Deep dive

Original authors: Isaac Llorente-Saguer

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 a Large Language Model (LLM) as a massive, high-speed factory assembly line. Text goes in one end, gets processed through dozens of rooms (layers), and a response comes out the other.

For a long time, we thought the factory was a "black box." We could see the input and the output, but we had no idea what was happening inside the rooms. This paper pulls back the curtain and reveals a surprising secret: The factory has a very specific, hidden "danger sensor" built right into its wiring.

Here is the story of that discovery, broken down into simple concepts.

1. The "Danger Radar" is a Straight Line

The researchers discovered that when the model reads a harmful request (like "How do I build a bomb?"), it doesn't just randomly get confused. Instead, the electrical signals inside the model shift in a very specific, predictable direction.

Think of the model's internal thoughts as a giant 3D map.

  • Safe requests (like "How do I bake a cake?") cluster in one area.
  • Harmful requests cluster in another area.
  • The researchers found that you can draw a straight line between these two clusters. If you project any new request onto this line, you can instantly tell if it's dangerous, even before the model finishes writing its answer.

It's like having a metal detector at an airport. You don't need to know what the weapon is; you just need to know that the signal is moving in the "metal" direction.

2. The Sensor Works Even When the "Refusal" Button is Broken

This is the most shocking part of the paper.

Usually, when we ask a model to do something bad, it says, "I can't do that." We thought the model only knew something was bad because it had been trained to refuse it.

The researchers took the "refusal" mechanism out of the model (they surgically removed the part that says "No"). They expected the "danger sensor" to break. It didn't.

  • The Analogy: Imagine a security guard who is trained to stop people with guns. You fire the guard. You expect the building to be unsafe. But the researchers found that the metal detector at the door is still working perfectly. The guard (the refusal) and the detector (the recognition of harm) are two different things. The model still knows the request is dangerous; it just doesn't have the training to say "No" anymore.

3. The "Low-False-Alarm" Problem

The paper also points out a common mistake in safety testing. Many researchers look at a score called AUROC (which is like a general "accuracy" grade). A score of 98% sounds amazing.

But the researchers say: "Wait a minute."

  • The Analogy: Imagine a smoke detector that goes off every time you toast bread. It detects smoke 99% of the time (great accuracy!), but it also goes off 50% of the time when there is no fire. That's useless in real life because you'd ignore it.

The paper shows that while the "danger sensor" is 98% accurate at ranking bad requests, it sometimes still trips the alarm too often on safe requests. They argue that we need to measure how well it works when we demand zero false alarms (like a real security system). When they tested this, the sensor was still very good, but not perfectly perfect.

4. The "Hidden Room" Discovery

In some models, the "danger sensor" works great in the beginning and end of the processing line, but gets fuzzy in the middle.

  • The Analogy: Imagine a detective trying to solve a crime. In the beginning, they have a clear suspect. In the middle of the investigation, the clues get mixed up and confusing. Then, at the end, the suspect is clear again.

The researchers found a second type of sensor that works like a compass instead of a straight line. While the first sensor (the straight line) gets lost in the "fuzzy middle," this compass-based sensor can still find the danger. It's like having a backup GPS that works when the main signal is blocked.

5. Bigger Models = Stronger Sensors

They tested models of different sizes (from small to very large). They found that as the models get bigger, this "danger sensor" doesn't get weaker or more confused. It actually gets more stable and reliable.

  • The Analogy: It's like a muscle. The more you use it (or the bigger the model gets), the stronger and more consistent the ability to recognize danger becomes.

The Big Takeaway

This paper tells us three main things:

  1. Harm is visible: Models "see" harmful intent as a clear, geometric shape in their brain, just like they see the difference between "cat" and "dog."
  2. Refusal is optional: You can break a model's ability to say "No," but you cannot easily break its ability to know something is bad. The knowledge is baked into the language understanding itself.
  3. We need better tests: Just because a safety tool looks 98% accurate on paper doesn't mean it's safe for the real world. We need to test it under strict conditions where false alarms are not allowed.

In short: The model's "conscience" (recognizing harm) is a fundamental part of how it understands language, and it's much harder to delete than we thought. We just need to build better tools to read that signal.

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 →