Open-Source Reproduction and Explainability Analysis of Corrective Retrieval Augmented Generation

Surya Vardhan Yalavarthi
3/17/2026
cs.IRcs.AIcs.CL

Official code: suryayalavarthi/crag-reproduction (1 star, last commit 2026-03-18).

Abstract

Corrective Retrieval Augmented Generation (CRAG) improves the robustness of RAG systems by evaluating retrieved document quality and triggering corrective actions. However, the original implementation relies on proprietary components including the Google Search API and closed model weights, limiting reproducibility. In this work, we present a fully open-source reproduction of CRAG, replacing proprietary web search with the Wikipedia API and the original LLaMA-2 generator with Phi-3-mini-4k-instruct. We evaluate on PopQA and ARC-Challenge, demonstrating that our open-source pipeline achieves comparable performance to the original system. Furthermore, we contribute the first explainability analysis of CRAG's T5-based retrieval evaluator using SHAP, revealing that the evaluator primarily relies on named entity alignment rather than semantic similarity. Our analysis identifies key failure modes including domain transfer limitations on science questions. All code and results are available at https://github.com/suryayalavarthi/crag-reproduction.

View on arXivView PDF

Code Implementations(1)

Open-source reproduction of CRAG (arXiv 2401.15884) with Wikipedia-based web search, Phi-3-mini generator, and SHAP explainability analysis of the T5 retrieval evaluator

10TeX, ShellMar 17, 20267 months ago

Similar Papers

Cite this paper

@article{yalavarthi2026opensource,
  title  = {Open-Source Reproduction and Explainability Analysis of Corrective Retrieval Augmented Generation},
  author = {Surya Vardhan Yalavarthi},
  year   = {2026},
  eprint = {2603.16169},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.16169v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.16169.svg)](https://codeofpaper.com/paper/2603.16169)

Discussion