Chapter 3 · Adaptive RAG¶
3.1 Why is "always retrieve" not optimal? ★★¶
One-sentence answer
Because retrieval does not always help: for knowledge the model already has, retrieval only adds cost and latency; retrievers are imperfect, and noisy documents distract the model; and, most counter-intuitively, when retrieval quality is poor it turns questions the model would have answered correctly into wrong answers (Mallen et al. 2022). "Whether to retrieve" should therefore be decided per question, retrieving only when the expected gain exceeds the cost; all the methods of adaptive RAG are, in essence, estimating this gain with different signals.
I will address three aspects: the three kinds of cost of always retrieving, formalizing "whether to retrieve" as a cost–benefit decision, and the three decisions adaptive RAG makes.
(1) Questions differ greatly in how much they need retrieval, and always retrieving incurs three kinds of cost.
The standard pipeline from Chapter 0 does the same thing for every question: retrieve the top-k documents, put them in the prompt and generate the answer, with the hidden assumption that retrieval always helps, or at least never hurts. Real questions, however, vary enormously: "What is the capital of France?" is something the model memorized long ago; "What was some company's revenue last quarter?" is something the model cannot possibly know; and "In what year was the alma mater of company A's CEO founded?" requires first finding the CEO, then the CEO's university, and finally the founding year. Handling all three kinds with one pipeline is wasteful for the first and not enough for the last. Concretely, always retrieving incurs three kinds of cost:
- Cost: Every retrieval needs query encoding, a vector search and often a reranker pass; the bigger cost comes afterward, as the retrieved documents add thousands of tokens to the prompt, increasing both prefill compute and the KV cache (see Chapter 0 of the Inference, Evaluation & Deployment direction), and multi-step retrieval calls the LLM again and again. For questions the model already knows, all of this is wasted.
- Noise: Retrievers are imperfect, and the top-k often contains documents that are on topic but do not contain the answer; these documents distract the model and can even lead it astray (see Chapter 4).
- Hurting questions the model already knows: This is the most counter-intuitive point. Mallen et al. (2022) found on PopQA that for questions about popular entities, large models answer well without retrieval, and adding retrieval actually makes them worse. The reason is that the retrieved documents may be inaccurate, and the model tends to trust its context, so it turns a correct answer into a wrong one. In other words, when retrieval quality is poor, retrieval itself becomes a source of errors.
(2) "Whether to retrieve" is therefore a per-question cost–benefit decision.
Putting these three points together, retrieval is worthwhile only when its expected gain exceeds its cost:
Here \(q\) is the question; the difference on the left is how much retrieval raises the probability of answering correctly, i.e. the expected gain from retrieval; \(\mathrm{Cost}(q)\) is the extra expense of retrieval and the longer prompt; \(\lambda\) expresses how much cost we are willing to pay per point of accuracy; and \(\mathbb{1}[\cdot]\) is the indicator function, which equals 1, meaning "retrieve", when the condition holds. For popular facts the gain is near zero or even negative, so we should not retrieve; for long-tail or time-sensitive facts the gain is large, so we must. The difficulty is that both probabilities are unknown before answering. Every method in this chapter is therefore, in essence, estimating this expected gain, just with different signals: the model's uncertainty, the question's complexity, the quality of the retrieved results, and so on.
(3) Adaptive RAG revolves around three decisions, which can be made at different points in time.
- When to retrieve: whether the model is missing knowledge right now, for example uncertainty thresholds, FLARE, and Self-RAG's Retrieve token (see 3.2, 3.3 and 3.5).
- How much to retrieve: whether one retrieval is enough, whether several rounds are needed, or whether to switch to a completely different pipeline, for example Adaptive-RAG and strategy routing (see 3.4).
- Whether to trust the retrieved results: whether what came back is usable, and if not, whether to repair it or switch to another source, for example Self-RAG's IsRel and IsSup tokens and CRAG (see 3.5 and 3.6).
These decisions are also made at different points in time. Deciding before generation, as Adaptive-RAG does by looking only at the question text, is cheapest, but it must guess from the question alone; deciding during generation, as FLARE and Self-RAG do, has more information, because the model has already started answering and can see where it is unsure, at the cost of interleaving retrieval and generation, which adds latency; deciding after retrieval, as CRAG does, can see the quality of the retrieved results directly.
In summary: "always retrieve" hides the assumption that "retrieval is always beneficial"; the starting point of adaptive RAG is that retrieval has both costs and risks, so whether it is worthwhile should be judged per question.
The three decisions of adaptive RAG:
| Decision | Question it answers | Representative methods |
|---|---|---|
| When to retrieve | Does the model need external knowledge right now? | Uncertainty thresholds, popularity gating (Mallen et al. 2022), FLARE, Self-RAG's Retrieve token |
| How much / which strategy | No retrieval, one round, several rounds, or a different pipeline? | Adaptive-RAG, bandit routers, Self-Route |
| Whether to trust the results | Are the retrieved documents usable, or should they be repaired or replaced? | Self-RAG's IsRel / IsSup tokens, CRAG |
Going deeper: the numbers behind retrieval hurting correct answers, and what determines the two probabilities
(1) Mallen et al.'s analysis.
On PopQA, retrieval flipped about 10% of questions from right to wrong; on those questions, the retriever's recall@1 was only 0.14, far below the overall 0.42. In other words, retrieval hurts mainly because on those questions the retrieval itself is inaccurate, while the model trusts its context too much.
(2) Both probabilities depend on the specific model and retriever.
In the formula, \(\Pr(\text{correct} \mid q, \text{no RAG})\) depends on the model's parametric knowledge: the same question may be common knowledge for a large model and long-tail for a small one. \(\Pr(\text{correct} \mid q, \text{RAG})\) depends jointly on whether the knowledge base contains the answer, whether the retriever can find it and whether the model can use it well. Hence "does this question need retrieval?" is not a property of the question itself; it is determined jointly by the question, the model, the knowledge base and the retriever.
Follow-up questions
Follow-up 1: When does retrieval make results worse?
When the model already knows the answer and retrieval quality is poor. The retrieved documents may then be irrelevant or even wrong, and since the model tends to trust its context, it changes an originally correct answer into a wrong one. This happens most easily with large models on popular facts; in addition, distractor documents that are on topic but do not contain the answer can also mislead the model (see Chapter 4).
Follow-up 2: If retrieval can be harmful, why do many systems still retrieve every time by default?
Because errors from not retrieving are often more costly, and the judgment itself has costs and errors. In enterprise settings, many questions involve private data or time-sensitive information that the model cannot possibly know; hallucinations caused by a missed retrieval are usually harder to accept than the cost of one extra retrieval. Moreover, the signals for judging "whether retrieval is needed" are unreliable (see 3.2), so simply always retrieving is in fact a robust baseline. The value of adaptive retrieval lies in saving a great deal of cost without losing accuracy in settings that are cost-sensitive and have a diverse mix of questions.
Follow-up 3: Both probabilities in the formula are unknown before answering, so what is it good for?
It makes explicit the quantity that adaptive RAG actually needs to estimate. Every method can be seen as a different approximation of this expected gain: uncertainty signals approximate "the model does not know", question complexity approximates "how many rounds of retrieval are needed", and a retrieval evaluator approximates "whether the retrieved results are useful". Understanding this makes it clear what each method measures and what it misses.
Common mistakes
- Do not say that retrieval at worst does no harm: When retrieval quality is poor, it turns questions the model would have answered correctly into wrong answers.
- Do not say that adaptive RAG is only about saving money: Avoiding unnecessary retrieval also avoids errors caused by noisy documents.
- Do not treat "whether retrieval is needed" as a property of the question itself: It depends on the specific model, knowledge base and retriever.
3.2 How do you decide when retrieval is needed? ★★¶
One-sentence answer
The core idea is to retrieve only when the model "does not know", using computable signals as a stand-in for "whether the model knows": entity popularity, token probability or entropy, consistency across multiple samples, verbalized confidence or P(IK), hidden-state probes, and learned routers. The fundamental problem is that these signals measure "how confident the model is" rather than "how much retrieval would help", which produces two kinds of mismatch, "confident but wrong" and "unsure, but retrieval cannot help either"; empirically, simple uncertainty methods perform on par with complex adaptive retrieval pipelines (Moskvoretskii et al. 2025).
I will address four aspects: the common signals, the token-probability threshold approach, the example of entity popularity, and the fundamental problem with these signals.
(1) Judging that "the model does not know" requires computable stand-in signals, which fall into three broad groups.
An LLM will not tell us directly whether it knows the answer, so we need a computable signal as a stand-in.
- Signals based on external statistics: for example, the popularity of the main entity in the question, measured by Wikipedia page views. It costs almost nothing extra, but it only applies to factual questions centered on an entity.
- Signals based on the model's output: for example, the token probabilities or entropy of a draft answer, the disagreement among several sampled answers, and verbalized confidence obtained by asking the model directly whether it knows. They need no training, but they require at least one generation and depend on the model's calibration.
- Learned signals: for example, a small classifier (a probe) trained on the model's hidden states, or a router trained with "did retrieval help?" as the label. They are cheap at inference but need labeled data, and may fail when moving to a new domain.
(2) The most common approach is a token-probability threshold: write a draft without retrieval, and retrieve only when unsure.
Here \(x\) is the input, \(y_{<t}\) is what has been generated so far, \(p_\theta(v \mid x, y_{<t})\) is the probability the model assigns at step \(t\) to each word \(v\) in the vocabulary \(\mathcal{V}\), and \(H_t\) is the entropy at step \(t\): the flatter the distribution, the more the model hesitates among candidates, and the higher the entropy. In practice, the model first writes a draft without retrieval; if some token in the draft has probability below a threshold \(\theta\), or the entropy at some step exceeds a threshold \(\eta\), the model is considered unsure and retrieval is triggered. Its advantage is that it needs no training; its drawback is that it looks only at a single generation and is easily affected by wording and calibration.
(3) The example of entity popularity shows that whether retrieval is needed depends on the specific model.
Mallen et al. (2022) found that how well a model remembers a fact is strongly tied to how "popular" the entity is: large models have mostly memorized facts about popular entities, while for long-tail entities even making the model larger improves memorization only a little. Based on this, they searched a popularity threshold on a development set for each relation type (such as "place of birth" or "director"); questions above the threshold are answered by the model directly, and only those below it trigger retrieval. The results show that this needs retrieval for only part of the questions, yet accuracy is actually higher than always retrieving, and the cost drops substantially (the numbers are in "Going deeper"). Another finding is that small models (under 10B) need retrieval for almost every question, so adaptivity helps them very little: the same question is common knowledge for a large model and long-tail for a small one. The method only applies to factual questions centered on an entity and requires entity recognition and linking first, so it cannot be used for open-ended questions, reasoning questions or questions without a clear entity; but it makes the point that "the value of retrieval is concentrated in the long tail the model does not know" very clear.
(4) The fundamental problem with these signals is that they measure "how confident the model is", not "how much retrieval would help".
The two do not always agree, which produces two kinds of mismatch. One is confident but wrong: the model is sure of a wrong answer, so it does not retrieve and outputs a hallucination. This is more common after RLHF, because alignment training sharpens the output distribution, inflates token probabilities in general and worsens calibration (see Chapter 5 of the Inference, Evaluation & Deployment direction); time-sensitive questions are especially dangerous, since the model firmly remembers the "current CEO" from its training data, but the answer has long been outdated. The other is unsure, but retrieval cannot help either: the model really does not know, but the knowledge base lacks the information or the retriever cannot find it, so retrieval merely adds cost and may bring back misleading documents. In addition, low probability does not necessarily mean missing knowledge: the same meaning can be phrased in several ways, for example "1990" and "nineteen ninety" splitting the probability, and in that case retrieval does not help at all. An ideal signal should therefore consider both the model and the retriever: the model does not know, and retrieval is likely to find the answer. Empirically, the systematic comparison by Moskvoretskii et al. (2025) found that classic uncertainty estimation methods perform on par with recently proposed complex adaptive retrieval pipelines, while being cheaper and better at judging "whether I know". The practical lesson is to get the two baselines, "always retrieve" and "a simple uncertainty threshold", right before designing a new method.
In summary: deciding when to retrieve is, in essence, approximating the expected gain from retrieval with the model's uncertainty; this approximation is imperfect, so it should be supplemented with rules, and the simple baselines should be done well first.
Comparing the common signals:
| Signal | How it is computed | Extra cost | Main weakness |
|---|---|---|---|
| Entity popularity | Page views or frequency of the question's main entity | Near zero (a lookup) | Needs entity linking; only fits entity-centric factual questions |
| Token probability / entropy | Minimum or mean token probability, or entropy, of a draft answer | One generation | Often overconfident after RLHF; low probability may reflect wording rather than missing knowledge |
| Sample consistency | Sample several answers and measure their disagreement (e.g. semantic entropy) | Several generations | Expensive; the model can be consistently wrong |
| Verbalized confidence / P(IK) | Ask the model whether it knows, or train a head to predict it | One short generation | Needs calibration; sensitive to the prompt |
| Hidden-state probe | A small classifier trained on internal activations | Cheap at inference; needs labeled data | Tied to the model; may fail in a new domain |
| Learned router | A small model trained with "did retrieval help?" as the label | Cheap | Needs labels; suffers from distribution shift |
Going deeper: popularity gating results, semantic entropy and a large-scale comparison
(1) Results of popularity gating.
On PopQA, GPT-3 (davinci-003) paired with BM25 needed to retrieve for only about 40% of the questions, with higher accuracy than always retrieving and roughly half the API cost.
(2) Semantic entropy mitigates "paraphrases splitting the probability".
Semantic entropy (Kuhn et al. 2023) samples several answers to the same question, first clusters them by whether they are semantically equivalent, and then computes the entropy over these meaning clusters. "1990" and "nineteen ninety" fall into the same cluster, so they are not mistaken for uncertainty; the entropy grows only when the answers genuinely disagree in meaning. The cost is multiple samples plus a model that judges semantic equivalence. P(IK) (Kadavath et al. 2022), by contrast, trains the model to predict directly "do I know the answer to this question?". The multi-sample approach is closely related to self-consistency (see Chapter 4 of the Inference, Evaluation & Deployment direction).
(3) Conclusions from a large-scale comparison.
Moskvoretskii et al. (2025) compared 35 methods on 6 single-hop and multi-hop QA datasets, including 8 recently proposed adaptive retrieval methods and 27 classic uncertainty estimation methods, using 10 metrics that jointly measure QA performance, self-knowledge and efficiency. They also found that on out-of-distribution data, downstream accuracy changes little, but the ability to judge "whether I know" drops markedly.
Follow-up questions
Follow-up 1: Why is token probability not a reliable signal that "retrieval is needed"?
Because it can both overestimate and underestimate the model's knowledge. It overestimates when, after RLHF, the model is generally overconfident and assigns high probability even to outdated or wrong answers, so retrieval is not triggered. It underestimates when the same meaning has several phrasings and the probability is spread out, so the model looks uncertain even though it actually knows the answer. Moreover, it measures only the model, not whether the knowledge base and retriever can supply the answer.
Follow-up 2: What happens to adaptive retrieval when the model is confident but wrong, and how can this be mitigated?
Retrieval is not triggered and the model outputs a hallucination directly, which is the most dangerous failure of adaptive retrieval. There are three kinds of mitigation:
- Add rules that do not depend on confidence: Force retrieval when the question is time-sensitive ("current", "latest", "this year") or involves private data.
- Replace single-pass token probability with consistency across samples: It is somewhat more sensitive to "confident but wrong".
- Fix calibration at the root: For example, specifically train the model to express uncertainty (see Chapter 4).
Follow-up 3: How does entity popularity relate to a model's parametric knowledge?
The more popular an entity, the more often related facts appear in the pretraining corpus, and the better the model remembers them. Popularity can therefore serve as a cheap proxy for "has the model memorized it": popular entities can skip retrieval, and long-tail entities must be retrieved. But the relationship depends on model scale; small models do not fully remember even popular facts and almost always need retrieval.
Follow-up 4: How do you evaluate whether a "should we retrieve" signal is good?
Measure its ability to predict "will the model get this wrong" separately, rather than looking only at downstream accuracy. One approach is to treat the signal as a predictor of "the model will answer wrongly" and compute its AUROC; at the same time, report accuracy and the number of retrievals at different thresholds, draw the accuracy-versus-cost curve, and compare it with "always retrieve" and "never retrieve" (see 3.7).
Common mistakes
- Do not say that low token probability means the model lacks the knowledge: It may simply be that the same meaning has several phrasings.
- Do not say that a confident model does not need retrieval: Time-sensitive questions and overconfidence after RLHF both lead to "confident but wrong".
- Do not treat the token probabilities of an RLHF-trained model as well-calibrated confidence: Alignment training usually worsens calibration.
- Do not skip the simple baselines: "Always retrieve" and a simple uncertainty threshold are often barely behind complex methods.
3.3 How does FLARE retrieve actively during generation? ★¶
One-sentence answer
FLARE (Jiang et al. 2023) applies "draft first, look it up only when unsure" to long-form generation: at each step it first drafts the next sentence without retrieval, and if any token in it has probability below a threshold, it builds a query from the draft (masking the uncertain tokens, or turning them into questions), retrieves, and rewrites the sentence based on the retrieved results. It is cheaper than fixed-interval retrieval and more "forward-looking", because the query represents what is about to be written; the costs are that it needs token probabilities, adds latency, and depends on the model's calibration.
I will address four aspects: why retrieve during generation, how FLARE works, how the query is built, and its limitations.
(1) In long-form generation, the information needed changes as writing progresses, so retrieving once before generation is not enough.
For short QA, retrieving once before generation is usually enough. But in long-form generation, such as writing a biography, the information the model needs keeps changing as writing progresses: first birth and education, then career, and finally major achievements. If retrieval uses only the original question, the recalled documents are mostly about the beginning, so the later parts have no supporting material and the model must write from memory, which makes it prone to hallucinate. The early fix was fixed-interval retrieval, i.e. retrieving with what was just generated every few tokens or every sentence. However, it is wasteful, because the model is completely sure about many sentences and does not need retrieval for them; and it points the wrong way, because using "what has already been written" as the query finds information that was needed in the past rather than information needed for what comes next.
(2) The core of FLARE is "draft first, look it up only when unsure".
At each step, FLARE (Forward-Looking Active REtrieval) first has the model draft the next sentence \(\hat{s}\) without retrieval:
Here \(x\) is the input, \(y_{<t}\) is the output confirmed so far, \(\hat{s}_{<w}\) is the part of the draft before token \(w\), and \(\theta\) is the probability threshold. If every token in the draft has probability at least \(\theta\), the model is confident and the sentence is accepted as it is; if any token has probability below \(\theta\), a query is built from the draft and used for retrieval, and the sentence is then regenerated based on the retrieved documents, replacing the draft; this repeats until generation ends. \(\theta\) controls how often retrieval happens: \(\theta = 0\) never retrieves, and \(\theta = 1\) retrieves for every sentence. It is called "forward-looking" because the draft represents what the model wants to say next, so using it as the query targets exactly the information the upcoming content needs, which is far more precise than querying with what has already been written.
(3) When building the query, the uncertain tokens must be handled so that wrong information is not carried into retrieval.
Using the draft directly as the query has a hidden risk: the low-confidence tokens are probably wrong. For example, if the model drafts "He won the Nobel Prize in 1987" and "1987" has low probability, putting this possibly wrong year into the query steers the retriever toward irrelevant documents containing "1987". FLARE therefore offers two ways to build the query:
- Implicit (masked) query: Mask out the tokens with probability below another threshold \(\beta\) and retrieve with the rest. The example above becomes "He won the Nobel Prize in ___", keeping only what the model is sure of and letting the retriever find the missing part.
- Explicit (generated) questions: Pick out the low-confidence spans and have an LLM write a question for each, such as "In what year did he win the Nobel Prize?", then retrieve for each and merge the results.
(4) FLARE's limitations are its dependence on token probabilities and calibration, and its higher latency.
It needs token probabilities, which many closed APIs do not fully expose, so its use is limited. Every time retrieval is triggered, the drafted sentence is thrown away and rewritten, and retrieval and generation must alternate sequentially, so the end-to-end latency of long texts rises noticeably; after new documents are inserted, the earlier KV cache may also need to be recomputed. More fundamentally, its trigger relies entirely on token probabilities, so it cannot escape the "confident but wrong" problem of 3.2 either. The follow-up work DRAGIN (Su et al. 2024) improves on it in two respects: when deciding whether to retrieve, it combines a token's uncertainty with its influence on later tokens (measured through attention) and its semantic importance, so retrieval is not triggered just because some unimportant function word has low probability; when building the query, it uses the model's self-attention over the whole context to pick key terms, instead of using only the last sentence.
In summary: FLARE moves "when to retrieve" into a sentence-by-sentence decision during generation and uses "what I am about to write" as the query, so retrieval happens on demand and targets the content about to be generated.
Going deeper: results and FLARE-instruct
(1) Retrieval frequency.
In the paper, 30% to 60% of sentences triggered retrieval on average across tasks. To keep the input short, only the documents retrieved at the current step are kept.
(2) Letting the model write its own retrieval commands works worse.
The paper also compares a variant called FLARE-instruct: few-shot examples teach the model to write "[Search(query)]" itself during generation to trigger retrieval, similar to Toolformer. But the queries the model writes itself are less reliable, and on 2WikiMultihopQA it does clearly worse than FLARE-direct, which uses the draft. On the same dataset, the fixed-interval baseline that retrieves every 16 tokens also lags clearly behind.
| Method | When it retrieves | What it uses as the query | 2WikiMultihopQA EM |
|---|---|---|---|
| Fixed-interval retrieval | Every 16 tokens | What was just generated | 43.2 |
| FLARE-instruct | When the model writes a retrieval command | The query the model writes itself | 42.4 |
| FLARE-direct | When the draft contains a low-probability token | The draft with low-probability tokens masked, or generated questions | 51.0 |
Follow-up questions
Follow-up 1: What does FLARE improve over fixed-interval retrieval?
It does better on both "when to retrieve" and "what to query". Fixed-interval retrieval retrieves whether or not the model is confident, which is wasteful, and it queries with what has already been written, which finds past information. FLARE retrieves only when the draft contains a low-probability token, and it queries with the draft that represents the next sentence, so retrieval targets exactly the information needed next.
Follow-up 2: Why mask the low-confidence tokens before retrieving?
Because low-confidence tokens are probably wrong, and putting them into the query steers the retriever toward wrong documents. After masking them, the query keeps only what the model is sure of, such as "He won the Nobel Prize in ___", and the retriever looks for documents that can fill the gap, which is exactly the knowledge the model is missing.
Follow-up 3: Why keep only the documents retrieved at the current step?
To control the input length and keep the documents relevant to the current content. Long-form generation may trigger many retrievals; accumulating all the documents would make the context grow quickly, raising cost and adding noise, while earlier documents correspond to content that has already been written and help little with the next sentence.
Follow-up 4: Can FLARE be used directly with closed API models?
It is limited by whether the API exposes token probabilities. Both FLARE's trigger and its implicit query rely on per-token probabilities, which many closed APIs do not fully expose. Without probabilities, one can use consistency across multiple samples as the uncertainty signal instead, or let the model trigger retrieval itself as FLARE-instruct does, although the latter performed worse in the paper.
Common mistakes
- Do not say that FLARE retrieves for every sentence: It retrieves only when the draft contains a token below the threshold, and \(\theta\) controls the retrieval frequency.
- Do not say that FLARE requires training: It is an inference-time method that uses an off-the-shelf model and its token probabilities directly.
- Do not say that FLARE queries with what has already been written: It uses a draft of the next sentence, which is exactly what "forward-looking" means.
- Do not assume that FLARE solves "confident but wrong": Its trigger relies entirely on token probabilities, so it is equally affected by calibration problems.
3.4 How does Adaptive-RAG choose a retrieval strategy based on question difficulty? ★¶
One-sentence answer
Adaptive-RAG (Jeong et al. 2024) uses a small classifier (T5-Large) before generation to predict the question's complexity and picks one of three strategies: no retrieval, single-step retrieval or multi-step retrieval (such as IRCoT); the classifier's training labels are built automatically from the actual results of the three strategies, choosing the simplest one when several are correct. It matches "always multi-step retrieval" in less than half the time. More generally, this is a routing problem that trades off quality and cost across several RAG pipelines, which can be implemented with supervised classification, bandits or cascades.
I will address three aspects: how Adaptive-RAG works, why it still works despite an inaccurate classifier and what its limitations are, and its generalization to strategy routing.
(1) Adaptive-RAG extends "retrieve or not" into a three-way choice, using a small classifier to pick the strategy before generation.
The earlier methods only answer the binary question "retrieve or not", but in practice there are more than two options: single-step retrieval is not enough for multi-hop questions, while multi-step retrieval (see Chapter 2) can handle complex questions but calls the LLM and the retriever at every step, which is very wasteful for simple questions. Adaptive-RAG therefore trains a small classifier \(p_\phi\) that takes the question \(q\) and predicts which of three complexity levels it belongs to:
Here A means no retrieval, with the LLM answering directly, B means single-step retrieval, C means multi-step retrieval, and \(\hat{c}\) is the predicted level, after which the matching strategy is run. The classifier is small (T5-Large, about 770M parameters, in the paper), so one pass costs almost nothing compared with an LLM call. The hard part is where the training labels come from, since no dataset annotated with "question complexity" exists. The paper builds them automatically: for each training question, all three strategies are run; if no retrieval already answers correctly, the label is A; if no retrieval fails but single-step retrieval succeeds, the label is B; if only multi-step retrieval succeeds, the label is C; and when several strategies succeed, the simplest is chosen, because the goal is to answer correctly at the lowest cost. Questions that all three strategies get wrong cannot be labeled by outcome, so the dataset's own bias is used to fill in the labels: questions from single-hop datasets (such as NQ and TriviaQA) are labeled B, and those from multi-hop datasets (such as HotpotQA and MuSiQue) are labeled C.
(2) The classifier itself is inaccurate, but because the cost of errors is asymmetric, the system still works well; its limitation is that complexity is relative to the model.
In the paper, the classifier's overall accuracy is only about 54.5%, yet the system as a whole still performs well. The reason is that a large share of the errors "upgrade" a simple question to a more expensive strategy, for example predicting A as B, which only costs a bit more while the answer is usually still correct; what really hurts accuracy are "downgrade" errors, such as sending a question that needs several steps to single-step retrieval. With perfect labels (an oracle classifier), both accuracy and efficiency are better, which shows there is a lot of room to improve the classifier. It also has two more fundamental limitations. Complexity is relative to the model: the same question may be A for GPT-4 but B or C for a 3B model, and since the labels come from running a specific LLM, switching LLMs means collecting labels again. In addition, the classifier sees only the question text: it knows neither how the retriever performs on this question nor the model's actual state while answering, so it can only guess complexity from surface features of the question (length, phrasing, whether it mentions several entities).
(3) Adaptive-RAG generalizes to routing among several RAG pipelines.
More generally, one can prepare a set of candidate pipelines \(\mathcal{A}\), such as no retrieval, single-step RAG, multi-step RAG, putting the whole document into a long context, GraphRAG, web search, or even a larger model, and let a routing policy \(\pi\) pick one pipeline for each question to get the best balance between quality and cost:
Here \(\mathrm{Quality}(a, q)\) is how well pipeline \(a\) answers question \(q\), for example whether it is correct; \(\mathrm{Cost}(a, q)\) is its cost, for example the number of retrievals, LLM calls, tokens or latency; and a larger \(\lambda\) leans more toward saving cost. There are three main ways to implement routing:
- Supervised classification: This is Adaptive-RAG's approach: run each pipeline offline to obtain labels, then train a classifier. It is simple, but the labels are noisy, and the assumption that "each question has exactly one best strategy" is too rigid.
- Bandits or reinforcement learning: MBA-RAG (Tang et al. 2024) treats each retrieval strategy as an arm of a multi-armed bandit and uses a lightweight encoder to output the probability of choosing each arm from the question, with a reward that considers both whether the answer is correct and how many retrieval steps were used. It only needs feedback on "the strategy that was chosen", so there is no need to run every strategy to create labels, and it can keep learning online and discover better choices through exploration.
- Cascades: Try the cheap option first and escalate if it fails. A typical example is Self-Route (Li et al. 2024), which chooses between RAG and long context: the model first answers from the top-k retrieved chunks only and is allowed to output "unanswerable", and the questions it cannot answer are then passed to the long context (details in Chapter 2).
In summary: the core of Adaptive-RAG is allocating the retrieval budget by question difficulty: spending little on simple questions and more on complex ones, with a cheap router trained on automatically built labels; it generalizes further to quality–cost routing among several RAG pipelines.
Adaptive-RAG's three strategies:
| Label | Question type | Strategy | Rough cost |
|---|---|---|---|
| A | Simple; the model already knows | No retrieval; the LLM answers directly | 1 LLM call |
| B | Moderate; one fact to look up | Single-step RAG | 1 retrieval + 1 LLM call |
| C | Complex; multi-hop reasoning | Multi-step RAG (e.g. IRCoT, interleaving retrieval with chain-of-thought) | Several retrievals + several LLM calls |
Going deeper: results, classifier errors and MBA-RAG's details
(1) Effectiveness and efficiency.
With GPT-3.5, Adaptive-RAG reaches almost the same F1 as "always multi-step retrieval" (50.91 vs 50.87) in less than half the time: with single-step RAG's time set to 1, the two take 1.46 and 3.33 respectively.
(2) Classifier errors.
The classifier's overall accuracy is about 54.5%, and its accuracy on class A (no retrieval needed) is only about 30%. A large share of the errors assign a question to a more expensive strategy, which mainly increases cost; only assigning a complex question to a cheaper strategy directly lowers accuracy.
(3) MBA-RAG's details.
MBA-RAG uses DistilBERT as the encoder, and its reward penalizes the number of retrieval steps, so a choice that answers correctly but takes many steps is still penalized, which encourages choosing the cheaper strategy as long as the answer is correct.
Follow-up questions
Follow-up 1: Why is the simplest strategy chosen as the label when several strategies answer correctly?
Because the goal of routing is to answer correctly at the lowest cost. If the question can be answered correctly without retrieval, retrieving is wasteful; using the cheapest correct strategy as the label teaches the classifier "the lowest retrieval depth that is sufficient", which saves cost without losing accuracy.
Follow-up 2: If you switch to a different LLM, can Adaptive-RAG's classifier be reused as is?
Usually not. The labels come from running the three strategies with a specific LLM and reflect how hard a question is "for that model"; with a stronger or weaker model, the retrieval depth a question needs changes, so the three strategies must be run again to collect labels and the classifier retrained.
Follow-up 3: What are the pros and cons of an up-front router versus a cascade?
An up-front router is cheap but cannot recover, while a cascade is safer but may add latency. An up-front router makes a single choice at the start, so its overhead is small, but it sees no execution results, and a wrong choice cannot be fixed; a cascade checks results as it goes and can escalate on failure, which is safer, but failed attempts add latency, and it depends on the model correctly realizing "I cannot answer this", which brings us back to calibration. This is the same kind of problem as LLM routing between small and large models, except that the candidates are RAG pipelines instead of models.
Follow-up 4: Why use a bandit instead of supervised classification for strategy selection?
Because a bandit does not need to run every strategy on every question to create labels. Supervised classification must run each strategy offline, which is expensive, and the labels are noisy; a bandit only needs feedback on the strategy it chose, can learn online and discover better choices through exploration, and can include a cost term directly in the reward. The price is that an exploration strategy must be designed, and the choices early in training may be unstable.
Common mistakes
- Do not say that Adaptive-RAG's classifier judges a question's "objective difficulty": The labels come from a specific model and retriever, so complexity is relative.
- Do not conclude that the method is ineffective because the classifier is only about 55% accurate: The cost of errors is asymmetric, and upgrade errors mainly add cost.
- Do not say that Adaptive-RAG makes decisions during generation: It makes a single choice before generation, based on the question text.
- Do not compare routing methods on accuracy alone: The goal of routing is a trade-off between quality and cost, so cost must be reported as well.
3.5 How does Self-RAG use reflection tokens to control retrieval and generation? ★★¶
One-sentence answer
Self-RAG (Asai et al. 2023) adds four kinds of reflection tokens to the vocabulary: Retrieve decides whether to retrieve, IsRel judges whether a document is relevant, IsSup judges whether the generated content is supported by the document, and IsUse rates whether the whole answer is useful. In training, a critic is first trained on GPT-4's labels and then used offline to insert reflection tokens into the training corpus, on which the generator receives ordinary next-token training; at inference, the probability of Retrieve decides whether to retrieve, candidates are generated in parallel for several documents, and a segment-level beam search uses a weighted score of the critique tokens, with weights that can be adjusted at inference time.
I will address four aspects: Self-RAG's motivation, the four reflection tokens, the training method and the inference method.
(1) Motivation: let the model learn to judge for itself when to retrieve, whether a document is usable and whether its output is grounded.
Ordinary RAG has three problems: it retrieves whether or not retrieval is needed; it always concatenates \(k\) documents whether or not they are relevant; and after generating, it never checks whether the answer is actually supported by the documents. The idea of Self-RAG is that instead of building lots of rules and extra modules around the model, we should train the model to make these judgments itself. Concretely, several kinds of special reflection tokens are added to the vocabulary, and the model outputs them during generation just like ordinary words, to express "should I retrieve now?", "is this document relevant?", "is the sentence I just wrote supported by the document?" and "is the overall answer useful?". Retrieval decisions, document filtering and self-checking are thus unified into a single next-token generation process.
(2) The reflection tokens consist of one retrieval token and three critique tokens.
Let \(x\) be the input, \(d\) a retrieved document, and \(y\) a segment of generated text (one sentence in the paper).
- Retrieve decides when to retrieve: Its values are yes, no or continue (keep using the current document), indicating whether retrieval is needed before generating the next segment.
- IsRel judges whether a document is relevant: Its values are relevant or irrelevant, indicating whether document \(d\) helps answer \(x\).
- IsSup judges whether the generated content is supported by the document: Its values are fully supported, partially supported or no support, indicating whether the claims in \(y\) are backed by \(d\); this maps directly to faithfulness (see Chapter 4).
- IsUse rates overall usefulness: At the end it gives the whole answer a score from 1 to 5.
The latter three are collectively called critique tokens. Here is a typical output: the model decides to retrieve, reads a document, judges it relevant, writes a sentence and judges it fully supported; then it decides that the next sentence needs no retrieval and writes it directly; finally it scores the whole answer.
x → [Retrieve=Yes] <p> d </p> [IsRel=Relevant] y_1 [IsSup=Fully supported]
→ [Retrieve=No] y_2 → ... → [IsUse=5]
(3) In training, an offline critic writes its judgments into the training data, so the generator only needs ordinary next-token training.
Self-RAG's training involves two models: a critic \(\mathcal{C}\) and a generator \(\mathcal{M}\). It first uses GPT-4 to label sampled input–output pairs with reflection tokens, and then trains a Llama 2-7B as the critic on this data, which effectively distills GPT-4's judgment into a cheap small model (distillation is covered in Chapter 9 of the LLM Training Pipeline direction). Next, the critic processes the generator's training corpus offline: for each output segment, the critic decides whether retrieval is needed there; if so, the retriever fetches documents, and the critic judges whether they are relevant and whether the segment is supported, and finally gives the whole output an IsUse score; these reflection tokens and documents are inserted back into the text, forming an augmented corpus. Finally, the generator (Llama 2 7B and 13B, with the vocabulary expanded to include the reflection tokens) is trained on this corpus with plain next-token prediction, except that the target sequence contains both the normal output and the reflection tokens; the inserted retrieved documents are masked out of the loss, because the model should learn to use documents, not to generate them. An offline critic is used, rather than calling a reward model online during training as in RLHF, because the online approach requires sampling, scoring and a PPO update at every step, which is expensive; Self-RAG writes the critic's judgments into the training data in advance, so training the generator is just ordinary SFT, which is both cheap and stable. The price is that the generator only imitates the critic's labels, so its ceiling is bounded by the critic and, in turn, by the quality of GPT-4's judgments.
(4) At inference, reflection tokens let us control the model's behavior without retraining.
Before generating each segment, the system checks whether the model's probability of outputting Retrieve=Yes exceeds a threshold \(\delta\): a lower threshold means more retrieval, which suits fact-heavy tasks, and a higher threshold means less retrieval, which suits creative writing. When retrieval is needed, \(K\) documents are fetched and one candidate segment is generated conditioned on each, and each candidate carries the model's predicted IsRel, IsSup and IsUse. Each candidate is then scored by "generation probability + a weighted score of the critique tokens", and the top-scoring candidates are kept to continue generating the next segment, which is a segment-level beam search (the scoring formula is in "Going deeper"). This weighted score is a soft constraint that only affects ranking; one can also use hard constraints and discard any candidate that outputs an undesirable token, for example every candidate with IsSup=no support. The weights can be adjusted at inference time, which is a very practical feature of Self-RAG: when a task stresses accurate citation, raise the weight of IsSup; when fluent and complete answers matter more, raise the weight of IsUse. The same model can switch between "faithful" and "useful" just by changing the weights.
In summary: the core of Self-RAG is turning retrieval decisions, document filtering and self-checking into tokens the model generates itself, so they are handled within one model and can be tuned at inference time.
The four reflection tokens:
| Reflection token | Input | Values | Meaning |
|---|---|---|---|
| Retrieve | \(x\) (or \(x, y\)) | yes, no, continue | Should I retrieve now? ("continue" means keep using the current document) |
| IsRel | \(x, d\) | relevant, irrelevant | Does document \(d\) help answer \(x\)? |
| IsSup | \(x, d, y\) | fully supported, partially supported, no support | Are the claims in \(y\) backed by \(d\)? |
| IsUse | \(x, y\) | 5, 4, 3, 2, 1 | How useful is \(y\) as a response to \(x\)? |
Going deeper: the training objectives, the inference scoring formula and the default settings
(1) Training objectives.
The left objective trains the critic \(\mathcal{C}\): given input \(x\) and output \(y\), predict the reflection token \(r\) with a standard language-modeling loss; the dataset \(\mathcal{D}_{\text{critic}}\) comes from GPT-4's labels, with 4k to 20k examples collected per token type, each type using a dedicated instruction and few-shot examples. The right objective trains the generator \(\mathcal{M}\): on the critic-annotated corpus \(\mathcal{D}_{\text{gen}}\), it predicts both the normal output \(y\) and the reflection tokens \(r\).
(2) The inference scoring formula.
Here \(y_t\) is the candidate for segment \(t\), \(d\) is the document it used, and \(p(y_t \mid x, d, y_{<t})\) is the segment's generation probability; \(\mathcal{S}\) is the critique score, a weighted sum over the three types of critique token; \(s_t^G\) is the probability of the most desirable value \(\hat{r}^G\) of type \(G\) (for example, fully supported for IsSup), normalized over all \(N^G\) values of that type; and \(w^G\) is the weight.
(3) Default settings.
The Retrieve threshold \(\delta\) defaults to 0.2 and is compared with the probability of Retrieve=Yes after normalizing over the values of Retrieve; the weights default to 1.0 for IsRel and IsSup and 0.5 for IsUse; and the beam width of the segment-level beam search defaults to 2. In a small human evaluation on 50 samples, the paper found that the predicted IsRel and IsSup tokens mostly agreed with human judgments.
Follow-up questions
Follow-up 1: Why does Self-RAG use an offline critic instead of an RLHF-style online reward?
To lower training cost and keep training stable. The online approach requires continual sampling during training, scoring with a reward model and PPO updates (see Chapter 6 of the LLM Training Pipeline direction), which is expensive and unstable; Self-RAG writes the critic's judgments into the data in advance, so the critic plays no part in generator training, which becomes ordinary SFT. The price is that the generator can only imitate the critic, so its ceiling is limited by the quality of the critic's judgments.
Follow-up 2: Why are the retrieved documents masked out of the loss when training the generator?
Because the model should learn to use documents, not to generate them. The documents are retrieved from outside and are not content the model is supposed to output; computing the loss on them would teach the model to "fabricate" text that looks like retrieved results, which both wastes capacity and encourages hallucination. With masking, the model learns only from its own output and the reflection tokens.
Follow-up 3: How can you make Self-RAG care more about citation accuracy without retraining?
Raise the weight of IsSup, or apply a hard constraint on IsSup. After raising \(w^{\text{IsSup}}\), the beam search favors candidates that are fully supported by the documents; a stricter approach is to discard every candidate with IsSup=no support. In addition, the retrieval threshold \(\delta\) can be lowered so that the model retrieves more often.
Follow-up 4: How do Self-RAG and FLARE differ in deciding when to retrieve?
FLARE uses a by-product signal, while Self-RAG uses a learned one. FLARE does no training and uses the token probabilities of the drafted sentence to decide whether to retrieve; Self-RAG directly trains the model to predict the Retrieve token, which indicates whether retrieval is needed. The former works with any model that exposes probabilities but depends on calibration; the latter's signal is learned specifically, but it needs training, and switching base models means retraining.
Follow-up 5: What are Self-RAG's limitations?
There are four main ones.
- It needs dedicated training: Reflection tokens can only be learned through fine-tuning, so closed API models cannot use it, and switching base models means retraining.
- Its judgments are bounded by the critic: The labels come from a critic distilled from GPT-4, so the critic's biases are learned as they are.
- It grades its own work: At inference, IsSup and IsUse are scores the generator gives, in the same generation, to what it has just written, so it is reasonable to worry that it may be lenient toward its own output, much like self-preference in LLM-as-a-judge (see Chapter 5 of the Inference, Evaluation & Deployment direction). This is a potential risk worth keeping in mind rather than a finding reported in the paper; where citation accuracy matters a lot, a safer setup re-checks support with an independent model.
- Inference is expensive: Generating in parallel for \(K\) documents multiplies generation roughly by \(K\), and with the segment-level beam search on top, latency and compute are clearly higher than for ordinary RAG.
Common mistakes
- Do not say that Self-RAG is trained with reinforcement learning: The generator is trained with ordinary next-token prediction on data annotated by the critic.
- Do not say that an external critic generates the reflection tokens at inference: The critic is used only during training to annotate data; at inference, the generator outputs the reflection tokens itself.
- Do not say that Self-RAG can be applied directly to closed API models: It requires expanding the vocabulary and fine-tuning the model.
- Do not say that Self-RAG's self-assessment has been shown to be biased: This is a risk to keep in mind; in the paper's small human evaluation, the predicted IsRel and IsSup tokens mostly agreed with human judgments.
3.6 How does CRAG correct faulty retrieval? ★¶
One-sentence answer
CRAG (Corrective RAG, Yan et al. 2024) inserts a lightweight retrieval evaluator (a fine-tuned T5-large) between retrieval and generation, scores the relevance of each retrieved document, and uses two thresholds to trigger one of three actions: Correct refines the documents before using them, Incorrect discards the retrieved results and switches to web search, and Ambiguous combines the two. Refinement follows "decompose, then recompose", splitting documents into small strips that are scored and filtered one by one. It is plug-and-play, needs no LLM training, and can be combined with standard RAG or with Self-RAG.
I will address four aspects: CRAG's motivation, the retrieval evaluator and its three actions, knowledge refinement and web search, and CRAG's positioning and costs.
(1) CRAG is concerned with "what to do when retrieval fails".
FLARE and Self-RAG are mainly concerned with "when to retrieve" and assume that what comes back is basically usable. Self-RAG's IsRel can judge whether a document is relevant, but it can only choose among the documents already retrieved; if all of them are wrong, it cannot help. CRAG specifically handles retrieval failure: it first assesses the quality of the retrieved results and then, based on that quality, decides whether to refine and use them, discard them and switch to another knowledge source, or combine both. Another motivation is that a static knowledge base (such as a Wikipedia snapshot from one point in time) has limited coverage, so a broader fallback source is needed when retrieval comes up empty.
(2) A small evaluator scores each document, and two thresholds select one of three actions.
The evaluator is a fine-tuned T5-large (about 0.77B parameters) that takes "question + one document" as input and outputs a relevance score. Each retrieved document is scored separately, and an upper and a lower threshold decide the action:
- Correct: If at least one document scores above the upper threshold, retrieval is considered basically successful, and these documents go through knowledge refinement to remove their noise before being used.
- Incorrect: If every document scores below the lower threshold, retrieval has completely failed, so all retrieved results are discarded and web search is used to obtain external knowledge instead.
- Ambiguous: In between, the evaluator is unsure, so the system hedges by combining the refined internal knowledge with the external knowledge from web search and giving both to the generator.
The design has three levels rather than a binary choice because the evaluator itself makes mistakes: a middle zone that keeps both sources when the evaluator is unsure means that useful documents are not thrown away because of a false "incorrect", and the generator is not left with only irrelevant content because of a false "correct".
(3) Knowledge refinement removes noise inside documents, and web search makes up for the limited coverage of the knowledge base.
- Knowledge refinement follows "decompose, then recompose": Even when a document is relevant as a whole, often only one or two of its sentences are actually useful. CRAG first splits documents into small strips (a few sentences each; a very short document counts as one strip), scores each strip with the same evaluator, filters out the low-scoring ones, and joins the rest back together in their original order, which removes noise and shortens the context at the same time.
- Web search serves as the fallback source: When the action is Incorrect or Ambiguous, an LLM first rewrites the question into at most three keywords, because search engines work better with keyword queries; then a search API retrieves web pages, with Wikipedia pages preferred, because web quality varies widely and Wikipedia is relatively reliable. The retrieved web content also goes through the refinement process above.
(4) CRAG is plug-and-play and complementary to Self-RAG.
CRAG only changes the step between retrieval and generation, and the generator can be any model. The paper combines it with standard RAG and with Self-RAG respectively (the latter called Self-CRAG), with gains on PopQA and other datasets, and the extra cost comes mainly from the evaluator calls. It differs from Self-RAG in that CRAG uses an external small evaluator to judge retrieval quality before generation, needs no LLM training, and can switch to another knowledge source when retrieval fails; Self-RAG has the model judge for itself, assessing both the documents and its own outputs, but it can only choose among the documents it already has and has no fallback source. The two can therefore be combined. CRAG's limitations are that the evaluator needs dedicated fine-tuning and the two thresholds are set by hand per dataset, so a new domain may require retuning; web search also brings new risks, since web content is noisier and may contain errors or even malicious information (see Chapter 4), and search calls add noticeable latency.
In summary: the core of CRAG is checking retrieval quality before generation and having a remedy when retrieval fails: refining what is usable and replacing what is not.
Going deeper: the action rule, the extra cost and a comparison with Self-RAG
(1) The action rule.
Here \(s_i \in [-1, 1]\) is the relevance score the evaluator gives the \(i\)-th document, and \(\tau_{\text{upper}}\) and \(\tau_{\text{lower}}\) are the upper and lower thresholds. The action is Correct if at least one document is good enough, Incorrect only if all of them are poor, and Ambiguous otherwise.
(2) Extra cost.
On PopQA, the average execution time per example rose from 0.363 to 0.512 seconds. However, the paper notes that this is only a rough estimate of the generation phase that leaves out the retrieval and data-processing stages; in a real system, web-search latency often has a bigger effect.
(3) Comparing CRAG and Self-RAG.
| CRAG | Self-RAG | |
|---|---|---|
| Who judges | An external small evaluator (T5-large) | The generator itself (reflection tokens) |
| What is judged | Whether the retrieved documents are relevant | Whether to retrieve, whether documents are relevant, whether the output is supported, whether the answer is useful |
| When it judges | After retrieval, before generation | During generation |
| Does the LLM need training? | No; only the evaluator is trained | Yes; the generator and the critic are trained |
| When retrieval fails | Falls back to web search | Can only choose among the documents it has |
Follow-up questions
Follow-up 1: Why does CRAG have an "Ambiguous" middle category?
Because the evaluator itself makes mistakes, and a middle category reduces the damage from misjudgments. With only two levels, a false Incorrect would throw away documents that are actually useful, and a false Correct would leave the generator with only irrelevant content. When the evaluator is unsure, keeping both the refined internal knowledge and the web search results lets the generator answer from more information.
Follow-up 2: Why use a small evaluator instead of letting the LLM judge document quality itself?
Because it is cheap and focused. A 0.77B model scoring each document is much faster than calling a large model, especially since every question requires evaluating several documents and refinement requires evaluating every strip as well; and it does only one thing, "is this document relevant to the question?", so it can be trained and swapped independently without any change to the generator.
Follow-up 3: Can CRAG and Self-RAG be used together?
Yes, and the paper does exactly that. CRAG guards retrieval quality before generation and switches sources when necessary, while Self-RAG decides when to retrieve during generation and checks whether the output is supported. The paper combines the two as Self-CRAG, which also improves on Self-RAG.
Follow-up 4: What are the risks of bringing in web search?
Mainly noise, misinformation and latency. Web pages vary widely in quality and may contain outdated, wrong or even malicious content that can mislead the generator (knowledge conflicts and malicious content are covered in Chapter 4); search calls also add significant latency. CRAG reduces the noise by preferring Wikipedia pages and refining the web content, but it cannot eliminate these risks entirely.
Common mistakes
- Do not say that CRAG requires fine-tuning the generator: It only trains the retrieval evaluator, and the generator can be any model.
- Do not say that Incorrect keeps the original retrieved results: Incorrect discards all retrieved results and switches to web search; using both sources is what Ambiguous does.
- Do not say that CRAG decides "whether to retrieve": It always retrieves first and then judges whether the retrieved results can be trusted.
- Do not ignore the cost of web search: It brings more noise and higher latency.
3.7 How do these adaptive methods compare, and what problems remain open? ★¶
One-sentence answer
They can be compared along five dimensions: what decision is made, what signal is used, when the decision is made, whether training is needed, and how large the extra cost is. Popularity gating and uncertainty thresholds decide whether to retrieve; FLARE decides sentence by sentence during generation; Adaptive-RAG decides the retrieval depth before generation; Self-RAG uses learned reflection tokens during generation to decide on retrieval and check its output; and CRAG judges after retrieval whether to trust the results. They solve different subproblems and can be stacked. The main open problems are calibrating the "is retrieval needed?" decision, evaluation that accounts for both quality and cost, and moving from hand-designed control flow to agentic RAG, where the model makes these decisions itself.
I will address three aspects: the main threads for comparing these methods, how to combine them in a real system, and the problems that remain open.
(1) Three threads capture the comparison among these methods.
- Signals move from "by-products" to "dedicated learning": Entity popularity and token probability are readily available and need no training, but are not very accurate; Adaptive-RAG, Self-RAG and CRAG all train dedicated models to make the judgment, which is more accurate but needs labeled data and transfers less well.
- The later the decision, the more information and the higher the cost: Decisions before generation are cheapest but can only see the question text; decisions during generation can see where the model is unsure; decisions after retrieval can see the retrieved results themselves.
- They solve different subproblems and can be stacked: A system could perfectly well use a router to set the retrieval depth, then a CRAG-like evaluator to check retrieval quality, and finally an IsSup-like check to verify the output.
(2) In a real system, gate in layers from cheap to expensive.
A sensible design is: first use rules and a lightweight router to handle the obvious cases, for example forcing retrieval for time-sensitive or private-data questions and skipping it for chitchat; then choose single-step or multi-step retrieval according to question complexity; after retrieval, use a small evaluator to filter documents or to trigger a fallback source when retrieval fails; finally, check the output's citations and support (see Chapter 4). The stages are ordered this way because the earlier a stage, the more questions it handles, so it must be cheaper, while the later a stage, the more information it has, so it can be more refined. Before launch, compare against "always retrieve" on the accuracy-versus-cost curve; after launch, keep monitoring whether the routing distribution drifts.
(3) The open problems fall into three areas: calibration, evaluation and control flow.
- The "is retrieval needed?" decision is hard to calibrate: For the decision to be reliable, the signal must be calibrated, meaning that the higher the signal value, the higher the probability that retrieval actually helps. However, models after RLHF are generally overconfident, so "confident but wrong" cases do not trigger retrieval; a model that is confident about facts from its training data cannot tell from its internal signals that the world has changed; when moving to a new domain, the ability to judge "whether I know" drops markedly (Moskvoretskii et al. 2025); and more fundamentally, most signals measure the model's uncertainty rather than the expected gain from retrieval, whereas ideally one should jointly consider whether the model knows, whether the knowledge base contains the answer and whether the retriever can find it.
- Evaluation lacks a common standard: Reporting accuracy alone is meaningless, since "always multi-step retrieval" usually has the highest accuracy, so the number of retrievals, LLM calls, tokens or latency must be reported as well; "needs retrieval" also has no objective ground truth, since it depends on the specific model, knowledge base and retriever; and downstream accuracy can hide poor judgment, since a method may score well on QA while its retrieval decisions have little to do with whether the model actually knows the answer.
- The control flow is still designed by hand: In all these methods the control flow is designed in advance, and the model only makes choices at predefined decision points. Agentic RAG in Chapter 5 goes further, letting the LLM decide through tool calls when to search, what to search for and how many times, and this behavior can be trained end to end with reinforcement learning; but the calibration and cost problems of "when to search" do not disappear, they simply move into the learning of the policy.
In summary: the various adaptive RAG methods estimate "whether retrieval is worthwhile" at different points in time and with different signals; calibration and cost-aware evaluation are the core unsolved problems of this line of work.
Comparing the methods:
| Method | Decision it makes | Signal | When decided | Training needed | Extra cost |
|---|---|---|---|---|---|
| Popularity gating (Mallen et al. 2022) | Whether to retrieve | Entity popularity | Before generation | Threshold tuning only | Negligible |
| Uncertainty threshold | Whether to retrieve | Token probability, entropy or sample consistency | Before or during generation | None | One draft, or several samples |
| FLARE | When to retrieve (per sentence) and what to query | Token probabilities of the drafted sentence | During generation | None | Draft + rewrite for every triggered sentence; sequential latency |
| Adaptive-RAG | How much: none, single-step or multi-step | Question-complexity classifier | Before generation | Small classifier (auto-labeled) | One cheap classifier call + the chosen strategy |
| Strategy routing (bandit, Self-Route) | Which pipeline to run | Learned reward, or the model saying "unanswerable" | Before generation, or as a cascade | Bandit router, or none | A router call, or a failed first attempt |
| Self-RAG | When to retrieve, which document, which output | Reflection tokens (Retrieve, IsRel, IsSup, IsUse) | During generation | Fine-tuning of the generator and the critic | \(K\) parallel generations + segment-level beam search |
| CRAG | Whether to trust, refine or replace the retrieved results | Evaluator relevance scores | After retrieval, before generation | Retrieval evaluator | Evaluator calls + possible web search |
Going deeper: the calibration requirement and how to evaluate
(1) The calibration requirement.
Here \(s\) is the value of the signal, such as an uncertainty score. This condition requires that the higher the signal, the higher the probability that retrieval actually helps; only then does deciding by a threshold make sense. The general definition and measurement of calibration are covered in Chapter 5 of the Inference, Evaluation & Deployment direction.
(2) How to evaluate an adaptive retrieval method.
- Report quality and cost together: Draw the curve of accuracy against cost (number of retrievals, LLM calls, tokens or latency), and compare methods at equal cost.
- Measure self-knowledge separately: Treat the signal as a predictor of "will the model get this wrong" and compute its AUROC, to see whether it can separate questions the model knows from those it does not.
- Broaden the evaluation: Most evaluations focus on short-answer factoid QA (EM/F1), while long-form generation, multi-turn dialogue and time-sensitive questions are studied far less; benchmark data may also already appear in the pretraining corpus, which blurs the judgment of whether the model "already knew" the answer (contamination is covered in Chapter 5 of the Inference, Evaluation & Deployment direction).
- Compare against simple baselines: A new method should at least be compared with "always retrieve" and with "a simple uncertainty threshold".
Follow-up questions
Follow-up 1: If you had to design adaptive retrieval for a production QA system, what would you do?
Gate in layers from cheap to expensive, and validate on the quality–cost curve. First handle the clear-cut cases with rules, for example forcing retrieval for time-sensitive and private-data questions and skipping it for chitchat; then use a lightweight router to choose single-step or multi-step retrieval by complexity; after retrieval, use a small evaluator to filter documents or trigger a fallback source; finally check the output's citations and support. Before launch, compare against "always retrieve" on the accuracy-versus-cost curve; after launch, monitor whether the routing distribution drifts.
Follow-up 2: Why is there no objective ground truth for "needs retrieval"?
Because it depends on the specific model, knowledge base and retriever. The same question is common knowledge for a large model and long-tail for a small one; when the knowledge base lacks the answer, retrieval cannot help; and when the retriever cannot find it, retrieval can even hurt. Adaptive-RAG's automatic labels were obtained by running a specific model, so they no longer hold for another model, and the labels themselves are noisy too.
Follow-up 3: How does adaptive RAG differ from agentic RAG?
The difference is whether the control flow is designed by hand or decided by the model itself. Adaptive RAG makes choices at predefined decision points, such as choosing a strategy before generation or deciding before each sentence whether to retrieve; agentic RAG turns retrieval into a tool and lets the model decide in a loop when to search, what to search for and how many times, and this can be trained end to end with reinforcement learning (see Chapter 5).
Follow-up 4: Now that agents can decide for themselves whether to search, is research on adaptive retrieval still meaningful?
Yes, because the core problem has only moved. An agent still has to judge whether it knows the answer, so the calibration problem remains; and if the reward looks only at whether the answer is correct, the model has no incentive to search less, so the reward needs to account for retrieval cost. In addition, in production systems that are sensitive to latency and cost, cheap gating layers such as rules and lightweight routers remain very valuable.
Common mistakes
- Do not compare adaptive methods on accuracy alone: "Always multi-step retrieval" usually has the highest accuracy, so cost must be compared as well.
- Do not say that one method is better than the others across the board: They solve different subproblems and can be combined.
- Do not say that the later the decision, the better: Later decisions have more information but also higher cost and latency.
- Do not ignore the simple baselines: "Always retrieve" and a simple uncertainty threshold often perform on par with complex methods.