What is self-reflective retrieval-augmented generation (Self-RAG)?
Self-RAG is a RAG method in which a language model decides for itself when to retrieve, then uses special reflection tokens to judge the relevance of retrieved chunks and whether its own answer is supported by them.
The name stands for Self-Reflective Retrieval-Augmented Generation. Unlike corrective RAG, which scores retrieved documents with a separate lightweight evaluator, Self-RAG has the generating model evaluate itself with reflection tokens learned in training.
- Topic
- Embeddings, document processing and RAG
- Also known as
- Self-Reflective RAG
- Origin
- 2023
How self-reflective retrieval-augmented generation (Self-RAG) works
- In training the model learns special tokens marking whether retrieval is needed and how relevant content is, with labels added to training data by an evaluator model.
- At inference the model first emits a token saying whether retrieval is needed; if so, chunks are retrieved.
- A relevance token is produced per chunk; while writing, the model adds tokens marking whether each part is supported by sources.
- These tokens' probabilities guide the choice among candidates; unsupported answers are dropped.
In more detail
The four reflection token types
The original Self-RAG architecture defines four distinct reflection token types: Retrieve (whether retrieval is needed), IsREL (whether a passage is relevant), IsSUP (whether the generated segment is fully, partially or not supported by the passage) and IsUSE (overall utility of the response on a 1 to 5 scale). Together, these four signals allow fine-grained scoring during decoding rather than a single binary check.
Segment-level beam search and inference latency
Because Self-RAG evaluates and decodes candidate segments across top-K retrieved passages in parallel via segment-level beam search, inference latency and compute cost scale roughly linearly with K compared with standard single-pass RAG. Tuning the beam width, retrieval threshold and reflection token weights (w_rel, w_sup, w_use) is essential to balance faithfulness against response time.
Special reflection tokens versus agentic RAG
Most production RAG stacks achieve adaptive retrieval and self-critique using native tool calling and test-time reasoning in general-purpose LLMs (Agentic RAG) rather than training custom reflection vocabularies. Self-RAG remains valuable when organisations require compact, deterministic, single-model 7B, 13B deployments without multi-step agent loops.
Commonly confused terms
| Term | How it differs |
|---|---|
| Adaptive RAG | Adaptive RAG routes queries before retrieval using a complexity classifier (no retrieval, single-step or multi-step iterative RAG), while Self-RAG performs token-level retrieval decisions, relevance checks and support scoring inside generation. |
| Agentic RAG | Agentic RAG leverages general-purpose tool calling and multi-step reasoning loops in off-the-shelf frontier or reasoning LLMs without custom reflection token training, whereas Self-RAG requires fine-tuning a dedicated model with special reflection tokens. |
Why self-reflective retrieval-augmented generation (Self-RAG) matters for on-premises AI
Its value for an organisation is that the model does not retrieve blindly for every question and flags how far its answer is backed by sources, a signal for tracking faithfulness. It needs a specially trained model, though; prompting alone cannot add it to an off-the-shelf model. In-house use means choosing an open model trained this way or running similar training on company data. Reflection tokens need to be validated on the organisation's own question set.
An IT services company's support assistant answers general questions without retrieval and product-specific ones with knowledge base chunks; answers flagged as unsupported go to a specialist first.
Common questions
How does Self-RAG differ from classic RAG?
Classic RAG retrieves for every question and does not check its answer. Self-RAG decides whether to retrieve, then flags chunk relevance and answer support itself.
Can Self-RAG be used with any model?
No. It needs a model trained to produce reflection tokens. Similar checks can be added to an off-the-shelf model with prompts or a separate evaluator, but that is not Self-RAG itself.
Related terms
- Retrieval-augmented generation (RAG)
- Corrective retrieval-augmented generation (CRAG)
- Adaptive retrieval-augmented generation (Adaptive RAG)
- AI hallucination detection
- AI faithfulness
- AI hallucination
Sources
- Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection, 2023
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, 2020
In the glossary: Glossary, R to Z