Synchronous Faithfulness Monitoring for Trustworthy Retrieval-Augmented Generation

Di Wu, Jia-Chen Gu, Fan Yin, Nanyun Peng, Kai-Wei Chang · DOI

Introduction

Retrieval-Augmented Generation (RAG) has become a cornerstone for deploying Large Language Models (LLMs) in knowledge-intensive applications. By grounding generation in external context, RAG significantly reduces hallucinations. However, "unfaithfulness"—where the model generates claims unsupported by or contradicting the retrieved evidence—remains a critical challenge. Existing solutions typically rely on slow post-hoc verification or general accuracy-focused interventions. To bridge this gap, researchers at UCLA introduced SYNCHECK, a lightweight, real-time monitor, and Faithfulness-Oriented Decoding (FOD), a strategy to ensure grounded outputs.

SYNCHECK: A Multi-Signal Monitor

SYNCHECK operates synchronously with the decoding process, evaluating every sentence against four key signals:

  1. Likelihood: Token-level probabilities to detect model "surprise."
  2. Uncertainty: Entropy and Local Intrinsic Dimension (LID) to gauge internal conflict.
  3. Context Influence: KL-divergence between distributions with and without context, identifying over-reliance on parametric memory.
  4. Semantic Alignment: A lightweight entailment check (AlignScore) for logical consistency.

These features are aggregated to produce a real-time faithfulness score ($P_{faith}$).

Overview of the SynCheck monitoring and FOD decoding process.

Faithfulness-Oriented Decoding (FOD)

FOD leverages SYNCHECK’s real-time feedback through a two-stage process. First, the model generates text greedily. If a sentence falls below a faithfulness threshold, the system backtracks to the last verified "safe" point. Second, it initiates a Faithfulness-Guided Beam Search, exploring multiple paths and pruning unfaithful branches to find the most grounded continuation. This approach allows the model to recover from potential hallucinations dynamically rather than simply abstaining from generation.

Experimental Evaluation

The system was tested on diverse benchmarks, including RAGTruth (covering Question Answering, Summarization, and Data-to-Text) and FactScore (Biography generation). The researchers also introduced F-100-anti, a stress test where models are given context about one subject but asked about another, specifically testing their ability to resist internal biases when context is conflicting.

Faithfulness performance across various RAG tasks comparing FOD to baseline methods.

Key Findings

  • Superior Detection: SYNCHECK achieved an average AUROC of 0.85, significantly outperforming existing state-of-the-art methods by 4% to 35% across tasks.
  • Improved Grounding: The FOD decoding algorithm improved faithfulness by 12% over standard greedy search and 19% over Context-Aware Decoding (CAD).
  • Efficiency and Transferability: Because SYNCHECK uses features from the model's own forward pass (logits and activations), it adds minimal latency compared to LLM-as-a-judge methods. Furthermore, a monitor trained on one model (e.g., Llama-2) generalizes well to others (e.g., Mistral), indicating universal statistical footprints of unfaithful generation.

Conclusion

SYNCHECK and FOD represent a significant step toward trustworthy RAG. By monitoring faithfulness in real-time and allowing for dynamic correction through backtracking, these methods provide a robust defense against hallucinations without the prohibitive cost of post-hoc verification. Future work aims to refine monitoring to the sub-sentence level and integrate these checks directly into the retrieval phase to handle cases where retrieved context itself is irrelevant.

Summary updated

BibTeX
@inproceedings{wu2024synchronous,
  author = {Di Wu and Jia-Chen Gu and Fan Yin and Nanyun Peng and Kai-Wei Chang},
  title = {{Synchronous Faithfulness Monitoring for Trustworthy Retrieval-Augmented Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.527},
}
Figure