Enterprise knowledge · Research feature

Guaranteeing Faithful Evidence Extraction in Speculative Retrieval-Augmented Generation

The researchers introduce Constrained Hybrid Decoding (CHyD), a novel faithfulness-first paradigm for speculative RAG.

Adapted from research by Quentin Signé, Mohand Boughanem, Jose Moreno and colleagues.

arXiv preprint revision · 2026-09-11 · Attribution & reuse
In this article
Editorial illustration of linked workflow.

Authors’ overview

Large Language Models (LLMs) are increasingly used as interfaces for information retrieval, but they remain prone to hallucinations and faithfulness errors, in which the generated answers diverge from the retrieved evidence. While Retrieval-Augmented Generation (RAG) and recent hybrid or semi-extractive approaches mitigate this issue, they do not guarantee that quoted or extracted spans are verbatim from the retrieved context. This limitation can have severe consequences in safety-critical domains, where answers must exactly match certified documentation. We introduce Constrained Hybrid Decoding (CHyD), a novel faithfulness-first paradigm for speculative RAG. While traditional speculative decoding is optimized for inference speed, CHyD repurposes this architecture to ensure faithful verbatim evidence extraction when the extraction mode is correctly triggered. Our approach enforces hard decoding constraints that restrict generation to continuous spans present in the retrieved documents. This design provides a robust but straightforward guarantee: any explicitly quoted span in the output appears verbatim in the provided context. We evaluate our method across state-of-the-art LLMs on diverse abstractive, extractive, and semi-extractive QA benchmarks, including technical datasets motivated by aircraft maintenance. Results show that existing hybrid methods frequently hallucinate quoted spans, with exact extraction accuracy dropping below 40% in technical domains. In contrast, our approach achieves near-perfect extraction faithfulness regardless of the model used. Although enforcing hard constraints introduces a trade-off with fluency-oriented metrics, our method improves exact answer correctness and remains competitive overall, highlighting its suitability for safety-critical information retrieval applications.

Introduction

Large Language Models (LLMs) have become a central component of modern Question-Answering (QA) systems. Despite their impressive generative capabilities, LLMs are prone to generating ungrounded content that appears factual, a phenomenon known as hallucination. In document-grounded QA, this manifests as context inconsistencies, where the generated answer contradicts or deviates from the retrieved documents. While such errors may be tolerable in open-domain applications, they are unacceptable in safety-critical fields, such as medicine, law, and aircraft maintenance. In these industrial and regulated settings, Question-Answering systems are expected not only to provide plausible answers but also to return exact procedures, thresholds, or conditions from certified documentation. For instance, in aircraft maintenance, operations must strictly follow approved manuals, and paraphrasing or abstracting may invalidate procedural compliance. Indeed, in aircraft maintenance operations, any use of AI systems and solutions must demonstrate specific safety and compliance guarantees. Hence, QA systems for decision-making support should rigorously verify their answers. These answers must not only be correct but also verbatim and faithful to the retrieved context. define this concept of faithfulness as the absence of divergence between the generated content and the supporting context.

Traditional Retrieval-Augmented Generation (RAG) approaches mitigate the risk of hallucination by grounding answers in external documentation, thus improving factuality. However, standard RAG frameworks still rely on probabilistic token generation and therefore cannot fully guarantee that the generated answers are faithful to the retrieved context. Recent work has explored hybrid paradigms that combine generation with extraction, including semi-extractive QA and speculative RAG methods. By design, these approaches provide answers that are partially generated and partially quoted from the context, improving factuality on average, but without guaranteeing verbatim extraction.

This paper addresses a fundamental gap in the literature. To our knowledge, no hybrid generation framework is primarily designed to guarantee faithfulness rather than fluency or inference speed. Existing speculative RAG frameworks (e.g. NEST, REST ) use copying mechanisms to accelerate decoding. Semi-extractive methods such as SEMQA rely on the model to generate quoted spans, which can still hallucinate. None of these approaches ensures that the generated evidence is extracted verbatim from the context.

In safety-critical industries like aircraft maintenance, the research challenge is not only to generate a “correct” answer but also to ensure verifiable compliance with certified documentation. We propose Constrained Hybrid Decoding (CHyD), a faithfulness-first paradigm for speculative RAG frameworks that addresses this challenge by enforcing robust safety constraints during decoding. When the model enters extraction mode, decoding is restricted to tokens that form a continuous, verbatim span from the retrieved documents. This design provides a robust yet straightforward guarantee: any quoted span in the output is exactly extracted from the provided context. Unlike prior speculative RAG approaches that use copying for efficiency, CHyD uses constrained decoding to enforce faithful evidence extraction. We demonstrate that this guarantee leads to near-perfect extraction correctness across diverse QA benchmarks, at the cost of modest reductions in fluency-oriented metrics.

