Manuscript Offprint

arXiv:2610.22636

Measuring Mechanistic Uncertainty in Large Language Models via Causal Robustness

Aneesh Komanduri, Majid Afshar, Timothy A. Miller, Yanjun Gao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Large language models (LLMs) are increasingly deployed in high-stakes real-world settings, where confidently incorrect responses can have severe consequences (Kalai et al., 2026). Uncertainty quantification (UQ) asks how much confidence to place in an individual prediction, which is essential for building reliable and trustworthy systems, particularly in domains such as healthcare (Hager et al., 2024) and natural sciences (Chen et al., 2024). Many existing UQ methods, however, characterize uncertainty at the level of model outputs, using signals such as verbalized confidence (Xiong et al., 2024), sequence likelihood, entropy (Huang et al., 2025), semantic entropy (Kuhn et al., 2023), or self-consistency across multiple generations (Wang et al., 2023). While these approaches can indicate whether an answer appears uncertain, they provide limited insight into why that uncertainty arises within the model. Predictive uncertainty asks, how uncertain is the model about its prediction? However, it does not reveal whether the internal computations supporting a response are stable or small perturbations to those computations would produce a different answer.

A recent line of work explores LLM uncertainty through internal representations and computations utilizing tools from mechanistic interpretability (Olah, 2022; Meng et al., 2022). These studies investigate internal dispersion of activations (Brzezinka, 2026; Bu et al., 2026b; Srey et al., 2026), supervised uncertainty probes (Teplica et al., 2025; Bu et al., 2026a), and identifying uncertainty directions in representation space (Kumaran et al., 2026; Ferrando et al., 2025). We study a complementary question: how robust is the internal computation supporting the model's prediction? Rather than measuring uncertainty only from the output distribution, we ask whether it can be inferred from the robustness of the internal causal process that gives rise to the model's response. Understanding and evaluating the robustness of a model's internal computations is a crucial first step toward reliable uncertainty quantification, as uncertainty arising from data cannot be meaningfully assessed without model robustness (Ahdritz et al., 2024).

In this paper, we introduce a mechanistic perspective on uncertainty in LLMs, which we refer to as mechanistic uncertainty. Our central hypothesis is that LLM's own uncertainty can be characterized by the stability of the internal causal mechanism that produces a model's response. Motivated by this intuition, we propose the causal robustness margin, defined as the minimum magnitude of an intervention required to deviate the model's response denoted as α∗\alpha^{*}. Our approach uses an analogous principle to notions of minimal perturbation in adversarial robustness (Szegedy et al., 2013; Madry et al., 2018) and counterfactual explanations

(Wachter et al., 2017), where we seek a minimal change to an input or representation that induces a different model outcome. In our case, we intervene directly on intermediate representations and measure how strongly they must be perturbed before the generated response changes.

A recent mechanistic interpretability method, Jacobian Lens (Jlens) (Gurnee et al., 2026), makes this study possible. Jlens significantly improves upon classic methods such as logit lens (nostalgebraist, 2020) by linearly transporting intermediate activations through the downstream computation using average Jacobians, and allows for a causal analysis of readouts and interventions in the direction of verbalizable concepts. We define our causal robustness margin through controlled Jlens interventions across three open-source models and five question answering datasets. We find that incorrect responses generally exhibit smaller causal robustness margins and that these margins complement output-based uncertainty measures. A controlled knowledge injection experiment further shows increased margins for newly correct responses after training on knowledge sources for specific entities, linking successful learning to greater internal stability. Together, these findings support causal robustness as an intervention-based signal of uncertainty. An overview of the intuition for our method is shown in Fig. 1. Our main contributions are:

• We introduce the novel concept of mechanistic uncertainty as the causal fragility of an internal computation supporting a response. We formalize the notion using the causal robustness margin, defined as the minimum intervention required to semantically deviate from the baseline response.

• We implement the causal robustness margin using the Jlens to steer toward or away from the representation of consensus tokens poised to be verbalized prior to generation.

• We perform experiments on five datasets and open-source LLMs and show that the causal robustness margin can predict response correctness, complements output-based uncertainty methods, and captures internal mechanism stability.