KARE-RAG: Knowledge-Aware Refinement and Enhancement for RAG

Yongjian Li, HaoCheng Chu, Yukun Yan, Zhenghao Liu, Shi Yu, Zheni Zeng, Ruobing Wang, Sen Song, Zhiyuan Liu, Maosong Sun · Submission to ICLR 2026 · Rejected

TL;DR

KARE-RAG improves how Large Language Models handle retrieved documents by training them to extract intermediate, structured knowledge graphs from retrieved text. Using an automated refinement pipeline and Dense Direct Preference Optimization (DDPO) with SFT regularization, the framework trains models on just ~2,400 examples to pinpoint and filter out noisy or irrelevant information. Crucially, it boosts out-of-domain generalization without requiring changes to standard vanilla RAG inference pipelines.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) grounds language models in external documents, but retrieved context is often messy—filled with irrelevant noise, conflicting facts, or puzzle pieces scattered across multi-hop sources.

Current generation-tuning methods struggle to fix this:

  • Supervised Fine-Tuning (SFT) often overfits and leads to catastrophic forgetting of general abilities.
  • Direct Preference Optimization (DPO) operates end-to-end on the final answer, providing weak intermediate supervision. When models sample pairs stochastically, positive and negative responses drift in phrasing and formatting rather than cleanly isolating factual reasoning errors. Furthermore, standard DPO treats every token with equal importance, diluting the signal on long outputs.

Methods

KARE-RAG tackles these challenges by training the generator to organize knowledge into structured representations before answering, using three core mechanisms:

  1. Knowledge-Aware Sampling: The generator is prompted to extract an intermediate structured knowledge graph (entities, attributes, relationships) from retrieved passages, making factual associations explicit.
  2. Automated Refinement Pipeline: Instead of sampling both chosen and rejected answers stochastically from the base model (which introduces stylistic variance), an expert model (GPT-4o-mini) minimally edits the base model's flawed graph ($y^-_{\text{KG}}$) into a corrected graph ($y^+_{\text{KG}}$). This ensures contrastive pairs share identical phrasing and structural backbones, differing only at the precise factual errors.
  3. Dense Direct Preference Optimization (DDPO) + SFT Regularization:
  4. DDPO: Uses token-level weighting ($\gamma = 1.1$) to concentrate gradients on the modified factual tokens rather than shared boilerplate context.
  5. SFT Loss: Adds an auxiliary SFT regularizer ($\alpha = 0.1$) to prevent "reward collapse" (where both chosen and rejected likelihoods degrade during DPO due to subtle pair differences).

At inference time, the model can run directly in a standard Vanilla RAG setup—it does not need to output the knowledge graph, making the approach zero-overhead during deployment.

Retrieved Passages ──> Base LLM produces flawed KG (y⁻)
                             │
                             ▼
               Expert Model (GPT-4o-mini) refines errors
                             │
                             ▼
                   Corrected KG (y⁺)
                             │
                             ▼
               DDPO Training (Focus on edited tokens)

Datasets

  • Training Data: Constructed from MuSiQue (multi-hop QA), producing 2,401 curated contrastive pairs using Wikipedia articles retrieved via bge-large-en-v1.5.
  • Evaluation Benchmarks:
  • In-Domain: MuSiQue development set.
  • Out-of-Domain QA: Natural Questions (NQ) and PopQA (single-hop), HotpotQA, 2WikiMultihopQA, and WebQuestions (multi-hop).
  • Broader Tasks: TruthfulQA (hallucination/multiple-choice) and Zero-shot RE (relation extraction/slot-filling).
  • General Capabilities: MMLU and MMLU-Pro.

Key Insights and Ideas

  • Structure Matters More Than Summarization: In ablation studies comparing knowledge representations, explicit knowledge graphs beat semi-structured bullet points. Unstructured free-form summaries actually degraded performance after training. Structured graphs provide strong inductive biases that simplify error isolation.
  • Token Weighting Prevents Signal Dilution: Standard DPO treats all tokens equally. Weighting corrected tokens via DDPO prevents long identical contexts from drowning out the few tokens that actually fix the factual error.
  • SFT Loss Stabilizes Preference Collapse: Without an auxiliary SFT loss, the reward model overfits, driving both chosen and rejected rewards down. Adding SFT regularization stabilizes margin learning.
  • Inference Agnostic: The internal representation learned during training improves document comprehension even when deployed in standard Vanilla RAG, Chain-of-Thought (CoT), Chain-of-Note, or IRCoT pipelines.

Key Results

The authors evaluated KARE-RAG across three model families: Llama-3.2-3B-Instruct, Llama-3.1-8B-Instruct, and Qwen2.5-14B-Instruct.

  • Generalization Gains: KARE-RAG achieved an average ~4% Exact Match (EM) improvement across out-of-domain QA datasets (NQ, HotpotQA, PopQA). On Llama-3.1-8B, PopQA EM jumped from 35.43% to 40.88%, and HotpotQA EM rose from 29.52% to 32.36%.
  • Relation Extraction: On Zero-Shot RE, KARE-RAG pushed Llama-3.1-8B F1 from 51.62% to 59.52% and Precision from 49.30% to 58.00%.
  • Outperforming Baselines: Consistently outperformed both SFT instruction tuning (RA-DiT) and standard end-to-end preference tuning (DDR), as well as robust LLM baselines (REALM, RetRobust).
  • Preserved General Knowledge: No regression on general benchmarks; Llama-3.1-8B scored 67.9% vs. 68.0% on MMLU and improved from 43.97% to 44.60% on MMLU-Pro.
  • Low Training Cost: Entire dataset generation cost ~$20; fine-tuning completed in under 1 hour for 3B models and under 4 hours for 14B models on a single A800 GPU using LoRA.

Limitations and Future Work

  • Proprietary Expert Model Dependency: Generating targeted revisions relies on an external frontier model (GPT-4o-mini), meaning data generation is tied to proprietary APIs and prompt filtering.
  • Pre-filtering Discard Rate: The refinement pipeline requires strict answer verification; training samples that fail multi-step validation or where the source document lacks the answer are discarded (only 2,401 pairs were salvaged from ~19.9k samples).
  • Prompt Sensitivity: The knowledge-graph extraction relies on rigid prompt formatting; extending this to specialized technical domains (e.g., medical, legal) may require tailored schema engineering.

Summary updated

BibTeX
@misc{li2025kare,
  author = {Yongjian Li and HaoCheng Chu and Yukun Yan and Zhenghao Liu and Shi Yu and Zheni Zeng and Ruobing Wang and Sen Song and Zhiyuan Liu and Maosong Sun},
  title = {{KARE-RAG: Knowledge-Aware Refinement and Enhancement for RAG}},
  year = {2025},
  eprint = {2506.02503},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.02503},
}
Figure