A critical challenge in Large Language Models (LLMs) is faithfulness hallucination, in which the generated outputs diverge from the supporting evidence. In document-grounded Question-Answering (QA) tasks, this issue manifests as context inconsistencies, where the model’s answer contradicts or deviates from the retrieved evidence. In safety-critical domains, even minor deviations from the certified documentation are unacceptable, motivating approaches that strictly align outputs with the document’s content to ensure procedural compliance.

To mitigate these risks, Retrieval-Augmented Generation (RAG) has become the standard approach. This paradigm enables LLMs to ground their answers in external documents, thereby improving accuracy and faithfulness. While recent RAG approaches employ optimisations such as improved retrieval steps or fine-tuning, they do not fully mitigate hallucinations. Because these methods rely on unconstrained probabilistic token generation, they remain prone to inconsistencies and cannot guarantee that the generated answers faithfully reproduce the retrieved evidence. Consequently, hallucinations remain a significant challenge, especially in technical domains where language model training data lacks specialised vocabulary.

Recent research has attempted to improve faithfulness by directly manipulating the decoding process. Logit-based RAG approaches dynamically adjust the model’s output token distribution by weighting parametric knowledge against contextualised knowledge. For instance, kNN-LM combines the probability distributions of an LLM and a kNN model, and subsequent approaches like Context-aware Decoding (CAD), AdaCAD, and CoCoA aim to reduce unfaithful generation by dynamically combining the model’s prior and contextualised knowledge. Similarly, Pointer-Generator Networks introduce a soft copying mechanism that allows the model to use tokens from the source document during generation. While these approaches reduce context inconsistencies and unfaithful generation on average, they enforce soft faithfulness preferences rather than guaranteeing faithfulness. Because these methods rely on probabilistic weighting rather than hard constraints, the generated answer may still contain spans that appear grounded but are not extracted verbatim from the retrieved documentation.

Conversely, recent research has also studied purely extractive approaches that restrict the output to spans from retrieved documents, including QA models built on encoder-only architectures such as BERT. The SEBRAG framework utilises a RAG pipeline in which the LLM integrates a substring extraction tool, while adopt a span-prediction method which predicts correct token indices by prompting a language model. Although these methods aim to reduce context inconsistencies by providing strong extraction guarantees, they enforce verbatim copying from the retrieved context. As a result, they lack the fluency and synthesis capabilities required for complex tasks like multi-source QA.

Extractive and abstractive methods have been studied separately, but to balance fluency and grounding, hybrid frameworks have been developed to produce answers that are partially generated and partially extracted. Cited researchers propose a hybrid approach that combines the outputs of extractive and abstractive readers, achieving strong performance compared to either reader alone. More recently, SEMQA introduces a semi-extractive format that combines free text with quoted spans, along with the open-domain QuoteSum dataset and an associated evaluation metric designed to assess hybrid answers. However, these “quoted-generation” approaches rely on the LLM to generate the quoted span (e.g. between brackets ) rather than on pure evidence extraction. In these frameworks, because quoted spans are freely generated rather than copied, the model can mimic citation formats while still hallucinating the quoted content. Therefore, generated answers may be fluent, while the quoted spans they contain are absent from the retrieved context. Consequently, SEMQA optimises answer quality under a semi-extractive format, but does not enforce the copying of continuous spans from the retrieved context, hence failing to prevent context inconsistencies.

Approach

While soft faithfulness objectives may be sufficient for open-domain QA, safety-critical applications require even stronger guarantees of faithfulness. We therefore propose a framework that enforces extraction correctness at decoding time, rather than relying on post-hoc validation or soft preferences.

The transition between the two generation modes is managed by two specific tokens: the model enters the extraction process when ‘‘[’’ is produced and exits it when ‘‘]’’ is triggered. This design choice enables a simple, model-agnostic switching mechanism that, once extraction mode is entered, enforces faithfulness during decoding via hard constraints. Moreover, this design allows future work to explore alternative trigger conditions.

