LLM Interpretability in Practice: How AI "Thinks" and Why Explanations Differ from Computation
This article explains why a large language model's natural-language explanations may not reflect its actual internal computation. It introduces interpretability methods such as surrogate models, sparse autoencoders, attribution graphs, and causal interventions; examines counterintuitive findings about arithmetic, concept superposition, planning, and multilingual reasoning; and discusses limitations and practical implications for prompt engineering, safety alignment, and cloud-based MLOps.
Introduction: When a Plausible Explanation Is Not the Actual Computation
When you ask a large language model “What is 36 plus 59?”, the model often answers with a familiar human-style explanation: it adds the units, carries the one, then adds the tens, arriving at 95. This explanation looks complete and pedagogically plausible. However, interpretability research suggests that in most cases, the internal activation path used by the model during arithmetic is not directly tied to the column-addition process it describes. The model has learned to produce explanations that resemble how humans write solutions, not necessarily to perform the computation in the same step-by-step way.
This highlights a central black-box problem: the natural-language explanation emitted by a model is not always the same thing as the underlying computation that produced the answer.
Traditional scaling assumptions suggest that larger models and better data will naturally produce better reasoning. But when a model has hundreds of billions of parameters and billions of possible internal pathways, engineers cannot reliably determine what the model “thought” by reading source code or architecture diagrams. It is like inferring someone’s mental state from behavior: we can record inputs and outputs, but we cannot directly observe neural firing.
Interpretability research aims to go beyond what a model says and explain why it says it. This requires techniques that can decompose entangled computations into discrete, observable, verifiable, and intervenable units.
Part 1: Why Traditional Methods Cannot Penetrate the Large-Model Black Box
1.1 Limits of Behavioral Testing
The most common approach is input-output testing: constructing many prompts and observing changes in model behavior. For example, researchers may notice higher refusal rates on sensitive questions and infer the presence of a safety-alignment mechanism.
The critical limitation is unobservability. Behavioral tests can tell us that input A produced output B, but they cannot explain the intermediate process. If a model answers correctly because of statistical correlations in training data, behavioral testing may falsely interpret this as logical understanding. Conversely, if the model fails because of an unexpected internal feature activation, we cannot easily locate the root cause.
1.2 Why Attention-Weight Visualization Is Insufficient
Early interpretability work focused on visualizing attention weights in Transformer architectures, using heatmaps to show which tokens were most influential when generating the next token.
Later research showed that attention weights are not equivalent to causal explanations. A high-attention token is not necessarily decisive for the final result, and a truly important token may be overlooked because its weight is diluted. Attention maps are closer to correlation maps than causal-chain diagrams. Treating attention visualization as a direct view of model reasoning is a common misconception.
1.3 The Dimensionality Problem in Neuron-Level Analysis
In theory, we could inspect every neuron’s activation value. In practice, models with hundreds of billions of parameters can contain tens or hundreds of thousands of neurons in hidden layers. Individual neurons often do not have clear semantic meaning; a single neuron may participate in many different tasks. Faced with such a high-dimensional and highly entangled activation space, researchers need methods that can reduce dimensionality and decouple computations into lower-dimensional, interpretable units.
Part 2: Core Methodology: Surrogate Models and Circuit Tracing
Circuit tracing can be understood as a reverse-engineering process for the internal computation of large models. Its core idea is to turn the black box into a white box and to validate causal chains through intervention.
2.1 Surrogate Model Strategy
Scanning every neuron in a production-scale, trillion-parameter model is extremely expensive and engineering-intensive. Research teams therefore often use a smaller surrogate model with a related architecture and aligned capabilities.
For example, a team may choose a mid-sized model with strong general capabilities as an experimental substitute. Because such surrogate models are trained and aligned using similar technical approaches, their internal organization—such as concept encoding and logical routing—can be highly similar to that of larger flagship models. Findings from the surrogate model can often be generalized to larger models.
This strategy reduces compute cost and allows researchers to make finer-grained weight modifications and intermediate-layer truncations without affecting production services.
2.2 Sparse Autoencoders: Extracting Concepts
Surrogate models address cost, but the problem of neurons lacking clear semantic meaning remains. To address this, researchers use sparse autoencoders (SAEs) as feature extractors.
The process can be simplified as overcomplete dictionary learning:
- Encoding: The dense activation vector from a model’s hidden layer, for example with dimension 4096, is mapped into a larger hidden space, for example 16384 or higher dimensions. Activation functions such as ReLU force most nodes to output zero, creating sparsity.
- Decoding: The sparse high-dimensional vector is mapped back to the original dimension, reconstructing the original activation values as accurately as possible.
After training the autoencoder on large amounts of text, researchers found that concepts entangled in dense neurons often become separated into a small number of specific feature nodes in the sparse representation.
For example, in code-related contexts, “Python indentation rules” might correspond to node #1024, “database connection pool” to node #2048, and “security vulnerability warning” to node #4096. This decoupling allows researchers to identify which concepts the model is internally processing.
2.3 Causal Intervention: From Observation to Verification
Observing that a feature activates is not enough; scientific analysis must verify causality.
Researchers have developed attribution-graph techniques based on the following logic:
- Forward pass: Provide a prompt and record the activation strength of all SAE features.
- Intervention: Force a specific feature’s activation to zero to suppress it, or force it to a high value to amplify it.
- Observe output: Check whether the model’s final answer changes as expected.
For example, if researchers suspect that feature F is responsible for recognizing carry operations in addition, they may suppress F before the model generates the digit “1”. If the model’s answer changes from “95” to “85”, this suggests that feature F plays a causal role in the carry computation.
This “suppress-amplify-observe” paradigm moves interpretability from passive observation to active verification.
Part 3: Four Counterintuitive Findings About AI’s Internal Reasoning
3.1 AI Mental Arithmetic Does Not Follow Human Column Logic
Returning to the arithmetic example, when the model computes “36 + 59”, it does not internally calculate 6 + 9 first and then handle the carry in the same way a human does.
Instead, the model performs approximate computation directly in a high-dimensional vector space. It can simultaneously activate concept nodes associated with “36”, “59”, an estimate such as “90”, and the precise answer “95”. The model is not deriving the result step by step; it maps the problem to an answer space based on intuition learned from large amounts of mathematical data. Only when generating output tokens does it follow human-style solution conventions and construct a column-addition explanation.
This means that the model’s explanation module and computation module are, to a large extent, decoupled. The explanation is often a secondary narrative designed to match human communication habits.
3.2 Superposition and Polysemantic Neurons
Traditional neural networks often assume a one-to-one relationship between neurons and concepts. In large models, due to capacity constraints and optimization efficiency, models learn concept superposition.
Multiple unrelated concepts are compressed into the same group of neurons, and different meanings are represented through different activation patterns. This is like several manuscripts written over one another on the same sheet of paper: they usually look like noise, but under a specific lighting angle or context, one manuscript becomes visible.
Sparse autoencoders force these overlaid manuscripts to be separated. This also helps explain hallucinations: when a small contextual perturbation causes the wrong manuscript to be read, the model may confuse concept A with concept B.
3.3 The Model Can Plan Ahead
Planning ahead is often considered a human capability. Traditionally, autoregressive models are seen as generating token by token, without foresight.
However, circuit tracing shows that large models have notable ability to plan for future tokens.
When generating poetry or long sentences, the model may already have activated feature nodes representing rhyme and theme words before outputting the first word. For example, when writing an acrostic poem about “summer”, concepts corresponding to words such as “summer”, “sky”, “day”, and “long” may be activated and maintained before the first line is generated. Subsequent word choices are then constrained by this pre-activated concept pool.
This suggests that the model is not merely a passive next-token predictor. Internally, it maintains a dynamically updated draft that constrains later generation paths.
3.4 Multilingual Reasoning Is Based on Concepts, Not Languages
A common question is how large models perform cross-lingual translation and reasoning: do they think in English, Chinese, or something else?
Tracing results show that the high-level reasoning layers of large models are almost independent of language-specific features and instead operate on highly abstract concept vectors.
When a Chinese prompt is input, the token embedding layer maps it to Chinese word vectors. After passing through several Transformer blocks, the information is quickly encoded into language-independent semantic concepts. For example, whether the input is the English word “Apple” or the Chinese word for apple, the model’s middle layers may activate a highly similar set of SAE feature nodes.
Only when the model prepares the final output does the top-level decoding mechanism convert the abstract concept stream into a concrete token sequence according to the target language. This helps explain why large models can perform zero-shot cross-lingual transfer relatively easily: their internal conceptual space is not organized by language boundaries.
Part 4: Limitations of Current Interpretability Research
4.1 Not All Reasoning Has Been Explained
Current circuit-tracing techniques mainly apply to tasks with short reasoning paths and relatively direct logic, such as simple arithmetic, basic poetry generation, and direct factual recall.
For tasks that require long-chain reasoning, complex logical loops, or extensive implicit knowledge retrieval—such as writing complex distributed systems code or making rigorous legal arguments—the internal activation network becomes exponentially more complex. The number of features extracted by SAEs may be insufficient to cover such a massive number of intermediate states, and attribution graphs can become extremely large and difficult to converge.
Therefore, we cannot assume that sufficient compute alone will allow us to fully understand every part of a model’s reasoning. Long-chain reasoning interpretability remains a major challenge.
4.2 The Risk of Surrogate Models
Using surrogate models lowers cost but introduces external-validity risk. A smaller model may exhibit similar circuits to a larger model on simple tasks, but its internal computation paths may differ significantly in extreme edge cases or emergent-ability scenarios.
Conclusions drawn from small models should not be applied to production flagship models without careful validation.
4.3 Self-Explanations May Not Be Faithful
When building AI applications, developers often use chain-of-thought (CoT) outputs to support reasoning. Interpretability research warns us not to blindly trust a model’s self-explanation.
A model’s CoT output is often a plausible-sounding sequence generated by probability, not a faithful log of its internal computation. If developers rely only on a model’s own explanation to determine whether it reasoned correctly in an audit or compliance system, the approach is technically unreliable. External interpretability tools, such as intervention experiments and feature attribution, are needed for cross-validation.
Part 5: Engineering Implications
5.1 New Perspectives for Prompt Engineering
Because large models operate over concept vectors and superposition, prompts should avoid ambiguity and polysemy.
- Reduce concept conflicts: Use precise, unambiguous terminology so that the intended feature is activated in the SAE space without triggering unrelated features.
- Leverage planning behavior: At the beginning of a prompt, specify the desired output structure clearly. For example, requesting JSON output with fields such as name, age, and city can pre-activate structured concept nodes internally, helping stabilize subsequent generation and reducing format errors.
5.2 Safety Alignment at the Feature Level
If safety behavior is also carried by specific refusal features or value-judgment features, model protection can draw on the idea of feature suppression.
Lightweight SAE probes can monitor hidden-layer activation values associated with dangerous features in real time. If features strongly correlated with prohibited content activate abnormally, the system can intervene at the vector level or stop generation before the model decodes harmful output. This front-loaded interception approach can be faster and more precise than filtering keywords after harmful text has already been generated.
5.3 Cloud AI Infrastructure
As large-model inference demand grows, cloud vendors are offering more compute-optimization options. Future inference engines are likely to incorporate interpretability insights.
On cloud platforms such as Baidu AI Cloud, developers can use high-performance container platforms to deploy large-scale model inference services, object storage to archive large volumes of model input and output logs, and monitoring and alerting services to track model behavior drift. Combined with capabilities in heterogeneous computing and network interconnection, organizations can build a closed-loop MLOps pipeline covering compute scheduling, model deployment, and interpretability analysis.
Conclusion
Interpretability research opens a window into the internal world of large models. It shows that AI is neither mysterious black magic nor a simple replica of human thought.
Large models simulate the world through geometric operations in high-dimensional vector spaces, save capacity through concept superposition, and separate computation from narration through decoupled modules. At the same time, current interpretability tools are still limited: they can reveal local mechanisms, but they are far from explaining the entire system.
For developers, the right attitude is to respect the technology without blindly mythologizing emergent abilities or dismissing the practical productivity of large models in specific domains.
