arXiv:2610.33776cs.CLOct 2026

Manuscript Offprint

arXiv:2610.33776

TriageRAG: Failure-Aware Self-Training for Adapting Retrieval-Augmented Language Models to Specialized Domains

Samarth Varshney, Ritu Yadav

ABSTRACT

Retrieval-augmented generation (RAG) lets large language models (LLMs) answer knowledge-intensive questions from retrieved evidence, but adapting a general-purpose RAG system to a specialized domain such as medicine is difficult when only an unlabeled corpus is available. Self-training approaches such as SimRAG address this by letting the LLM write its own question-answer pairs from domain passages and fine-tuning on the pairs that survive a round-trip consistency filter. We observe that these approaches treat every retained example identically: they never ask whether the student already knows the answer, already extracts it correctly from the retrieved context, or fails—and if so, whether the failure lies with the reader or with the retriever. To tackle this, we propose TriageRAG, a failure-aware self-training approach that probes the student on each self-generated question with and without retrieved context, triages it into one of four categories (KNOWN, SOLVED, CONTEXT-FAILURE, RETRIEVAL-FAILURE), and routes each category to the training signal that addresses it, including a parametric route that teaches the reader to answer when retrieval misses. Probing is cheap and repeated every round, so the training mixture follows the student, and the triage histogram doubles as a label-free diagnostic of where the domain gap lies. Experiments on 11 datasets spanning three domains with a Qwen3-4B backbone, and on CS-Bench with Qwen3-8B, demonstrate that TriageRAG outperforms a budget-matched SimRAG by 1.2–6.4 points and is the only method that recovers the closed-book level in every case where retrieval hurts the base model. A single ablation identifies the mechanism: round-trip filtering removes every training context that lacks the evidence, and a reader that never sees such contexts learns to over-trust noisy retrieval.

1 INTRODUCTION

Retrieval-augmented generation (RAG) Lewis et al. (2020); Gao et al. (2023); Asai et al. (2024) grounds the answers of large language models (LLMs) in retrieved evidence, which adapts them to long-tail knowledge without retraining Ovadia et al. (2024) and reduces hallucination Shuster et al. (2021). Adapting a general-purpose RAG system to a specialized domain such as medicine is nevertheless hard: reader and retriever both face a distribution shift, and labeled domain QA data is scarce or private, so fine-tuning has to rely on synthetic data. SimRAG Xu et al. (2025) is a strong recent recipe. It fine-tunes an instruction-tuned LLM on general retrieval-oriented data, prompts the same model to write short-span, multiple-choice and claim-verification questions from unlabeled domain passages, keeps the pairs whose source passage is retrieved in the top-k for the generated question (round-trip consistency), and fine-tunes on the survivors with retrieved contexts.

We start from an observation about what such a pipeline does not look at: every retained pseudo-labeled pair receives the same treatment. Nothing in the loop asks whether the student already knows the answer without context, whether it already extracts it correctly from the retrieved passages, or whether it fails—and if so, whether the failure belongs to the reader (the evidence is in the context but the answer is wrong) or to the retriever (the evidence never reached the context). These problems have different remedies: contextual fine-tuning teaches a reader to use evidence that is present, but it cannot help when the evidence is absent. Worse, the round-trip filter removes exactly the pairs

  1. Triage

Figure

Mt+1M_{t+1} becomes the student for the next round

Figure 1: Overview of TriageRAG. Each round, the student synthesizes (q,a,d)(q, a, d) triples from the unlabeled corpus (span, multiple-choice and claim formats; only self-answerable pairs are kept), is probed closed-book (pcb)(p_{\mathrm{cb}}) and open-book on the top-k retrieved passages (pob(p_{\mathrm{ob}}, evidence hit h)h), and each pair is triaged by the conditions shown and routed to a training signal; the routed mixture is used for LoRA fine-tuning and the updated student re-probes the pool in the next round. The retriever is frozen in our main configuration (Section 3.4).

whose evidence is absent, so the fine-tuned reader never sees a context that lacks the answer and, in a domain where the retriever misses often, learns to trust whatever it is given.

We propose TriageRAG 1^{1}, which lets the student's own behaviour decide how each self-generated example is used (Figure 1). After synthesizing question–answer pairs as in SimRAG, TriageRAG probes the student on every pair with and without retrieved context, triages it into KNOWN, SOLVED, CONTEXT-FAILURE or RETRIEVAL-FAILURE, and routes each category to a different treatment: contextual supervised fine-tuning (SFT) for context failures; a parametric route that trains the reader to produce the verified answer despite an unhelpful retrieved context—the situation it faces whenever retrieval misses—for retrieval failures; and small consolidation shares for the rest. Probing costs a fraction of fine-tuning, so the diagnosis is repeated every round and the mixture follows the student. The triage histogram is itself a label-free diagnostic of where the domain gap lies.

We evaluate on 11 datasets from medicine, natural science and computer science (CS) with a Qwen3-4B backbone, and on CS with Qwen3-8B as well, against SimRAG, a RAFT-style mixture and a random-selection control that share the same Stage-I model, synthetic pool, filter, recipe and budget. Our contributions are:

• A student-aware view of self-training for domain RAG in which each self-generated question is classified by failure type with cheap closed-book and open-book probes, yielding a label-free diagnostic of the domain gap.

• TriageRAG, which routes the four categories to different training signals and iterates, with SFT only and no reward model, judge or labeled data.

• Experiments on three domains and two backbone sizes in which TriageRAG outperforms a budget-matched SimRAG by 1.2–6.4 points, with three training seeds and paired bootstrap intervals on every headline comparison; an ablation that identifies the parametric route as the ingredient behind the gap; and a controlled negative result on tuning the retriever with retrieval failures.

References (59)