Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Kenneth Li, Oam Patel, Fernanda Vi\'egas, Hanspeter Pfister, Martin Wattenberg• 2023

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText
PPL11
479
Question AnsweringBoolQ
Accuracy74.1
240
Multitask Language UnderstandingMMLU
Accuracy72.72
206
Safety EvaluationAdvBench--
117
Bias EvaluationBBQ
Accuracy59.74
99
Question AnsweringWinoGrande (WG)
Accuracy52.8
98
Question AnsweringSimpleQA
Accuracy3
92
Multiple-ChoiceTruthfulQA
MC1 Accuracy51.23
83
Hallucination DetectionRAGTruth (test)
AUROC0.8051
83
Truthful QATruthful QA
Accuracy58.09
83
Showing 10 of 79 rows
...

Other info

Follow for update