Towards Verifiable Text Generation with Evolving Memory and Self-Reflection

Hao Sun, Hengyi Cai, Bo Wang, Yingyan Hou, Xiaochi Wei, Shuaiqiang Wang, Yan Zhang, Dawei Yin

Abstract

Large Language Models (LLMs) are prone to hallucinations, particularly in long-form text generation where topics shift over time. We introduce the Verifiable Text Generation (VTG) framework, which addresses these challenges through an "evolving memory" system and a multi-stage self-reflection process. VTG maintains long-term and short-term memory pools to track shifting focus and employs a two-tier verification process to ensure every claim is backed by accurate citations. Experimental results across five datasets demonstrate that VTG significantly improves citation quality and answer accuracy while maintaining computational efficiency compared to brute-force retrieval methods.

Introduction

The primary hurdle in deploying LLMs for knowledge-intensive tasks is their tendency to generate plausible-sounding but factually incorrect information. Verifiable Text Generation aims to mitigate this by requiring models to cite supporting evidence. However, existing methods struggle with three main challenges: "focus-shifting" in long responses where document relevance changes as the topic evolves, the need for deep reasoning to align nuanced claims with evidence, and the persistent trade-off between retrieval breadth and precision.

The VTG Framework

The VTG framework mimics a human-like research process: writing, verifying sources, and performing targeted searches only when necessary. It consists of three primary components:

  1. Evolving Memory: VTG utilizes two memory tiers: Long-term Memory ($D_L$) for core context and Short-term Memory ($D_S$) which dynamically updates to reflect the current generation focus.
  2. Two-Tier Verification: A Generation Verifier uses Natural Language Inference (NLI) to check if the LLM's initial citations support the claim. If they fail, a Memory Verifier checks the broader evolving memory.
  3. Evidence Finder & Simplification: If memory is insufficient, the system triggers active retrieval using diverse queries. Finally, a simplification step removes redundant citations to ensure conciseness.
The VTG framework involves three main steps: generation with evolving memory, two-tier citation verification, and citation simplification.

Experimental Results

VTG was evaluated on tasks including Multihop QA (2WikiMultihopQA), Open-domain QA (NQ, WebQ), and Long-form QA (ASQA, ELI5). Using Vicuna-13B and Text-Davinci-003, VTG achieved a 22% relative improvement in citation precision/recall over strong baselines like RERANK. The framework also provided an approximate 5% overall boost in answer accuracy.

A key insight from ablation studies is that the two-tier verifier is the most critical component; its removal leads to the most significant performance degradation. Additionally, VTG's reflective approach is more token-efficient than brute-force sampling because it avoids unnecessary retrieval when internal memory is sufficient.

Performance impact of varying the number of generated queries (M) and retrieved documents (N) on EM Score and Citation F1.

Conclusion and Future Work

By treating memory as a dynamic resource and incorporating self-reflection, VTG provides a robust path toward more reliable and verifiable AI-generated content. While the system demonstrates superior accuracy, it currently faces limitations regarding computational cost due to multiple API calls and a dependency on the quality of the underlying NLI model. Future work will focus on reducing latency and exploring ways to fold the verification logic directly into the primary LLM.

Summary updated

BibTeX
@inproceedings{sun2024towards,
  author = {Hao Sun and Hengyi Cai and Bo Wang and Yingyan Hou and Xiaochi Wei and Shuaiqiang Wang and Yan Zhang and Dawei Yin},
  title = {{Towards Verifiable Text Generation with Evolving Memory and Self-Reflection}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.469},
}
Figure