"According to ...": Prompting Language Models Improves Quoting from Pre-Training Data

Orion Weller, Marc Marone, Nathaniel Weir, Dawn Lawrie, Daniel Khashabi +1 more
5/22/2023
cs.CLcs.AI

No official code found. Best implementation: orionw/according-to (5 stars, MIT, last commit 2024-06-29).

Abstract

Large Language Models (LLMs) may hallucinate and generate fake information, despite pre-training on factual data. Inspired by the journalistic device of "according to sources", we propose according-to prompting: directing LLMs to ground responses against previously observed text. To quantify this grounding, we propose a novel evaluation metric (QUIP-Score) that measures the extent to which model-produced answers are directly found in underlying text corpora. We illustrate with experiments on three corpora (Wikipedia, PubMed, and the U.S. legal tax code) that these prompts improve grounding under our metrics, with the additional benefit of often improving end-task performance. Furthermore, prompts that ask the model to decrease grounding (or to ground to other corpora) indeed decrease QUIP-Score, indicating the ability of LLMs to increase or decrease grounded generations on request.

View on arXivView PDF

Code Implementations(1)

orionw/according-toCommunity100%
MIT

Getting language models to quote from their pre-training data (EACL'24)

50Shell, PythonFeb 2, 20242 years agoMIT
according-tollmnlpprompting

Similar Papers

Cite this paper

@article{weller2023according,
  title  = {"According to ...": Prompting Language Models Improves Quoting from Pre-Training Data},
  author = {Orion Weller and Marc Marone and Nathaniel Weir and Dawn Lawrie and Daniel Khashabi and Benjamin Van Durme},
  year   = {2023},
  eprint = {2305.13252},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.13252v2}
}

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

Discussion