← Latest papers
💬 NLP

Automated Interpretability and Feature Discovery in Language Models with Agents

This paper introduces an autonomous multi-agent framework that automates mechanistic interpretability by iteratively refining hypotheses and discovering internal features in large language models, demonstrating superior performance over one-shot methods in producing sharper, falsifiable, and auditable explanations.

Original authors: Arnau Marin-Llobet, Javier Ferrando

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

Original authors: Arnau Marin-Llobet, Javier Ferrando

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 giant, incredibly complex machine (a Large Language Model) that writes stories, answers questions, and solves problems. Inside this machine, there are billions of tiny switches and gears (neurons and features) working together. The problem is, we don't have a manual. We can see the machine working, but we don't know exactly what each individual gear is doing.

For a long time, researchers tried to figure this out by looking at a gear, guessing what it does, and writing down a label like "this gear is for math." But often, that guess was wrong, or too vague, or broke as soon as you tried a slightly different example. It was like trying to guess the function of a car part just by looking at it once.

This paper introduces a new system called InterpAgent. Instead of a human guessing once, InterpAgent is like a team of robot detectives that work together to solve the mystery of what the machine's gears actually do.

Here is how they do it, using simple analogies:

The Two Detective Teams

The system uses two specialized robot agents that talk to each other:

  1. The "Feature Finder" (The Scout):
    Imagine you want to find all the gears that are responsible for "Spanish language." The Scout doesn't know which gear that is. So, it goes into the machine's "activation space" (a map of how the gears light up) and looks for patterns. It uses a statistical map (like a GPS) to find clusters of gears that light up together when Spanish words are used. It doesn't just guess; it uses math to find the gears that reliably separate Spanish prompts from English ones.

    • The Analogy: It's like a detective scanning a crowd to find the one person wearing a red hat who only shows up at French parties.
  2. The "Feature Explainer" (The Interrogator):
    Once the Scout finds a candidate gear, the Interrogator takes over. Its job isn't just to name the gear; it's to stress-test the name.

    • The Old Way: A human might say, "This gear is for 'technology'."
    • The InterpAgent Way: The Interrogator says, "Okay, you think it's for 'technology'? Let's test that." It generates 12 examples that should trigger the gear (like "fixing a computer") and 12 examples that shouldn't (like "cooking pasta"). It runs them through the machine.
    • The Twist: If the gear lights up for "cooking pasta," the Interrogator knows the label "technology" is wrong. It then rewrites the hypothesis: "Maybe it's for 'fixing things'?" It repeats this process, generating new tests, checking the results, and refining the label until it finds a description that holds up under pressure.

The "Loop" of Discovery

The paper emphasizes that this isn't a one-time event. It's a loop.

  • Step 1: The Scout finds a potential gear.
  • Step 2: The Interrogator guesses what it does.
  • Step 3: The Interrogator tries to break its own guess by finding counter-examples (things that should trigger the gear but don't, or things that shouldn't but do).
  • Step 4: The Interrogator updates the guess based on the failure.
  • Step 5: Repeat until the guess is solid.

This is like a scientist running an experiment over and over. If your theory is "This button turns on the lights," but you press it and the radio turns on, you don't just say "oops." You change your theory to "This button controls the power," and you test it again.

What They Found

The authors tested this on the Gemma-2 family of models (a type of AI). Here is what happened:

  • Better Labels: The robot team was much better at labeling features than the old "one-shot" method. The old method often gave vague answers like "knowledge." The robot team found specific, narrow answers like "Informal French phrasing in tech troubleshooting contexts."
  • Finding the Unknown: The system didn't just explain gears researchers already knew about. The Scout found new gears that humans hadn't noticed, such as specific neurons that fire only for "harmful content" (like explosives) or specific coding patterns.
  • Safety Check: In one case study, they found a gear related to refusing dangerous requests. They were able to "steer" the machine by turning that gear down, and the machine stopped refusing the request. This proved the gear was actually causing the safety behavior, not just watching it happen.
  • Polysemanticity: Sometimes, the robots found that a single gear was doing two very different things at once (like a gear that handles both "math equations" and "medical terms"). The system is smart enough to say, "This gear is confusing; it's doing two jobs," rather than forcing a single, wrong label.

The Bottom Line

The paper claims that by treating AI interpretation as an iterative experiment (guess, test, fail, fix) rather than a static label (look, guess, write down), we get much more accurate and reliable explanations.

The system produces a "paper trail" of every guess, every test, and every failure, making the process transparent. It shows that if you let an AI agent act like a rigorous scientist—constantly trying to prove its own ideas wrong—you get a much clearer picture of how the machine's brain actually works.

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 →