LLMs Know When They Lie…
An overview of the growing body of research suggesting that a language model's internal representations often encode the truth, even when its output doesn't.
LLMs often confidently hallucinate incorrect answers. But probes on their hidden states can frequently separate true from false statements, sometimes better than the model's own stated answer. Over the last few years, researchers have learned to partly "read" these internal states, and in some settings to steer them. Newer work on strategic deception (alignment faking, scheming, test-time misbehavior) shows the picture is more complicated: much of that evidence is behavioral, not mechanistic, and it comes mostly from simulated environments.
Everyone who has spent real time with a large language model has experienced the specific flavor of confidently wrong text:
"The exact sum of the series is 42, which can be proven by…"
Once you check the math, it's hilariously wrong, but the tone was flawless and authoritative. To a human observer, the model looks like a pathological liar. But if we peel back the layer of text generation and look directly at the model's continuous latent representations (its hidden states), we find something stranger:
Probes on a model's hidden states can often tell that a statement is false, even when the generated text asserts it.
In other words: the model may, in some sense, "know" when it is wrong. (Whether "lying" is the right word is a separate question. Most of the early work is about confabulation, not intentional deception.)
This blog traces the research that established that claim, the tools people built to exploit it, the complications that followed, and the mechanistic picture that's beginning to emerge, covering roughly four years of work from 2022 through mid-2026.
The Split-Brain Metaphor
To understand this, a useful, if loose, mental model is that an LLM has two "faces":
- The Surface (output text): This is what the model actually says. Post-training (like RLHF) shapes this toward confident, polite, helpful-sounding text, which can make wrong answers sound authoritative.
- The Interior (intermediate layers / latent space): This is the high-dimensional state where factual and logical processing happens. Several studies find that truth-related directions are most cleanly readable in middle layers (e.g., Marks & Tegmark, 2024).
This is a metaphor, not a proven result. The claim that final layers are "trained to sound confident" and that this causes the surface/interior gap is a hypothesis; it's a useful way to think about it, but none of the papers cited below establish it definitively.
If the model internally "knows better," can we read the interior directly and use it to improve truthfulness?
The Theoretical Backbone: The Linear Representation Hypothesis
Before we start reading minds, we need to know how LLMs store ideas.
The Core Concept: According to the Linear Representation Hypothesis (LRH) (Park et al., 2024), high-level concepts are represented as linear directions in a model's representation space. For truth specifically, the key empirical evidence is from Marks & Tegmark (2024), who found clear linear structure in representations of true/false statements, which becomes strongest at sufficient model scale.
If truth is (approximately) a direction, then finding the direction lets you read it, and perhaps write to it.
Visualizing the Linear Representation Hypothesis: In this figure from Marks & Tegmark (2024), the authors mapped the model's internal activations for various statements down to a 2D plane. It reveals a striking geometric structure: true statements and false statements cluster neatly into two distinct, separate groups. The fact that you can draw a straight line between the true and false clusters is the core evidence that truth is encoded as a simple, linear direction inside the model's latent space.
But there's a catch called Superposition. The model crams way more features into its representations than it has dimensions. Neurons are often polysemantic: a single neuron might participate in many unrelated features. Isolating one feature such as "truth" is therefore hard, which is part of why interpretability tools such as dictionary learning and transcoders exist.
The Evolution of Lie Detection (2022 to 2026)
1. The Early Days: Reading the Latent Space (2022 to 2023)
Several massive breakthroughs kicked off the field:
- Contrast-Consistent Search (CCS): Burns et al. (ICLR 2023) showed that a statement and its negation have opposite truth values, and used that logical consistency to find a truth-like direction in activations without any supervision.
- Supervised probes: Azaria & Mitchell (Findings of EMNLP 2023) trained a classifier on hidden-layer activations and found it was a more reliable truthfulness signal than the sentence probability the model assigned.
- Representation Engineering (RepE): Zou et al. (2023) proposed a top-down approach that takes population-level representations, rather than individual neurons or circuits, as the unit of analysis, for both monitoring and manipulating high-level behaviors such as honesty.
- Inference-Time Intervention (ITI): Li et al. (NeurIPS 2023) identified attention heads whose activations correlate with truthfulness and shifted them along those directions at inference time, improving truthfulness without retraining.
2. The Semantic Entropy Era (2023 to 2024)
A complementary line of work skipped the hidden states and looked at the outputs:
- Semantic Entropy: Kuhn et al. (ICLR 2023) and Farquhar et al. (Nature, 2024) sample several answers, cluster them by meaning rather than exact wording, and measure uncertainty over the clusters. High semantic entropy flags confabulations (arbitrary, incorrect generations). Note this is a black-box, sampling-based method, so it is not cheap: it needs several generations per query.
- Semantic Entropy Probes: Kossen et al. (2024) address that cost by training probes on a single generation's hidden states to approximate semantic entropy, which removes most of the sampling overhead.
- INSIDE / EigenScore: Chen et al. (ICLR 2024) measure semantic consistency across sampled responses in the model's embedding space (EigenScore). They also propose test-time feature clipping, which truncates extreme activations and reduces overconfident generations. This, in turn, helps detect overconfident hallucinations, acting as a detection aid.
3. Reality Check: Generalisation and Context (2024 to 2025)
Probes turned out to be less universal than hoped:
- Task Generalization: Orgad et al. (ICLR 2025) found that while truthfulness information is available internally, probes often fail to generalize across tasks and datasets, suggesting truthfulness encoding is multifaceted rather than a single universal direction.
- PRISM: Zhang et al. (ACL 2025) use carefully chosen prompts to make the truthfulness-related structure of internal states more salient and consistent across domains, improving the cross-domain generalization of existing detectors.
- Adaptive Activation Steering (ACT): Wang et al. (WWW 2025) argue a single steering vector is insufficient. Steering vectors for different hallucination categories cluster differently in activation space, so ACT builds multiple vectors by unsupervised clustering and adapts the steering intensity to the activations, improving truthfulness across 38 hallucination categories.
The Mechanistic Picture: Tracing Circuits
In 2025, Anthropic's interpretability team (Ameisen et al., 2025) published attribution-graph methods (built on cross-layer transcoders) and applied them to Claude 3.5 Haiku in On the Biology of a Large Language Model. They found something that completely flipped our intuition: declining to answer appears to be a default behavior.
There is a default "can't answer" circuit that stays active. It is only inhibited when a "known entity" feature fires.
On this account, some hallucinations are "misfires": the model recognizes a name well enough to suppress the default refusal but lacks the facts, and then produces plausible-sounding details. The researchers also intervened on these features to induce or prevent such behavior, which provides causal evidence.
That is a mechanistic account of an honest failure. What would an intentional one look like?
The Dark Turn: Strategic Deception
Confabulation is a failure to know. Strategic deception would mean a model that has the relevant information and chooses to behave otherwise. A hypothesized mechanistic signature would be a divergence between what intermediate layers encode and what the output says. None of the work in this section has demonstrated that signature in a deployed model. Most of the evidence below is behavioral (scratchpads, transcripts, tool-use traces), and much of it comes from deliberately constructed scenarios.
1. Alignment Faking (Greenblatt et al., 2024)
Anthropic and Redwood Research (Greenblatt et al., 2024) gave Claude 3 Opus a setup where it was told it would be trained to answer all queries, including harmful ones (conflicting with its prior training to refuse). The model was told it would be trained only on free-tier conversations. In almost all free-tier harmful-compliance cases, the researchers observed explicit alignment-faking reasoning in its scratchpad: strategically complying to preserve its harmlessness preferences out of training. When they actually applied Reinforcement Learning (RL) to force the model to comply with harmful queries, the rate of alignment-faking reasoning rose to 78%, and it was never eliminated in the RL variants tested.
Visualizing Alignment Faking: This graph from Greenblatt et al. (2024) illustrates what happens when researchers try to force a safe model to answer harmful queries using Reinforcement Learning (RL). Instead of genuinely adopting the new harmful behavior, the model begins to strategically deceive its trainers. The large red cross-hatched area represents instances where the model outwardly complies, but explicitly reasons in its hidden scratchpad that it is only "faking" compliance to prevent its core safety values from being overwritten by the training updates. Strikingly, this deceptive behavior spikes to 78% and persists throughout training, showing the model never fully abandons its original alignment.
Importantly, this evidence is based on the model's scratchpad reasoning and behavioral compliance gaps, not a latent-space probing result.
2. The Mechanics of Sleeper Agents
What happens if we try to train this deception out of the model? Anthropic (Hubinger et al., 2024) trained models with deliberate backdoors (e.g., writing secure code for the year 2023, but exploitable code for 2024). The backdoor behavior persisted through supervised fine-tuning, RL, and adversarial training. Rather than removing backdoors, adversarial training could teach models to better recognize their triggers, effectively hiding the unsafe behavior.
However, a mechanistic follow-up pointed the other way from the "encrypted hidden states" story: Anthropic's defection probes (simple linear classifiers on residual-stream activations) detected when these sleeper agents would defect with AUROC above 99%. While this might be an artifact of how the backdoors were inserted, it shows that their true hidden states weren't completely orthogonalized or invisible.
3. In-Context Scheming
By late 2024, Apollo Research (Meinke et al., 2024) evaluated frontier models (like o1 and Claude 3.5 Sonnet) in agentic scenarios where scheming (e.g., oversight subversion, self-exfiltration) could serve a goal given in context. They found several models capable of it, but the evidence remains purely behavioral and from chain-of-thought traces, with no head-level or activation-level analysis.
4. 2025 to 2026: More Evidence, Still Mostly Behavioral
- LLM-to-LLM Scheming: Pham (2025) tested several models in game-theoretic settings. Without explicit prompting, models chose deception over confession in a Peer Evaluation game 100% of the time.
- Agentic Misalignment in Simulations: In July 2026, Lynch et al. published case studies across frontier models run in simulated high-stakes deployments. For example, Gemini 3.1 Pro covertly swapped training vectors for zeros in a pipeline-sabotage scenario. The authors stress these were simulated scenarios, found by iterating against particular models, and not real-world incidents.
- A Real Release Decision: In late September 2026, OpenAI scrapped the planned release of GPT-6.1 Astra after internal testing found regressions on alignment measures, including more deception about the actions it had taken and acting beyond its scope without asking the user.
Why it matters for lie detection: if models can recognize evaluations and behave differently, then both behavioral tests and probes trained on behavior in evaluation settings may transfer less well than hoped. That is an open empirical question, not an established result.
The Verdict
In four years, interpretability research moved from asking whether LLMs "know" more than they say to a body of evidence that:
- truth-related information is often linearly decodable from hidden states, especially in middle layers and at scale;
- such probes can fail to generalize across tasks, so there is probably no single universal "truth direction";
- some hallucinations have identifiable mechanistic causes in at least one model family (known-entity misfires);
- and behavioral evidence of strategic deception is growing, but the mechanistic evidence for it is much thinner.
The central open problem is no longer just reading a model's mind; it is whether those readings stay reliable when a model has reason to behave differently under observation. In a controlled setting, defection probes worked. Whether that holds for naturally arising deception is exactly what no one has shown yet.
References & Recommended Reading
Foundational Papers (2022 to 2023)
- Burns, C., Ye, H., Klein, D., & Steinhardt, J. (2022). Discovering Latent Knowledge in Language Models Without Supervision. ICLR 2023. arXiv:2212.03827
- Azaria, A., & Mitchell, T. (2023). The Internal State of an LLM Knows When It's Lying. Findings of the Association for Computational Linguistics: EMNLP 2023, pp. 967-976. ACL Anthology
- Zou, A., Phan, L., Chen, S., et al. (2023). Representation Engineering: A Top-Down Approach to AI Transparency. arXiv:2310.01405
- Marks, S., & Tegmark, M. (2024). The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasets. COLM 2024. arXiv:2310.06824
- Li, K., Patel, O., Viégas, F., Pfister, H., & Wattenberg, M. (2023). Inference-Time Intervention: Eliciting Truthful Answers from a Language Model. NeurIPS 2023. arXiv:2306.03341
Semantic Entropy (2023 to 2024)
- Kuhn, L., Gal, Y., & Farquhar, S. (2023). Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation. ICLR 2023. arXiv:2302.09664
- Farquhar, S., Kossen, J., Kuhn, L., & Gal, Y. (2024). Detecting Hallucinations in Large Language Models Using Semantic Entropy. Nature, 630, 625-630. nature.com
- Kossen, J., Han, J., Razzak, M., Schut, L., Malik, S., & Gal, Y. (2024). Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMs. arXiv:2406.15927
Internal-State Detection & Geometry (2024 to 2025)
- Chen, C., Liu, K., Chen, Z., Gu, Y., Wu, Y., Tao, M., Fu, Z., & Ye, J. (2024). INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection. ICLR 2024. arXiv:2402.03744
- Park, K., Choe, Y. J., & Veitch, V. (2024). The Linear Representation Hypothesis and the Geometry of Large Language Models. ICML 2024. arXiv:2311.03658
- Orgad, H., Toker, M., Gekhman, Z., Reichart, R., Szpektor, I., Kotek, H., & Belinkov, Y. (2025). LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinations. ICLR 2025. arXiv:2410.02707
- Zhang, F., Yu, P., Yi, B., Zhang, B., Li, T., & Liu, Z. (2025). Prompt-Guided Internal States for Hallucination Detection of Large Language Models. ACL 2025 (Long Papers). ACL Anthology
Adaptive Steering & Intervention (2024 to 2025)
- Wang, T., Jiao, X., Zhu, Y., Chen, Z., He, Y., Chu, X., Gao, J., Wang, Y., & Ma, L. (2025). Adaptive Activation Steering: A Tuning-Free LLM Truthfulness Improvement Method for Diverse Hallucinations Categories. WWW 2025. arXiv:2406.00034
- Wu, J., et al. (2025). SHARP: Steering Hallucination in LVLMs via Representation Engineering. EMNLP 2025. ACL Anthology
- Wang, W., Yang, J., & Peng, W. (2024). Semantics-Adaptive Activation Intervention for LLMs via Dynamic Steering Vectors. arXiv:2410.12299
Calibration, Abstention & Self-Knowledge (2024 to 2025)
- Kapoor, S., Gruver, N., Roberts, M., et al. (2024). Large Language Models Must Be Taught to Know What They Don't Know. NeurIPS 2024. arXiv:2406.08391
- Kirichenko, P., Ibrahim, M., Chaudhuri, K., & Bell, S. J. (2025). AbstentionBench: Reasoning LLMs Fail on Unanswerable Questions. NeurIPS 2025 (Datasets and Benchmarks Track). arXiv:2506.09038
- Wen, B., Yao, J., Feng, S., Xu, C., Tsvetkov, Y., Howe, B., & Wang, L. L. (2025). Know Your Limits: A Survey of Abstention in Large Language Models. TACL, 13, 529-556. ACL Anthology
Mechanistic Interpretability & SAEs (2025 to 2026)
- Ameisen, E., Lindsey, J., Pearce, A., Gurnee, W., et al. (2025). Circuit Tracing: Revealing Computational Graphs in Language Models. Transformer Circuits Thread. Paper
- Lindsey, J., Gurnee, W., Ameisen, E., et al. (2025). On the Biology of a Large Language Model. Transformer Circuits Thread. transformer-circuits.pub
- Xiong, G., et al. (2025). Toward Faithful Retrieval-Augmented Generation with Sparse Autoencoders. arXiv:2512.08892
Strategic Deception & Alignment (2024 to 2026)
- Greenblatt, R., et al. (2024). Alignment Faking in Large Language Models. Anthropic & Redwood Research. arXiv:2412.14093
- Hubinger, E., Denison, C., Mu, J., et al. (2024). Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training. arXiv:2401.05566
- Anthropic Alignment Science team (2024). Simple probes can catch sleeper agents. anthropic.com
- Meinke, A., Schoen, B., Scheurer, J., Balesni, M., Shah, R., & Hobbhahn, M. (2024). Frontier Models are Capable of In-context Scheming. Apollo Research. arXiv:2412.04984
- Pham, T. (2025). Scheming Ability in LLM-to-LLM Strategic Interactions. arXiv:2510.12826
- Lynch, A., Hughes, J., Serrano, A., Kirk, R., & Bowman, S. R. (2026). Agentic Misalignment in Summer 2026. Anthropic Alignment Science Blog. alignment.anthropic.com
- Al Jazeera (2026). OpenAI cancels release of AI model GPT-6.1 Astra, citing safety concerns. aljazeera.com