Measuring Mechanistic Uncertainty of Large Language Models via Causal RobustnessMeasuring Mechanistic Uncertainty in Large Language Models via Causal Robustness
Using Jlens's α* to measure mechanistic uncertainty on three open-source models and five QA sets: incorrect answers have a smaller margin.
- In high-risk scenarios, LLMs may give confident but incorrect answers. Output-side uncertainty only asks how uncertain the prediction is, not whether the internal computation supporting the answer is stable under controlled intervention.
- The authors define the causal robustness margin α*: along the Jlens consensus token direction, apply normalized steering to the activations of the last 10 layers, and take the minimal |α| that causes the answer to semantically deviate. The positive and negative directions are searched in steps of 0.01 up to 0.50.
- Across five QA sets and three instruction models, the average α* for correct answers is larger. Table 1 uses −α* to detect errors, with AUROC from 55.78 to 75.14. α* improves the AUROC of self-consistency, and entropy and max probability decrease on MedQA. On PopQA, newly correctly answered questions have a higher margin.
- In Limitations, the authors state that they only evaluate open-source models with full white-box access; the margin depends on the Jlens direction, layer band, and normalization, and the cost of scanning α is large. The experiments are three instruction models and five QA sets; knowledge injection is only on PopQA and includes control entities.
- Evaluated models
- Llama-3.1-8B-InstructQwen2.5-7B-InstructGemma-3-12B-Instruct
- Benchmarks
- TriviaQATruthfulQAPopQASciQMedQA
- Metrics
- AUROCα*Spearman ρΔMaccuracy
The paper proposes the concept of mechanistic uncertainty, characterizing uncertainty by the stability of the internal mechanism supporting a model's answer, and proposes the causal robustness margin, i.e., the minimum internal intervention required to make the model's output deviate, implemented via the Jacobian Lens (Jlens) concept-guided vector. On three open-source models and five question-answering datasets, erroneous and uncertain answers have smaller margins and are more sensitive to internal interventions, and this margin is complementary to traditional output-based uncertainty methods. In controlled knowledge injection experiments, correctly learned facts have larger margins after training, and the authors argue that causal robustness provides a mechanistically grounded uncertainty signal.
Paper analysis
What problem does this paper attempt to solve?
The authors use the minimum internal intervention magnitude to characterize the mechanistic uncertainty of an answer, and see whether it supplements output-side metrics.
How to judge how uncertain a prediction is from whether the internal computation supporting the answer is stable, rather than only from the output distribution.
- High-risk use: The authors believe LLMs are already used in scenarios such as medicine and the natural sciences, where confident but incorrect answers have serious consequences; uncertainty quantification must decide how much confidence to place in a single prediction.
- Gap in output-side metrics: verbalized confidence, sequence likelihood, entropy, semantic entropy, and self-consistency from multiple generations can indicate whether an answer looks uncertain. The authors believe they cannot show whether the internal computation is stable, nor whether a small perturbation would switch to another answer.
- Hypothesis: The authors hypothesize that the model's own uncertainty can be characterized by the stability of the internal causal mechanism that produces the answer. If a small intervention changes the meaning of the answer, the authors believe this may indicate that knowledge use or reasoning is more fragile, and that trust in that prediction is lower.
- Proposed quantity: The authors propose mechanistic uncertainty and operationalize it with the causal robustness margin α*, i.e., the minimum internal intervention magnitude needed to make the output deviate from the baseline. Measurement uses the concept steering vectors of the Jacobian Lens (Jlens), directly modifying intermediate representations; then, on three open-source models and five question-answering datasets, they look at its relationship with correctness, output-side metrics, and knowledge injection.
What related research exists?
Related work is divided into output-side uncertainty, mechanistic interpretability, and internal uncertainty; the authors place this paper on intervention sensitivity.
Output-Side Uncertainty Quantification
- Confidence and sampling: Xiong et al. (2024)'s verbalized confidence, predictive distribution, Huang et al. (2025)'s entropy, and Wang et al. (2023)'s multiple sampling. The authors state that verbalized confidence may be poorly calibrated (Zhao et al., 2026); likelihood and entropy operate on the lexical realization and may fail to capture semantic equivalence.
- Semantic entropy: Kuhn et al. (2023) first clusters sampled answers by meaning, then computes uncertainty. The authors distinguish their work as mechanistic, intervention-based quantification, rather than estimating only on the output.
Mechanistic Interpretability
- Readout: logit lens (nostalgebraist, 2020) decodes intermediate residual states into vocabulary distributions; Jlens (Gurnee et al., 2026) improves the readout using an average Jacobian and allows intervention along verbalizable concept directions.
- Intervention: concept-direction steering (Park et al., 2024; Ferrando et al., 2025), component ablation (Wang et al., 2022), causal tracing (Meng et al., 2022), and circuit discovery (Hanna et al., 2023; Conmy et al., 2023). This part of the paper is descriptive and does not compare errors with this work paper by paper.
Mechanistic Studies of Uncertainty
- Internal-feature prediction: Kadavath et al. (2022) use P(IK) probes to predict whether the model knows the answer; Teplica et al. (2025) use probe signals to look at the overlap between uncertainty and factuality components; Bu et al. (2026a) treat causal-tracing recovery probability as a supervised feature; Srey et al. (2026) use layer-by-layer hidden-state variation to predict correctness. The introduction also groups Brzezinka (2026) with activation dispersion in the same line of work.
- Sampling-free dynamics and causal influence: Bu et al. (2026b)'s cross-layer semantic convergence, Wang et al. (2025)'s hidden-state geometric trajectories; Kumaran et al. (2026) report that internal confidence representations can causally influence behaviors such as abstention. The authors consider that most of these methods predict uncertainty from statistics of internal features.
Baselines and Data
- Baseline methods: self-consistency, max token probability, token entropy; the appendix also compares perplexity, energy (Liu et al., 2020), and semantic entropy.
- Benchmarks/datasets: TriviaQA, PopQA, SciQ, MedQA, TruthfulQA. Knowledge injection uses the pipeline of Ovadia et al. (2025), with Wikipedia as the knowledge source.
The authors analogize the minimum perturbation to adversarial robustness (Szegedy et al., 2013; Madry et al., 2018) and counterfactual explanations (Wachter et al., 2017), and cite Ahdritz et al. (2024): without evaluating model robustness, one cannot meaningfully evaluate uncertainty from data. This work is positioned as a complement: seeing whether sensitivity to causal intervention can serve as an intrinsic measure of uncertainty.
How does the paper address this problem?
α* is the minimum |α| that makes the answer semantically deviate when normalized steering is done along the Jlens consensus token.
α* operationalizes mechanistic uncertainty as: the minimum strength required for the answer to semantically deviate when controlled steering is done along the Jlens consensus concept direction.
Problem setup
Predictive uncertainty asks how uncertain the model is about this prediction; the authors define mechanistic uncertainty as how easily the internal computation producing that prediction can be rewritten by intervention. The general form is
R^{*}(x)=\min\{m(I):f^{I}(x)\not\equiv f(x)\}. f(x) is the baseline output, m(I) is the intervention magnitude, and ≢ indicates deviation from the original output. Under this definition, the smaller the margin, the higher the mechanistic uncertainty.Consensus token
- Layer band: The authors take the middle-to-late layers as the workspace layer band, on the grounds that these layers contain the most relevant concepts the model is processing (Gurnee et al., 2026). The Figure 1 note says earlier layers are noisier. In the implementation, steering is added to the last 10 layers, on the activation of the last token before answer generation, because the readout can expose coherent verbalizable concepts.
- Consensus: Each layer uses Jlens to read out the vocabulary distribution and take the top token; c* is the token that appears most often in the layer band. The authors use it to represent the main concept in the workspace, and say the workspace concept can differ from the final spoken answer.
- Readout and direction: Jlens uses a within-layer, cross-position, cross-prompt averaged Jacobian to linearly map intermediate activations to the final layer, then does unembedding and softmax. The intervention does additive steering along that token's Jlens vector, and the scalar α can lower or amplify that direction.
Searching for α*
The operationalization is α∗(x)=min|α|, with the constraint that after all activations in the layer band are steered by the same α, the output semantically deviates from the baseline.
- Normalization: The step size for each layer is scaled by that layer's residual stream norm relative to the Jlens vector norm. The reason the authors give is to avoid the original concept being overwritten or re-derived, and to strengthen steering.
- Grid: Both positive and negative directions are searched, with |α| from 0.01 to 0.50, step size 0.01, stopping at the first semantic deviation. The upper bound was chosen empirically by the authors to cover very robust answers. A pre-made Jlens matrix is used.
- Judgment: For short-answer datasets, correctness and answer flipping use alias and exact matching. TruthfulQA correctness uses truthfulqa-truth-judge-llama2-7B, and semantic deviation uses Qwen3-32B. How flipping is judged for MedQA is not separately written in the paper.
Stability gap in knowledge injection
The third question uses entity-level supervised fine-tuning to see whether, after injecting or reinforcing knowledge, the mechanism expressing that knowledge is more stable. The authors follow Ovadia et al. (2025); the knowledge source is Wikipedia, and the target data is PopQA. Because PopQA predates the knowledge cutoff of the evaluated models, the authors do not claim that this knowledge was entirely absent originally.
- Control: Entities that did not enter training are control. ΔM is the difference between the average α* after training and before training; a positive value indicates greater resistance to intervention. The authors expect that entities that were encountered, especially questions that went from wrong to right, should have a larger increase in α* than entities not encountered.
- Construction and training: Appendix B uses Qwen3-32B for sentence-level fact segmentation, subject completion, deduplication, and 5 paraphrases each, then applies 25 general instruction templates. Figure 4 and Figure 5 give the full prompts. The training pairs total 126,364, of which 10,000 come from OpenOrca; LoRA rank 64, learning rate 1e-4, 2 epochs. The main text writes that it starts from the base language model; the model name in Table 3 is Instruct / IT.
What experiments did the paper conduct?
Across three models and five QA sets, the average α* for correct answers is larger; α* mostly supplements output-side metrics, but not every cell improves.
Experimental Setup
- Models: Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, Gemma-3-12B-Instruct. The authors state the three have different architectures. The TruthfulQA correctness judge is truthfulqa-truth-judge-llama2-7B; the semantic divergence judge for that set is Qwen3-32B. The data construction for knowledge injection also uses Qwen3-32B.
- Data: TriviaQA randomly sampled 1000 from the validation set; SciQ sampled 1000 from 13,679 questions, with no options included in the query; MedQA sampled 1000 from the 12,723 questions in the English USMLE subset; PopQA sampled 1000 from about 14,000 pairs; TruthfulQA used all 817 questions across 38 categories.
- Intervention: pre-built Jlens matrices; last 10 layers; positive and negative directions; |α| from 0.01 to 0.50, step 0.01; within-layer normalization per Equation (8).
- Metrics: α; AUROC for detecting incorrect answers using −α; mean margin of correct and incorrect answers. Correlation uses Spearman ρ. The supplementary experiment is logistic regression AUROC, with incorrect answers as the positive class.
- Output-side baselines: self-consistency (K=10, temperature 0.7), max token probability, mean token entropy. The appendix additionally has perplexity, energy, semantic entropy (likewise K=10, temperature 0.7; semantic clustering uses an NLI model or string matching; the paper does not state the NLI model name).
- Repetitions: the paper does not separately report the number of repetitions for the α* search. Logistic regression uses out-of-fold predictions from 5-fold cross-validation, averaged over 10 shuffles. Table-note comparisons use paired bootstrap on the questions, with 1000 resamples.
Main Results
The table below is the AUROC for detecting incorrect answers using −α* in Table 1. Model names in the table follow Table 1; Section 5.1 writes the corresponding Instruct versions. Figure 2 marks the same batch of AUROC as 0.xx (e.g., TriviaQA as 0.74, 0.75, 0.71).
Swipe horizontally to read the table
Model TriviaQA PopQA SciQ MedQA TruthfulQA Llama-3.1-8B 74.28 67.01 69.34 70.56 57.90 Qwen2.5-7B 75.14 73.60 66.55 62.35 57.70 Gemma-3-12B 71.08 69.69 65.39 55.78 57.30 - Mean margin: according to Table 1, on each model and dataset, the mean α* of correct answers is higher than that of incorrect answers. On TriviaQA the three are 0.1512 vs. 0.0474, 0.0860 vs. 0.0328, 0.0963 vs. 0.0262. On TruthfulQA both classes are higher, e.g., Llama is 0.182 vs. 0.137; the authors state this is consistent with the model often having high confidence on misconceptions in that set.
- The authors' interpretation: the authors state that TriviaQA and PopQA separate most clearly, and MedQA and SciQ also separate, but the strength varies with model and task. α* is not defined by correctness labels, only by intervention sensitivity.
- Figure 2: the authors state that the mean accuracy after binning by each α* rises with α*. The converted text does not show the curves, and the main text does not list accuracy per bin.
Correlation and Complementarity with Output-Side Metrics
- Correlation: in Figure 3, α* has a positive Spearman ρ with self-consistency and a negative one with mean token entropy. On self-consistency, TriviaQA is Llama +0.60, Qwen +0.63, Gemma +0.35; TruthfulQA is +0.31, +0.27, +0.24. The most negative cell on entropy is MedQA's Llama, with ρ of −0.66. The authors state the correlation strength varies greatly with model and dataset, and state that Gemma still has high self-consistency and low entropy over a range of margins; on TruthfulQA correlations are weak for all models. The authors' interpretation is: output confidence is correlated with mechanistic stability, but does not necessarily imply mechanistic stability.
- Logistic regression: Table 2 compares the baseline alone with the baseline plus α. The authors give examples: on TriviaQA Gemma's self-consistency AUROC goes from 0.653 to 0.752; on MedQA Qwen goes from 0.554 to 0.638. The authors state that on self-consistency α consistently improves AUROC, and that the gain is largest on TruthfulQA, where α* correlates more weakly with output-side signals.
- Cells that did not rise: not every cell in Table 2 rises. MedQA's max token probability: Llama 0.755 to 0.730, Qwen 0.656 to 0.653, Gemma 0.617 to 0.589; token entropy: 0.753 to 0.736, 0.667 to 0.660, 0.641 to 0.609. On PopQA Llama's max token probability goes from 0.809 to 0.808 and token entropy from 0.817 to 0.815. The authors state that in some cases α* gives no benefit, especially for mean token entropy and max token probability. The table note states that bold indicates the 95% CI of the difference does not contain 0; the supplied text does not preserve bold, so no per-cell determination is made.
Knowledge Injection
- Overall: Table 3a, target-entity accuracy for Llama goes from 11.1% to 55.4%, Qwen from 4.0% to 32.8%, Gemma from 6.1% to 43.0%; ΔM is +0.018, +0.018, +0.007. Control accuracy is respectively 11.4% to 10.3%, 5.1% to 6.1%, 6.2% to 7.2%. Control ΔM: Llama −0.006, Gemma −0.002, Qwen +0.016. The authors state that the control margin decreases slightly for Llama and Gemma and rises for Qwen.
- By transition: Table 3b, mean margin for target entities going from wrong to right (W→R): Llama n=427, 0.040 to 0.072 (ΔM +0.032); Qwen n=272, 0.029 to 0.063 (+0.034); Gemma n=348, 0.011 to 0.020 (+0.009). Staying correct (R→R) also rises, Llama at +0.048 (n=87).
- Exceptions: the authors state that training slightly increases confidence in wrong answers for Qwen and Gemma; for target entities W→W, ΔM is Qwen +0.010 (n=619), Gemma +0.004 (n=523), Llama −0.004 (n=398). The n for R→W is 16, 5, 6; the authors consider the sample sizes too small to generalize. On Qwen's control, W→R ΔM is +0.029, but n=20. On Gemma's control, R→R ΔM is −0.041 (n=45); the paper offers no separate explanation.
Other Ablations and Analyses
- Oracle steering (Table 4): steer at α* is applied only to answers that were originally incorrect. Recovered ranges from 2.8% for Gemma on PopQA to 52.2% for Llama on MedQA. For that cell the baseline accuracy is 67.6% and the oracle accuracy is 84.5%. The appendix main text writes that most datasets can recover up to 10%–20%, which is not fully consistent with Table 4. The authors state that for many questions the Jspace consensus readout is the correct answer, while the model says an incorrect answer.
- Appendix Figure 6: α* correlates positively with max token probability and negatively with perplexity, energy, and semantic entropy. The authors state the strongest correlations are often on TriviaQA. Labeled examples in the figure: for that set, the ρ for max token probability is Llama +0.50, Qwen +0.59, Gemma +0.33; for semantic entropy it is −0.57, −0.62, −0.35.
- Appendix C: for each dataset, examples of flips that are fragile and incorrect, and robust and correct, are given. Specific questions and answers are not repeated here.
What are some points that can be further explored?
In Limitations, the authors state the white-box assumption, that the Jlens choice varies with the model, and the computational cost of scanning α.
Limitations and follow-up directions noted by the authors
- Access assumptions and model scope: Limitations writes that because the work is mechanistic, it only evaluated a limited set of open-source LLMs, and assumes full white-box access, including hidden states and token probabilities.
- Dependence on Jlens's choices: The same section writes that the margin is based on the Jlens vector direction, layer band, and normalization, which may differ across models.
- Computational overhead: The same section writes that the method must scan multiple α and apply steer to the entire layer band, which may be computationally expensive; the authors say this paper's focus is interpretability rather than efficiency.
- The paper has no separate Future Work section, and Limitations does not list specific follow-up experiments.
Experimental coverage
- The models tested are Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, and Gemma-3-12B-Instruct, 3 in total (Section 5.1).
- The evaluation samples are 1000 random samples each from TriviaQA, SciQ, MedQA, and PopQA, plus all 817 questions of TruthfulQA (Appendix A).
- The output-side comparison includes self-consistency, max token probability, and token entropy (Table 2); Appendix Figure 6 also includes perplexity, energy, and semantic entropy.
- Knowledge injection uses only PopQA and Wikipedia, and reports control entities that did not participate in SFT (Section 5.2.3, Table 3).
- The paper does not report the number of repetitions, number of queries, or time cost of the α* search, nor does it report the agreement of the TruthfulQA correctness review, the semantic deviation review, and human judgment. The repeated setting for logistic regression is 5-fold, 10 shuffles (Table 2 table note).
Summarize the main content of the paper
Using α* to measure mechanistic uncertainty: incorrect answers have a smaller margin, and it mostly supplements output-side metrics.
Using the minimal internal intervention magnitude, measure how easily the computation behind an answer can be rewritten. What the authors care about is not how dispersed the output distribution is, but when the answer semantically deviates as the middle-to-late-layer representations are pushed along verbalizable concepts.
- Method: In the last 10 layers, use the Jlens consensus token vector for normalized additive steering. The positive and negative directions are searched in steps of 0.01 up to 0.50, and the |α| at the first semantic deviation is recorded as α*. Short answers use alias and exact matching; on TruthfulQA, correctness and semantic deviation are each judged by two external models.
- Relation to correctness: On three instruction models and five question-answering datasets, the average α* of correct answers is higher than that of incorrect answers. When using −α* to detect incorrect answers, the AUROC in Table 1 ranges from 55.78 for Gemma on MedQA to 75.14 for Qwen on TriviaQA. On TruthfulQA, both types of margin are relatively high, which the authors consider together with the high confidence on misconceptions.
- Relation to output-side metrics: α* is positively correlated with self-consistency and negatively correlated with token entropy, with weaker correlations on TruthfulQA. After adding logistic regression, the authors give examples where the AUROC of self-consistency rises, such as Gemma on TriviaQA from 0.653 to 0.752; on MedQA, max token probability and token entropy decrease.
- Knowledge injection: On PopQA, the target entity accuracy rises, with Llama from 11.1% to 55.4%, and the average ΔM is +0.018; the margin of newly correctly answered questions also rises. For Qwen, the ΔM of the control entity is also positive. The authors state that these results support treating causal robustness as a mechanistic uncertainty signal linked to predictive reliability.