← Latest papers
💬 NLP

Correcting Gradient-Based Circuit Localization via Interaction-Aware Backpropagation

This paper introduces Gradient Interaction Modifications (GIM), a novel technique that corrects systematic misestimations in circuit localization caused by ignoring component interactions like attention self-repair, thereby achieving state-of-the-art performance in identifying the model components responsible for specific behaviors in large language models.

Original authors: Joakim Edin, Casper L. Christensen, Róbert Csordás, Tuukka Ruotsalo, Zhengxuan Wu, Maria Maistro, Jing Huang, Lars Maaløe

Published 2026-06-02
📖 4 min read☕ Coffee break read

Original authors: Joakim Edin, Casper L. Christensen, Róbert Csordás, Tuukka Ruotsalo, Zhengxuan Wu, Maria Maistro, Jing Huang, Lars Maaløe

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, bustling kitchen where thousands of chefs (neurons and attention heads) work together to cook a single dish (the model's answer). For a long time, scientists trying to understand how these models work have used a method called "circuit localization." Their goal is to figure out exactly which chefs are responsible for the flavor of the dish.

The Old Way: The "One-at-a-Time" Mistake
Traditionally, researchers tried to identify important chefs by firing them one by one. They would say, "Let's send Chef A home for the day and see if the soup tastes different." If the soup tastes the same, they assume Chef A wasn't important.

The problem is that these chefs don't work in isolation; they talk to each other and cover for one another. If Chef A is a master of chopping onions, but Chef B is also a master of chopping onions and is standing right next to them, sending Chef A home won't change the soup. Chef B just picks up the knife and keeps chopping. The researchers, seeing no change, wrongly conclude that Chef A was useless.

The New Discovery: "Attention Self-Repair"
The authors of this paper discovered a specific way this "covering for each other" happens in AI, which they call Attention Self-Repair.

Think of the AI's attention mechanism like a spotlight operator at a theater. The spotlight operator (the model) decides which actors (words) to shine a bright light on. Sometimes, two actors are standing in the same spot and saying the exact same thing. The operator splits the light 50/50 between them.

If you try to dim the light on Actor A to see if they are important, the operator instantly shifts that extra light to Actor B. Because Actor B is saying the same thing, the audience (the model's output) doesn't notice any difference. The "gradient" (the signal telling us who is important) disappears, making it look like neither actor mattered. But in reality, both were crucial; they just had a backup plan.

The Solution: GIM (Gradient Interaction Modifications)
To fix this, the authors created a new tool called GIM. Instead of firing one chef or dimming one spotlight at a time, GIM changes the rules of the game to account for the teamwork. It uses three clever tricks:

  1. The "Warm Spotlight" (Temperature-adjusted Softmax):
    Imagine the spotlight operator is usually very strict, giving 90% of the light to the top actor and 10% to everyone else. GIM tells the operator to be a bit more relaxed (increase the "temperature"). Now, the light is spread more evenly. When you dim one actor's light, the others don't just instantly take over because the light was already shared more broadly. This reveals who was actually holding the light, even if they had help.

  2. Freezing the "Volume Knob" (Layernorm Freeze):
    In the kitchen, there's a master volume knob that adjusts the overall loudness of the room. If one chef stops working, the volume knob automatically turns up the others to keep the noise level constant. This hides the fact that a chef left. GIM "freezes" this volume knob, so when a chef leaves, the others don't get artificially louder. This lets researchers see the true drop in volume caused by that chef leaving.

  3. The "Shared Tool" Correction (Gradient Norm):
    Sometimes, two chefs are using the same tool (like a shared knife) to chop. If you measure how much the knife was used, you might accidentally count the same chop twice—once for each chef. GIM fixes this math error by dividing the credit correctly, ensuring no one gets double-counted for the same action.

The Results
When the authors tested GIM on various AI models and tasks (like solving math problems or answering questions), it worked much better than the old methods.

  • It found the "real" important parts of the model that the old methods missed.
  • It proved that the old methods were systematically underestimating how important certain parts of the AI were because they didn't understand the "self-repair" teamwork.

In Summary
The paper argues that we can't understand complex AI models by looking at their parts in isolation. Because the parts help each other, removing one doesn't always show its true value. GIM is a new way of looking at the model that accounts for this teamwork, giving us a much more accurate map of how these digital brains actually think.

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 →