KCR: Resolving Long-Context Knowledge Conflicts via Reasoning in LLMs

Xianda Zheng, Zijian Huang, Meng-Fen Chiang, Michael J. Witbrock, Kaiqi ZhaoarXiv 2025 · DOI

Introduction

As Large Language Models (LLMs) become central to Retrieval-Augmented Generation (RAG) workflows, they increasingly encounter "inter-context knowledge conflicts." These occur when retrieved documents provide contradictory information—for instance, one source claiming a specific city has the highest GDP while another names a different city. Resolving these conflicts is critical for factual accuracy, especially as context windows grow.

Typical knowledge conflicts versus the more complex conflicts found in long-context scenarios.

The Problem: Contextual Overload and Hallucination

Existing LLMs struggle with long-context conflicts due to two main factors:

  1. The "Lost in the Middle" Phenomenon: Models tend to overlook critical information when it is buried deep within a long document, often defaulting to their internal (and potentially outdated) training data.
  2. Reasoning Entanglement: When faced with contradictions, models often "hallucinate" or entangle conflicting facts, leading to nonsensical reasoning processes that fail to reach a logical conclusion.

Traditional solutions involving complex distribution fusion or additional decoders do not scale well with expanding context windows. The authors of KCR propose that the solution lies in teaching models a structured reasoning paradigm rather than just providing more data.

The KCR Framework

The Knowledge Conflict Reasoning (KCR) framework introduces a two-phase approach to teach LLMs how to navigate and resolve these contradictions through structured logic.

Overview of the KCR framework, illustrating the generation of reasoning paths and the reinforcement learning process.

Phase 1: Conflicting Reasoning Paths Generation

In the first phase, the system identifies the underlying logic for each conflicting answer candidate. It extracts reasoning paths from the source documents in two formats:

  • Textual Relational Paths: Linear sequences of entity-relation pairs (e.g., Pluto -> classified as -> Dwarf Planet).
  • Graph Format Paths: Local knowledge graphs generated via a teacher model (such as GPT-4o-mini) to represent the structural knowledge within the text.

Phase 2: Conflicts Reasoning Paradigm Learning

The core of KCR is training the backbone LLM using Reinforcement Learning with Verifiable Rewards (RLVR), specifically employing the Group Relative Policy Optimization (GRPO) algorithm. This training is guided by two novel reward signals:

  • Logic Reward: This measures the Jensen-Shannon divergence between the model's generated reasoning and the "correct" reasoning path. It incentivizes the model to follow the logic of the factually consistent source while actively diverging from the incorrect one.
  • Consistency Reward: Using Levenshtein distance, this reward ensures the model's internal reasoning steps align with its final output, penalizing instances where the model "thinks" correctly but outputs a wrong answer.

Experimental Evaluation

The researchers evaluated KCR on modified versions of the popQA and strategyQA datasets, where lengthy, conflicting contexts were prepended to queries to simulate real-world RAG challenges.

Key Results

  • Performance Gains: KCR significantly boosted the semantic accuracy (ACCL) of smaller models. For example, Qwen 2.5-7B saw a 23.75% improvement, and Llama 3.2-3B improved by 11.11% on the popQA benchmark.
  • Efficiency: A 7B-parameter model equipped with KCR outperformed a 32B-parameter base model, demonstrating that specialized reasoning training is more effective than simple parameter scaling for conflict resolution.
  • Mitigating "Multilingual Spillover": Larger models often revert to non-English reasoning when confused by English-only conflicts. KCR's structured approach helps maintain linguistic consistency.

Conclusion and Future Work

KCR demonstrates that conflict resolution is a trainable skill. By rewarding the process of reasoning rather than just the final answer, KCR allows smaller models to handle complex, long-context contradictions with high precision. Future work will focus on reducing dependency on teacher models for path extraction and expanding the framework to handle multi-language conflicts.

Summary updated

BibTeX
@misc{zheng2025kcr,
  author = {Xianda Zheng and Zijian Huang and Meng-Fen Chiang and Michael J. Witbrock and Kaiqi Zhao},
  title = {{KCR: Resolving Long-Context Knowledge Conflicts via Reasoning in LLMs}},
  year = {2025},
  eprint = {2508.01273},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01273},
}
Figure