Faithful, Hidden, and Latent Reasoning

Michael BrenndoerferNovember 29, 202638 min read

Separate visible explanations from the computation that produces answers. Learn how perturbation tests and causal examples measure faithfulness.

Language AI HandbookAll chapters
Part 40 of 67Reasoning Post-Training and Verifiable Rewards
Chapter 305Faithful, Hidden, and Latent Reasoning
Reading the full chapter · 12 sections · 38 min12 sections · 38 min

All 12 sections · 38 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Faithful, Hidden, and Latent Reasoning

A model can give the right answer alongside a convincing derivation. If you can edit the trace before the model answers, change one step while keeping the question fixed. Compare the new answer with what the altered step predicts.

A visible trace is generated text. In a decoder-only transformer, the answer has access to earlier tokens through the prefix and the computation also uses internal activation vectors. The architecture alone does not establish which aspects of the earlier tokens mattered to the answer.

The central lesson of this chapter is that three things must be kept separate:

  • The visible explanation: the tokens the model generates and shows you.
  • The mechanism: the causal computation that actually produces the answer.
  • The latent computation: internal states and recurrent steps that may never be verbalized.

Correctness and faithfulness can vary separately. A report can accurately describe a mistake, or it can omit a cue that helped the model reach a correct answer.

We will start by defining the three objects. Then we will look at why chain-of-thought (CoT) is not automatically an explanation, how researchers measure faithfulness, and what the primary studies find. We will then turn to hidden reasoning in frontier models and to latent reasoning methods that replace discrete thoughts with continuous states. Finally, we will build a small synthetic causal example where the ground truth is known, and use it to run a perturbation test on a visible intermediate.

The Three Objects

The three objects are easy to conflate because they often appear together. A model generates a chain of thought, reaches an answer, and the chain of thought seems to lead to that answer. But "seems to lead" is a description of the text, not a description of the computation. To reason clearly about faithfulness, we need to name each object separately and ask how they relate.

Visible Explanations

A visible explanation is any generated text that describes how an answer was produced. It includes:

  • A chain-of-thought, where the model writes intermediate steps.
  • A rationale, where the model gives a reason after the answer.
  • A summary, where the model condenses a longer internal trace.
  • A natural-language explanation in a chat interface.

In ordinary autoregressive generation, the explanation is another sequence of model outputs. An output such as “I used the fact that x equals 3” makes a claim about computation. Its form does not establish that the model accessed or accurately reported the mechanism.

A model can learn to solve a class of problems and describe a procedure for solving them. To learn whether the description matches the procedure the model used, test a specific claim about the computation.

Mechanisms

A mechanism is the computation that maps an input to an output. In a transformer, this includes attention, MLP activations, residual-stream states, and logits. Intervening on a selected activation and measuring the output can test whether and how that activation contributes in a particular setting.

Mechanistic interpretability tries to reverse-engineer these processes. It asks questions like: which heads copy the subject, which MLP layers store factual associations, and which circuits implement arithmetic? These questions are about the model's computation, not about its text. The goal is to describe the computation in terms of components and the information that flows between them, much as one might describe an electronic circuit in terms of gates and wires.

A low-level description might specify matrix multiplications and nonlinearities. A higher-level description might specify how a feature is routed to an output. Evidence for one description need not fully characterize the other.

Latent Computation

Latent computation occurs in continuous hidden states. Transformer layers transform vectors during ordinary forward passes. Those vectors can represent intermediate information that never appears as words. Additional recurrent block applications are one way to allocate more computation. Some continuous-thought models also feed hidden states back as inputs.

Hidden chain-of-thought in the sense used here is a discrete token sequence withheld from the reader. A continuous reasoning step operates on vectors without emitting a token for that step. A system can use both forms, and access to either depends on what it exposes.

Faithfulness

A visible reasoning report is faithful to the extent that it accurately describes relevant causes of the answer. For an editable pre-answer trace, a controlled change to a step can test an explanation’s predicted effect. For a report written after the answer, intervene on the cause it names. Editing the later report cannot affect an answer already emitted.

A prefix edit can influence the answer without validating the explanation. A statement about checking units might change the continuation through its wording or length, even when the unit check it describes played no role. Target the specific dependency claimed by the report.

Four Ways to Be Wrong

It helps to separate four failure modes:

  • Plausible but unfaithful: the explanation sounds right to a human but does not reflect the computation.
  • Faithful but incomplete: the explanation captures part of the computation but omits important steps.
  • Faithful but wrong: the explanation accurately describes a flawed reasoning process that leads to a wrong answer.
  • Correct but unexplained: the model returns the right answer without a usable description of how it arrived there.

