Do Retrieval Augmented Language Models Know When They Don't Know?

Youchao Zhou, Heyan Huang, Yicheng Liu, Rui Dai, Xinglin Wang, Xingchen Zhang, Shumin Shi, Yang Deng

TL;DR

Retrieval-augmented language models (RALMs) are designed to look up external information to answer questions, but how do they handle completely irrelevant search results? This paper reveals a critical flaw: when confronted with entirely noisy or irrelevant context, refusal-trained LLMs suffer from severe "over-refusal," proactively abstaining from answering questions they actually know internally. To fix this, the authors introduce a novel two-stage refusal technique that uses variations in model uncertainty to accurately diagnose its true knowledge state.

What Problem Does This Paper Address?

Large Language Models (LLMs) frequently suffer from hallucinations—generating responses that sound plausible but are factually incorrect. To combat this, researchers typically use two strategies: Retrieval-Augmented Generation (RAG) to ground answers in external documents, and refusal post-training to teach models to say "I don't know" when they lack knowledge.

However, these two paradigms are rarely evaluated together. The authors point out that LLMs are highly sensitive to the quality of retrieved text. When a refusal-trained model is fed a batch of completely irrelevant documents, it often becomes uncertain and refuses to answer, even if it already possesses the correct answer within its internal parametric memory. This study systematically explores this "over-refusal" trap and asks a fundamental question: Do RALMs actually know when they don't know?

An illustration of the knowledge boundary and the over-refusal phenomenon in RALMs.

Methods

The authors investigate RALM behavior through a combination of uncertainty estimation and refusal post-training variants:

  1. Uncertainty Estimation (UE): They evaluate several black-box UE methods to quantify model confidence without needing internal model weights. These include verbalization-based UE (asking the model directly for its confidence) and consistency-based UE (measuring the semantic agreement, entropy, or distance between multiple sampled responses).
  2. Refusal Instruction Fine-Tuning (RIFT): They compare standard R-tuning (which identifies what a model doesn't know and trains it to output a refusal string) against In-Context Fine-Tuning (ICFT). ICFT variants append combinations of positive (relevant) and negative (irrelevant) contexts to training prompts to teach the model when to rely on its own memory versus external text.
  3. Two-Stage Refusal Technique (Proposed): To mitigate over-refusal at inference time, the authors develop a post-hoc method. First, it applies an uncertainty threshold ($T_s$) to the base LLM to see if it inherently knows the answer. Second, it calculates the uncertainty shift ($\Delta U = U_{RALM} - U_{LLM}$) when context is introduced. The model only refuses if it is classified as genuinely lacking the knowledge, preventing noisy context from overriding internal confidence.

Datasets

The experiments utilize three fact-oriented, single-hop question-answering datasets spanning both English and Chinese:

  • NQ (Natural Questions): A standard open-domain English QA dataset.
  • CRUD: A large-scale Chinese benchmark specifically designed for RAG evaluation.
  • RGB: A specialized RAG dataset explicitly built to test the refusal capabilities of language models.

Negative (irrelevant) context chunks were generated synthetically using hybrid search and re-ranking via the Milvus vector database to ensure high semantic and lexical difficulty.

Key Insights and Ideas

  • The Irrelevant Context Trap: When given entirely irrelevant context (the 0p10n setting—0 positive, 10 negative chunks), RALMs become strongly over-confident while their actual accuracy plummets. This mismatch triggers massive over-refusal.
  • R-Tuning Exacerbates Over-Refusal: Standard refusal training damages the model's self-awareness in RAG setups. Instead of ignoring bad context, R-tuned models become hyper-sensitive to noise and lose faith in their own internal knowledge.
  • Contextual Faithfulness vs. Robustness: In-context fine-tuning (ICFT) variants that include negative contexts help the model learn to ignore noise, successfully mitigating over-refusal. However, improving a model's refusal behavior does not automatically translate to better calibration or higher raw accuracy.

Key Results

The paper evaluates Qwen-2.5-7B and LLaMA-3.1-8B models. Key quantitative findings from the challenging all-negative context (0p10n) setting include:

  • Over-Refusal Rates (OR): The vanilla Qwen model showed an over-refusal rate of 35.5%. Standard R-tuning caused this to skyrocket to a disastrous 67.8%.
  • ICFT Improvements: The proposed ICFT(n) training method successfully reduced the over-refusal rate to 27.0% while simultaneously boosting overall accuracy from 29.0% (vanilla) to 62.0%.
  • Two-Stage Refusal Success: When combining the authors' two-stage uncertainty thresholding technique with ICFT(p), the over-refusal rate dropped to just 10.6% while maintaining highly competitive overall response quality.

Limitations and Future Work

  • Short-Form Constraints: The study focuses strictly on simple, fact-oriented factual questions requiring short answers. How these dynamics play out in long-form generation or complex multi-hop reasoning tasks remains an open question.
  • Static Thresholds: The two-stage refusal method relies on static uncertainty thresholds optimized via grid search on a development set. In production environments where knowledge boundaries shift dynamically, static thresholds may underperform.
  • Uncertainty Estimation Limits: The authors emphasize that robustly estimating uncertainty for retrieval-augmented models remains a challenging, open problem that requires more sophisticated modeling.

Summary updated

BibTeX
@inproceedings{zhou2026do,
  author = {Youchao Zhou and Heyan Huang and Yicheng Liu and Rui Dai and Xinglin Wang and Xingchen Zhang and Shumin Shi and Yang Deng},
  title = {{Do Retrieval Augmented Language Models Know When They Don't Know?}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i41.40822},
}
Figure