Abstract
Language models (LMs) now excel at many tasks such as few-shot learning, question answering, reasoning, and dialog. However, they sometimes generate unsupported or misleading content. A user cannot easily determine whether their outputs are trustworthy or not, because most LMs do not have any built-in mechanism for attribution to external evidence. To enable attribution while still preserving all the powerful advantages of recent generation models, we propose RARR (Retrofit Attribution using Research and Revision), a system that 1) automatically finds attribution for the output of any text generation model and 2) post-edits the output to fix unsupported content while preserving the original output as much as possible. When applied to the output of several state-of-the-art LMs on a diverse set of generation tasks, we find that RARR significantly improves attribution while otherwise preserving the original input to a much greater degree than previously explored edit models. Furthermore, the implementation of RARR requires only a handful of training examples, a large language model, and standard web search.
Introduction
Large Language Models (LLMs) have revolutionized natural language processing, yet they remain prone to "hallucinations"—generating factually incorrect or unsupported claims. This lack of reliability is compounded by the absence of built-in citation mechanisms in most black-box models. While Retrieval-Augmented Generation (RAG) attempts to ground models by providing documents before generation, models often ignore this context.
RARR (Retrofit Attribution using Research and Revision) addresses this by treating attribution as a post-hoc task. Instead of modifying the core generation process, RARR "retrofits" attribution by fact-checking and surgically revising the model's output after it has been produced.
Methodology: The RARR Pipeline
RARR is a model-agnostic, two-stage system that utilizes a powerful LLM in a few-shot setting to verify and correct text.
1. The Research Stage
To verify a passage, RARR first decomposes the text into specific search queries. For instance, a claim about a world record triggers a targeted query to find the most recent data. These queries are executed via a standard web search, and the resulting snippets are ranked for relevance.
2. The Revision Stage
In the revision phase, an agreement model (acting as a judge) determines if the retrieved evidence supports the original claim. If a contradiction or lack of support is found, an edit model performs a "surgical edit." This process updates specific spans of text (e.g., changing a date or a name) to align with the evidence while maintaining the original style, tone, and intent of the passage.
Experimental Setup
The system was evaluated across three distinct datasets to test its versatility:
- Natural Questions (NQ): Focused on long-form factoid statements.
- StrategyQA (SQA): Focused on multi-step reasoning chains.
- QReCC: Focused on knowledge-intensive conversational dialogues.
Performance was measured using two primary metrics: Attribution (the percentage of text supported by evidence) and Preservation (the degree to which the original model's intent and style were maintained).
Key Results
RARR demonstrates a superior balance between factual grounding and content preservation compared to existing baselines.
- Attribution Gains: On the NQ task, RARR improved the Attribution Information Score (AIS) from 35.4% to 43.4%.
- Superior Preservation: Unlike previous edit models (such as EFEC) which often rewrite or delete large portions of text, RARR maintained over 90% intent preservation. As shown in the performance plots, RARR consistently occupies the right-hand side of the graph, indicating it keeps the original output largely intact while improving its factual basis.
- Accuracy Improvement: In the Natural Questions task, the research phase successfully identified better information, leading to a 5% improvement in final answer accuracy.
Discussion and Limitations
RARR proves that post-hoc attribution is a practical path toward more reliable LLMs without the need for expensive retraining. By breaking down claims into discrete queries, the system can find precise evidence for obscure facts.
However, the system faces challenges. The computational cost is higher due to multiple LLM calls and search queries. Additionally, in complex reasoning tasks, fixing a single fact might not automatically resolve the downstream logical errors that were based on the initial hallucination. Future work will focus on improving logical coherence during the revision process and mitigating potential "echo chamber" effects where search queries might inadvertently reinforce hallucinations.
Summary updated