AI
New Framework Uses Gradient Analysis to Pinpoint Which Tokens Influence LLM Predictions
Jacobian Scopes offers a unified mathematical method for understanding which input tokens drive large language model outputs across diverse tasks.
Researchers have introduced Jacobian Scopes, a suite of attribution techniques designed to clarify the contribution of individual input tokens to large language model predictions. The approach addresses a fundamental challenge in LLM interpretability: modern neural architectures contain so many layers and attention heads that tracing the path from input to output remains opaque.
The Problem#
Modern LLMs generate predictions by processing context — semantic information, examples, and prior tokens — yet identifying which earlier tokens exert the strongest influence on any given forecast has proven difficult. This opacity hampers both model debugging and understanding of potential failure modes.
How It Works#
Jacobian Scopes draws on perturbation theory and information geometry to measure token-level causal influence. The framework quantifies how input tokens shape different aspects of predictions:
- Specific output logits (individual token probabilities)
- The full predictive distribution
- Model uncertainty, expressed as effective temperature
The methods are gradient-based, meaning they compute how small changes in input tokens ripple through the model's mathematical structure to affect outputs.
Real-World Applications#
The team validated their approach across diverse settings:
- Instruction understanding and bias detection: Revealed implicit political biases in model behavior
- Machine translation: Uncovered word- and phrase-level strategies underlying translation choices
- In-context learning: Illuminated mechanisms recently debated in time-series forecasting with LLMs
Empirical Performance#
On token-ablation faithfulness benchmarks (LAMBADA and IWSLT2017), distribution-level and temperature-based Jacobian Scopes outperformed established gradient attribution methods in 10 of 12 settings across six different LLMs. This suggests the framework more accurately identifies causal relationships than prior methods.
The authors have released open-source implementations and provide an interactive demo for exploring the techniques on custom text.

