Measuring Semantic Abstractness of SAE Features via Nonlocality
This paper introduces Feature Nonlocality (FNL), a label-free metric based on activation entropy that effectively quantifies the semantic abstractness of Sparse Autoencoder features, enabling the distinction between high-level reasoning and low-level token features to improve mechanistic interpretability and downstream interventions like jailbreak mitigation and math reasoning.
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 are trying to understand how a giant, super-smart robot brain works. This brain is made of layers of math and code, and it can write stories, solve math problems, and even chat like a human. Scientists call these "Large Language Models." But here's the tricky part: the brain doesn't speak English; it speaks in numbers. To figure out what the robot is actually thinking, researchers use a special tool called a "Sparse Autoencoder" (SAE). Think of an SAE like a high-tech microscope that breaks the robot's complex thoughts down into tiny, individual "features." Each feature is like a little light switch that turns on when the robot notices something specific, like the word "wait" or the idea of "uncertainty."
The big question scientists are asking is: How deep is the robot's thinking? Sometimes, a light switch turns on just because it saw a specific word (like "wait"). Other times, it turns on because the robot understood a whole paragraph about being unsure. Distinguishing between these two is crucial. If we want to fix the robot when it makes mistakes or gets dangerous, we need to know if we are tweaking a simple word-recognition switch or a complex reasoning switch. This paper introduces a new way to measure exactly how "deep" or "abstract" a feature's thinking is, without needing to ask the robot to explain itself.
The Detective's New Tool: Measuring "Thinking Distance"
The authors of this paper, researchers from Oxford and Stanford, realized that the usual ways to check if a feature is "smart" were a bit shaky. Some methods relied on asking a different AI to describe what a feature does (which can be unreliable), while others just looked at whether the feature turned on for specific words. To solve this, they invented a new metric called Feature Nonlocality (FNL).
Think of a feature's "nonlocality" as a measure of how far back in the story the feature is looking.
- Low Nonlocality (The "Word Spotter"): Imagine a feature that only turns on when it sees the word "Robert." It doesn't care what comes before or after; it just sees the name and clicks. This feature has a very short "reach." It's like a security camera that only triggers when it sees a specific face, ignoring everything else in the room.
- High Nonlocality (The "Story Reader"): Now imagine a feature that turns on when the robot realizes it's being uncertain. To know that, the robot has to read the whole sentence, maybe even the paragraph before it, to understand the context. This feature has a long "reach." It's like a detective who has to look at the whole crime scene, the timeline, and the witness statements before drawing a conclusion.
The authors defined FNL as a way to measure this "reach." They did this by running a backward pass through the math: they asked, "If we wiggle the input at different points in the past, how much does it change the feature's activation?" If the feature reacts to wiggles from far back in the text, it has high nonlocality. If it only reacts to the very last word, it has low nonlocality.
What They Found: The "Fake" Jailbreak Breakers
The team tested this new tool on a model called DeepSeek-R1-Distill-Llama-8B and found some surprising things.
First, they used FNL to audit features that were supposed to stop the robot from being "jailbroken" (tricked into doing bad things). Previous studies had found features that, when tweaked, made the robot safer. The team expected these to be "smart" features that truly understood harmful intent. However, the FNL test revealed something different. They found that most of the effective "safety" features had very low nonlocality.
This means these features weren't actually "reading" the harmful request to understand why it was bad. Instead, they were just reacting to a specific position in the text, like the very first word of the prompt. It's as if the robot's safety guard wasn't reading the letter to see if it was a threat; it was just checking if the letter started with a specific envelope stamp. The authors suggest that while these features successfully stop some attacks, they are doing so by spotting a surface-level pattern (a "positional indicator") rather than genuinely understanding the danger.
The "Deep Thinkers" and Math Problems
Next, the researchers wanted to see if picking features with high nonlocality (the "story readers") would help the robot think better. They took the top 20% of features with the highest nonlocality scores and "steered" them—essentially nudging them to be more active—while the robot tried to solve math problems from a test called MATH-500.
The results were promising but specific to this model. When they nudged the high-nonlocality features, the robot's accuracy on the math test improved by 4.6 points compared to the unsteered robot. This was better than nudging random features or low-nonlocality features (which improved by 3.6 and 3.8 points, respectively).
However, the authors are careful not to call this a magic bullet. They note that this improvement was seen in this specific model (DeepSeek-R1-Distill-Llama-8B). When they tried the same trick on other models, the high-nonlocality features didn't always win. So, while the experiment suggests that "deep" features might be better for steering reasoning, it's not a guaranteed rule for every robot brain yet.
The Verdict
The paper concludes that Feature Nonlocality is a powerful, label-free tool. It doesn't need a human to label data or a second AI to write descriptions. It simply measures how much context a feature uses to make a decision.
The key takeaway is that not all features that "work" are created equal. Some are just clever word-matchers (low nonlocality), while others are true context-aware thinkers (high nonlocality). By using FNL, scientists can now tell the difference, helping them understand whether a robot is truly reasoning or just reacting to surface-level clues. This distinction is a vital step toward building safer and more understandable AI systems.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.