Reproduce “Systematic Knowledge Injection into Large Language Models via Diverse Augmentation for Domain-Specific RAG” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Kushagra Bhushan, Yatin Nandwani, Dinesh Khandelwal, Sonam Gupta, Gaurav Pandey, Dinesh Raghu, Sachindra Joshi

PA-RAG trains question-answering models to use retrieved evidence when available and recall domain facts when retrieval fails. It generates multiple correct answer phrasings and randomly varies whether training examples include relevant passages or distractors. On two Redbook datasets, it outperforms baselines in token-level recall; Mistral-7B reaches 77.6% versus RAFT’s 70.6% on Book 1, without eliminating forgetting.

Key insights

  • Existing fine-tuning methods like RAFT exhibit "conditional memorization bias," where static assignment of retrieval success/failure during training negatively impacts the LLM's ability to generalize.
  • Generating multiple, diverse paraphrased answers for the same question is crucial for deep knowledge internalization, moving beyond mere memorization of specific response patterns.
  • Combining domain identifiers with a self-selective replay buffer provides a practical and effective strategy to balance new domain knowledge acquisition with the retention of the LLM's general capabilities.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.