FastDC: Efficient Execution of Hallucination Detection and Correction for Large Language Models

Jiangneng Li, Xianzhi Zeng, Peiqi Yin, Wenchao Zhou, Gao Cong, Cheng LongarXiv 2026

TL;DR

Making Large Language Models (LLMs) trustworthy in high-stakes fields requires catching and fixing their hallucinations—a safety net that usually turns one quick prompt into a sluggish, expensive cascade of model calls. FastDC is an inference serving system built on vLLM that speeds up this entire detection-and-correction pipeline without altering a single final answer. By ruthlessly recycling redundant computations across sampled answers and keeping different GPU tasks from stepping on each other's toes, FastDC slashes wait times by up to 34% and GPU compute by 36%.

What Problem Does This Paper Address?

When an LLM is analyzing medical records or financial statements, "mostly right" doesn't cut it. To catch errors, engineers wrap LLMs in two-stage safety pipelines: sampling-based detection (generating multiple answers to the same prompt—if they disagree, the model is likely guessing) followed by evidence-based correction (searching a database for facts and sequentially editing the flagged answer).

Figure 2: The reference answering workflow. Detection either returns the original answer or triggers retrieval and ordered correction. Each successive evidence check uses the latest answer, including any preceding revisions.

While effective, this turns a single user question into dozens of interdependent LLM calls. Serving them naively creates massive latency and compute bottlenecks. Worse, when detection and correction share the same GPU engine, trying to optimize one stage in isolation can actively sabotage the other through hardware resource interference.

Methods

FastDC accelerates the standard CoCoA (detection) and RARR (research-and-revision) workflows on a shared serving engine using five coordinated mechanisms:

FastDC's shared sampling and speculative text reuse mechanisms.
  • Shared-State Sampling & Certified Early Stopping: Standard prefix caching only shares the initial prompt. FastDC goes further: as long as independent samples generate the exact same words (e.g., three samples all start with "The capital is Paris"), FastDC computes the neural network forward pass once and draws independent next-tokens for each sample, splitting them only when their wording diverges. Meanwhile, it tracks mathematical bounds on the uncertainty score, canceling remaining samples early the moment the final "pass/fail" decision is mathematically locked in.
  • Target-Verified Correction: Editing a wrong answer usually leaves most of the original sentences intact. FastDC uses native n-gram lookup to grab chunks of the original answer (or retrieved evidence) as "speculative" draft tokens, verifying several words in a single forward pass rather than generating the revision one token at a time.
  • Gate Lookahead: Fact-checking happens in strict order because an early edit might change what a later check sees. FastDC runs the next check in parallel anyway; if the earlier step doesn't end up changing the text, the lookahead result is instantly adopted. If the text does change, the stale check is simply discarded and rerun.
  • Partial Attention Decoupling: Single-token decoding (used in detection) and multi-token verification (used in speculative correction) behave very differently at the GPU kernel level. FastDC batches them together for heavy linear matrix multiplications, but splits them into separate sequential calls right at the attention layer so multi-token checks don't force single-token decodes off their ultra-fast FlashAttention-2 path.

Datasets

No new benchmarks were introduced; the system was evaluated on existing question-answering datasets:

  • HotpotQA: Two disjoint sets of 256 questions (main and held-out evaluations) paired with a frozen local retrieval corpus of 269,612 passages.
  • Natural Questions (NQ) & SQuAD: Used strictly to calibrate the uncertainty detector's routing thresholds for short and long answers, respectively.

Key Insights and Ideas

  • An optimization that makes things slower (until you fix the plumbing): One of the paper's best "aha" moments comes from the ablation study. Turning on speculative decoding for long-answer corrections alone actually dropped overall throughput by 16.1% and increased GPU time by 8%. Why? Because mixing multi-token verification queries into the same attention call as single-token detection requests broke FlashAttention-2's fast single-token kernel path for the whole batch! Introducing attention decoupling reversed that 16% loss into a 35.7% throughput surge.
  • Zero compromise on output fidelity: Speedups in LLM serving often subtly warp probabilities. When tested under strict batch-invariant numerical controls, FastDC matched native vLLM's detector decisions and exact word-for-word final answers 100% of the time.

Key Results

Evaluated on Qwen2.5-14B-Instruct using a single NVIDIA RTX A6000 GPU under a continuous load of 32 concurrent workflows:

  • Short Answers (1 sentence): 1.55× throughput speedup (54.7% increase), 34.4% lower mean job completion time (JCT), and 36.2% less GPU execution time. Shared sampling merged 29.3% of all logical token rows.
  • Long Answers (~120 words): 1.22× throughput speedup (21.6% increase), 18.4% lower mean JCT, and 25.7% less GPU time. While long answers diverged faster during sampling, the editor successfully reused 38.3% of tokens directly from the answer under revision.
  • Tail Latency: 95th-percentile (p95) wait times dropped by 46.4% for short answers and 28.1% for long answers.

Limitations and Future Work

FastDC is currently designed and evaluated exclusively for single-GPU execution, where all LLM stages share one model instance on one card. Moving forward, the authors plan to tackle distributed multi-GPU serving—figuring out how to place and schedule detection and correction across multiple GPUs while balancing computation reuse, load distribution, and cross-GPU communication overhead.

Summary updated

BibTeX
@misc{li2026fastdc,
  author = {Jiangneng Li and Xianzhi Zeng and Peiqi Yin and Wenchao Zhou and Gao Cong and Cheng Long},
  title = {{FastDC: Efficient Execution of Hallucination Detection and Correction for Large Language Models}},
  year = {2026},
  eprint = {2611.39311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39311},
}
Figure