Truth is Universal: Robust Detection of Lies in LLMs

Lennart Bürger, F. Hamprecht, B. Nadler
2/3/2026

No official code found. Best implementation: sciai-lab/Truth_is_Universal (34 stars, MIT, last commit 2024-11-07).

Abstract

Large Language Models (LLMs) have revolutionised natural language processing, exhibiting impressive human-like capabilities. In particular, LLMs are capable of"lying", knowingly outputting false statements. Hence, it is of interest and importance to develop methods to detect when LLMs lie. Indeed, several authors trained classifiers to detect LLM lies based on their internal model activations. However, other researchers showed that these classifiers may fail to generalise, for example to negated statements. In this work, we aim to develop a robust method to detect when an LLM is lying. To this end, we make the following key contributions: (i) We demonstrate the existence of a two-dimensional subspace, along which the activation vectors of true and false statements can be separated. Notably, this finding is universal and holds for various LLMs, including Gemma-7B, LLaMA2-13B, Mistral-7B and LLaMA3-8B. Our analysis explains the generalisation failures observed in previous studies and sets the stage for more robust lie detection; (ii) Building upon (i), we construct an accurate LLM lie detector. Empirically, our proposed classifier achieves state-of-the-art performance, attaining 94% accuracy in both distinguishing true from false factual statements and detecting lies generated in real-world scenarios.

View on arXivView PDF

Code Implementations(1)

MIT
3412Python, Jupyter NotebookJun 12, 20241 years agoMIT

Similar Papers

Cite this paper

@article{brger2026truth,
  title  = {Truth is Universal: Robust Detection of Lies in LLMs},
  author = {Lennart Bürger and F. Hamprecht and B. Nadler},
  year   = {2026},
  eprint = {2407.12831},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2407.12831},
  url    = {https://arxiv.org/abs/2407.12831},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.12831.svg)](https://codeofpaper.com/paper/2407.12831)

Discussion