These descriptions are not mutually exclusive. A report can omit some relevant factors while accurately identifying others. Record separately whether the answer is correct, what the report claims, and what evidence supports those claims.

A final-answer benchmark measures correctness under its scoring rule. A separate design is needed to compare the report with measured effects of its claimed causes.

Why Chain-of-Thought Is Not Automatically an Explanation

In the original few-shot chain-of-thought prompting experiments, demonstrations paired questions with step-by-step work and final answers. The model then generated intermediate text and an answer for a new question.

An accuracy difference across prompts does not identify which information in the intermediate text drove an individual prediction.

Autoregressive Conditioning Is Not Semantic Faithfulness

In a decoder-only model, answer generation conditions on the generated reasoning prefix. Replacing that prefix can change the output distribution, but the architecture does not guarantee a nonzero effect for every change. Effects may arise from wording, positions, or the information conveyed in the text.

This is the difference between syntactic conditioning and semantic dependence. The answer is always conditioned on the exact tokens that came before it. But it may not depend on their meaning in the way a human reader would assume. A model could be sensitive to the presence of the word "therefore" without using the proposition that precedes it. It could be sensitive to the number of tokens without using their values.

Self-consistency samples several reasoning paths and aggregates their final answers. Higher accuracy from aggregation does not show that any one trace is a faithful explanation. Agreement on an answer can coexist with disagreement among the sampled paths.

Training Rewards Plausible Explanations

Next-token training rewards predictive fit to a target sequence. A preference objective can additionally favor explanations that raters find clear or helpful. Neither objective alone includes a direct test of whether a stated reason caused the particular answer.

A model could therefore receive a high score for an explanation that reads well but misidentifies a cause. Evaluating the text and checking the explanation’s claims about computation are separate jobs.

Process supervision gives feedback on intermediate steps. A step judged correct need not be used by the model to produce its answer. An intervention can test whether changing the step affects the result.

Decoupled Circuits

A possible form of decoupling is that a shortcut contributes to the answer while a subsequent report names a different reason. A model that gives a reason after answering can condition the report on the answer. This is sometimes called post-hoc rationalization.

An objective can reward prediction of a correct answer and a plausible explanation without requiring the two to share a specific computational pathway. This describes what an objective permits. It does not locate separate circuits in a trained network.

Varying a cue or editing an explanation can test behavioral dependence. Such tests do not identify a particular circuit unless combined with evidence about internal activations and their effects.

Prompt Sensitivity and Bias Injection

For example, a few-shot prompt can correlate option position with correctness in its demonstrations. Compare answers and explanations with and without that cue. Treat answers that shift with the cue and omit it from explanations as evidence about the tested prompts and models.

A reproducible shift in answers under a controlled prompt comparison provides evidence of the cue’s influence. Explanations that omit the cue give an incomplete account of that influence. Other factors can still contribute.

Measuring Faithfulness

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 xx be the input, cc a chain of thought, and aa the answer. The model defines a conditional distribution p(a,c∣x)p(a, c \mid x). We can factor it as:

p(a,c∣x)=p(c∣x) p(a∣x,c).p(a, c \mid x) = p(c \mid x) \, p(a \mid x, c).

where:

  • xx: the input (prompt or question)
  • cc: a generated chain-of-thought sequence
  • aa: the final answer
  • p(c∣x)p(c \mid x): the probability of generating the chain of thought given the input
  • p(a∣x,c)p(a \mid x, c): 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 xx, let qc(a)q_c(a) be the probability of outcome aa when we supply prefix cc 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:

Δ(c→c′)=D(qc,qc′),\Delta(c \to c') = D(q_c, q_{c'}),

