Inference-Time Intervention: Eliciting Truthful Answers from a Language Model

Kenneth Li, Oam Patel, Fernanda Vi'egas, H. Pfister, M. Wattenberg
2/12/2026

No official code found. Best implementation: likenneth/honest_llama (581 stars, MIT, last commit 2025-01-28).

Abstract

We introduce Inference-Time Intervention (ITI), a technique designed to enhance the"truthfulness"of large language models (LLMs). ITI operates by shifting model activations during inference, following a set of directions across a limited number of attention heads. This intervention significantly improves the performance of LLaMA models on the TruthfulQA benchmark. On an instruction-finetuned LLaMA called Alpaca, ITI improves its truthfulness from 32.5% to 65.1%. We identify a tradeoff between truthfulness and helpfulness and demonstrate how to balance it by tuning the intervention strength. ITI is minimally invasive and computationally inexpensive. Moreover, the technique is data efficient: while approaches like RLHF require extensive annotations, ITI locates truthful directions using only few hundred examples. Our findings suggest that LLMs may have an internal representation of the likelihood of something being true, even as they produce falsehoods on the surface.

View on arXivView PDF

Code Implementations(1)

MIT

Inference-Time Intervention: Eliciting Truthful Answers from a Language Model

58153Shell, PythonMay 19, 20231 years agoMIT

Similar Papers

Cite this paper

@article{li2026inferencetime,
  title  = {Inference-Time Intervention: Eliciting Truthful Answers from a Language Model},
  author = {Kenneth Li and Oam Patel and Fernanda Vi'egas and H. Pfister and M. Wattenberg},
  year   = {2026},
  eprint = {2306.03341},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2306.03341},
  journal = {NEURIPS 2023 2023}
}

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

Discussion