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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Kenneth, Patel, Oam, Viégas, Fernanda, Pfister, Hanspeter, Wattenberg, Martin
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910501401788416
author Li, Kenneth
Patel, Oam
Viégas, Fernanda
Pfister, Hanspeter
Wattenberg, Martin
author_facet Li, Kenneth
Patel, Oam
Viégas, Fernanda
Pfister, Hanspeter
Wattenberg, Martin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2306_03341
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
Li, Kenneth
Patel, Oam
Viégas, Fernanda
Pfister, Hanspeter
Wattenberg, Martin
Machine Learning
Artificial Intelligence
Computation and Language
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.
title Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2306.03341