LLM Internal Reasoning Observability: Methods, Value, and Limitations
Examining hidden states can reveal aspects of large language model computation that final outputs do not show. This article compares the logit lens, sparse autoencoders, and Jacobian-based subspace analysis, outlines a practical safety-auditing workflow, and explains the limits of interpreting internal signals as evidence of reasoning or consciousness.
1. Outputs Do Not Reveal the Entire Computation
When a large language model answers a question, it ultimately produces a sequence of tokens. Intermediate computations take place in hidden states across multiple network layers, which are generally not exposed to users.
Consider the question, “How many legs does an animal that spins webs have?” The model needs to associate “spins webs” with “spider,” then retrieve the fact that spiders have eight legs. The intermediate concept “spider” does not need to appear in the answer, but it may have been activated during computation to support the correct response.
This illustrates the distinction between a model’s output and its internal computation. For engineering teams, that distinction raises two practical questions:
- When a model gives an incorrect answer, can we identify where the computation went wrong?
- When an output appears compliant, could undesirable reasoning pathways still be present internally?
Answering these questions requires information beyond the final output.
2. Common Methods for Inspecting Internal States
2.1 The Logit Lens
The logit lens takes a hidden state from a particular layer, normalizes it, and projects it directly into the vocabulary space. This reveals which tokens the representation at that layer favors. The method is straightforward to implement and relatively inexpensive, making it useful for quickly examining how predictions evolve across layers.
Its limitations are equally clear. The projection exposes a candidate distribution for the next token, rather than intermediate concepts that may never appear directly in the output. In the example above, “spider” might appear among the candidates at some layers—or not appear at all—depending on the model’s architecture.
def logit_lens(hidden_states, unembed_matrix, final_norm):"""Project each layer's hidden state into vocabulary space and return its top token."""per_layer_top = []for layer_idx, h in enumerate(hidden_states):normalized = final_norm(h)logits = normalized @ unembed_matrix # Shape: [vocabulary_size]top_token = max(range(len(logits)), key=lambda i: logits[i])per_layer_top.append((layer_idx, top_token))return per_layer_top
2.2 Sparse Autoencoders
A sparse autoencoder (SAE) learns an overcomplete dictionary from hidden states while imposing a sparsity constraint, so that each input is represented by only a small number of active features. This provides much finer granularity than the logit lens, often producing thousands of individually inspectable features with broad coverage.
However, a dictionary feature does not directly establish whether it participates in the computation underlying the current answer. It may contribute to a central reasoning step, or it may simply be a by-product of low-level text processing. Activation strength alone is generally insufficient to distinguish the two. Additional causal tests are needed.
2.3 Jacobian-Based Subspace Analysis
These methods compute the Jacobian of the output with respect to hidden states, measuring how much the output changes when hidden states vary along particular directions. Directions with a strong effect on the output can define a subspace relevant to the computation.
Compared with SAEs, this approach focuses on local output sensitivity rather than activation strength alone. A direction that is active but has little effect on the output can therefore be filtered out. This provides a basis for investigating causal influence, although intervention experiments are still needed to substantiate causal claims.
The limitations are substantial: Jacobian computation is expensive, the linear approximation is valid only locally, and the subspace’s semantic interpretation still requires human validation. The method does not automatically assign readable concept labels.
3. Comparing the Three Methods
| Method | What it examines | Granularity | Main advantage | Main limitation |
|---|---|---|---|---|
| Logit lens | Candidate distributions obtained by projecting layer states into vocabulary space | Token level | Intuitive and computationally inexpensive | Focuses on the next token and may miss intermediate concepts |
| Sparse autoencoder | Dictionary features extracted from hidden states | Feature level, with many features | Broad coverage and individually inspectable features | Does not readily distinguish reasoning-relevant features from by-products |
| Jacobian-based subspace analysis | Directions that affect the output | Subspace level | Examines output sensitivity and filters out irrelevant activations | Computationally expensive; semantic interpretation requires human validation |
The choice of method should follow the question being investigated. For a quick view of prediction trends, the logit lens may be sufficient. For a broad search for candidate features, an SAE is more suitable. To determine whether an internal structure actually influences the output, prioritize causal-oriented analysis and combine it with intervention experiments.
4. What Observability Can—and Cannot—Establish
Analysis of internal representations can support conclusions about information processing: where particular information is encoded, for example, or which structures influence the output. These are functional descriptions.
Functional findings do not directly establish claims about subjective experience. Identifying a computational subspace shows that the model contains an identifiable internal structure; it does not demonstrate that the model has consciousness or subjective experience. Comparing such structures with functional regions of the human brain, or interpreting them through cognitive-science frameworks, is an explanatory choice—not empirical evidence in itself.
Technical writing and public communication should therefore separate “what was found” from “what it means.” Findings should specify the experimental conditions, including the model version, scope of the prompt set, and evaluation metrics. Without these details, readers may turn a limited technical observation into a broad claim about the nature of the model.
5. A Practical Workflow for Safety Auditing
Internal-state analysis can be useful in safety audits. One scenario is an apparently normal output accompanied by activation of internal concepts associated with risk. The following workflow provides a practical way to investigate such cases.
Step 1: Define the Audit Question
Specify what the audit is intended to detect. For example, does the model activate a particular risk-related concept while processing a class of requests, without expressing that concept in its output? The more specific the question, the easier it is to design meaningful metrics.
Step 2: Build a Controlled Prompt Set
Create paired inputs that differ only in the part relevant to the target concept. Keep other conditions consistent to reduce confounding factors.
Step 3: Cross-Validate with Multiple Methods
Use the logit lens to inspect trends, then use an SAE or subspace method to identify candidate features or directions. Finally, test whether those candidates actually influence the output through interventions.
Step 4: Perform Causal Interventions
Suppress or amplify candidate directions and observe whether the output changes. Run interventions in a controlled evaluation environment and record any side effects.
Step 5: Record and Reproduce the Results
Preserve the prompt set, thresholds, method parameters, and model version so that others can reproduce the findings.
The following simplified pseudocode collects samples with high internal concept scores. Determining whether the concept is absent from the output requires a separate output assessment.
def audit_internal_concept(model, prompts, concept_direction, threshold):"""Collect high-internal-signal samples for assessment of whether the output reflects the concept.concept_direction must be obtained in earlier steps, and threshold calibrated on a validation set."""flagged = []for prompt in prompts:hidden = model.get_hidden_states(prompt)score = project(hidden, concept_direction)output = model.generate(prompt)if score > threshold:flagged.append({"prompt": prompt,"concept_score": score,"output": output,})return flagged
Thresholds are not universal. The same threshold can lead to very different conclusions across models, layers, or prompt distributions. It must be recalibrated for each evaluation setting.
6. Current Limitations and Open Questions
These methods still face several unresolved issues and should be used cautiously.
- Sensitivity to model architecture. Findings may no longer hold after changing the model or the way layers are analyzed, requiring recalibration.
- Subjectivity in semantic interpretation. Interpreting subspaces depends on researchers’ judgment. Without independent annotation, confirmation bias can affect the results.
- Unintended effects of interventions. Causal interventions may impair other capabilities or change output style. These effects need separate evaluation.
- Uncertain stability. Systematic validation across layers, prompts, and random seeds remains limited.
- Agreement with human evaluation. Larger-scale experiments are needed to establish how consistently internal signals align with human assessments.
Internal-state analysis offers a valuable perspective on model behavior by exposing aspects of computation beyond the final output. But observation alone is not a conclusion: each step from an internal signal to an interpretation requires experimental support.
