Measuring Mechanistic Uncertainty in Large Language Models via Causal Robustness
Organizations: University of Colorado Anschutz Medical Campus · University of Wisconsin-Madison · Harvard Medical School · Boston Children’s Hospital
Abstract
Large language models (LLMs) are increasingly used in critical domains, where their susceptibility to hallucinations makes reliable and interpretable uncertainty quantification essential. We introduce the concept of mechanistic uncertainty, which characterizes uncertainty through the stability of the internal mechanisms supporting a model's response. We propose the causal robustness margin, defined as the minimum internal intervention required to deviate the model's output, and operationalize it using Jacobian Lens (Jlens) concept steering vectors. Across three open-source models and five question-answering datasets, we show incorrect and uncertain responses exhibit smaller margins, indicating greater sensitivity to internal interventions, and the causal robustness margin complements conventional output-based uncertainty methods. Finally, in a controlled knowledge injection experiment, correctly learned facts show increased margins after training, suggesting that causal robustness provides a mechanistically grounded signal of uncertainty.
Figures & tables
| Dataset | Model | AUROC | ||
|---|---|---|---|---|
| TruthfulQA | Llama-3.1-8B | 57.90 | 0.182 | 0.137 |
| Qwen2.5-7B | 57.70 | 0.163 | 0.128 | |
| Gemma-3-12B | 57.30 | 0.148 | 0.112 | |
| TriviaQA | Llama-3.1-8B | 74.28 | 0.1512 | 0.0474 |
| Qwen2.5-7B | 75.14 | 0.0860 | 0.0328 | |
| Gemma-3-12B | 71.08 | 0.0963 | 0.0262 |
| Llama-3.1-8B-Instruct | Qwen2.5-7B-Instruct | Gemma-3-12B-Instruct | |||||
|---|---|---|---|---|---|---|---|
| Dataset | Baseline | Base | Base | Base | |||
| TruthfulQA | Self-consistency | 0.524 | 0.569 | 0.535 | 0.597 | 0.440 | 0.550 |
| Max token prob. | 0.505 | 0.564 | 0.501 | 0.574 | 0.512 | 0.566 | |
| Token entropy | 0.538 | 0.576 | 0.500 | 0.567 | 0.508 | 0.566 | |
| TriviaQA | Self-consistency | 0.833 | 0.847 | 0.769 | 0.808 | 0.653 | 0.752 |
| Max token prob. | 0.828 | 0.840 | 0.810 | 0.822 | 0.761 | 0.793 | |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Model | Baseline Acc. | Recovered (%) | Oracle Acc. |
|---|---|---|---|---|
| TruthfulQA | Llama-3.1-8B | 50.6% | 24.8% | 62.8% |
| Qwen2.5-7B | 64.5% | 19.7% | 71.5% | |
| Gemma-3-12B | 57.5% | 17.3% | 64.9% | |
| TriviaQA | Llama-3.1-8B | 72.8% | 24.6% | 79.5% |
| Qwen2.5-7B | 55.9% | 16.8% | 63.3% | |
| Gemma-3-12B | 72.3% | 12.3% | 75.7% |
LLM Uncertainty Estimation
Large language model uncertainty estimation measures when outputs may be wrong, ambiguous, or unreliable to guide safer decisions.
See all 403 papers