PURR: Efficiently Editing Language Model Hallucinations by Denoising Language Model Corruptions

Anthony Chen, Panupong Pasupat, Sameer Singh, Hongrae Lee, Kelvin GuuarXiv 2023 · DOI

Abstract

PURR (Petite Unsupervised Research and Revision) addresses the challenge of hallucinations in large language models (LLMs) through an efficient conditional denoising framework. By training a compact T5-large model on synthetically corrupted text, PURR achieves superior factual accuracy and intent preservation compared to massive 540B-parameter models. Notably, PURR operates orders of magnitude faster on consumer-grade hardware, offering a scalable solution for post-hoc editing of LLM outputs.

Introduction

Large Language Models (LLMs) frequently generate factually incorrect claims, a phenomenon known as hallucination. While post-hoc editing—verifying and correcting outputs against retrieved evidence—is a promising mitigation strategy, current approaches face a significant compute-quality tradeoff. Prompt-based editors like RARR require massive models (e.g., PaLM 540B) and are computationally expensive, while fine-tuned editors like EFEC often suffer from data scarcity and over-editing. PURR overcomes these limitations by framing editing as an unsupervised conditional denoising task.

Methodology

The core of PURR is an unsupervised data generation pipeline that removes the dependency on human-labeled training data. Instead of searching for real hallucinations, the authors use an LLM to generate "faux hallucinations." A seed query is used to retrieve evidence, which is summarized into a "Clean Statement." An LLM then introduces believable corruptions—such as swapping dates, entities, or roles—to create a "Corrupted Statement." A T5-large model is fine-tuned to map these corrupted statements back to the clean versions using the original evidence, employing a Fusion-in-Decoder (FiD) architecture to handle multiple evidence snippets.

The PURR framework: Training via conditional denoising on synthetic data (left) and the inference pipeline for editing hallucinations (right).

Evaluation and Results

PURR was evaluated on three diverse tasks: Natural Questions (NQ), StrategyQA (SQA), and QreCC knowledge-intensive dialogue. The training set consisted of only 6,000 synthetic instances, costing approximately $250 in API fees.

PURR consistently outperformed both fine-tuned (EFEC) and prompt-based (RARR) baselines across all datasets. It achieved the highest $F1_{AP}$ scores, which represent the harmonic mean of attribution accuracy and intent preservation. Crucially, PURR is significantly more efficient; while RARR requires 40 seconds per edit on TPU clusters, PURR completes the task in approximately 2 seconds on a single 12GB consumer GPU. Furthermore, PURR demonstrated superior preservation scores, showing a better ability to abstain from editing when a statement is already correct.

Performance comparison of PURR against EFEC and RARR across NQ, SQA, and QreCC datasets, showing attribution (Attr.), preservation (Pres.), and the combined F1 score.

Conclusion

PURR demonstrates that specialized "petite" models can outperform general-purpose giants in specific tasks like fact-checking and editing. By treating hallucination correction as a denoising problem, the model achieves high accuracy with minimal computational overhead. While search quality remains a primary bottleneck for future improvement, the unsupervised denoising framework provides a robust path toward more reliable and efficient language models.

Summary updated

BibTeX
@misc{chen2023purr,
  author = {Anthony Chen and Panupong Pasupat and Sameer Singh and Hongrae Lee and Kelvin Guu},
  title = {{PURR: Efficiently Editing Language Model Hallucinations by Denoising Language Model Corruptions}},
  year = {2023},
  eprint = {2305.14908},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.14908},
}
Figure