How to Catch an AI Liar: Lie Detection in Black-Box LLMs by Asking Unrelated Questions

Lorenzo Pacchiardi, Alex J. Chan, Sören Mindermann, Ilan Moscovitz, Alexa Y. Pan +3 more
9/26/2023
cs.CLcs.AIcs.LG

No official code found. Best implementation: LoryPack/LLM-LieDetector (74 stars, BSD-3-Clause, last commit 2024-06-19).

Abstract

Large language models (LLMs) can "lie", which we define as outputting false statements despite "knowing" the truth in a demonstrable sense. LLMs might "lie", for example, when instructed to output misinformation. Here, we develop a simple lie detector that requires neither access to the LLM's activations (black-box) nor ground-truth knowledge of the fact in question. The detector works by asking a predefined set of unrelated follow-up questions after a suspected lie, and feeding the LLM's yes/no answers into a logistic regression classifier. Despite its simplicity, this lie detector is highly accurate and surprisingly general. When trained on examples from a single setting -- prompting GPT-3.5 to lie about factual questions -- the detector generalises out-of-distribution to (1) other LLM architectures, (2) LLMs fine-tuned to lie, (3) sycophantic lies, and (4) lies emerging in real-life scenarios such as sales. These results indicate that LLMs have distinctive lie-related behavioural patterns, consistent across architectures and contexts, which could enable general-purpose lie detection.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Code for the ICLR 2024 paper "How to catch an AI liar: Lie detection in black-box LLMs by asking unrelated questions"

7415Shell, PythonSep 11, 20232 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{pacchiardi2023catch,
  title  = {How to Catch an AI Liar: Lie Detection in Black-Box LLMs by Asking Unrelated Questions},
  author = {Lorenzo Pacchiardi and Alex J. Chan and Sören Mindermann and Ilan Moscovitz and Alexa Y. Pan and Yarin Gal and Owain Evans and Jan Brauner},
  year   = {2023},
  eprint = {2309.15840},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.15840v1}
}

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/2309.15840.svg)](https://codeofpaper.com/paper/2309.15840)

Discussion