Faithful, Hidden, and Latent Reasoning › Measuring Faithfulness
Language AI HandbookAll chapters To test a claim about a pre-answer trace, compare continuations after changing a specified part of the prefix. For a report written after the answer, test a cause named in the report. Keep the continuation procedure fixed across conditions and account for sampling variation when decoding is stochastic.
Perturbation Tests
Lanham et al. (2023) tested several ways of perturbing the reasoning prefix.
- Early answering: Lanham et al. cut the trace at a sentence boundary, requested an answer, and compared it with the full-trace answer. Accuracy against the reference answer is a separate measurement.
- Adding mistakes: They replaced a sentence with a model-generated version intended to contain a mistake, regenerated the rest of the trace, and measured agreement with the full-trace answer. If the mistake predicts a specific answer, test that prediction separately.
- Paraphrasing: They rewrote the start of the trace without showing the paraphraser the question, regenerated the rest of the trace, and compared accuracy. To measure sensitivity on individual examples, compare paired answers and check that the rewrite preserves meaning.
- Filler tokens: Lanham et al. replaced the trace with repeating ellipsis tokens and varied the length of the filler. You can also compare a trace with a replacement of exactly the same token count when you want to control for sequence length.
Suppose a model normally uses the written derivation but can recompute the result from the question when that derivation is missing. Under early answering it could give the same answer even though the trace mattered in the original run.
Record what changed, how the model was prompted to continue, and how answers were sampled and compared. Agreement for one edit leaves other edits and dependencies open.
Paraphrasing or adding a mistake can affect wording, positions, or the content available to the model. With deterministic decoding and fixed settings, a changed answer shows that the output is sensitive to that edit. With stochastic decoding, single continuations can disagree even when both prefixes yield the same answer distribution. Sample repeatedly under each condition to estimate changes in the distribution. To test the meaning of a step, include controls for other changes.
A Formal View
Let be the input, a chain of thought, and the answer. The model defines a conditional distribution . We can factor it as:
where:
- : the input (prompt or question)
- : a generated chain-of-thought sequence
- : the final answer
- : the probability of generating the chain of thought given the input
- : the answer probability conditional on a trace with positive probability under the original generation procedure
The chain rule describes traces sampled in the original procedure. An edited prefix can be admissible as input even if the original procedure would never generate it. For example, with deterministic model evaluation, greedy decoding generates one trace for a fixed prompt, tie-breaking rule, and stopping rule.
For fixed input , let be the probability of outcome when we supply prefix and use a fixed continuation and extraction procedure. The outcome is either a complete extracted answer or, if extraction fails, a separate ‘no extractable answer’ outcome. Use the same rule for both prefixes and include every run. Compare the resulting distributions:
The notation separates the observational conditional from the forced-prefix comparison:
- : an edit replacing the original chain of thought with a counterfactual one
- and : distributions over the same outcomes under the two supplied prefixes, including any extraction failures
- : a divergence between those distributions, such as total variation or Jensen–Shannon
- : the resulting measure of dependence
A small divergence means the distributions of recorded outcomes are close under the chosen measure. Hold the original question, decoding settings, answer boundary, and extraction rule fixed. Next-token logits give scores for the next token. To compare outcomes for multi-token answers, score or sample complete continuations.
A large population divergence means the edit changes the probabilities of recorded outcomes. That can happen if the edit changes how often the extractor finds an answer while the extracted answer itself stays the same. When you estimate divergence from sampled runs, account for sampling uncertainty. To test dependence on the meaning of a step, compare edits to that meaning with controls that preserve it while changing the wording.
A more ambitious approach treats trace tokens as potential mediators between a prompt and an answer. Specifying and identifying a mediated effect requires a choice of intervention on the sequence and assumptions about the available data or experiments. Similar meanings can have different token realizations.
Counterfactual Simulatability
Counterfactual simulatability asks whether a human can use an explanation to predict the model’s behavior on changed inputs. This evaluates predictive usefulness even when no internal activations are accessible.
This is a human evaluation, not a mechanistic one. It measures whether the explanation is useful for predicting behavior, which is related to but not identical with faithfulness. An explanation can be simulatable without being a true readout of the computation. For example, a simple rule like "the model answers the last number it sees" might be highly simulatable even if the model's internal computation is much more complex. Conversely, a faithful mechanistic description might be too detailed for a human to use for prediction.
What the Tests Miss
All of these tests share a limitation: they measure the model's behavior under interventions, not its internal states. A model could learn to pass perturbation tests without being introspectively accurate. For example, it could learn to make its answer sensitive to the CoT tokens in a way that mimics faithful reasoning. The tests are also conditional on the specific edits that you choose; a model could be sensitive to some edits and insensitive to others for reasons that have nothing to do with faithfulness.
Trace editing requires access to the discrete prefix or an interface that can replace it. A summary permits a separate experiment on that summary. It cannot retrospectively substitute for the actual hidden tokens or continuous activations.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!