TL;DR
Multi-document Retrieval-Augmented Generation (RAG) often fails when retrieved sources contradict one another with stale or incorrect information. This paper introduces Dual-Confidence Contrastive Decoding (DCCD), a training-free method that resolves these "intra-context" conflicts by weighting text generation based on both document-level answerability and token-level prediction sharpness. Along with DCCD, the authors release DRQA, a challenging new benchmark simulating enterprise research conflicts where answers cannot be guessed from the model's internal memory.
What Problem Does This Paper Address?
Retrieval-Augmented Generation (RAG) helps large language models (LLMs) ground their answers in external knowledge. However, when querying multiple documents, the retrieved bundle often contains a mix of relevant text, irrelevant noise, outdated facts, or outright misinformation.
While existing "contrastive decoding" techniques help LLMs choose between their internal pre-trained memory and the external context, they treat the retrieved documents as a single monolithic block. They don't address intra-context conflict—the tug-of-war that happens when Document A says one thing and Document B says another. This paper tackles how an LLM can dynamically decide which document to trust at any given moment during text generation without requiring expensive fine-tuning.
Methods
The authors propose Dual-Confidence Contrastive Decoding (DCCD), a training-free decoding strategy. At each decoding step, DCCD dynamically adjusts token probabilities by contrasting a high-confidence document stream against a low-confidence one.
The core innovation is the tracking of two distinct confidence signals:
- Document-Level Confidence ($q_i$): Before generation begins, a lightweight "support probe" prompt asks the LLM if a specific document contains enough information to answer the query. This is computed just once per document and amortized across the generation process.
- Token-Level Confidence ($c_{(i,t)}$): At each decoding step, the model evaluates how "sharp" or certain its next-token probability distribution is when conditioned on that specific document, utilizing a Dirichlet uncertainty framework.
DCCD sums these two normalized metrics into a single dual-confidence score. At each step, it identifies the document with the highest score (positive stream) and the lowest score (negative stream). It then amplifies the logits of the positive stream while suppressing the negative stream, scaling the contrastive effect by the margin between their confidences.
Datasets
The authors evaluate their method on several multi-document QA setups:
- DRQA (Deep Research Question Answering): A new factual-conflict benchmark introduced in this paper. Derived from enterprise deep-research scenarios, it uses synthetic, organization-specific facts (e.g., fictional company financial metrics) to ensure the model cannot rely on its pre-trained knowledge. Each query is paired with a bundle containing one correct document and multiple distractors (misinformation with subtle hedges, temporally stale documents, and topical noise).
- Standard Benchmarks: Natural Questions (NQ), TriviaQA, PopQA, and RetrievalQA are used to demonstrate DCCD's generalizability on standard Wikipedia-style corpora.
Key Insights and Ideas
- The Complementary Nature of Dual Confidence: Document-level confidence filters out irrelevant or unhelpful sources, but it can't guarantee fluent generation. Conversely, token-level confidence ensures the model can generate text confidently, but a highly plausible misinformation document might still produce a very "sharp" but incorrect next-token distribution. Combining both handles both failure modes.
- Intra-Context Conflict is Harder Than Memory Conflict: On the DRQA dataset, zero-shot accuracy (relying purely on internal memory) is exactly 0%. Interestingly, when moving from 5 retrieved documents (@5) to 10 (@10), baseline models drop significantly in accuracy because the extra distractors mislead them. DCCD mitigates this drop by actively suppressing the misleading sources.
Key Results
DCCD consistently achieves the best average performance across all evaluated small language models (Qwen3.5-2B, Qwen3.5-9B, and Phi-3-medium) and datasets.
The gains are most striking on the conflict-heavy DRQA benchmark. For instance, using Qwen3.5-9B at @5 documents, DCCD hits an accuracy of 21.48%, outperforming the standard full-context baseline (17.78%) and other contrastive decoding methods like DVD (16.90%). Unlike other methods that degrade severely as more distractors are added, DCCD maintains a much stronger performance profile at @10 documents.
Limitations and Future Work
- Computational Overhead: Like other document-aware contrastive decoding methods, DCCD requires running parallel forward passes for each retrieved document at every decoding step. This means inference cost scales linearly with the number of documents ($n+1$ streams). Future work will explore more aggressive caching and document pruning to alleviate this.
- Scope of Evaluation: DRQA currently focuses on short-form, factoid question answering over text. Extending this approach to long-form report generation, interactive tool use, and multi-modal files remains an open challenge.
- Heuristic Aggregation: The dual-confidence score is currently a simple, unweighted sum ($q_i + c_{(i,t)}$). Learning or calibrating these weights dynamically could yield even better robustness when retrieved evidence is highly ambiguous.
Summary updated