Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMs
Wenbo Pan, Zhichao Liu, Xianlong Wang, Yu Haining, Xiaohua Jia
Overview
Modern reasoning large language models (LLMs) have pushed the boundaries of complex problem-solving by generating extensive internal reasoning chains prior to yielding a final answer. However, interpreting these models—specifically through token attribution, which assigns importance scores to input tokens based on their impact on generated outputs—has hit a severe scaling wall. Traditional attribution methods are computationally prohibitive when applied token-by-token across long generation horizons, and they suffer from a degradation in faithfulness because intermediate reasoning tokens frequently absorb the bulk of the attribution mass, obscuring the true relevance of the original input context.

Key moments
- 0:00 Introduction to token attribution and reasoning LLM challenges
- 2:00 Introducing Fresh Trees: recursive span-wise attribution
- 4:00 Method details and reducing quadratic complexity to linear
- 5:30 Evaluation results on processing time and faithfulness
- 6:00 Visual examples and heat map analysis from Fresh Trees
- 8:30 Conclusion, takeaways, and open-source project announcement
- 9:00 Q&A: Measuring faithfulness of token attribution
- 9:50 Q&A: Application to circuit discovery within neural networks
Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMs
Speakers: Wenbo Pan; Zhichao Liu; Xianlong Wang; Yu Haining; Xiaohua Jia
Conference: ICML
YouTube: https://slideslive.com/39083767
Overview
Modern reasoning large language models (LLMs) have pushed the boundaries of complex problem-solving by generating extensive internal reasoning chains prior to yielding a final answer. However, interpreting these models—specifically through token attribution, which assigns importance scores to input tokens based on their impact on generated outputs—has hit a severe scaling wall. Traditional attribution methods are computationally prohibitive when applied token-by-token across long generation horizons, and they suffer from a degradation in faithfulness because intermediate reasoning tokens frequently absorb the bulk of the attribution mass, obscuring the true relevance of the original input context.
In this talk, the presenters introduce Fresh Trees, an efficient and faithful multi-token attribution framework designed explicitly for reasoning LLMs. By shifting from granular single-token attribution to a recursive span-wise paradigm, Fresh Trees reduces computational complexity from quadratic to linear while successfully recovering input-token faithfulness. The work addresses a critical bottleneck in model interpretability and context engineering, offering practitioners a scalable tool to audit what information truly drives outputs in long-context, chain-of-thought architectures.
Background
▶ Watch: Introduction to token attribution and reasoning LLM challenges (0:00)
Token attribution is a foundational technique in model interpretation and context engineering, allowing developers and researchers to trace which parts of an input sequence most heavily influence specific output tokens. Given an input such as "What is the capital of France?" and an output like "France," attribution algorithms compute importance scores across the prompt.
In standard transformer models, this process is already resource-intensive, requiring frequent sweeps through the full context. With the advent of advanced reasoning LLMs, two compounding problems emerged:
- Severe Inefficiency: Reasoning models generate thousands of tokens in long chain-of-thought trajectories before outputting the final response. Evaluating token attributions sequentially—one output token at a time—results in massive computational overhead and makes real-time or batch interpretability practically impossible.
- Low Faithfulness: Because reasoning chains sit immediately upstream of the final outputs, traditional attribution methods heavily allocate importance scores to these intermediate reasoning tokens. Consequently, the true importance distribution over the original input tokens is obscured, resulting in low faithfulness where the model's actual reliance on the initial context is misrepresented.
Prior attribution frameworks failed to resolve these dual challenges simultaneously, forcing researchers to choose between intractable computation times or unfaithful importance distributions dominated by reasoning artifacts.
Key Findings
▶ Watch: Method details and reducing quadratic complexity to linear (4:00)
The introduction of Fresh Trees yields several major breakthroughs in computational efficiency and attribution quality:
- Linear Complexity Scaling: By treating output tokens as a unified target span and factoring out source token value vectors, Fresh Trees reduces attribution complexity from quadratic to linear with respect to context and generation length.
- Dramatic Speedups: For generation lengths reaching approximately 5,000 tokens, Fresh Trees processes a single sample in roughly 10 seconds, whereas baseline methods require over an hour for the same sample.
- State-of-the-Art (SOTA) Faithfulness: Across multi-hop reasoning benchmarks such as HotpotQA, the framework achieves superior faithfulness by recursively transferring importance scores from intermediate reasoning chains back to foundational input tokens.
- Open-Source Availability: The project is fully open-sourced and packaged for immediate deployment via
pip install fresh-trees, alongside a live web demo featuring Qwen models to visualize real-time token heatmaps.
Technical Deep Dive
▶ Watch: Visual examples and heat map analysis from Fresh Trees (6:00)
The theoretical foundation of Fresh Trees rests on the assumption that within a transformer layer, every operation is linearly decomposable. A layer output can be mathematically broken down into the sum of residual streams, attention heads, and multi-layer perceptrons (MLPs). Attention heads are further expressed as sums of token attributions via input-source projections.
To move beyond the high-cost naive approach of attributing output tokens individually—which requires a full context sweep per token and results in $O(N^2)$ complexity—Fresh Trees exploits a key mathematical observation: a source token's value vector depends strictly on the source token itself, independent of other tokens.
By factoring out the sum of attention weights from the aggregation, the framework only calculates value projections once per source token. This optimization drops the algorithmic complexity down to linear $O(N)$.
To combat the faithfulness problem caused by reasoning chains absorbing attribution mass, Fresh Trees employs a recursive span-wise attribution mechanism:
- First Hop: All output tokens are treated as a single target span $S$. A one-pass attribution is performed to compute importance scores from earlier tokens to this span.
- Second Hop (Recursive Attribution): Recognizing that intermediate reasoning tokens act as direct causal agents for the output, a secondary attribution is executed directly on those reasoning tokens, weighted by the importance scores gathered in the first hop.
- Information Transfer: Aggregating these attribution hops allows the model to propagate importance scores backward through the reasoning chain, highlighting input tokens (such as numerical figures or connecting clauses) that genuinely drove the final answer.
Experimental Setup & Results
▶ Watch: Conclusion, takeaways, and open-source project announcement (8:30)
The evaluation of Fresh Trees focused heavily on long-horizon reasoning workloads, tracking processing time, peak GPU memory utilization, and attribution faithfulness.
- Processing Time: Evaluated across varying generation lengths up to 5,000 tokens. While baseline attribution techniques exceeded one hour per sample, Fresh Trees completed processing in approximately 10 seconds.
- Faithfulness Metrics: Measured using two primary strategies:
- Recovery Rate: Assessing whether predicted important tokens (e.g., ground-truth numbers in quantitative reasoning tasks) matched known key inputs.
- Deletion-Based Faithfulness: Sorting predicted importances from high to low, masking the top tokens, and measuring the resulting drop in model perplexity. A sharper increase in perplexity validates that the masked tokens were genuinely critical to the model.
- Qualitative Visualizations: Heatmaps on HotpotQA samples demonstrated that Fresh Trees successfully overcomes attention-sink phenomena (where only terminal punctuation marks absorb attribution mass). As visualization windows widened, the method correctly highlighted document sentences containing critical multi-hop bridge entities and final answers.
When queried about mechanistic interpretability applications such as circuit discovery, the authors noted that Fresh Trees focuses primarily on attention-mechanism pathways. While MLP outputs contribute less to token-to-token interactions and are largely discarded for efficiency, adapting the framework for broader circuit discovery remains an open area for future exploration.
Practical Implications
▶ Watch: Q&A: Application to circuit discovery within neural networks (9:50)
For infrastructure teams, model builders, and AI safety researchers, Fresh Trees transforms interpretability from an offline, prohibitively expensive debugging step into a tractable, real-time diagnostic utility.
- Context Engineering: Practitioners can accurately audit long-context prompts and reasoning chains to ensure models rely on correct source documents rather than spurious correlations.
- Production Readiness: The reduction from hourly runtimes to 10-second processing windows makes token attribution viable for large-scale evaluation pipelines and interactive debugging interfaces.
- Tradeoffs: To achieve linear complexity and high faithfulness, the framework intentionally omits non-token-interactive components like MLP outputs. Developers seeking pure circuit-level mechanistic interpretability must weigh this efficiency-driven pruning against their need for exhaustive internal component auditing.
Key Takeaways
- Fresh Trees solves the dual bottleneck of inefficiency and low faithfulness in token attribution for reasoning LLMs.
- Shifting from single-token attribution to a recursive span-wise attribution strategy reduces computational complexity from quadratic to linear.
- Generation processing times for 5,000-token outputs drop from over one hour to approximately 10 seconds.
- The framework successfully reverses the attribution-absorption effect of reasoning chains, accurately mapping importance back to foundational input tokens.
- The package is fully open-sourced and available via
pip install fresh-trees, complete with interactive live demos.
About the Speaker(s)
Authors: Wenbo Pan, Zhichao Liu, Xianlong Wang, Yu Haining, Xiaohua Jia.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026