Correction with Backtracking Reduces Hallucination in Summarization

Zhenzhen Liu, Chao Wan, Varsha Kishore, Jin Peng Zhou, Minmin Chen, Kilian Q. Weinberger · DOI

Abstract

Large Language Models (LLMs) often hallucinate in summarization tasks because they "corner" themselves into generating prefixes that have no factual completion based on the source text. We introduce CoBa (Correction with Backtracking), a training-free inference-time method that detects these dead-ends using token probabilities and semantic distance, then backtracks to find a more faithful path. Our evaluation across three benchmark datasets shows that CoBa significantly improves factual consistency while maintaining high efficiency compared to existing lookahead methods.

Introduction

Abstractive summarization—where a model rewrites a source document into a concise summary—is a double-edged sword. While it produces natural-sounding text, LLMs are notorious for "confabulating" details that aren't in the source. This paper addresses the hypothesis that many hallucinations occur because the model paints itself into a corner. For example, if a model starts a sentence with "I live in...", it is now forced to provide a location. If the source text doesn't mention where the person lives, the model must hallucinate a city to complete the sentence. Current decoding methods, such as greedy search or nucleus sampling, lack a mechanism to "undo" these choices once they are made.

Methods: Correction with Backtracking (CoBa)

CoBa introduces a two-step "Detect and Mitigate" strategy during the decoding process. This approach is entirely inference-only, requiring no additional training or fine-tuning of the underlying LLM.

1. Hallucination Detection

The system flags a potential hallucination using two primary signals:

  • Uncertainty: If the conditional probability of the next word is very low (below a threshold $\delta$), it suggests the model is "unsure" because no valid factual completion exists.
  • Semantic Distance: It calculates the cosine distance between the generated token’s embedding and the embeddings of all tokens in the source document. If the word is "far" from the source context (above a threshold $\phi$), it’s likely an ungrounded hallucination.

2. Hallucination Mitigation (Backtracking)

Once a hallucination is detected at step $t$, CoBa performs a local intervention similar to a depth-first search. It discards the problematic token $s_t$ and tries the next most likely alternative. If no suitable alternative is found at that position, it backtracks further to $s_{t-1}$, effectively "undoing" the choice that cornered the model in the first place.

Visualization of the backtracking process where the model corrects a 'cornering' prefix to find a factual path.

Experimental Setup

The researchers evaluated CoBa using two prominent models (Flan-T5 XL and LLaMA) across three benchmark summarization datasets:

  • Newsroom: A large-scale dataset with diverse news articles.
  • CNN/Dailymail: A standard benchmark for long-form summarization.
  • XSUM: An "extreme" summarization task where the goal is a single-sentence summary.

Results and Discussion

The core insight of this work is that hallucinations are often the consequence of earlier, seemingly innocent word choices. By fixing the "cornering" word (e.g., changing "in" to "with"), the model can find a factual path (e.g., "I live with my dog").

Faithfulness Gains

As shown in the experimental results, CoBa consistently outperforms baseline decoding methods across various metrics of factual consistency, such as AlignScore, FactCC, and BS-Fact. On the Newsroom dataset using Flan-T5, CoBa-d (the version using both probability and distance) improved the FactCC score from 0.604 to 0.709 compared to standard greedy decoding.

Performance comparison of CoBa against baselines across Newsroom, XSUM, and CNN/DM datasets.

Efficiency and Orthogonality

Previous methods attempted to prevent hallucinations by "looking ahead"—simulating multiple future summaries for every token—which is computationally expensive. CoBa is much faster because it only acts when it detects a problem, achieving higher faithfulness scores than the "Lookahead" method while being over 10x faster. Furthermore, CoBa is orthogonal to other decoding techniques like Context-Aware Decoding (CAD) and can be used alongside them to further boost performance.

Conclusion

CoBa provides a simple yet effective mechanism to reduce hallucinations by allowing LLMs to backtrack from factual dead-ends. While the method is sensitive to threshold tuning and may occasionally fail to find a factual path within a set step limit, its training-free nature and efficiency make it a practical tool for improving the reliability of abstractive summarization. Future work may explore more complex detection metrics and extend backtracking to other grounded generation tasks like Question Answering.

Summary updated

BibTeX
@misc{liu2023correction,
  author = {Zhenzhen Liu and Chao Wan and Varsha Kishore and Jin Peng Zhou and Minmin Chen and Kilian Q. Weinberger},
  title = {{Correction with Backtracking Reduces Hallucination in Summarization}},
  year = {2023},
  eprint = {2310.16176},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16176},
}
Figure