Skip to main content
QUICK REVIEW

[Paper Review] "According to ...": Prompting Language Models Improves Quoting from Pre-Training Data

Orion Weller, Marc Marone|arXiv (Cornell University)|May 22, 2023
Topic ModelingComputer Science6 citations
TL;DR

This paper introduces 'according-to prompting'—a method that improves large language models' factual grounding by prompting them to quote directly from their pre-training data, such as Wikipedia. Using a novel metric, QUIP-Score, the authors demonstrate that such prompts increase exact quote overlap by 5–105% while maintaining or improving downstream task performance, especially as model size grows.

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.

Motivation & Objective

  • To address the persistent problem of hallucination in large language models (LLMs) despite their pre-training on factual data.
  • To investigate whether natural language prompting can steer LLMs to quote more from their memorized pre-training corpora.
  • To develop a fast, efficient, and privacy-preserving method for measuring how much model outputs are grounded in pre-training data.
  • To evaluate whether prompting can both increase and decrease grounding, depending on the instruction.
  • To assess the scalability of grounding improvements across model sizes and datasets.

Proposed method

  • Propose 'according-to prompting'—a prompting strategy that directs LLMs to ground responses using phrases like 'According to Wikipedia' to encourage quoting from pre-training data.
  • Introduce QUIP-Score, a novel metric based on n-gram overlap that quantifies the percentage of a generation that exactly matches spans in a pre-training corpus.
  • Use Data Portraits to enable fast, sub-millisecond membership testing for efficient QUIP-Score computation over large corpora like Wikipedia.
  • Collect and evaluate human-authored prompts designed to steer LLMs toward or away from grounding in Wikipedia for open-domain question answering (ODQA).
  • Conduct experiments across multiple models (open- and closed-source), datasets, and model sizes to evaluate grounding and performance trade-offs.
  • Analyze correlations between QUIP-Score and factors such as entity popularity, co-occurrence frequency, and instruction tuning.

Experimental results

Research questions

  • RQ1Can prompting LLMs to use phrases like 'According to Wikipedia' significantly increase the extent to which their outputs are grounded in pre-training data?
  • RQ2Does increasing grounding via prompting lead to measurable improvements in factual consistency and downstream task performance?
  • RQ3Can prompts also be used to reduce grounding in a specific corpus, such as Wikipedia, and does this affect performance?
  • RQ4How does model size influence the effectiveness of according-to prompting in improving grounding?
  • RQ5Is QUIP-Score a reliable and scalable metric for measuring groundedness in LLM generations?

Key findings

  • According-to prompting increases the overlap between model generations and Wikipedia by 5–105% across multiple datasets and models.
  • The improvement in grounding is consistent across both open- and closed-source models, including GPT-3.5 and GPT-J.
  • Anti-grounding prompts—those discouraging Wikipedia grounding or redirecting to other sources—significantly reduce QUIP-Score and degrade performance on Wikipedia-dependent tasks.
  • QUIP-Score increases with model size, indicating that larger models are more responsive to prompting for grounding.
  • QUIP-Score shows a positive correlation with entity popularity and co-occurrence frequency in questions, suggesting better recall for commonly referenced facts.
  • The method is domain-agnostic and can be applied to any corpus for which a Data Portrait is constructed, enabling privacy-preserving evaluation of grounding in closed-source models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.