HETA Beats Every Rival Method at Explaining Why LLMs Pick Specific Words
A new attribution framework blends causal attention flow, second-order curvature, and information-theoretic masking to explain decoder-only LLM outputs.
PRO- HETA is a new token attribution method for decoder-only LLMs combining causal attention flow, Hessian curvature, and KL divergence.
- It addresses the failure of gradient and attention methods on autoregressive generation, especially in flat or saturated regions.
- Formula: Attr = M_T[i] * (β*S_i + γ*KL), with target-conditioned gating enforcing causal sparsity by construction.
- Beats ContextCite, Integrated Gradients, and ReAgent by 2x+ on Soft-NC and 30-40% on the new DSA metric.
- Introduces a 2,000-example NarrativeQA+SciQ benchmark with GPT-4o and GPT-5 intersection labels (F1 = 0.91).
- Code and dataset released; LR+WIN approximation recovers 92-96% of quality at half the cost.
Explaining why a large language model chose one token over another is still frustratingly hard. Most feature attribution methods were built for BERT-style encoders and rely on first-order gradients or attention weights, both of which quietly break down on autoregressive decoders. A new method called Hessian-Enhanced Token Attribution (HETA) proposes a different recipe: fuse causal attention flow, Hessian-based curvature, and KL divergence into a single token-level score, then evaluate it on a benchmark designed specifically for generative attribution.
Why gradients and attention keep failing on decoders
The paper builds on a simple but underappreciated problem. Attention weights reflect where the model looks, not what actually affects the output, and can often be perturbed without meaningfully shifting predictions. First-order methods like Integrated Gradients depend heavily on baseline choice and can vanish entirely in flat regions of the loss surface, even when the function remains sensitive to finite perturbations.
The authors formalize this with a toy ReLU example: at an input sitting in the inactive region, both the pointwise gradient and Integrated Gradients along a baseline path return exactly zero, yet a small nudge across the hinge changes the output. In transformer LLMs, the same pathology shows up whenever saturating activations, residual routing, or causal masking hide influence from linear approximations. HETA is designed to close that gap.
Three signals, one score
HETA computes a nonnegative attribution score for each context token x_i with respect to a target token x_T by combining three complementary signals:
This story is for Pro members
You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.