Fast and Faithful: Real-Time Verification for Long-Document Retrieval-Augmented Generation Systems
Open Access
- 19 July 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 4753-4757
Abstract
Retrieval-augmented generation (RAG) is increasingly deployed in enterprise search and document-centric assistants, where responses must be grounded in long and complex source materials. In practice, verifying that generated answers faithfully reflect retrieved documents is difficult: large language models can check long contexts but are too slow and costly for interactive services, while lightweight classifiers operate within strict context limits and frequently miss evidence outside truncated passages. We present the design of a real-time verification component integrated into a production RAG pipeline that enables full-document grounding under latency constraints. The system processes documents up to 32K tokens and employs adaptive inference strategies to balance response time and verification coverage across workloads. We describe the architectural decisions, operational trade-offs, and evaluation methodology used to deploy the verifier, and show that full-context verification substantially improves detection of unsupported responses compared with truncated validation. Our experience highlights when long-context verification is necessary, why chunk-based checking often fails in real documents, and how latency budgets shape model design. These findings provide practical guidance for practitioners building reliable large-scale retrieval-augmented applications.Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- CBR-RAG: Case-Based Reasoning for Retrieval Augmented Generation in LLMs for Legal Question Answering2024
- RoFormer: Enhanced transformer with Rotary Position EmbeddingNeurocomputing, 2023
- SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models2023
- QuALITY: Question Answering with Long Input Texts, Yes!2022
- Efficient Attentions for Long Document Summarization2021
- SpanBERT: Improving Pre-training by Representing and Predicting SpansTransactions of the Association for Computational Linguistics, 2020
- DeeBERT: Dynamic Early Exiting for Accelerating BERT Inference2020
- FastBERT: a Self-distilling BERT with Adaptive Inference Time2020
- The NarrativeQA Reading Comprehension ChallengeTransactions of the Association for Computational Linguistics, 2018
- Overcoming catastrophic forgetting in neural networksProceedings of the National Academy of Sciences, 2017