Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMs
This paper introduces Hessian-Enhanced Token Attribution (HETA), a novel framework designed to improve the interpretability of decoder-only autoregressive language models by combining semantic transition vectors, Hessian-based sensitivity scores, and KL divergence to produce more faithful and human-aligned token attributions, alongside a new benchmark for evaluating generative attribution quality.
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 watching a magician pull a rabbit out of a hat. You see the rabbit appear, but you have no idea how the magician did it. Did they use a hidden compartment? A sleight of hand? A secret signal?
In the world of Artificial Intelligence, Large Language Models (LLMs) are the magicians. They write poems, answer questions, and solve problems, but they are "black boxes." We know the input (the question) and the output (the answer), but we don't know which specific words in the question actually caused the model to generate that specific answer.
This paper introduces a new tool called HETA (Hessian-Enhanced Token Attribution) to solve this mystery. Think of HETA as a super-powered detective that can look inside the magician's hat and point exactly to the trick.
Here is how HETA works, broken down into three simple detective tools:
1. The "Causal Map" (Semantic Flow)
The Problem: In a normal conversation, if I say, "The cat sat on the mat," the word "cat" is important. But in a long story, the model might get distracted by irrelevant details. Old methods often just looked at where the model "looked" (attention), which is like guessing the magician's trick by watching where his eyes go. But magicians often look one way to trick you while doing the real work with their hands elsewhere.
The HETA Solution: HETA draws a Causal Map. It traces the actual path of information from the beginning of the sentence to the specific word being predicted. It asks: "Did this specific word actually travel through the model's 'brain' to help create the next word?" If the word didn't take a direct path to the answer, HETA ignores it. It filters out the noise and focuses only on the words that truly matter.
2. The "Curvature Sensor" (Hessian-Based Sensitivity)
The Problem: Imagine a hill. If you are standing on a flat part of the hill, a tiny step doesn't change your height much. But if you are on a steep cliff edge, a tiny step sends you plummeting.
Old AI tools mostly look at the "slope" (gradients). If the ground is flat, they say, "This word doesn't matter." But sometimes, even on flat ground, a small nudge can trigger a massive change because of the shape of the hill underneath.
The HETA Solution: HETA uses a Curvature Sensor. Instead of just looking at the slope, it feels the shape of the hill. It detects those hidden "cliff edges" where a tiny change in a word causes a huge shift in the answer. This helps it find important words that other tools miss because they are hiding in "flat" areas of the math.
3. The "What-If" Simulator (KL Divergence)
The Problem: Sometimes a word seems important, but maybe it's just a coincidence. How do we know for sure?
The HETA Solution: HETA runs a What-If Simulator. It takes the sentence, erases one word, and asks the model: "Okay, now that I removed this word, does the answer change?"
- If the model suddenly gives a wrong answer or gets confused, HETA knows that word was critical.
- If the model gives the same answer, that word was just decoration.
This is like removing a brick from a wall to see if the wall collapses.
Putting It All Together
HETA combines these three tools into one super-solution:
- The Map ensures we only look at words that have a direct connection to the answer.
- The Sensor finds the hidden, complex relationships that simple math misses.
- The Simulator proves that the word actually changes the outcome.
Why Does This Matter?
Before HETA, trying to explain why an AI made a decision was like guessing the ingredients of a soup by tasting the final dish. You might get close, but you'd often be wrong.
With HETA, we can finally say: "The AI predicted 'slice' because of the words 'pizza,' 'knife,' and 'cut,' and it ignored the word 'red' even though it was in the sentence."
This makes AI:
- Trustworthy: We know why it made a decision.
- Safe: If an AI makes a mistake in a hospital or a bank, we can trace it back to the exact word that caused the error and fix it.
- Better: By understanding how the model thinks, we can build smarter models in the future.
In short, HETA turns the "black box" of AI into a glass box, letting us see exactly how the magic happens.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.