Abstract
Retrieval-Augmented Generation (RAG) is the standard for grounding Large Language Models (LLMs) in domain-specific data, yet it remains vulnerable to retriever failures. This paper introduces PA-RAG (Paraphrase Augmentation for RAG), a framework that systematically injects domain knowledge into an LLM's parameters while ensuring it maintains the ability to use or ignore retrieved context. By utilizing diverse answer paraphrases and varied retrieval scenarios during fine-tuning, PA-RAG achieves up to a 10% relative gain in knowledge recall over existing methods like RAFT while successfully preventing the "catastrophic forgetting" of general reasoning skills.
Introduction
While RAG is powerful, its efficacy is strictly bounded by the retriever's performance. If the retriever fetches irrelevant documents, LLMs often struggle to recover the correct answer from internal memory. Traditional knowledge injection via fine-tuning often suffers from conditional memorization bias—where the model learns to rely solely on external context or ignore it entirely—and canonical answer overfitting, where the model mimics specific phrasing rather than internalizing facts. PA-RAG addresses these issues by training the model to be flexible across diverse retrieval and stylistic scenarios.
Methodology: The PA-RAG Framework
PA-RAG introduces four key components to the fine-tuning pipeline:
- Context Augmentation: Instead of static retriever success or failure, PA-RAG ensures the model sees both scenarios for every question. This teaches the model to identify when retrieved info is relevant and when it must rely on its own internal "parametric" memory.
- Knowledge Paraphrasing (Answer Multiplicity): A teacher LLM generates multiple, stylistically diverse answers for every training question. This forces the model to internalize the underlying facts rather than just mimicking a specific sentence structure.
- Domain Identifiers: Questions are prepended with tags (e.g., "IBM Redbooks") to help the model "bucket" new knowledge, making it easier to distinguish from pre-existing general knowledge.
- Self-Selective Replay Buffer: To prevent catastrophic forgetting of general logic and math skills, the framework maintains a buffer of general instruction-tuning data, using the model's own predictions as targets to maintain versatility.
Experimental Results
The authors evaluated PA-RAG using two IBM Redbooks published in mid-2024, ensuring the content was outside the training cutoff of the base Mistral-7B-Instruct-v0.2 model.
Knowledge Recall and Resilience
PA-RAG consistently outperformed baselines across both datasets. On Book 1, PA-RAG achieved 77.6% recall, compared to 70.6% for RAFT and 68.9% for standard RAG. Crucially, in "No Overlap" scenarios where the retriever fails completely, PA-RAG maintained high accuracy (73.4%), while the base RAG model plummeted to 57.7%.
Component Impact and Generalization
Ablation studies highlighted that Answer Multiplicity (paraphrasing) was the primary driver for improving recall. Removing this component caused the most significant drop in performance, confirming that stylistic diversity prevents overfitting to synthetic training data.
Furthermore, while other fine-tuning methods saw significant drops in general reasoning scores (up to -6.4 points), PA-RAG's drop was minimal (-1.2 points), thanks to the replay buffer and domain identifiers.
Conclusion
PA-RAG provides a robust methodology for enhancing RAG systems through systematic knowledge injection. By addressing memorization bias and stylistic overfitting, it creates models that are both domain experts and versatile generalists. Future work will focus on automating paraphrase selection and scaling the framework to larger frontier models.
Summary updated