Self-RAG is a fine-tuning framework where a language model learns to generate special reflection tokens that control retrieval and critique its own output. Unlike standard RAG, which retrieves once before generation, Self-RAG decides when to retrieve, which passages are relevant, and whether its output is supported by the evidence—all through discrete tokens inserted into the generation stream.
Glossary
Self-RAG

What is Self-RAG?
Self-RAG is a framework that trains a language model to adaptively retrieve passages on-demand during generation and to critique its own output and retrieved evidence using special reflection tokens to improve factuality.
The model is trained on a corpus annotated with tokens like <Retrieve>, <Relevant>, <Supported>, and <Partially Supported>. During inference, it can actively decide to retrieve on-demand for factual queries while skipping retrieval for creative tasks. This self-critique mechanism enables citation precision and reduces hallucination rate by filtering unsupported claims before they reach the user.
Key Features of Self-RAG
Self-RAG trains a language model to decide when to retrieve external knowledge and when to critique its own output, using special reflection tokens to improve factuality and citation quality.
On-Demand Retrieval
Unlike standard RAG which retrieves once per query, Self-RAG uses a retrieval critic to decide at each generation step whether retrieval is necessary. The model predicts a special [Retrieve] token to trigger a search, avoiding unnecessary retrieval for simple factual knowledge already stored in its parameters. This adaptive mechanism reduces latency and prevents irrelevant context from corrupting the output.
Reflection Tokens for Self-Critique
Self-RAG introduces reflection tokens—special vocabulary items the model generates to critique its own output and retrieved passages:
[Relevant]/[Irrelevant]: Evaluates if a retrieved passage is useful[Supported]/[Partially Supported]/[No Support]: Checks if output is grounded in evidence[Utility: 1-5]: Rates the overall usefulness of the response These tokens are predicted alongside the main text, enabling real-time quality control.
Training with Critic Models
Self-RAG is trained using a critic model that generates synthetic reflection token labels. The process involves:
- A critic (often GPT-4 or similar) evaluates retrieved passages and generated outputs
- The main LM is fine-tuned on data augmented with these reflection tokens
- The model learns to internalize the critic's judgment, enabling self-evaluation at inference time without external tools This creates a single model capable of both generation and quality assessment.
Segment-Level Beam Search
During inference, Self-RAG generates multiple output segments in parallel using beam search over reflection token predictions. For each segment, the model:
- Predicts whether to retrieve
- If yes, retrieves and evaluates relevance
- Generates text and predicts support/utility scores
- Selects the best segment based on a weighted score combining factuality and fluency This ensures the final output maximizes both truthfulness and readability.
Improved Factuality Over Standard RAG
Self-RAG demonstrates significant improvements in factual accuracy across benchmarks:
- FactScore on biography generation: outperforms standard RAG by explicitly rejecting irrelevant passages
- Citation precision: higher than retrieval-augmented baselines because the model critiques whether each claim is supported
- Reduced hallucination: the
[No Support]token allows the model to acknowledge knowledge gaps rather than fabricating answers The framework is particularly effective for long-form generation where factual drift accumulates.
Comparison with Corrective RAG (CRAG)
While both Self-RAG and Corrective RAG (CRAG) improve retrieval quality, they differ architecturally:
- Self-RAG: A single fine-tuned LM that internally decides when to retrieve and self-critiques using reflection tokens
- CRAG: An agentic system with separate retrieval evaluator, web search fallback, and knowledge refinement modules Self-RAG's unified approach reduces system complexity, while CRAG offers more explicit control over each retrieval decision. Both represent the shift toward agentic RAG architectures.
Self-RAG vs. Standard RAG vs. Corrective RAG
A feature-level comparison of three retrieval-augmented generation paradigms, highlighting differences in retrieval control, self-critique mechanisms, and error correction strategies.
| Feature | Standard RAG | Corrective RAG (CRAG) | Self-RAG |
|---|---|---|---|
Retrieval Trigger | Always retrieves before generation | Always retrieves before generation | Adaptive; model decides when to retrieve |
Retrieval Quality Assessment | |||
Self-Critique Mechanism | |||
Reflection Tokens | |||
Fallback on Poor Retrieval | Triggers web search or knowledge refinement | Generates without retrieval or critiques evidence | |
Multi-Hop Retrieval Capability | Limited; single-pass retrieval | Supported via iterative correction loop | Supported via on-demand retrieval tokens |
Hallucination Rate | 0.5% | 0.3% | 0.1% |
Primary Architecture | Bi-encoder + frozen LLM | Retrieval evaluator + agentic loop | Fine-tuned LM with special reflection tokens |
Frequently Asked Questions
Clear, technical answers to the most common questions about the Self-RAG framework, its reflection tokens, and how it improves factual grounding over standard RAG.
Self-RAG is a framework that trains a single language model to adaptively retrieve passages on-demand during generation and to critique its own output and retrieved evidence using special reflection tokens to improve factuality. Unlike standard RAG, which blindly retrieves a fixed number of documents for every prompt, Self-RAG learns when retrieval is necessary and when the model's parametric knowledge is sufficient. The model generates discrete critique tokens—such as [Retrieve], [IsSupported], [IsRelevant], and [IsUseful]—at predefined points in the generation process. These tokens act as an internal feedback loop: the model decides to retrieve, evaluates the relevance of each fetched passage, assesses whether its generated sentence is supported by the evidence, and determines the overall utility of the output. This self-reflective mechanism allows the model to dynamically control the retrieval process, cite sources explicitly, and produce more factually grounded responses than traditional RAG pipelines.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Key concepts and metrics that define the Self-RAG framework for adaptive retrieval and self-critique in language model generation.
Reflection Tokens
Special tokens inserted during training that enable a language model to critique its own output and retrieved passages. These tokens signal whether to retrieve, assess relevance, and verify factual support.
- Retrieve: Decides if external knowledge is needed
- ISREL: Scores relevance of retrieved passages
- ISSUP: Checks if output is fully supported by evidence
- ISUSE: Evaluates overall response utility
Adaptive Retrieval Trigger
A learned mechanism that allows the model to decide on-demand when to fetch external knowledge rather than retrieving for every query. This reduces unnecessary retrieval calls and latency.
- Trained via the Retrieve token prediction
- Skips retrieval when parametric knowledge suffices
- Reduces compute cost vs. always-retrieve RAG
Critique & Generation Pipeline
Self-RAG processes each segment sequentially: Retrieve → Generate → Critique. The model generates one segment, critiques it using reflection tokens, and may trigger re-retrieval or regeneration if the critique fails.
- Enables multi-hop reasoning across segments
- Each segment is independently verified
- Outputs include explicit citation signals
Faithfulness Metric (ISSUP)
The ISSUP (Is Supported) token evaluates whether a generated claim is fully grounded in the retrieved evidence. This provides a direct, token-level faithfulness signal.
- Classifies output as Fully Supported, Partially Supported, or No Support
- Enables automatic hallucination detection
- Trained on synthetic data with labeled support levels
Retrieval Relevance Scoring
The ISREL token assesses whether each retrieved passage is relevant to the current generation context. Irrelevant passages are discarded before generation, preventing distraction.
- Filters out distractor documents in real-time
- Improves citation precision by only using relevant sources
- Works with any underlying retriever (dense or sparse)
Training Data Construction
Self-RAG requires a specialized training corpus where each output segment is annotated with reflection tokens. This is typically created using a critic model (e.g., GPT-4) that labels retrieved passages and generated text.
- Critic model generates ISREL, ISSUP, and ISUSE labels
- Training data includes both positive and negative examples
- Enables the model to learn self-correction behaviors

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us