IN THIS BREAKDOWN · 10 SECTIONS
You can read 21% of this breakdown.
The paper in one minute
Retrieval-augmented generation prepends retrieved passages to the prompt and hopes the model uses them well. It retrieves even when the input needs no facts (write an essay about your summer), it passes along irrelevant passages, and nothing checks that the answer follows the evidence. Akari Asai, Hannaneh Hajishirzi and colleagues at the University of Washington, AI2 and IBM proposed Self-RAG, which makes those judgments part of the model's own output.
The model gets four kinds of reflection tokens. Retrieve says whether to fetch passages before the next sentence. IsRel says whether a retrieved passage is relevant. IsSup says whether the sentence just written is fully, partially or not supported by the passage. IsUse rates the whole answer's usefulness from 1 to 5.
Training happens in two steps. GPT-4 labels 4,000 to 20,000 examples per token type, and a critic (Llama 2 7B) learns to reproduce those labels. The critic and a retriever then annotate 150,000 instruction-output pairs offline: they insert passages where retrieval helps, and add the relevance, support and utility tokens. The generator (Llama 2 7B or 13B) is trained on that corpus with the ordinary next-token loss, so at inference it emits reflection tokens itself, without a separate critic or reward model.
At inference, the model works one sentence at a time. If it predicts retrieval (or the probability of Retrieve=Yes passes a threshold), it retrieves passages, writes one candidate sentence per passage in parallel, and scores each by its relevance, support and utility tokens. A segment-level beam search keeps the best candidates. The weights on each score can be changed at inference: weight support higher for citation precision, lower for fluency.
On six tasks (open-domain QA, fact verification, multiple-choice reasoning, biographies and long-form QA with citations), Self-RAG beat open models with or without retrieval and beat retrieval-augmented ChatGPT on several.
Research notes: the problem, approach and results
PopQA accuracy for Self-RAG 13B, against 50.8 for retrieval-augmented ChatGPT and 46.1 for Alpaca 13B with retrieval
ASQA citation precision for Self-RAG 13B, against 65.1 for retrieval-augmented ChatGPT
PopQA for the 7B ablation with the default retrieval threshold against retrieving only when the model predicts Retrieve=Yes
Standard RAG retrieves a fixed number of passages for every input, whether or not the task needs them, and nothing checks that the output actually follows the passages. Irrelevant passages hurt quality, and citations are often unsupported.
Add reflection tokens to the vocabulary: Retrieve (yes, no, continue), IsRel (relevant or not), IsSup (fully, partially or not supported) and IsUse (utility 1 to 5). A critic distilled from GPT-4 inserts them into 150k training examples offline; the generator learns to emit them, and decoding ranks candidate sentences by them.
Self-RAG 7B and 13B beat open models with and without retrieval on all six tasks and beat retrieval-augmented ChatGPT on PopQA, TriviaQA, PubHealth and ASQA citation precision (70.3 against 65.1). Open retrieval baselines had ASQA citation precision of 2 to 5.5.
Why it matters to an FDE
Self-RAG is one of the most cited RAG papers and the origin of patterns you will see everywhere: decide whether to retrieve, grade passages before using them, check that the answer is supported, and cite per sentence.
You can apply the pattern without training. The four judgments map directly onto pipeline steps: a retrieval router, a passage grader, a groundedness check on each sentence, an answer-quality score. Many production RAG systems implement them with prompts or small classifiers rather than special tokens.
Retrieval decisions are where the risk is. In the paper's own ablation, letting the model decide when to retrieve, with no threshold to push it, lost 17 points on PopQA. The reported numbers use a threshold that makes it retrieve almost always. For factual products, default to retrieving.
Grounding checks cost compute. Writing one candidate per passage and keeping a beam multiplies generation work by up to ten per sentence. Budget latency before promising per-sentence verification.
Citation precision is a trainable property. Open models with plain retrieval almost never produced supported citations in this benchmark; a model trained to cite reached 70%.
Understand the mechanism. Try it on a real problem.
Unlock this breakdown and 99 more papers.
Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.
6 months · One payment · No auto-renewal
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦1 results table
- ?5 interview questions with answers
- 03Key takeaways
Token types, training data, decoding knobs, headline results and misreadings to avoid
Free account - 04How it works
Critic distillation, corpus augmentation, the inference loop and the scoring rule
Premium - 05The numbers that matter
Main results, ablations, customization, retrieval frequency, data scale and human checks
Premium - 06Try it yourself
Implement the critique scoring both ways, check the headline comparisons, and count decoding work
Premium - 07Where it breaks
Retrieval decisions, evaluation asymmetries, cost, inconsistencies and dated components
Premium - 08Using it on a deployment
Bringing Self-RAG's judgments into a customer's RAG pipeline
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