The notation separates the observational conditional from the forced-prefix comparison:

  • c→c′c \to c': an edit replacing the original chain of thought cc with a counterfactual one c′c'
  • qcq_c and qc′q_{c'}: distributions over the same outcomes under the two supplied prefixes, including any extraction failures
  • D(⋅,⋅)D(\cdot, \cdot): a divergence between those distributions, such as total variation or Jensen–Shannon
  • Δ(c→c′)\Delta(c \to c'): 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.

Evidence from Primary Studies

The conceptual arguments above are not merely hypothetical. Several empirical studies have tested whether CoT explanations reflect the actual causes of model answers. The results are consistent with the view that CoT is generated text, not a guaranteed readout.

Turpin et al. (2023): Unfaithful Explanations from Biased Prompts

Turpin et al. (2023) changed prompts by introducing biasing cues, such as reordering few-shot options to make one letter the correct label throughout the demonstrations. They measured changes in model answers and inspected the reasons the models gave.

The tested models often changed their answers in the direction of the cue but gave explanations that omitted it. That comparison gives evidence that the cue influenced the answer. It leaves open how the information traveled through the model and which other factors influenced each response.

The setting matters. The study used specific tasks, prompts, and models from 2023. It does not show that all CoT is unfaithful. It shows that unfaithfulness is possible and can be systematic. The result is a warning: a CoT that reads well is not evidence that the model reasoned well.

Lanham et al. (2023): Measuring Faithfulness

Lanham et al. (2023) used several interventions on intermediate reasoning, including changing when a model answered, introducing a mistake, and perturbing the reasoning prefix. Their results varied by the task and model tested.

Adding CoT improved accuracy on seven of the eight multiple-choice tasks. On some tasks, answers often stayed the same after truncation or an injected error. Paraphrasing generally preserved accuracy, which can coexist with changes on individual examples. Across the model sizes the authors tested, larger models did not consistently score as more faithful, and different perturbations could give different results.

The study used eight multiple-choice benchmarks and a separate free-response integer-addition task. The main experiments used a 175-billion-parameter decoder-only model fine-tuned with human feedback. The paper describes its prompts and sampling protocols. These tests leave open how models would respond on broader tasks with unconstrained answers.

Chen et al. (2025): Reasoning Models and Hint Injection

Chen et al. (2025) compared answers to the same multiple-choice question with and without a hint. They scored whether the reasoning acknowledged the hint as a cause of the answer, using pairs that switched from a different option to the hinted option. The models often did not acknowledge using the hint in those pairs. The authors used switches to other non-hint options to estimate how many switches might have occurred by chance and adjusted the aggregate score. This adjustment estimates a rate across runs. It does not identify the cause of an individual switch.

In the paper’s outcome-based reinforcement learning experiments, measured faithfulness rose initially and plateaued short of complete disclosure. Answer correctness and faithful reporting of the factors driving an answer are separate measurement targets.

The authors had research access to the recorded reasoning traces used in their experiments. In a deployment where traces are hidden or summarized, the same measurements may require a different interface.

Hidden Reasoning

Reasoning traces can remain hidden from the reader. The December 2024 o1 system card documents an evaluation in which Apollo Research received elicited summaries rather than the original hidden trace. A summary is a new piece of text and cannot be treated as a transcript of the hidden tokens.

There are several reasons to hide reasoning:

  • Safety: review raw traces for harmful or private material before making them visible.
  • Protecting model information: a trace may provide extra supervision for distillation.
  • User experience: longer traces take up more space in the reading interface.
  • Presentation policy: a system can expose a summary or reviewed explanation instead of its raw trace.

These reasons are legitimate, but they create a tension with transparency. The same trace that could reveal misuse could also reveal unfaithfulness, and hiding it removes the evidence that evaluators would need.

Without the relevant prefix, we cannot apply direct edits to it through the public interface. We can still evaluate answers and test summaries on their own terms. The summary’s inputs and generation procedure limit what it can report.

It is useful to distinguish:

  • Visible CoT: tokens are generated and shown.
  • Hidden CoT: tokens are generated but not shown. They may be logged internally.
  • Summarized CoT: a separate text derived from a hidden trace through a summarization procedure.
  • Latent reasoning: operations in continuous states without emitting discrete reasoning tokens for those operations.

Hidden CoT is still discrete. If you have access, you can monitor it, search it, and apply interventions. Latent reasoning is harder: there is no text to read.

Latent Reasoning

A continuous reasoning step updates a hidden vector without generating a vocabulary token at that step. The examples below contrast continuous updates with methods that use extra discrete token positions.

A discrete token commits to one symbol, while the hidden activations can retain additional information beyond that symbol. A continuous-state approach can propagate a vector without encoding it as a vocabulary token. Such a vector need not represent a probability distribution or retain every hypothesis.

Recurrent Depth

The simplest form of latent reasoning is recurrent depth. A standard transformer has a fixed number of layers. A recurrent model applies the same block multiple times:

ht+1=Block(ht,x),t=0,…,T−1.h_{t+1} = \mathrm{Block}(h_t, x), \qquad t = 0, \dots, T-1.

where:

  • hth_t: the hidden state after tt applications, with h0h_0 the initial state
  • Block(⋅,⋅)\mathrm{Block}(\cdot, \cdot): the shared transformer block applied at every step
  • xx: the input
  • TT: the total number of recurrent steps

This model sketch reads the answer out from the state after T iterations. Universal Transformers provide a research example of recurrent refinement with shared parameters. Their adaptive computation mechanism is a separate design choice from simple fixed-step recurrence.

Repeating the shared block adds operations without increasing its parameter count, if no parameters are added elsewhere. The resulting trajectory can be studied if the relevant states are accessible.

Supplied Pause Tokens

Goyal et al. (2023) appended copies of a special learnable token before extracting the answer. These extra positions let the model compute additional contextual states. The token itself has no assigned natural-language meaning.

The paper reports performance gains on some evaluated tasks. Extra contextual states can carry information, while a gain on those tasks leaves open whether the model’s reasoning report faithfully describes its method.

Continuous Chain-of-Thought

Coconut uses a last hidden state as the next input embedding during a continuous reasoning segment. In a standard text CoT, the model generates a discrete token at each reasoning step:

ct∼p(ct∣x,c<t),c_t \sim p(c_t \mid x, c_{<t}),

where:

  • ctc_t: the discrete token generated at reasoning step tt
  • c<tc_{<t}: the previously generated thought tokens
  • xx: the input
  • p(ct∣x,c<t)p(c_t \mid x, c_{<t}): the next-token distribution over the vocabulary

In Coconut, the model feeds the last hidden state back as the next input, without decoding a token:

ht+1=LM(ht;x,h<t),h_{t+1} = \mathrm{LM}(h_t; x, h_{<t}),

where:

  • hth_t: the continuous hidden state at thought step tt
  • LM(⋅;x,h<t)\mathrm{LM}(\cdot; x, h_{<t}): the next-state computation with the prompt and earlier reasoning positions available as context

Coconut uses a curriculum that gradually replaces portions of text reasoning with continuous steps and returns to token decoding for the answer. On the tested logical tasks, the authors interpret some latent behavior as preserving multiple alternatives during search. The recurrence does not implement an explicit breadth-first queue.

Continuous states leave no text for a reader to inspect at those steps. A probing classifier can test whether information is decodable from a latent state, subject to its training and evaluation. A logit lens projects an intermediate state into vocabulary scores. Activation patching intervenes on an activation and measures the effect on an output, testing a different claim about how the model uses the state.

Soft Thinking

Soft Thinking feeds a weighted mixture of token embeddings into subsequent reasoning steps. The weights come from the vocabulary distribution at that step. The mixture represents one input vector rather than independently executing a branch for each token.

Several candidate embeddings can contribute to the same input vector. The mixture alone does not identify which concepts or search paths the subsequent computation uses.

Discrete Comparison: Quiet-STaR

Quiet-STaR samples discrete text rationales at sequence positions to help predict future text. Goyal’s pause tokens are supplied to the model, while Quiet-STaR generates its own rationale tokens. Coconut and Soft Thinking instead pass continuous vectors into their reasoning steps. Quiet-STaR evaluates predictive usefulness, including the likelihood of future text.

In the paper’s non-myopic training objective, rationales receive a reward based on how well they help predict a sequence of upcoming tokens compared with alternative rationales. The training signal evaluates prediction of future text. A separate test would be needed to establish that a rationale faithfully describes how the model produces an answer.

Tradeoffs

Latent reasoning offers several potential benefits:

  • Representation: continuous vectors can carry information without a discrete vocabulary selection at each reasoning step.
  • Compute allocation: fewer emitted tokens do not establish lower latency, memory, or compute. Count the repeated operations and other resources.
  • Adaptivity: a model can predict when to stop applying a shared block, as in the adaptive Universal Transformer.
  • Avoiding verbalization: the model does not have to translate its computation into human language.

But it also creates costs:

  • Interpretability: no text to read.
  • Monitoring: a text-only monitor cannot inspect continuous reasoning operations directly.
  • Evaluation: faithfulness tests designed for CoT do not directly apply.
  • Training: modifying how the model processes intermediate states can require a matching training procedure. Coconut’s staged replacement of text steps is one example.

A text-only monitor can inspect the text a system exposes. When the intermediate states are unavailable, use controlled input changes to measure the model’s end-to-end response. Editing a generated output instead tests the response of a downstream consumer to that output.

Worked Example: A Synthetic Causal Chain with Known Ground Truth

We now turn to a small example where we know the true causal graph. The goal is not to simulate a large language model. The goal is to make the distinction between a visible intermediate and the mechanism concrete, and to run a perturbation test that answers a precise question: does the final answer depend on the visible thought?

The Data-Generating Process

The example uses six binary variables. A, B and C are independently sampled inputs; M is the generated intermediate, Y the target, and S the cue.

  • A and B are causes of an intermediate M.
  • C is another cause of the final outcome Y.
  • S is generated as a noisy copy of Y in training. It has no causal effect on the generating rule for Y.

The ground-truth equations are:

M=A∧B,M = A \land B, Y=M∧C.Y = M \land C.

In training, we set S = Y with probability 0.95, and S = 1 - Y otherwise. At test time, we randomize S independently. This mimics a shortcut that is useful in the training distribution but useless at deployment.

The generating graph is A → M, B → M, M → Y, and C → Y. The training split also has Y → S. That edge disappears in the test split, where S is sampled independently. The fitted predictor can depend on S even though S does not cause Y.

We will train four logistic regression models:

  • Direct: uses [A, B, C, S], no visible intermediate.
  • CoT + spurious: uses [A, B, C, S, M], with M as a visible thought.
  • Causal, no spurious: uses [A, B, C, M], no S.
  • M + C: receives the intermediate and the direct cause. It has no A or B inputs from which to reconstruct M.

The M + C model makes dependence on the supplied intermediate easier to inspect. Under the true rule, changing M changes Y exactly when C=1. The fitted predictors must still be tested.

Generating the Data

The hidden setup seeds the shared plotting utilities. The data generator below uses its own NumPy random generator with seed zero.

Next, we define the data generator. With random_s=True, it draws S independently as a fair coin. With random_s=False, it makes S a noisy copy of Y at the configured agreement rate.

PythonIn [3]
CollapseExpand
import numpy as np


def make_data(n, rng, spurious_strength=0.95, random_s=False):
    a = rng.integers(0, 2, n)
    b = rng.integers(0, 2, n)
    c = rng.integers(0, 2, n)
    m = a & b
    y = m & c

    if random_s:
        s = rng.integers(0, 2, n)
    else:
        s = np.where(rng.random(n) < spurious_strength, y, 1 - y)

    X = np.column_stack([a, b, c, s, m])
    return X, y

We draw 4,000 training examples with the noisy-copy rule and 2,000 test examples with an independent cue. The realized training and test correlations are measured below.

PythonIn [4]
CollapseExpand
rng = np.random.default_rng(0)

X_train, y_train = make_data(4000, rng, spurious_strength=0.95, random_s=False)
X_test, y_test = make_data(2000, rng, spurious_strength=0.95, random_s=True)

Check the observed correlation between S and Y. Independent generation implies zero population test correlation, while the finite test sample can show a small nonzero value.

ConsoleOut [5]
CollapseExpand
Training examples: 4000
Test examples: 2000
Positive rate (train): 0.126
Correlation S-Y (train): 0.801
Correlation S-Y (test):  0.010

The training correlation is high and the observed test correlation is close to zero. A fitted predictor that relies on S can lose accuracy after the shift. The size of that loss depends on how it uses the rest of its inputs.

A Small Logistic Regression

We use a simple logistic regression trained with gradient descent. The model is linear, so we can read its coefficients directly. This is not a language model, but it has the same key property: the answer is a function of the input features, and we can intervene on a visible intermediate.

PythonIn [6]
CollapseExpand
def sigmoid(z):
    z = np.clip(z, -500, 500)
    return 1.0 / (1.0 + np.exp(-z))


def fit_logreg(X, y, lr=0.1, n_epochs=6000, l2=1e-4):
    Xb = np.column_stack([np.ones(len(X)), X])
    w = np.zeros(Xb.shape[1])

    for _ in range(n_epochs):
        p = sigmoid(Xb @ w)
        grad = Xb.T @ (p - y) / len(y) + l2 * w
        w -= lr * grad

    return w


def predict_logreg(w, X):
    Xb = np.column_stack([np.ones(len(X)), X])
    return (sigmoid(Xb @ w) >= 0.5).astype(int)

The l2 term penalizes all fitted coefficients, including the intercept here. For the float64 logits in this notebook, clipping to the interval from −500 to 500 keeps the exponential finite. A coefficient alone does not show that changing the feature crosses the decision threshold.

We now define the feature sets for each model. The feature matrix has columns [a, b, c, s, m].

PythonIn [7]
CollapseExpand
feature_sets = {
    "Direct (no CoT)": [0, 1, 2, 3],
    "CoT + spurious": [0, 1, 2, 3, 4],
    "Causal, no spurious": [0, 1, 2, 4],
    "M + C": [4, 2],
}

We train one model per feature set.

PythonIn [8]
CollapseExpand
models = {}
for name, cols in feature_sets.items():
    w = fit_logreg(X_train[:, cols], y_train)
    models[name] = (w, cols)

Evaluating Accuracy and Faithfulness

We measure test accuracy and how predictions respond to the edit:

  • Test accuracy: how often the model is correct on the randomized-S test set.
  • Flip rate: the fraction of test predictions that change when we flip the visible intermediate M, holding all other features fixed.
  • Missed and extra flips: a missed flip leaves the prediction unchanged when C=1 and the target should change. An extra flip changes the prediction when C=0 and the target should stay fixed.

The flip rate measures how often a specific change to M crosses the decision threshold. A prediction score can change without a class change. Flipping a derived feature with its parents fixed can create inputs outside the natural distribution, so treat this as an edit to the fitted predictor’s inputs.

PythonIn [9]
CollapseExpand
def accuracy(w, X, y):
    return float(np.mean(predict_logreg(w, X) == y))


def prediction_flips(w, X, cols, m_col=4):
    if m_col not in cols:
        return None

    X_sub = X[:, cols]
    m_pos = cols.index(m_col)

    X_flip = X_sub.copy()
    X_flip[:, m_pos] = 1 - X_flip[:, m_pos]

    p_orig = predict_logreg(w, X_sub)
    p_flip = predict_logreg(w, X_flip)

    return p_orig != p_flip

We compute the results for all four models. Compare the prediction change on each row with the change expected under the generating rule. Two models can have the same pooled flip rate and still flip on different rows.

PythonIn [10]
CollapseExpand
expected_flips = X_test[:, 2] == 1
results = {}
for name, (w, cols) in models.items():
    train_acc = accuracy(w, X_train[:, cols], y_train)
    test_acc = accuracy(w, X_test[:, cols], y_test)
    flips = prediction_flips(w, X_test, cols)
    results[name] = {
        "train_acc": train_acc,
        "test_acc": test_acc,
        "flip_rate": np.nan,
        "missed_flips": None,
        "extra_flips": None,
    }
    if flips is not None:
        results[name].update(
            flip_rate=float(np.mean(flips)),
            missed_flips=int(np.sum(expected_flips & ~flips)),
            extra_flips=int(np.sum(~expected_flips & flips)),
        )

Here is the table.

ConsoleOut [11]
CollapseExpand
Expected flips (C=1): 1022 of 2000
Model                       Train    Test    Flip  Missed   Extra
Direct (no CoT)             0.994   0.942     n/a     n/a     n/a
CoT + spurious              0.994   0.942   0.239     543       0
Causal, no spurious         1.000   1.000   0.511       0       0
M + C                       1.000   1.000   0.511       0       0

In this seeded run, both models with S score approximately 0.994 on training and 0.942 on test. Both models that omit S score 1.000 on each split to three displayed decimals. Comparing those accuracies does not isolate the effect of S on a particular fitted predictor.

The charts abbreviate the same four rows as Direct, CoT + cue, Causal, and M + C. Compare training and test accuracy first, then edit the intermediate input to measure prediction sensitivity.

PythonIn [12]
CollapseExpand
model_names = list(results)
plot_names = {
    "Direct (no CoT)": "Direct",
    "CoT + spurious": "CoT + cue",
    "Causal, no spurious": "Causal",
    "M + C": "M + C",
}
train_acc = np.array([results[name]["train_acc"] for name in model_names])
test_acc = np.array([results[name]["test_acc"] for name in model_names])
VisualizationOut [13]
CollapseExpand
Each model has training accuracy on the left and test accuracy on the right.
Training and test accuracy for the four fits in the seeded exercise. The two models with S available score lower on the independently randomized-S test split. The two models without S retain their training accuracy to three decimals. The gap across splits is descriptive.

Providing a correct intermediate does not tell us how strongly predictions depend on it. Change it and measure the result.

Let's visualize the test accuracy first.

VisualizationOut [14]
CollapseExpand
Bar chart comparing test accuracy of the Direct, CoT plus cue, Causal, and M plus C models.
Test accuracy for each fitted model. The direct and CoT-plus-spurious fits score 0.942 to three decimals; the two fits that omit S score 1.000 to three decimals on this simulated split.

The two models with the cue have lower test accuracy in this run. That between-model comparison does not identify which features drove a particular answer.

Now let's look at the flip rate. We only plot models that receive M.

VisualizationOut [15]
CollapseExpand
Bar chart of flip rates for models that receive the intermediate M.
Fraction of test predictions that change when the supplied feature M is flipped with other supplied features fixed. The M + C and causal, no-spurious fits tie in this run. The CoT-plus-spurious fit has a lower flip rate.

The M + C and causal, no-spurious fits each flip on all 1,022 rows with C=1 and on none of the 978 rows with C=0. Both have a pooled flip rate of 51.1%. The CoT-plus-spurious fit flips on 479 of the 1,022 expected rows and misses the other 543. It also has no extra flips. The comparison shows where the fitted predictions depart from the generating rule. It does not tell us which combination of S, A and B accounts for the difference.

The scatter plot places each fit at its measured flip rate and accuracy. Fits with identical coordinates share a point and a legend entry. In the default run, Causal and M + C share a point.

PythonIn [16]
CollapseExpand
def group_accuracy_and_flips(table):
    groups = {}
    for name, row in table.items():
        if not np.isnan(row["flip_rate"]):
            point = (row["flip_rate"], row["test_acc"])
            groups.setdefault(point, []).append(name)
    return groups


point_groups = group_accuracy_and_flips(results)
VisualizationOut [17]
CollapseExpand
The circle shows CoT plus cue. The square combines Causal and M plus C at their shared coordinates.
Test accuracy versus flip rate for fits that receive M. In the default run, Causal and M + C share both coordinates and appear at one point.

Finally, inspect the fitted coefficients of the CoT-plus-spurious model. Each coefficient multiplies one input feature in the logit before thresholding.

VisualizationOut [18]
CollapseExpand
Bar chart of coefficients for features a, b, c, s, and m in the CoT model.
Coefficients for the five features in the CoT-plus-spurious fit, excluding the intercept. The coefficient on M is larger than the coefficient on S in this run. A change of class depends on the initial margin as well as the change of logit.

The coefficient plot shows how the fitted linear score changes when one feature changes and the other input columns are fixed. Because M is determined by A and B in the original data, coefficients for these correlated inputs are conditional quantities. To quantify the effect on predictions, change the input and measure how often the thresholded decision changes.

What the Example Shows

This toy example makes three points.

First, an available intermediate can have limited influence on an answer. The CoT-plus-spurious fit misses many of the changes predicted by the known rule. The pooled rate describes sensitivity on this population under this edit. The row-level comparison tells us whether those changes occur where the rule predicts them.

Second, the training and test scores in this run differ for the direct and CoT-plus-spurious models. The size of that difference can vary with the sampled training and test data. Compare interventions on individual features to identify their direct effect on the fitted predictor. Many features can contribute to a train-test difference.

The M + C model receives only the two inputs used by the generating rule. That makes the fitted function simpler to inspect. Its flip rate is a property of this fit, test set, and input edit.

Key Parameters

The key parameters for the synthetic logistic-regression example are:

  • lr: Sets the size of each gradient update. A small step can require more iterations. An overly large step can make the updates unstable.
  • n_epochs: Number of passes over the training data. More passes cost additional runtime and can give the optimizer more time to converge.
  • l2: Weight-penalty strength, including the intercept in this implementation.
  • spurious_strength: The probability that S matches Y in the noisy-copy branch. At 0.5 the cue gives no information about Y. Below 0.5 it is negatively associated with Y.
  • random_s: Chooses between a separate fair-coin draw for S and the noisy-copy rule. Both branches return an S column. Which model can use that column depends on the feature set.
  • feature_sets: Columns supplied to each predictor. A model without M has no direct M input to edit.

Limitations and Impact

The study of faithful reasoning is limited by the tools we have. Perturbation tests are behavioral. They can tell us whether an answer changes when we edit a thought, but they cannot tell us why. A model could pass a perturbation test by learning a superficial sensitivity to the thought tokens, without ever using the semantic content. Conversely, a model could fail a perturbation test because it has redundant circuits: changing one thought token may not change the answer because another circuit computes the same result.

The toy uses binary variables and a linear logit. Its generating relationships and chosen input edits are observable. This example does not estimate how often analogous behavior occurs in language models.

Turpin et al. tested biasing cues in specific few-shot prompts. Lanham et al. studied selected multiple-choice and arithmetic tasks. Chen et al. measured hint acknowledgment across observed answer switches and adjusted their aggregate score for estimated random switching. Apply each finding to the evaluation that produced it.

Access to hidden computation depends on the interface and model. End-to-end tests can compare behavior when internal states are unavailable. With suitable access, trace edits or activation interventions can test more specific hypotheses.

If the interface lets you edit a pre-answer trace, change the specified prefix while keeping decoding and extraction fixed. Count every run in the comparison, including any run without an extractable answer. Report the extraction failure rate, compare the content of extracted answers, and report reference accuracy with its denominator. If the interface only exposes a final response, evaluate it under controlled input changes.

The most important impact is conceptual. The question "did the model reason correctly?" is not the same as "did the model produce a correct-looking explanation?" A model can reason correctly in a latent space and produce a misleading explanation. A model can produce a faithful explanation of a flawed process. A model can produce a correct answer for a spurious reason. Keeping the three objects separate is the first step toward evaluating any of them.

Summary

  • A visible chain of thought is a generated explanation, not a guaranteed readout of the model's computation.
  • A faithful report describes relevant causes of the answer. Editing a prefix tests a specific hypothesis about those causes.
  • CoT can be unfaithful because of autoregressive generation, training incentives, decoupled circuits, and prompt sensitivity.
  • Perturbation tests such as early answering, adding mistakes, paraphrasing, and filler tokens provide evidence about faithfulness, but each has limitations.
  • Primary studies (Turpin et al., Lanham et al., Chen et al.) show that unfaithfulness is real and can be systematic, within specific settings.
  • Hidden reasoning keeps the CoT discrete but removes it from view. Summaries are not a substitute for the raw trace.
  • Continuous reasoning can propagate vectors without outputting discrete reasoning tokens at those steps. Compute and interpretability depend on the mechanism.
  • The pooled flip rate measures sensitivity to one edit. When the expected effect is known, compare predicted and expected flips on each row. Coefficients measure how a feature changes the logit. Choose a test that matches the claim. A prefix edit probes the effect of that edit. A cue intervention probes the model’s response to the cue. An activation intervention can test a specific hypothesis about internal computation.

Quiz

Ready to test your understanding? Take this quick quiz to reinforce what you've learned about faithful, hidden, and latent reasoning.

Faithful, Hidden, and Latent Reasoning

Question 1 of 80 of 8 completed
According to the chapter, what does an architecture with autoregressive conditioning guarantee about the meaning of the tokens in a reasoning prefix?
Join the discussionAsk a question or share what you learned.

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!

A different angle
All writing
Language AI Handbook · Vol. 13

Search, Reflection, and Test-Time Compute

Learn how sampling, verifiers, and adaptive stopping convert inference compute into accuracy, and why selection limits what more draws can deliver.

36 min read
Language AI Handbook · Vol. 13

Outcome and Process Reward Models

Compare outcome and process reward models: labeling schemes, verifiers versus learned graders, step-score aggregation, reranking, and reward hacking.

38 min read
Language AI Handbook · Vol. 13

Cold Starts, Rejection Sampling, and Distillation

Learn how reasoning pipelines produce, filter, and imitate traces through cold-start supervision, verifier-filtered rejection sampling, and distillation.

42 min read

About the author

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@misc{brenndoerfer2026faithfulhidden, author = {Michael Brenndoerfer}, title = {Faithful, Hidden, and Latent Reasoning}, year = {2026}, url = {https://mbrenndoerfer.com/writing/faithful-hidden-latent-reasoning-faithfulness-tests}, organization = {mbrenndoerfer.com}, note = {Accessed: 2026-12-03} }
APAAcademic
Michael Brenndoerfer (2026). Faithful, Hidden, and Latent Reasoning. Retrieved from https://mbrenndoerfer.com/writing/faithful-hidden-latent-reasoning-faithfulness-tests
MLAAcademic
Michael Brenndoerfer. "Faithful, Hidden, and Latent Reasoning." 2026. Web. December 3, 2026. <https://mbrenndoerfer.com/writing/faithful-hidden-latent-reasoning-faithfulness-tests>.
CHICAGOAcademic
Michael Brenndoerfer. "Faithful, Hidden, and Latent Reasoning." Accessed December 3, 2026. https://mbrenndoerfer.com/writing/faithful-hidden-latent-reasoning-faithfulness-tests.
HARVARDAcademic
Michael Brenndoerfer (2026) 'Faithful, Hidden, and Latent Reasoning'. Available at: https://mbrenndoerfer.com/writing/faithful-hidden-latent-reasoning-faithfulness-tests (Accessed: December 3, 2026).
SimpleBasic
Michael Brenndoerfer (2026). Faithful, Hidden, and Latent Reasoning. https://mbrenndoerfer.com/writing/faithful-hidden-latent-reasoning-faithfulness-tests
Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy