Turning LLM Internal Representations into Natural Language: Principles and Debugging Practice

    Large language model failures are not always explained by inputs and outputs alone. This article explains how activation vectors can be mapped to natural-language descriptions and then reconstructed, what that mapping does and does not prove, and how developers can use it to form testable hypotheses about anomalies such as unexpected language switching—while separating reconstruction quality, description fidelity, and causal evidence, and respecting cost and privacy limits.

    1. From abnormal outputs to internal representations: debugging needs a new observation layer

    Anomalies in large language model applications cannot always be explained by looking only at inputs and outputs. A user may converse entirely in English, for example, while the model suddenly answers in another language. Investigators usually start with the system prompt, conversation history, language settings, retrieved content, and training data. Those checks are necessary, but they mainly describe the model’s external behavior.

    The harder question is whether, while processing the input, the model has already formed an internal representation related to user identity, language preference, or response style—and when that representation appears.

    The source material describes one research approach: an auxiliary model reads activation vectors from the target model and turns them into natural language; another model then tries to recover the original activations from that text. Developers then see not only the final answer, but also a readable description of an intermediate computational state.

    This does not mean the model’s “thoughts” have been fully read. A more precise claim is that researchers have built an approximate mapping between internal numerical representations and natural-language descriptions, adding one more channel for observing model behavior.

    2. What activation vectors are, and why they are hard to read directly

    As a large language model processes text, it produces many numerical vectors at different network layers and token positions. These vectors are usually called activations. They feed later computation and influence the next token prediction.

    A single activation vector may carry several kinds of information at once, for example:

    • The semantics of the current text and its relation to context
    • Syntactic structure, position, and reference cues
    • A tendency toward a particular response language, tone, or format
    • Facts and conceptual features relevant to the current task

    This information is not stored as human-readable fields. A developer cannot simply label one dimension “the user’s native language” and another “the answer language.” The same concept may be spread across many dimensions, and one dimension may participate in many concepts.

    Printing raw activation values therefore usually yields a set of numbers that are difficult to interpret. Traditional analysis can study features, directions, and statistical associations, but turning those results into descriptions that debugging staff can use still has a high barrier.

    Natural-language autoencoding aims to make text a readable compressed form of an internal representation.

    3. Natural-language autoencoding: constraining explanations with a reconstruction task

    3.1 Two modules form a closed loop

    The method can be abstracted as two modules.

    The first is a description module. It takes an activation vector from the target model and produces a natural-language account, for example:

    The current representation contains a strong association with a particular language and also tends toward a reassuring style of answer.

    The second is a reconstruction module. It reads only that account and tries to recover the original activation vector.

    The overall flow is:

    Original activation → natural-language description → reconstructed activation

    During training, the difference between the original and reconstructed activations is compared. If the description omits important information, the reconstruction module will struggle to recover it. If the description contains content that can actually be used for recovery, reconstruction error may fall.

    The method is therefore not merely training an interpreter that “sounds good.” The reconstruction task constrains the natural-language description to retain information.

    3.2 Why every vector does not need a hand-written label

    In this framework, the original activation itself can serve as the reconstruction target. Researchers do not have to write an explanation for every vector first and then train a model to imitate those explanations.

    That reduces dependence on human concept labels and gives the system a chance to describe features the researchers did not list in advance. Optimization may use methods such as reinforcement learning, but the training algorithm, reward design, and model structure must follow the actual implementation. They cannot be inferred from the method’s name alone.

    “No per-example labels” also does not mean “no human choices.” Which inputs are sampled, which layers are observed, how error is computed, and how long descriptions may be all affect the result.

    3.3 Why readable text is still not enough

    When the description and reconstruction modules are trained together, they may develop habits that help reconstruction but do not match ordinary human understanding. A sentence that looks ordinary may have a special meaning for the reconstruction module that a human reader does not know.

    The system therefore has to meet two goals at once:

    The text must retain information that is actually present in the original activation, and humans must be able to understand that text in its ordinary sense.

    Reconstruction ability without understandability still does not make a reliable debugging tool.

    4. Good reconstruction does not mean the explanation is correct

    Evaluating this kind of method requires at least three levels.

    Level 1: Numerical reconstruction quality

    Reconstruction error, cosine similarity, or explained variance can show how close the recovered vector is to the original. These metrics do not measure the same thing, and results also depend on activation normalization, layer position, and the sample distribution.

    The source material mentions a relatively high range of explained variance, but it does not provide a complete evaluation definition or experimental conditions. That range should not be treated as a general performance claim.

    Even a strong reconstruction metric does not mean the system has kept every piece of behavior-relevant information. Some information may contribute little to overall numerical error yet still matter for answer language or safety behavior.

    Level 2: Whether the natural-language description is faithful

    A phrase such as “the model believes the user prefers a certain language” only means the explanation system made that judgment. It does not immediately prove that the target model contains a cleanly bounded, independently readable variable called “user language preference.”

    The description may reflect a real feature, summarize several related signals, or include bias from the explanation model itself.

    Level 3: Whether the described feature is causal

    A feature that appears together with an abnormal output did not necessarily cause that output.

    To judge causation, inputs or internal states must be changed under controlled conditions, and the output must be checked for a stable, repeatable change. That is an important difference between interpretability research and ordinary log analysis.

    5. Multilingual anomalies: turning an observation into a testable hypothesis

    The core case in the source material is a model switching to another language during an English conversation. Readable activation descriptions suggested that an association with the target language may already be present before generation begins.

    That observation supports one debugging direction: the language switch may not occur only in the final stage of answer generation. It may be tied to an implicit association formed while the input is being understood.

    Over-inference still has to be avoided.

    If a culture-related word has not yet appeared, but an internal description already mentions a language, that does not necessarily mean the model relied on the word that had not appeared. Sampling position, the input prefix, and the data-processing pipeline must be checked first. If the reading really is the causal model’s activation at the current position, with no later information mixed in, other clues in the preceding text should be examined next.

    Possible causes include:

    • The input is associated with a class of multilingual samples in training
    • Language preferences remain in the conversation history or system instructions
    • Externally retrieved content contains untranslated text
    • The model treats cultural-background cues as a basis for choosing a language
    • Multilingual training pairs inputs and outputs inconsistently

    These are only candidate hypotheses. In particular, “incorrect training-data pairing” cannot be established from an internal description alone. It needs sample audits and controlled experiments.

    6. A full investigation workflow for developers

    6.1 Rule out external configuration first

    Before analyzing internal activations, record and inspect the full request path: system instructions, conversation history, retrieval results, application-level language settings, caches, and post-processing of the output.

    In real projects, many failures that look like complex model behavior come from contaminated external state. If this stage is skipped, an internal explanation may be used to account for a problem that is not inside the model.

    6.2 Build a repeatable set of anomaly samples

    Collect cases where the language switches, and also build similar cases that do not switch. For each sample, record:

    • The full input and dialogue context
    • The target model version
    • Inference settings
    • The output language and where the switch occurs
    • Which layers and token positions can be collected
    • How results differ across repeated runs

    Do not keep only the most striking successful cases. Define the measurement rule clearly—for example, whether foreign proper names may be quoted, or whether any fragment outside the target language counts as an anomaly.

    6.3 Make minimal input substitutions

    Keep the task and meaning as stable as possible, and change only the suspected factor. Replace a culture-related noun with a neutral word, remove identity cues, or add an explicit output-language requirement.

    If one substitution changes both the internal language association and the final answer language, the range of causes narrows. One experiment is not enough. The result still needs to be checked across multiple samples and runs.

    6.4 Compare internal descriptions with actual behavior

    Align readable descriptions from input processing with the final output, and focus on:

    • Where a language-related description first appears
    • Whether that description persists
    • Whether normal samples show the same kind of description
    • Whether changes in description strength correspond to output changes
    • Whether different layers give consistent clues

    If normal samples often show the same language association, the signal may be a general semantic feature rather than a sufficient condition for the anomaly.

    6.5 Test causation in a controlled environment

    When internal access is available, experiments such as activation replacement, feature suppression, or controlled perturbation can check whether changes in the relevant representation affect the output.

    These experiments must stay in a research environment. Editing activations directly can create out-of-distribution states and change language, factuality, and safety behavior at the same time. Unrelated tasks therefore need regression tests, so a general loss of capability is not mistaken for a fix.

    7. Engineering cost and safety boundaries

    Internal activation analysis is not a natural extension of an ordinary API call. It usually requires access to model-internal state, while many hosted inference interfaces expose only inputs, outputs, and limited metadata.

    Even with activation access, collecting everything has a clear cost. Large numbers of vectors across layers and tokens must be stored, transferred, and analyzed, and the description and reconstruction modules add further computation.

    A more practical starting point is offline debugging: sample anomaly cases selectively, compare a small number of key positions, and expand only after the benefit is clear. Do not assume that every production request should receive a full internal explanation.

    Internal descriptions should also be treated as sensitive data. They may summarize identity, health, financial, or business information supplied by the user. Access control, retention limits, and audit mechanisms are appropriate, and displayed content should be redacted where needed. Explanation text can also produce incorrect inferences about a user’s identity, so it should not be written directly into a user profile or an automated decision system.

    8. Conclusion: make the model more observable, not claim to “read its mind”

    Natural-language autoencoding is a useful research path. The activation–description–reconstruction loop turns hard-to-read internal numbers into text clues that can be discussed and checked.

    Its most important use is not writing a vivid “inner monologue” for the model. It helps developers state more specific hypotheses, locate the stage at which an anomaly appears, and design the next experiments.

    Reliable practice needs a full chain of evidence: rule out external configuration, compare normal and abnormal samples, inspect internal descriptions, and then verify the explanation with controlled experiments and causal interventions. Only when readability, reconstruction quality, and behavioral evidence are combined can internal-representation analysis move from a demonstration to an engineering tool.