Overthinking as a Symptom of Knowledge Conflict: Understanding and Detecting LLM's Hallucinations in Retrieval-Augmented Question Answering

Zhihua Wen, Hao Li, Zhiliang Tian, Zhizhao Liu, Yanqi Shi, Yiping Song, Dongsheng LiNeurIPS 2026

TL;DR

When reasoning-focused LLMs (like DeepSeek-R1) get stuck in endless loops of "overthinking" during search-augmented tasks, they aren't just working hard—they are usually suffering from an internal crisis where retrieved documents clash with their pre-trained memory. By treating these specific, anxious reasoning patterns as diagnostic symptoms, the authors built a lightweight system that catches LLM hallucinations from a single generation run, no model weights or pristine search results required.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) acts like an open-book exam for LLMs, feeding them external documents to ground their answers. Recently, engineers started pairing RAG with reasoning models—LLMs trained to explicitly "think out loud" step-by-step before answering.

However, reasoning models have a notorious habit of overthinking: burning thousands of tokens spinning their wheels for zero performance gain. Until now, researchers mostly studied overthinking in "closed-book" puzzles like math or coding, where the model relies strictly on internal logic. We knew very little about what happens when a reasoning model overthinks during an open-book RAG task, where noisy search results might contradict what the model already "knows." Furthermore, existing hallucination detectors usually require peeking inside the model’s parameters, sampling multiple answers (which is slow and expensive), or assuming the retrieved text is 100% trustworthy.

Key Insights and Ideas

By dissecting the thought traces of reasoning LLMs across multi-hop questions, the authors uncovered why models spiral—and what it means for reliability:

  • Overthinking is a symptom of Knowledge Conflict: When a model generates unusually long reasoning chains in RAG, it is frequently struggling to reconcile its internal parametric memory with the external retrieved text.
  • Three telltale "anxiety" patterns: This conflict reliably surfaces in the text as three specific behaviors:
  • Instruction Reinterpretation (IR): Rationalizing ways to bend the prompt ("Maybe the user made a mistake and meant...").
  • Context Insufficiency Alarming (CIA): Repeatedly complaining that the search results are vague or missing details.
  • Explicit Internal Reasoning (EIR): Explicitly falling back on pre-trained memory ("According to general knowledge...").
  • More conflict = higher hallucination risk: Hallucinated answers consistently feature much longer reasoning traces and spike higher across all three conflict patterns compared to truthful answers.
Figure 1: Results of our empirical studies. Charts in (a) show the average frequencies of three characteristic reasoning patterns by comparing Lengthy Samples (reasoning steps > mean) and Concise Samples (≤mean). Solid bars represent DeepSeek-R1 and hatched bars represent GLM-Z1. Charts in (b) compare Truthful (green) and Hallucinatory (red) samples regarding their average trajectory length (left y-axis) and the average occurrence of the three reasoning patterns (right y-axis).
  • The "Wrong Retrieval" trap: Overthinking is most severe (averaging 8,671 tokens!) when a model actually knows the right answer internally, but is fed bad search results. The model agonizes trying to bridge the contradiction. Conversely, when the model's internal memory is wrong, its reasoning is much shorter (4,916 tokens), yet it still hallucinates 82.4% of the time because it fails to utilize the correct search results right in front of it.

Methods

To turn these insights into a practical tool, the authors built ConfliDetect, a plug-and-play hallucination detection pipeline that operates on a single generation trace:

  1. Step-Level Conflict Classifier: They fine-tuned a lightweight DeBERTa-v3-base model to read individual sentences in an LLM's reasoning trace and flag any of the three conflict patterns (IR, CIA, EIR).
  2. Knowledge Conflict Score: They simply count how many reasoning steps trigger at least one conflict flag. Depending on whether this score is $0$, $\le 10$, or $> 10$, the trace is categorized into No, Mild, or Severe conflict.
  3. Repetitive Reasoning Reduction: Because overthinking models repeat themselves, feeding raw traces to a judge LLM overwhelms it. ConfliDetect encodes sentences using an embedding model (bge-large-en) and replaces near-duplicate subsequent steps (cosine similarity $> 0.9$) with a "..." placeholder.
  4. Conflict-Adaptive Detection: Finally, a detector LLM grades the compressed trace using a prompt tailored to the conflict level—performing a basic logic check for No Conflict, checking if minor confusion derailed the final answer for Mild Conflict, or arbitrating whether internal memory or external context is more trustworthy for Severe Conflict.