The CHyD mechanism ensures that, in the EEC mode, generated tokens either match a verbatim span from the retrieved context or explicitly terminate the extraction process. Moreover, this mechanism allows the model to switch between the two modes multiple times, enabling several extractions within the same answer across different passages of the retrieved context. This strong constraint distinguishes our approach from prior hybrid methods such as SEMQA and NEST, which rely on soft constraints or probabilistic span acceptance. In contrast, CHyD enforces verbatim evidence extraction during decoding, making it particularly suited to safety-critical QA tasks.

Evaluation Metrics

We evaluate the approaches against several criteria to assess answer correctness, generation quality, fluency, and faithfulness to the retrieved evidence. This combination of evaluation criteria will help us highlight potential trade-offs in hybrid QA and enable more precise analysis, particularly in safety-critical settings.

To evaluate the methods’ evidence extraction performance, we report Exact Match (EM) and F1 scores for quoted spans. These are standard measures of answer correctness, allowing us to assess both absolute precision (EM) and partial overlap (F1) with the gold reference. Following prior work on speculative RAG, we also compute Answer-Level Recall, which checks whether the extracted parts of the output contain any correct verbatim answers.

To evaluate fluency and answer quality, we report ROUGE-L, BERTScore, and MAUVE. This combination provides a global assessment of answer quality. ROUGE-L measures lexical overlap and sentence structure, BERTScore uses contextual embeddings to assess semantic similarity, and MAUVE evaluates the overall distribution of the generated text to estimate how closely it resembles human-written answers. We also compute the SEMQA score, which combines generation quality (ROUGE-L) and extraction performance (F1 score of the answer’s quoted spans). These metrics capture semantic similarity and generation quality but do not assess whether the quoted spans are verbatim from the retrieved context. Moreover, generation metrics such as ROUGE or BERTScore reward fluent, semantically plausible answers, even when evidence is generated rather than copied. As a result, models may achieve high scores while producing unfaithful answers.

Extraction Correctness and Faithfulness

