Enhanced Language Model Truthfulness with Learnable Intervention and Uncertainty Expression

Farima Fatahi Bayat, Xin Liu, H. V. Jagadish, Lu Wang
5/1/2024
cs.CL

Official code: launchnlp/LITO (1 star, last commit 2025-01-23).

Abstract

Large language models (LLMs) can generate long-form and coherent text, yet they often hallucinate facts, which undermines their reliability. To mitigate this issue, inference-time methods steer LLM representations toward the "truthful directions" previously learned for truth elicitation. However, applying these truthful directions with the same intensity fails to generalize across different query contexts. We propose LITO, a Learnable Intervention method for Truthfulness Optimization that automatically identifies the optimal intervention intensity tailored to each specific context. LITO explores a sequence of model generations based on increasing levels of intervention intensities. It selects the most accurate response or refuses to answer when the predictions are highly uncertain. Experiments on multiple LLMs and question-answering datasets demonstrate that LITO improves truthfulness while preserving task accuracy. The adaptive nature of LITO counters the limitations of one-size-fits-all intervention methods, maximizing truthfulness by reflecting the model's internal knowledge only when it is confident. Our code is available at https://github.com/launchnlp/LITO.

View on arXivView PDF

Code Implementations(1)

launchnlp/LITOOfficial100%

A context-aware intervention method that improves truthfulness in language models and is equipped wtih refusal ability when unable to identify highly confident truthful responses.

11PythonJun 5, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{bayat2024enhanced,
  title  = {Enhanced Language Model Truthfulness with Learnable Intervention and Uncertainty Expression},
  author = {Farima Fatahi Bayat and Xin Liu and H. V. Jagadish and Lu Wang},
  year   = {2024},
  eprint = {2405.00301},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.00301v3}
}

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

Discussion