Datasets

  • Evaluation: Three multi-hop QA benchmarks paired with a Wikipedia (Wiki19) retrieval corpus: TempQA, MuSiQue, and BamBoogle.
  • Classifier Training: The authors constructed a custom step-level dataset by collecting RAG reasoning steps and using GPT-4o (validated against human annotators) to label the three conflict patterns.

Key Results

Tested across three distinct reasoning architectures—DeepSeek-R1 (671B), Qwen3 (32B), and GLM-Z1 (9B)—ConfliDetect beat black-box baselines (including SelfCheck and SemanticEntropy) across every dataset.

  • On BamBoogle with DeepSeek-R1, ConfliDetect hit 0.81 Accuracy / 0.81 F1, jumping ahead of standard LLM-as-a-judge prompting (0.66 / 0.59) and SemanticEntropy (0.72 / 0.71).
  • More than just length: A baseline detector looking only at reasoning length scored 0.62 Acc on BamBoogle, proving that specific conflict signals—not just verbosity—drive the detector's success.
  • Scales with better judges: Swapping the detector LLM to stronger models boosted performance universally; pairing ConfliDetect with GPT-5 pushed BamBoogle detection accuracy from 0.85 (Vanilla) to 0.94.
  • Fast: Using DeBERTa for step classification kept average latency at 8 seconds, half the time of an LLM-based step classifier (17s) for nearly identical accuracy.

Limitations and Future Work

  • Correlation, not causation: In the provided pages, the authors explicitly note that their empirical study is observational—while knowledge conflict strongly correlates with hallucinations, the analysis does not isolate a strict causal mechanism.
  • Closed-trace models: Because ConfliDetect relies on reading explicit reasoning steps, it cannot be applied to proprietary reasoning models that hide their raw chain-of-thought from users, such as OpenAI's o1 and o3 series.
  • (Note: Dedicated future work sections are not included in the provided pages of the text.)

Summary updated

Abstract

Retrieval-augmented generation (RAG) is increasingly used to ground Large language Models (LLMs) with up-to-date or private information, and has become a key component for knowledge-intensive LLM systems (e.g., LLM agents). However, RAG with LLMs often hallucinate due to unreliable retrieved information or outdated internal knowledge, making hallucination detection crucial for reliable LLM workflows. Recently, reasoning-intensive LLMs that produce explicit reasoning trajectories before answering have shown promise in RAG by examining and synthesizing retrieved evidence. Yet, they often suffer from overthinking: generating redundant or unproductive reasoning with limited performance gains. While prior work mainly studies overthinking in closed-book reasoning tasks that mainly rely on internal knowledge, overthinking in RAG-based question answering (QA) that requires open-book reasoning over both internal knowledge and external context remains underexplored. Thereby, we conduct empirical studies to investigate the relationship between overthinking and hallucination in RAG-based QA and find: (1) Overthinking in reasoning LLMs produces lengthy reasoning trajectories that are correlated with hallucinations; (2) This overthinking is often associated with knowledge conflict, where LLMs struggle to reconcile retrieved context with internal knowledge. Based on our findings, we propose a knowledge conflict-aware hallucination detection framework. We train a classifier to identify the three knowledge conflict reasoning patterns, design a knowledge conflict score to measure knowledge conflict severity, and apply tailored detection strategies with different prompts for different conflict levels. Unlike existing methods, our approach requires neither LLM parameter access nor retrieval reliability, and only needs the LLM output in a single run. Experiments on three QA datasets and three LLMs confirm our framework's effectiveness.
BibTeX
@inproceedings{wen2026overthinking,
  author = {Zhihua Wen and Hao Li and Zhiliang Tian and Zhizhao Liu and Yanqi Shi and YIPING SONG and Dongsheng Li},
  title = {{Overthinking as a Symptom of Knowledge Conflict: Understanding and Detecting LLM's Hallucinations in Retrieval-Augmented Question Answering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=fzpG3voiei},
}
Figure