CHyD consistently achieves an EFA between 0.981 and 1.000 across all models and datasets, indicating that nearly all quoted spans exactly match continuous spans in the retrieved context. This result confirms that enforcing hard extraction during decoding provides, by construction, a strong and reliable guarantee of evidence faithfulness. The remaining failures appear to stem from rare tokenisation edge cases, where the extraction trigger token is not emitted as an isolated token (e.g. generating the token ‘‘[S’’ instead of the trigger ‘‘[’’), preventing a switch to the EEC mode. In such cases, the model remains in free generation and generates the quoted span in the same probabilistic manner as SEMQA.

Conversely, NEST’s relaxed speculative decoding mechanism enables it to extract exact spans from the source, sometimes yielding a high EFA. However, these extractions are opportunistic and aimed at accelerating inference rather than evidence grounding. Consequently, they do not generally correspond to the supporting evidence, resulting in consistently lower EM and F1 scores than CHyD. Therefore, even though both leverage “copy-paste” mechanisms, their different objectives explain NEST’s consistently lower EM and F1 scores than CHyD across almost all configurations.

Low Exact Match scores across all models on MESAQA occur because the EM metric requires the extracted span to match the gold answer exactly. Since gold answers in this abstractive dataset are complete free-form sentences, achieving an exact verbatim match is highly improbable. In such cases, the evaluated approaches tend to quote pertinent keywords rather than entire sentences, which also explains why Answer-Level Recall is not reported for this dataset.

Consequently, it achieves high Exact Match and F1 scores on extraction-friendly datasets like SEMAeroSQuAD. However, its performance collapses on the medical datasets, with Exact Match dropping to 0.022 on MedMCQA and 0.012 on MESAQA, highlighting a critical limitation of purely extractive models. Identifying the correct evidence on complex tasks, such as MedMCQA, requires advanced domain-specific reasoning capabilities that a standard extractive model lacks. Moreover, the Overall averages reveal that our approach, CHyD, combined with modern generalist LLMs, such as Qwen3, can achieve an overall EM score that surpasses the purely extractive DistilBERT performance (0.328 and 0.314, respectively). This demonstrates that CHyD effectively leverages LLMs’ superior reasoning capabilities to extract precise evidence.

Fluency-Faithfulness Trade-offs

Based on the results in Tables 4 and 5, the differences in extraction behaviour stem from the distinct objectives of the evaluated methods. SEMQA is designed to prioritise fluent and plausible answers in a semi-extractive format. Consequently, this approach often achieves high scores on generation-oriented metrics (such as ROUGE-L and MAUVE) even when its quoted spans are not exact verbatim copies of the original documents. These hallucinated quotes remain undetected by standard QA metrics but are effectively captured by the Extraction Faithfulness Accuracy (EFA), exposing a critical vulnerability in “fluency-first” approaches.

In contrast, NEST primarily aims to accelerate inference by using a relaxed speculative decoding mechanism that opportunistically copies spans from the context. While this mechanism may sometimes yield exact evidence extraction, it does not guarantee the correctness of the copied evidence. As a result, NEST produces fluent and occasionally faster answers, but with inconsistent grounding guarantees, as reflected in its lower EM and F1 scores.

CHyD adopts a different objective: rather than optimising fluency or latency, we prioritise extraction faithfulness by enforcing hard constraints during decoding whenever evidence is quoted. As a result, CHyD achieves near-perfect Extraction Faithfulness Accuracy (0.981 - 1.000) across all LLMs and datasets. This significantly outperforms SEMQA, whose EFA drops below 0.371 on the technical dataset MESAQA, and NEST, which lacks grounding guarantees. While our strict design may slightly limit the model’s stylistic freedom, it ensures that quoted evidence is always extracted from its context. Moreover, the overall results indicate that SEMQA’s average EFA is highly model-dependent (ranging from 0.639 with Mistral-N to 0.871 with Qwen3), whereas CHyD maintains a near-perfect, stable EFA (0.985 to 1.000) across the used LLMs.

While the purely extractive baseline, DistilBERT, achieves the highest F1 and EM scores on QuoteSum and SEMAeroSQuAD, this encoder-only model is structurally restricted to outputting raw text spans from the context. As a result, it cannot generate conversational, grammatically correct answers, synthesise complex queries, extract multiple disconnected spans across different passages (as required by the dataset QuoteSum), or naturally integrate evidence into fluent sentences. This limitation is highlighted by its performance drop across all generation-oriented metrics, such as MAUVE and BERTScore-F1. The contribution of CHyD is not to surpass purely extractive models at their tasks, but rather to enable hybrid generation, which is necessary for safety-critical applications. CHyD achieves this by delivering near-perfect extraction faithfulness without sacrificing the global answer fluency.

These results highlight a clear trade-off in hybrid generation. Optimising fluency or inference speed does not necessarily align with strong guarantees of faithfulness. In safety-critical domains like aircraft maintenance or medical QA, where strict compliance with certified documentation is mandatory, prioritising correctness over fluency is a necessary design choice, and a few seconds of latency is an acceptable trade-off for guaranteed procedural compliance.

Discussion and Limitations

This work explicitly prioritises faithfulness over fluency or latency, reflecting mandatory requirements in safety-critical environments, like aircraft maintenance, where answers must strictly adhere to certified documentation. In such settings, properties such as traceability, compliance, and exact reproduction of evidence are mandatory, not optional. Any deviation from the source documentation, even if the output is fluent, can have severe operational consequences.

Enforcing strict decoding constraints inevitably limits the model’s expressive freedom and may reduce fluency or abstraction. In particular, constraining generation to verbatim extraction when creating quoted spans reduces paraphrasing flexibility and may lead to less fluent answers. However, our results show that this constraint eliminates a significant source of hallucination while preserving competitive answer quality. In safety-critical domains, correctness must take precedence over stylistic considerations, and our results demonstrate that this trade-off is necessary.

Additionally, strict decoding constraints increase CHyD’s latency compared with SEMQA. While our approach is not optimised for inference time, this increase is due to the evidence extraction phases and scales with the number of quoted spans rather than the length of the answer. This suggests that faithfulness guarantees can be achieved without sacrificing the benefits of hybrid generation. Finally, while SEMAeroSQuAD enables controlled evaluation of faithfulness in closed-domain settings, it is automatically generated and may therefore introduce biases from the generation process. Consequently, complementary human evaluation would be valuable for assessing answer fluency, comprehensiveness, and correctness.

Finally, a critical distinction must be made between extractive faithfulness and reasoning faithfulness. CHyD provides a hard guarantee for the former: any content within brackets is a verbatim, verified span from the context. However, the reasoning (i.e. the decision of which span to extract) still resides with the base LLM. While CHyD eliminates hallucination within the evidence itself, the logical link between the query and the quoted span remains a subject for future research.

Overall, our work demonstrates that speculative RAG, previously explored primarily for inference speed-up, can be reoriented to enforce strict evidence extraction. While approaches such as NEST focus on probabilistic span acceptance to improve efficiency, our results suggest that combining speculative RAG with strict faithfulness constraints could offer a promising direction for future research. In particular, strategies that integrate fast speculative decoding with constrained extraction may help improve efficiency while preserving correctness guarantees.