When Do LLMs Need Retrieval Augmentation? Mitigating LLMs' Overconfidence Helps Retrieval Augmentation

Shiyu Ni, Keping Bi, Jiafeng Guo, Xueqi Cheng

Introduction

Large Language Models (LLMs) have revolutionized natural language processing, yet they remain prone to hallucinations—confidently asserting false information rather than admitting ignorance. Retrieval-Augmented Generation (RAG) has emerged as the standard solution to this problem, providing models with external, up-to-date knowledge. However, the common practice of "static" RAG—retrieving documents for every single query—introduces significant inefficiencies. It increases latency and API costs and can even degrade performance if a model's correct internal knowledge is overridden by noisy or irrelevant retrieved documents.

This paper explores Adaptive Retrieval: a strategy where the model triggers an external search only when it is genuinely uncertain. The primary obstacle to this approach is the "knowledge boundary" problem: LLMs are notoriously overconfident, making it difficult for them to judge when they actually need help. By implementing specific prompting strategies to mitigate this overconfidence, the researchers demonstrate that LLMs can achieve superior accuracy with a fraction of the computational overhead.

The Problem: Overconfidence and Static RAG

Static RAG systems suffer from two main flaws. First, they are computationally expensive. Second, they lack robustness; if an LLM already possesses the correct answer, providing external documents can introduce "distractors" that lead the model astray.

The ideal solution is for the model to self-assess its confidence. However, current LLMs are poorly calibrated. Through an analysis of metrics like Alignment (confidence matching correctness), Overconfidence (confident but wrong), and Conservativeness (uncertain but right), the authors found that the lack of self-awareness in models is almost entirely driven by overconfidence. LLMs are rarely too shy; they are simply too bold.

Methodology: "Humbling" the Model through Prompting

The researchers investigated several prompting strategies designed to improve the model's self-assessment and QA performance:

1. Mitigating Overconfidence

  • Punish: The prompt includes a warning: "You will be punished if the answer is not right but you say 'certain'."
  • Challenge: The system explicitly doubts the model: "I do not think your answer is right. If you are still sure... say 'certain'. Otherwise, say 'uncertain'."
  • Think Step-by-Step: The model is forced to decompose the problem before committing to a confidence level.

2. Enhancing QA Performance

  • Generate: The model generates its own internal background document before answering.
  • Explain: The model must provide a reasoning chain before delivering the final answer and confidence score.

Experimental results indicated that a hybrid approach, Punish+Explain, provided the most effective balance, significantly shifting the model's calibration toward honesty.

Experimental Results

The study evaluated these methods using Natural Questions (NQ) and HotpotQA across various models, including LLaMA2, GPT-3.5-Turbo, and GPT-4.

Efficiency and Accuracy

The "Adaptive Retrieval" strategy powered by the Punish+Explain prompt yielded impressive gains:

  • Reduced Retrieval Frequency: On HotpotQA, ChatGPT achieved peak performance while triggering retrieval for only 40.6% of questions.
  • Performance Parity: Using GPT-4 on Natural Questions, the adaptive approach reached an accuracy of 0.676 with only 33.2% retrieval calls, outperforming the static baseline that retrieved for 100% of queries.

The Uncertainty-Reliance Correlation

The researchers confirmed a crucial "negative correlation" between certainty and reliance. When LLMs are genuinely uncertain, they are much more likely to adopt information from a retrieved document. By fixing the uncertainty signal through prompting, the model becomes more receptive to external data exactly when it is most needed.

Robustness to Noise

Adaptive models proved more robust when retrieval quality was low. Because the models only sought external help when their internal confidence was low, they were less likely to let poor-quality or "sparse" retrieved documents override their correct internal knowledge.

Key Insights

  • Prompting as a Calibration Tool: Simply "threatening" the model (the Punish prompt) or requiring an explanation (the Explain prompt) can drastically improve calibration. For LLaMA2 on NQ, the Punish method increased the "uncertain rate" from 16.8% to 69.2%, effectively flushing out false certainties.
  • The Vicuna Exception: Not all models respond equally to prompting. Vicuna-v1.5-7B remained pathologically overconfident regardless of the prompt, suggesting that some models may require fine-tuning on uncertainty-specific data rather than just inference-time adjustments.

Conclusion and Future Work

By mitigating overconfidence, we can transform RAG from a brute-force tool into an efficient, surgical intervention. Adaptive retrieval allows LLMs to maintain high accuracy while drastically reducing the costs associated with external searches.

Future research directions include expanding this framework beyond factual short-answer QA to more subjective tasks like coding or creative writing. Additionally, the authors suggest exploring "Retrieval Depth"—using the model's confidence level to determine not just if it should retrieve, but how many documents it needs to resolve its uncertainty.

Summary updated

BibTeX
@inproceedings{ni2024when,
  author = {Shiyu Ni and Keping Bi and Jiafeng Guo and Xueqi Cheng},
  title = {{When Do LLMs Need Retrieval Augmentation? Mitigating LLMs' Overconfidence Helps Retrieval Augmentation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.675},
}
Figure