Dual Path Attribution: Efficient Attribution for SwiGLU-Transformers through Layer-Wise Target Propagation
This paper introduces Dual Path Attribution (DPA), an efficient and faithful framework that traces information flow in SwiGLU-based transformers through a single forward and backward pass with O(1) complexity, achieving state-of-the-art performance on interpretability benchmarks without requiring counterfactual examples.
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, super-smart robot chef (a Large Language Model) that can write recipes, tell jokes, or solve math problems. You ask it, "Why did you decide to add salt to this soup?"
The robot says, "Because I read your request." But you know that's not the whole story. Maybe it was the word "soup" that triggered the salt, or maybe it was the word "cold" that made it think of warming it up. Or maybe a specific internal gear in the robot's brain decided that salt was the answer.
The Problem:
Currently, figuring out exactly which gears and words caused the robot to say "salt" is like trying to fix a watch by taking it apart, one tiny gear at a time, and testing it. If the watch has a million gears (which modern AI models do), you'd have to run the watch a million times just to see which gear matters. It's slow, expensive, and often breaks the watch in the process.
The Solution: Dual Path Attribution (DPA)
This paper introduces a new, super-fast way to trace the robot's thoughts. The authors call it Dual Path Attribution (DPA).
Here is how it works, using a simple analogy:
1. The "Backwards Detective" Analogy
Imagine you are a detective trying to find out who stole a cookie.
- The Old Way (Forward Pass): You ask every single person in the building, "Did you steal the cookie?" You have to interview 1,000 people one by one. This takes forever.
- The DPA Way (Backward Pass): Instead of asking everyone, you start at the crime scene (the cookie is gone). You ask, "Who had the opportunity?" Then you trace that opportunity backwards through the building's security cameras. You follow the path of the "missing cookie" backward until you find the exact person who took it. You only need to walk the path once, in reverse.
DPA does exactly this with AI. Instead of running the model forward for every single part to see what it does, it takes the final answer (the "cookie") and runs it backwards through the model's brain just once.
2. The "Two-Lane Highway" Analogy
The paper focuses on a specific type of AI brain called SwiGLU. The authors realized that inside these brains, information travels on two distinct "highways" or lanes:
- Lane A: The Content Highway (The "What"): This lane carries the actual information, like the words "salt," "soup," and "cold." It's like the cargo trucks carrying the goods.
- Lane B: The Control Highway (The "How"): This lane carries the instructions on how to handle that information. It's like the traffic lights, the GPS, and the gatekeepers deciding which trucks get to go where.
The Magic Trick:
Previous methods tried to look at the whole highway at once, which was messy and slow. DPA separates these two lanes. It traces the "Content" and the "Control" separately as it moves backward.
- It asks: "How much did the word 'salt' contribute?" (Content Lane)
- It asks: "How much did the decision to focus on 'salt' contribute?" (Control Lane)
By splitting the job, DPA can calculate the importance of every single part of the AI's brain in a split second, without needing to run the whole simulation again and again.
3. Why This Matters
- Speed: If the old way took 1 hour to explain a single sentence, DPA takes about 2 minutes. It's 40 times faster!
- Accuracy: Because it looks at the "Control" and "Content" lanes separately, it doesn't get confused. It can tell you exactly which internal "neuron" (a tiny part of the AI's brain) was responsible for a specific decision.
- Reliability: It helps us trust AI. If we know why the AI made a decision, we can fix it if it's wrong, or understand if it's being biased.
The Bottom Line
Think of Dual Path Attribution as a high-tech "rewind button" for AI. Instead of trying to understand a complex machine by running it a million times, this method lets us trace the path of a single thought backward, separating the "what" from the "how," to reveal exactly how the machine thinks. It's faster, smarter, and gives us a clear map of the AI's internal reasoning.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.