Deciding Whether to Retrieve

Adaptive retrieval treated as a decision under cost. The expected gain from retrieving is split into answers it fixes and answers it breaks; the best gate for any signal is proved to retrieve exactly where the expected gain exceeds the cost, to be a threshold when the gain falls as the signal rises, and to trace a concave accuracy–retrieval frontier above the random gate; a calibrated confidence gives the threshold "confidence below the reader's accuracy minus the cost", and reading the retrieved list before deciding is proved never to lower the decision's value when retrieval itself is free. The signals in use are set in this frame: entity popularity (PopQA and Adaptive Retrieval), the model's own confidence and P(IK), query performance predictors, and the per-sentence triggers of FLARE and Self-RAG. A recorded CPU run of two small open models on 1,000 PopQA questions, with a favorable passage corpus that always holds the subject's own introduction, measures each signal's ranking curve: the models' own token probabilities were the best signal, popularity pooled across relation types was close to random, and at costs of 0.1 per retrieval or less no real gate gained more than 0.002 over always retrieving. Worked problems extend the article: a gate that no single threshold can express, the cost of a retrieval in units of accuracy, per-relation thresholds, the value of reading the list first, and a failure of the calibrated-threshold rule.

Two questions from the paper that introduced PopQA: "What is Kathy Saltzman's occupation?" and "What is the capital of Louisiana?" (Mallen et al., 2023, Figure 1). A language model has almost certainly read the second answer many times and the first rarely, if ever. A system that retrieves a Wikipedia passage before answering pays for the retrieval both times, and in the second case the passage can only confirm what the model knew, or, if it is about the wrong thing, talk it out of the right answer. Should the system retrieve for every question, and if not, how should it decide, from what it can see before answering, which questions need a passage?

Adaptive retrieval is the name for systems that make this decision per input (or, during generation, per sentence) instead of always retrieving or never. The decision has a payoff, a better answer, and two kinds of cost: the price of the retrieval itself, in latency, tokens and money, and the risk that the retrieved text leads the model away from an answer it would have given correctly. This article treats the decision as a choice under those costs and asks what the best rule is and what it needs to know.

Here is the route. First we formalize the decision and prove what the best gate is for any signal: retrieve where the expected gain exceeds the cost (Theorem 1), a threshold when the gain falls as the signal rises (Theorem 2), and a concave accuracy–retrieval frontier that every gate can be measured against (Theorem 3). Then we take the signals in use one at a time: the model's own confidence, for which calibration gives a closed-form threshold (Theorem 4); entity popularity, as in PopQA's Adaptive Retrieval; and query performance prediction, where we prove when it pays to read the retrieved list before deciding (Theorem 5). Next we read FLARE and Self-RAG, which decide per sentence during generation, as gates of the same kind. Finally a recorded run of two small open models on 1,000 PopQA questions measures each signal's ranking curve and the thresholds fitted to four costs. The article assumes Retrieval in a Loop, which describes FLARE and Self-RAG as methods; this article does not repeat that description. It also uses Open-Domain Question Answering for the retriever-reader setting and Calibration and Proper Scoring Rules for calibration. Every number from the run is computed by tools/experiments/queries-and-conversations/deciding-whether-to-retrieve.py, which asserts each value shown here.

The decision, formalized

The idea in plain words. Retrieving changes an answer in one of three ways: it fixes a wrong answer, it breaks a right one, or it changes nothing that matters. It also costs something every time. The best rule retrieves exactly where the expected number of fixes minus breaks, given what the gate can see, is larger than that cost.

Setting. Draw a question $q$ at random from the questions a system will be asked. Write $C_0(q) \in \{0, 1\}$ for whether the model's closed-book answer is correct and $C_1(q)$ for whether its answer with retrieval is correct. Their difference $$\Delta_q = C_1(q) - C_0(q) \in \{-1, 0, 1\}$$ is $+1$ when retrieval fixes the answer, $-1$ when it breaks it, and $0$ otherwise. This is the same $\Delta_q$ as in Query Performance Prediction, where it was the change in average precision from expanding a query; here it is a change in correctness. A signal $\phi(q)$ is whatever the gate can compute before deciding: the popularity of the entity asked about, the model's confidence in its own draft, a predictor of how well the retriever will do. A gate is a function $\delta$ from signals to $[0, 1]$, the probability of retrieving; a deterministic gate takes the values 0 and 1 only. A retrieval costs $c \ge 0$, measured in the same unit as one correct answer, so that $c = 0.05$ means that twenty retrievals are worth one correct answer. The cost covers the retrieval call and the longer input the model must then read; Problem 2 converts money and tokens into $c$.

The utility of answering $q$ with gate $\delta$ is the correctness obtained minus the cost paid: $$U = C_0 + \delta(\phi)\,(\Delta - c).$$ Write $g(t) = E[\Delta \mid \phi = t]$ for the expected gain at signal value $t$, and $f(t) = P(\Delta = 1 \mid \phi = t)$, $b(t) = P(\Delta = -1 \mid \phi = t)$ for the probabilities of a fix and of a break, so that $g = f - b$.

Theorem 1 (the best gate for a signal). Among all gates that see only $\phi$, the expected utility is largest for $$\delta^*(t) = \begin{cases} 1 & \text{if } g(t) > c,\\ 0 & \text{if } g(t) < c,\end{cases}$$ with any value allowed where $g(t) = c$. Its expected utility is $E[C_0] + E\big[(g(\phi) - c)^+\big]$, where $x^+ = \max(x, 0)$.

Proof. Since $\delta(\phi)$ is a function of $\phi$, the tower property gives $E[\delta(\phi)(\Delta - c)] = E\big[\delta(\phi)\,(E[\Delta \mid \phi] - c)\big] = E[\delta(\phi)(g(\phi) - c)]$. For every $t$ and every $\delta(t) \in [0, 1]$, $\delta(t)(g(t) - c) \le (g(t) - c)^+$: if $g(t) - c \ge 0$ the left side is at most $g(t) - c$, and if $g(t) - c < 0$ it is at most $0$. Equality holds for $\delta^*$. Taking expectations, $E[U] \le E[C_0] + E[(g(\phi) - c)^+]$, with equality for $\delta^*$. $\square$

Two costs sit in this rule and they are different in kind. The cost $c$ is paid on every retrieval, useful or not. The cost of distracting context is not in $c$ at all: it is the break probability $b(t)$, paid only when the passage leads a model away from an answer it had. Even with $c = 0$, the rule declines to retrieve wherever $b(t) > f(t)$. Assembling the Context found such a case averaged over all its questions, with no signal and under a prompt that confined the model to the passages: with five retrieved passages one strong model answered 0.627 of its questions correctly against 0.693 with none, a difference that page calls not decisive, and the passages that lacked the answer misled the model more often than they silenced it.

Theorem 2 (when the best gate is a threshold). Orient the signal so that larger values mean the model is more likely to know the answer (popularity, confidence). If $g$ is nonincreasing, then the set $\{t : g(t) > c\}$ is an interval unbounded below, so the best gate retrieves exactly when $\phi(q)$ is below a threshold $\theta^*(c)$ (with the boundary point decided either way), and $\theta^*(c)$ is nonincreasing in $c$.

Proof. If $g(t) > c$ and $t' < t$, then $g(t') \ge g(t) > c$. So with every point the set contains every smaller point, which makes it an interval of the form $(-\infty, \theta)$ or $(-\infty, \theta]$, possibly empty or the whole line; put $\theta^*(c) = \sup\{t : g(t) > c\}$. If $c' > c$, every $t$ with $g(t) > c'$ also has $g(t) > c$, so the set for $c'$ is contained in the set for $c$ and $\theta^*(c') \le \theta^*(c)$. $\square$

Without monotonicity no single threshold need be optimal; Problem 1 gives a signal for which the best gate retrieves only in the middle of its range.

The frontier. A cost is one way to state the trade; a budget is the other. Suppose the system may retrieve for a share $\beta$ of the questions. Write $A^*(\beta)$ for the best accuracy that a gate on $\phi$ can reach with $E[\delta(\phi)] = \beta$.

Theorem 3 (the accuracy–retrieval frontier). (a) A gate that retrieves where $g(\phi) > \tau$, retrieves with a fixed probability where $g(\phi) = \tau$, and does not retrieve where $g(\phi) < \tau$, with $\tau$ and that probability chosen so that its budget is $\beta$, reaches $A^*(\beta)$. Such a choice always exists: put $\tau = \inf\{t : P(g(\phi) > t) \le \beta\}$; then $P(g(\phi) > \tau) \le \beta \le P(g(\phi) \ge \tau)$, by right-continuity of $t \mapsto P(g(\phi) > t)$ and the definition of the infimum, and the probability at $g(\phi) = \tau$ is $(\beta - P(g(\phi) > \tau))/P(g(\phi) = \tau)$, any value if $P(g(\phi) = \tau) = 0$. (The budgets 0 and 1 are met by the gates that never and always retrieve.) (b) $A^*$ is concave on $[0, 1]$, with $A^*(0) = E[C_0]$ and $A^*(1) = E[C_1]$, so it lies on or above the straight line between them, which is the accuracy of retrieving for a random share $\beta$ of questions. (c) For every cost $c$, the best expected utility over all gates on $\phi$ equals $\max_\beta \big(A^*(\beta) - c\beta\big)$.

Proof. (a) Call that gate $\delta^\circ$ and let $\delta$ be any gate on $\phi$ with $E[\delta(\phi)] = \beta$. Accuracy is $E[C_0] + E[\delta(\phi) g(\phi)]$ by the tower property, so it is enough to show $E[(\delta^\circ - \delta) g] \ge 0$. Because both budgets are $\beta$, $E[\delta^\circ - \delta] = 0$, so $E[(\delta^\circ - \delta) g] = E[(\delta^\circ - \delta)(g - \tau)]$. The product is never negative: where $g > \tau$, $\delta^\circ = 1 \ge \delta$; where $g < \tau$, $\delta^\circ = 0 \le \delta$; where $g = \tau$, the second factor is zero. (b) Let $\delta_1$ and $\delta_2$ reach $A^*(\beta_1)$ and $A^*(\beta_2)$, and let $0 \le \lambda \le 1$. The gate $\lambda \delta_1 + (1 - \lambda)\delta_2$ takes values in $[0, 1]$, has budget $\lambda\beta_1 + (1 - \lambda)\beta_2$, and, since accuracy is linear in $\delta$, accuracy $\lambda A^*(\beta_1) + (1 - \lambda)A^*(\beta_2)$. The best gate at that budget does at least as well, which is concavity. The endpoints are the gates that never and always retrieve. A concave function on an interval lies on or above its chord. The random gate $\delta \equiv \beta$ has accuracy $E[C_0] + \beta E[\Delta] = (1 - \beta)E[C_0] + \beta E[C_1]$, which is the chord. (c) Every gate has some budget $\beta$, and its utility is its accuracy minus $c\beta$, at most $A^*(\beta) - c\beta$; the gate of part (a) reaches it. $\square$

Part (c) says that a cost picks a point on the frontier: the one where the frontier's slope falls through $c$. Part (b) says that the frontier can bend down: where it falls, the marginal questions have $g < 0$ and retrieving them loses accuracy as well as money. The best possible frontier belongs to the oracle gate, whose signal is $\Delta_q$ itself: it rises with slope 1 while it retrieves the fixes, is flat through the questions that retrieval does not change, and falls with slope $-1$ through the breaks. Its peak, $E[C_0] + P(\Delta = 1) = P(C_0 = 1 \text{ or } C_1 = 1)$, is the accuracy of a system that always knew which memory to trust.

Theorem 3 is about $A^*$, the best gate on a signal, which ranks questions by $g(\phi)$. A measured ranking curve, which retrieves first where the raw signal says (lowest popularity first, say), is a different object. It lies on or below $A^*$ for its signal and coincides with it when $g$ is monotone in the signal in the assumed direction; otherwise it need not be concave and can dip below the random line, as two curves in the run below do at a quarter of the questions.

The model's own confidence as the signal

The idea in plain words. If a model's confidence in its draft is calibrated, the confidence is the probability that the draft is right, and the rule of Theorem 1 becomes a comparison between two accuracies: the model's chance of being right alone, and its chance with a passage.

Let $\phi = \hat p$ be the confidence the model attaches to its closed-book answer. It is calibrated if $E[C_0 \mid \hat p = p] = p$; Calibration and Proper Scoring Rules defines the property and shows how to test it. Write $r(p) = E[C_1 \mid \hat p = p]$ for the accuracy with retrieval among questions on which the model's confidence is $p$.

Theorem 4 (the calibrated-confidence gate). If $\hat p$ is calibrated, then $g(p) = r(p) - p$. If in addition $r(p) - p$ is nonincreasing in $p$, which holds whenever $r(p') - r(p) \le p' - p$ for all $p < p'$, the best gate is a threshold on confidence. In the special case $r(p) = \alpha$ for every $p$ (accuracy with retrieval does not depend on how confident the model was alone), the best gate retrieves exactly when $$\hat p < \alpha - c.$$

Proof. $g(p) = E[C_1 - C_0 \mid \hat p = p] = r(p) - p$ by linearity and calibration. If $r(p') - r(p) \le p' - p$ for $p < p'$, then $r(p') - p' \le r(p) - p$, so $g$ is nonincreasing and Theorem 2 applies. If $r \equiv \alpha$, then $g(p) = \alpha - p > c$ exactly when $p < \alpha - c$. $\square$

The threshold is easy to read: retrieve when the model trusts itself less than it would trust itself with a passage, by more than the cost. If $\alpha \le c$, it never retrieves.

Two remarks keep the theorem honest. First, calibration matters only for reading the threshold off the confidence. The frontier $A^*$ of Theorem 3 is unchanged by any one-to-one transformation of the signal, because $g$ moves with it; the ranking curve that retrieves least confident first is unchanged by any strictly increasing one. So a miscalibrated but well-ordered confidence is as good a signal as a calibrated one once its threshold is fitted on held-out questions. Temperature scaling of a model's token distributions is not a transformation of a confidence across questions at all: Theorem 9 of the calibration article shows that it can reverse the order of two questions' confidences, so recalibrating produces a different signal and can move its ranking curve. Second, the condition on $r$ can fail. Questions on which a model is unsure can be about obscure entities, for which retrieval may also be harder, so $r$ can rise with $p$. If it rises faster than $p$ over some range, the gain $g$ rises there too, and the best gate is no longer a threshold on confidence (Problem 5).

Kadavath et al. (2022) offer two confidences of this kind. The first needs no training: the model's loss on its own sampled answer, averaged over the answer's tokens, which "has some power to discriminate between correct and incorrect samples" but is not calibrated (Appendix B and B.1). The second, P(IK), is a value head fine-tuned to predict from the question alone whether the model will answer correctly; the library's note on the paper reports its in-distribution calibration and its partial transfer to new tasks. One finding bears directly on gating: P(IK) rises when a relevant document is placed in the context, although the classifier was never trained with documents. For the question "What state's rodeo hall of fame was established in 2013?", the 52-billion-parameter model's P(IK) was 18%, and 78% with a Wikipedia paragraph about the Idaho Rodeo Hall of Fame prepended (Section 5.3). Read through Theorem 1, P(IK) without the document estimates the closed-book accuracy at that question, and P(IK) with the retrieved document estimates something close to $r$, so the difference of the two is an estimate of $g$ after retrieval has been done. Whether that difference is calibrated as an estimate of $g$ is not tested in the paper.

Entity popularity as the signal

Confidence asks the model. Popularity asks the world: how often is the thing in the question discussed?

Mallen, Asai, Zhong, Das, Khashabi and Hajishirzi (2023) built PopQA to make the question measurable. They sampled (subject, relation, object) triples of 16 relation types from Wikidata and turned each into a question with a template written for the relation, such as "What is [subj]'s occupation?" or "Who was the director of [subj]?"; the accepted answers are all objects that the knowledge graph links to the subject by that relation (Section 3.3 and Appendix A, Table 2). The popularity of a question is the monthly Wikipedia page views of its subject, chosen as a proxy for how often the entity is discussed on the web because counting mentions in pretraining corpora is costly and noisy (Section 3.2). A prediction counts as correct if any substring of it exactly matches a gold answer (Section 2).

Their findings, in the order the decision needs them:

  • Memorization follows popularity. For almost every relation type, accuracy rises with the subject's popularity, and the correlation is stronger for larger models (Section 4.2, Figure 4). Scaling helps mainly the popular questions: on the 4,000 least popular, GPT-Neo 6B, GPT-Neo 20B and GPT-3 davinci-003 reached 15%, 16% and 19% (Section 4.2).
  • Retrieval helps the tail and can hurt the head. With one retrieved paragraph (BM25 or Contriever over a December 2018 Wikipedia), retrieval-augmented models beat unassisted ones most on less popular entities, while for popular entities parametric knowledge was "equal or higher" (Sections 5.1 and 5.2, Figure 8).
  • The breaks have a cause. Their Table 1 splits davinci-003's questions by whether it answered right without and with Contriever's passage, and gives the recall@1 of the passage in each cell. Retrieval broke 10% of the answers, and in that cell only 0.14 of the passages held a gold answer, against 0.42 overall; it fixed 17%, with recall@1 0.88 in that cell (Section 5.2). The commonest harmful case in their examples was a passage about a mistaken entity, such as a person with the same name as the subject (Appendix C.3).
  • A popularity threshold makes a gate. Adaptive Retrieval retrieves for questions whose popularity is below a threshold set separately for each relation type, chosen by brute force on 75% of PopQA to maximize accuracy, evaluated on the other 25%, and averaged over 100 random splits (Section 6.1 and Appendix B). The best PopQA result was 46.5% with GPT-3 davinci-003, combining the gate with GenRead (model-generated context) and Contriever, 5.3% higher than any non-adaptive method (Section 6.2). Small models gained little because they "almost always retrieve"; davinci-003 retrieved for only 40% of questions when paired with BM25 (Section 6.2, Figure 10).

In the terms of Theorem 2, the gate assumes that within each relation type the gain $g$ falls as popularity rises, and the per-relation thresholds are each relation's crossing point of $g$ with the cost. Mallen et al. set $c = 0$ and counted the savings afterwards: API costs and latency fell because fewer inputs carried a passage (Section 6.2, Figures 11 and 12). With a cost in the objective the thresholds would move down, by Theorem 2's monotonicity in $c$; Problem 3 works the per-relation version.

Popularity has an attraction that confidence lacks: it is known before the model runs, and before retrieval. Its weaknesses are as plain. It needs the entity to be identified and linked (Entity Linking), it says nothing about the relation asked (a model may know a famous person's occupation and not their father), and page views change with time; the authors name the time dependence as a limitation (Limitations).

Query performance prediction as the signal

A third family asks the retriever. Query Performance Prediction defines predictors that estimate, without judgments, how well a query will be answered: pre-retrieval ones from the query and collection statistics (such as MaxIDF, the largest inverse document frequency among the query's terms), and post-retrieval ones that read the ranked list (such as the score spread NQC or the top score). Its Theorem 8 is the special case of the identity behind Theorem 1 here with $c = 0$: a gate gains only through the questions it skips, so it can help only if its signal is associated with $\Delta_q$. On Cranfield, no predictor tested there showed a detectable association with the gain from expansion, and no gate beat always expanding in a majority of splits.

For retrieval-augmented answering the logic is different in one respect. A predictor of retrieval quality speaks to $r$, the accuracy with retrieval, not to the closed-book accuracy, and $g$ needs both. A query whose retrieval will be poor is a reason not to retrieve only if the model can do better alone; Mallen et al.'s Table 1 shows that this happens (breaks come with low recall), and also that low recall is common where retrieval changes nothing (0.11 in the cell where both answers were wrong).

Post-retrieval predictors raise a question that pre-retrieval signals do not: they can be computed only after the retrieval has been paid for. Split the cost into $c_r$ for the retrieval call and $c_x$ for reading the passage, so that $c = c_r + c_x$. A pre-retrieval gate sees $\phi$ and decides whether to do both. A post-retrieval gate always retrieves, sees $\phi$ and a score $\psi$ computed from the retrieved list, and decides whether the model reads the passage. Write $h(t, u) = E[\Delta \mid \phi = t, \psi = u]$.

Theorem 5 (reading the list before deciding). The best post-retrieval gate has value $V_{\text{post}} = E[C_0] - c_r + E[(h(\phi, \psi) - c_x)^+]$ and the best pre-retrieval gate $V_{\text{pre}} = E[C_0] + E[(g(\phi) - c_r - c_x)^+]$. Then: (a) $E[(h(\phi, \psi) - a)^+] \ge E[(g(\phi) - a)^+]$ for every constant $a$: the extra signal never lowers the value of the decision it informs. (b) If retrieval is free ($c_r = 0$), $V_{\text{post}} \ge V_{\text{pre}}$. (c) If $\psi$ carries no information about $\Delta$ beyond $\phi$ (that is, $h(\phi, \psi) = g(\phi)$), then $V_{\text{pre}} - c_r \le V_{\text{post}} \le V_{\text{pre}}$.

Proof. Both values follow from Theorem 1, applied to the signal $(\phi, \psi)$ with cost $c_x$ after $c_r$ has been paid, and to $\phi$ with cost $c_r + c_x$. (a) The function $x \mapsto (x - a)^+$ is convex, and $g(\phi) = E[h(\phi, \psi) \mid \phi]$ by the tower property, so the conditional form of Jensen's inequality gives $E[(h - a)^+ \mid \phi] \ge (g(\phi) - a)^+$; take expectations. (b) With $c_r = 0$, (a) with $a = c_x$ gives the claim. (c) For $x$ real and $a \ge 0$, $0 \le x^+ - (x - a)^+ \le a$, because $x \mapsto x^+$ is nondecreasing and changes by at most $a$ when its argument changes by $a$. With $h = g$, $V_{\text{post}} - V_{\text{pre}} = -c_r + E[(g - c_x)^+ - (g - c_x - c_r)^+]$, and the expectation lies between $0$ and $c_r$. $\square$

Part (c) bounds the loss of an uninformative list; the exact comparison follows from the same identity. Write $I = E[(h(\phi, \psi) - c_x)^+] - E[(g(\phi) - c_x)^+] \ge 0$ for the value of the information in $\psi$, part (a) with $a = c_x$.

Theorem 5(d) (when reading first wins). $V_{\text{post}} - V_{\text{pre}} = I - E\big[(c_r - (g(\phi) - c_x)^+)^+\big]$. So the post-retrieval gate is better exactly when $I$ exceeds the expected part of the retrieval cost that the pre-retrieval gate would not have paid. It is better whenever $I > c_r$, and it can be better only if $I > 0$.

Proof. By the two values, $V_{\text{post}} - V_{\text{pre}} = -c_r + E[(h - c_x)^+] - E[(g - c_x - c_r)^+] = I - c_r + E\big[(g - c_x)^+ - (g - c_x - c_r)^+\big]$. For $a \ge 0$ and real $x$, $x^+ - (x - a)^+ = \min(x^+, a)$: if $x \le 0$ both sides are $0$; if $0 < x \le a$ both are $x$; if $x > a$ both are $a$. With $x = g - c_x$ and $a = c_r$, the difference is $I - E[c_r - \min((g - c_x)^+, c_r)] = I - E[(c_r - (g - c_x)^+)^+]$. The subtracted term lies in $[0, c_r]$, which gives the two closing statements. $\square$

Two cautions. The comparison is between deciding everything before retrieval and always retrieving then deciding whether to read. A two-stage gate that decides from $\phi$ whether to retrieve, and then from $\psi$ whether to read, includes both as special cases (retrieve always, or read whenever retrieved), so its best value is at least $\max(V_{\text{pre}}, V_{\text{post}})$. And the run below ranks questions by a post-retrieval score alone; it does not fit a gate on $(\phi, \psi)$ together, so it does not test the condition of Theorem 5 directly.

Deciding during generation

Retrieval in a Loop describes two methods that decide during generation, sentence by sentence, rather than once per question. Here they are read as gates, with what each paper reports about the trade between retrieval and quality.

FLARE (Jiang et al., 2023) drafts the next sentence without new retrieval and retrieves when any token of the draft has probability below a threshold $\theta$; $\theta = 0$ never retrieves and $\theta = 1$ retrieves for every sentence (Section 3.2.1). In the terms above, the signal is the smallest token probability of the draft, the decision is made per sentence, and the gate is a threshold, which Theorem 2 justifies only if the gain from retrieving falls as that probability rises. Two details matter for a reader who wants to reproduce it. The first sentence is always generated from documents retrieved with the input as the query; only later sentences are gated (Appendix A, "The initial query of FLARE"). And the authors trace the frontier directly. Varying $\theta$ from 0 to 1 and plotting performance against the share of sentences with retrieval, they found that on 2WikiMultihopQA performance plateaus above 60%, and on StrategyQA it drops above 50%, "indicating that unnecessary retrieval can introduce noise and impede the original generation process"; 40% to 80% usually worked well (Section 6.2, Figure 5). Those are the two shapes that Theorem 3 allows: a frontier that flattens (marginal gain near zero, so any positive cost stops there) and one that falls (marginal gain below zero, breaks outnumbering fixes). FLARE's limitations section adds that on two other sets, Wizard of Wikipedia and ELI5, neither it nor single-time retrieval gave significant gains, and that a naive implementation pays for every retrieval with another model call (Section 9).

Self-RAG (Asai et al., 2024) trains the model to emit a Retrieve token. Besides taking the token's decision as given (the "hard constraint"), the model can retrieve whenever the probability of Retrieve = Yes, normalized over the token's values, exceeds a threshold (Section 3.3 and Appendix A.4); the experiments use 0.2 for most tasks (Section 4.3). The paper's ablation, run with a 7-billion-parameter model trained on 50,000 examples, shows how much the threshold matters on PopQA's long-tail subset (1,399 questions whose subjects have fewer than 100 monthly page views, Section 4.1). Accuracy was 45.5 with the threshold, 28.3 with the hard constraint, 24.7 with no retrieval at inference, and 41.8 when always using the top retrieved passage (Figure 3a, which the text calls Table 3a; the arXiv version gives the same numbers). The gap between the hard constraint and the threshold suggests that the token's own decision retrieved too seldom for questions about rare entities, where nearly every answer needs a passage; the ablation does not report how often each setting retrieved. Varying the threshold, the authors found that retrieving less cost little accuracy on PubHealth and much more on PopQA (Section 5.2, Figure 3c). A threshold set for one population of questions is not right for another, because $g$ differs between them; Theorem 1 asks for $g$ on the questions the system will actually receive.

Both methods take a confidence that the model computes anyway and turn it into a gate with one threshold. Neither paper states a cost or fits the threshold to one; FLARE reports the share of sentences that retrieved (30% to 60% depending on the task, Appendix A) and Self-RAG reports frequency curves. The frame here adds the step of choosing the operating point from a stated cost (Theorem 3(c)).

A measured run on PopQA

The theorems say what a gate can achieve given $g$. They do not say which signal carries information about $g$ for a given model and retriever. That is an empirical question, and the run below asks it of two small open models run on a CPU.

Setup. The script deciding_whether_to_retrieve_run.py in the same folder made the run on 23 November 2026.

  • Questions. A simple random sample of 1,000 of PopQA's 14,267 questions (seed 20261123), from the dataset file published by the authors on Hugging Face (akariasai/PopQA, revision 098765c7, SHA-256 recorded in the script). The sample's median popularity is 806 monthly page views, with quartiles 214 and 4,723; 93 questions have fewer than 100.
  • Models. Qwen/Qwen2.5-0.5B (revision 060db649) and Qwen/Qwen2.5-1.5B (revision 8faed761), base models without instruction tuning (Qwen Team, 2024), in 32-bit floating point on 4 CPU threads, greedy decoding of at most 16 tokens cut at the first line break.
  • Prompt. Mallen et al.'s template "Q: A:" with 15 demonstrations, one from each relation type other than the test question's, drawn from the questions outside the sample (Section 4.1 and Appendix B). One difference: they drew demonstrations per question; here one set is drawn per relation type and shared, so that its computation can be cached. With retrieval, one line "Context: " precedes the test question.
  • Retrieval. The introductions of the English Wikipedia articles on every sampled question's subject and on its answer entity, fetched through the MediaWiki API on the day of the run (1,776 of the 1,779 requested articles had an introduction), cut into 3,594 passages of at most 100 words. BM25 ($k_1 = 0.9$, $b = 0.4$) with the question as the query returns one passage, as in Mallen et al.'s one-paragraph setting.
  • Scoring. Correct if a gold answer occurs as a substring of the model's answer, the paper's rule, here also ignoring case.

The corpus is deliberately small and favorable: the subject's article is in it by construction (for 997 of the 1,000 questions an introduction was found), and the answer entities' introductions are the only other articles. Every passage is prefixed with its article's title, so a passage from the answer's own article names the answer in its title: 51 of the 647 answer-bearing top passages came from an article other than the subject's, and they account for 26 of the 0.5B model's 432 fixes and 28 of the 1.5B model's 441. The top passage came from the subject's own article for 774 questions and held a gold answer for 647, a recall@1 of 0.647 against the 0.42 that Mallen et al. report for Contriever over all of Wikipedia. Retrieval here is easier than over a whole encyclopedia, so the gains from retrieving below are likely larger than they would be there.

What retrieval did. The two-by-two table of the closed-book answer against the answer with the passage, in the form of Mallen et al.'s Table 1:

Qwen2.5-0.5B Qwen2.5-1.5B
Closed-book accuracy 0.116 0.162
Accuracy with the passage 0.543 0.590
Fixes (wrong without, right with) 432 441
Breaks (right without, wrong with) 5 13
Gold answer in passage, among fixes 0.984 0.971
Gold answer in passage, among breaks 0.200 0.462
Best possible (oracle gate) 0.548 0.603

Retrieval fixed many answers and broke few, and for the 0.5B model the breaks came with passages that lacked the answer, as in Mallen et al.'s table. The larger model knew more (0.162 against 0.116 closed book), and retrieval broke more of its answers: 13 against 5, or 1.3% and 0.5% of the questions, where Mallen et al.'s table shows 10% for davinci-003. For the larger model 6 of the 13 broken answers came with a passage that did hold a gold answer, so a passage can mislead a model even when it contains what was asked. A passage added on average 120 tokens to a prompt of 261 (the two models share a tokenizer), so retrieval made each input 46% longer.

Which signals know what the model knows? The area under the ROC curve for separating right from wrong closed-book answers (0.5 is chance; a value below 0.5 means the signal points the wrong way):

Signal 0.5B 1.5B
Popularity (higher = predicted right) 0.459 0.528
Mean token log-probability of the answer 0.846 0.814
Smallest token probability of the answer 0.907 0.906
MaxIDF of the question (lower = predicted right) 0.367 0.400

The model's own probabilities separate its right answers from its wrong ones well, as Kadavath et al. (Appendix B) found for much larger models; the smallest token probability, FLARE's signal, does best. Popularity does not: pooled across relations it points slightly the wrong way for the 0.5B model and barely the right way for the 1.5B model. The reason is the mix of relation types. The most guessable relations hold the least popular subjects in this sample: "sport" (44 questions, median popularity 136.5, closed-book accuracy 0.705) and "country" (64 questions, median 148.5, accuracy 0.438), while "director" (131 questions, median 917) was never answered correctly without the passage by the 0.5B model. Mallen et al. observed the same effect, that relation types such as country and sport are easy to guess from surface clues (Section 4.2), which is a reason to fit one threshold per relation, as they did.

The ranking curves. Accuracy when each signal gives the passage to the first 25%, 50% and 75% of questions in its order (ties broken at random, in expectation). These are the ranking curves of the raw signals, not $A^*$; only the oracle's is a frontier.

Gate 0.5B, 25% 50% 75% 1.5B, 25% 50% 75%
Oracle 0.366 0.548 0.548 0.412 0.603 0.603
Smallest token probability 0.246 0.378 0.479 0.302 0.433 0.538
Confidence (mean log-probability) 0.242 0.359 0.476 0.273 0.390 0.515
MaxIDF 0.241 0.365 0.466 0.291 0.417 0.519
Top BM25 score (post-retrieval) 0.221 0.353 0.460 0.264 0.389 0.504
Popularity 0.221 0.334 0.445 0.272 0.394 0.508
Random 0.223 0.330 0.436 0.269 0.376 0.483
Accuracy against the share of questions given the passage, for the oracle, the ranking curves of three signals and the random gate, for each model. Notice how far the oracle sits above every real signal, that the smallest token probability bends furthest above the random line, and that popularity stays close to it for both models.
Accuracy against the share of questions given the passage, for the oracle, the ranking curves of three signals and the random gate, for each model. Notice how far the oracle sits above every real signal, that the smallest token probability bends furthest above the random line, and that popularity stays close to it for both models.

Every real signal's curve lies far below the oracle's, and two of them dip just below the random line at a quarter of the questions for the 0.5B model (popularity and the top score, 0.221 against 0.223), which a ranking curve may do and the frontier $A^*$ may not. A gate that gives the passage to a quarter of the questions gains at most 0.023 over the random gate for the 0.5B model and 0.033 for the 1.5B model, against 0.143 for the oracle in both. For both models the smallest token probability gives the best curve, while popularity and the top score stay within 0.025 of the random gate at all three points. MaxIDF, a pre-retrieval predictor of query performance, does nearly as well as the model's confidence although it points the wrong way as a predictor of closed-book correctness. That is consistent with linearity: for any signal, $g(t) = E[C_1 \mid \phi = t] - E[C_0 \mid \phi = t]$, and when the model knows little the first term dominates, so a predictor of success with the passage is a predictor of the gain. MaxIDF does separate right from wrong answers with the passage slightly better than without it (AUROC 0.652 against 0.633 for the 0.5B model and 0.669 against 0.600 for the 1.5B model, higher MaxIDF meaning more often right). The run ranks by the post-retrieval top score alone, and that curve was no better than MaxIDF's, which can be computed before retrieval. Whether the score adds information to a pre-retrieval signal, the condition of Theorem 5, would need a gate fitted on both; by Theorem 5(c), an uninformative list would cost a post-retrieval gate between 0 and $c_r$.

Thresholds fitted to a cost. For each gate the threshold was chosen on a random 75% of the questions to maximize accuracy minus $c$ times the share retrieved, and applied to the other 25%, over 30 random splits (seeds 1 to 30), the protocol of Mallen et al.'s Appendix B with a stated cost. The table gives the median gain in test utility over the better of always and never retrieving (chosen on the same development split), with the interquartile range:

Gate, 0.5B $c = 0$ $c = 0.1$ $c = 0.3$ $c = 0.5$
Smallest token probability 0.000 [−0.004, 0.000] 0.000 [−0.003, 0.002] 0.006 [−0.001, 0.015] 0.015 [0.004, 0.026]
Confidence 0.000 [−0.004, 0.000] 0.000 [−0.003, 0.001] 0.007 [−0.003, 0.014] −0.005 [−0.014, 0.008]
MaxIDF 0.000 [0.000, 0.000] 0.002 [0.002, 0.003] 0.018 [0.011, 0.022] 0.000 [−0.006, 0.004]
Popularity, one threshold 0.000 [−0.003, 0.000] 0.000 [−0.003, 0.000] 0.007 [0.002, 0.012] 0.000 [−0.002, 0.000]
Popularity, per relation −0.016 [−0.024, −0.013] −0.010 [−0.016, −0.007] 0.015 [0.004, 0.020] 0.021 [0.009, 0.026]
Oracle 0.004 [0.004, 0.008] 0.063 [0.059, 0.065] 0.175 [0.168, 0.181] 0.217 [0.208, 0.224]

At costs of 0.1 and below, every fitted real gate learned to retrieve for nearly every question and gained at most 0.002 at the median over always retrieving (MaxIDF at $c = 0.1$); for this model the average gain from retrieving, $0.543 - 0.116 = 0.427$, is far above such costs, and the questions on which the closed-book answer is right are too few to be worth skipping. This is the pattern of Mallen et al.'s Figure 10, where small models "almost always retrieve". The per-relation popularity thresholds lost at low cost: with 16 thresholds fitted on 750 questions, some relations have only a handful of development questions, and the fitted thresholds skip questions that needed the passage. At $c = 0.5$, above the average gain, the better fixed policy is never to retrieve, and the gates that find the questions with the largest gain do well; the single popularity threshold, misled by the relation mix, chose to retrieve almost nothing.

Gate, 1.5B $c = 0$ $c = 0.1$ $c = 0.3$ $c = 0.5$
Smallest token probability 0.000 [−0.004, 0.000] 0.000 [−0.006, 0.002] 0.019 [0.012, 0.026] 0.021 [0.014, 0.030]
Confidence 0.000 [−0.004, 0.000] 0.001 [0.000, 0.004] 0.014 [0.006, 0.020] 0.000 [−0.002, 0.000]
MaxIDF 0.000 [0.000, 0.000] 0.002 [0.001, 0.003] 0.020 [0.017, 0.026] 0.007 [0.000, 0.018]
Popularity, one threshold 0.000 [0.000, 0.000] 0.001 [−0.002, 0.002] 0.010 [0.003, 0.016] 0.000 [−0.002, 0.000]
Popularity, per relation −0.016 [−0.020, −0.008] −0.003 [−0.011, 0.003] 0.017 [0.012, 0.032] 0.023 [0.016, 0.036]
Oracle 0.016 [0.009, 0.016] 0.070 [0.065, 0.073] 0.182 [0.175, 0.185] 0.221 [0.215, 0.230]

The larger model tells the same story with slightly larger numbers. Below $c = 0.3$ no real (non-oracle) gate gains more than 0.002 at the median; at $c = 0.3$ every gate gains, the smallest token probability and MaxIDF most; at $c = 0.5$ the per-relation popularity thresholds and the smallest token probability gain about 0.02, while the single popularity threshold and the mean log-probability retrieve for almost no one. On the 27 questions about religion the 1.5B model lost a net 2 answers to the passage (1 fix, 3 breaks; 0.296 to 0.222), while the 0.5B model gained (2 fixes, 1 break; 0.222 to 0.259). That is the kind of relation Theorem 1 would skip at zero cost, but 27 questions are too few to say whether retrieval hurts on it.

What the run does not show. It is one sample of one dataset, with two small models, a favorable corpus and one passage. The gains and losses in the last table are a few thousandths to a few hundredths of accuracy on test halves of 250 questions, and the interquartile ranges describe the variation over splits, not over new questions. The run says nothing about large models, for which the breaks are more common (10% of davinci-003's answers in Mallen et al.'s table); in this run, the cost and the model's closed-book accuracy decided whether any gate was worth having more than the choice of signal did. Every gain from retrieving here also rests on the favorable corpus, in which the subject's own introduction is always available.

What is proved here, what is cited, and what the run shows

Proved on the page. The best gate on any signal retrieves where the expected gain, fixes minus breaks, exceeds the cost (Theorem 1); it is a threshold, moving down as the cost rises, when the gain is monotone in the signal (Theorem 2); the best accuracy at each retrieval budget is reached by ranking questions by expected gain, is concave in the budget and lies above the random gate, and a cost selects one point of it (Theorem 3); a calibrated confidence turns the rule into "retrieve when the confidence is below the accuracy with retrieval minus the cost" when that accuracy does not depend on the confidence (Theorem 4); reading the retrieved list before deciding never lowers the value of the decision it informs, wins when retrieval is free, loses between 0 and the retrieval cost when the list carries no information, and wins exactly when the value of the list's information exceeds the part of the retrieval cost a pre-retrieval gate would have saved (Theorem 5). The arithmetic of the worked problems.

Cited. PopQA's construction, popularity measure and metric, the dependence of memorization on popularity and relation type, the effect of retrieval on popular and unpopular entities, the recall@1 table and Adaptive Retrieval's thresholds and results (Mallen et al., 2023); P(IK), the rise of P(IK) with a relevant document, and the loss of a sampled answer as an uncalibrated signal (Kadavath et al., 2022); FLARE's trigger, initial retrieval and frontier (Jiang et al., 2023); Self-RAG's threshold, its settings and its ablation on PopQA (Asai et al., 2024).

Shown by the recorded run. On 1,000 PopQA questions, with a favorable passage corpus and two small open models: retrieval fixed far more answers than it broke; the models' own token probabilities separated their right and wrong closed-book answers well, and popularity, pooled across relation types, did not; every real signal's ranking curve lay far below the oracle's; and at costs of 0.1 per retrieval or less no real gate gained more than 0.002 at the median over always retrieving. All of this rests on a favorable corpus that always held the subject's own introduction. These are observations of one run, not estimates for other models or corpora.

Worked problems

These problems extend the article on small exact cases, on figures reported by Mallen et al. and on the recorded run; the unit has no course assignments. The script recomputes every number.

Problem 1 (a gate no threshold can express). Mallen et al. found that on EntityQuestions the relation "capital" has many low-popularity questions whose answer is part of the subject's name, such as a canton named after the city that is its capital, which makes accuracy U-shaped in popularity (Appendix C.1). Suppose questions of such a relation fall into three equal popularity bands with closed-book accuracy 0.70, 0.20 and 0.80 and accuracy with retrieval 0.75, 0.60 and 0.75, and $c = 0.1$. Find the best gate on the band and the best threshold gate.

The gains are $g = 0.05$, $0.40$ and $-0.05$. By Theorem 1 the best gate retrieves where $g > 0.1$: the middle band only. Its utility is the closed-book accuracy $(0.70 + 0.20 + 0.80)/3 = 0.5667$ plus $(0.40 - 0.10)/3 = 0.1$, so 0.6667. A threshold on popularity must retrieve a set of the form "every band below $\theta$": none (0.5667), the lowest band ($0.5667 + (0.05 - 0.10)/3 = 0.55$), the two lowest ($0.5667 + (0.05 - 0.10 + 0.40 - 0.10)/3 = 0.65$), or all three ($0.65 + (-0.05 - 0.10)/3 = 0.60$). The best threshold reaches 0.65 and loses $(0.10 - 0.05)/3 = 0.0167$ to the best gate: it must pay for the low band to reach the middle one. Theorem 2's assumption fails here because $g$ is not monotone, and the gate the decision needs is an interval.

Problem 2 (the cost of a retrieval in units of accuracy). Mallen et al. report what their GPT-3 runs cost: 0.46 US dollars per 1,000 questions without retrieval, 2.80 with BM25 passages and 3.08 with Contriever passages (Appendix B). If one correct answer is worth $v$ dollars to the operator, what is $c$, and for which $v$ does always retrieving with Contriever pay, given that the paper reports Contriever adding 7% accuracy for davinci-003 (Section 5.2), which their Table 1 shows to be 7 percentage points (17% of questions fixed against 10% broken)?

The extra cost per question is $(3.08 - 0.46)/1000 = 0.00262$ dollars with Contriever and $(2.80 - 0.46)/1000 = 0.00234$ with BM25, so $c = 0.00262/v$ and $0.00234/v$. Always retrieving with Contriever pays when $0.07 > 0.00262/v$, that is when $v > 0.0374$ dollars, about four cents per correct answer. At $v = 0.05$, $c = 0.0524$: the average gain of 0.07 exceeds the cost, so always retrieving beats never retrieving, while Theorem 1 still says that questions with gain below 0.0524, such as popular entities on which retrieval may break as often as it fixes, should not retrieve. In API prices of that time, the input passage was most of the bill: retrieval multiplied the cost per question by $3.08/0.46 = 6.7$.

Problem 3 (one threshold per relation type). Two relation types each have four popularity bands, each band holding one eighth of all questions, with gains $g = 0.5, 0.3, 0.1, -0.1$ for relation A and $0.2, 0.05, -0.05, -0.1$ for relation B, least popular first. With $c = 0.08$, compare per-relation thresholds with a single threshold on the band index.

Per relation, Theorem 2 retrieves the bands with $g > 0.08$: A's first three and B's first. The gain over never retrieving is $\big[(0.5 - 0.08) + (0.3 - 0.08) + (0.1 - 0.08) + (0.2 - 0.08)\big]/8 = 0.78/8 = 0.0975$. A shared threshold retrieving the first $k$ bands of both gives $0.54/8 = 0.0675$ for $k = 1$, $0.73/8 = 0.0913$ for $k = 2$, $0.62/8 = 0.0775$ for $k = 3$ and $0.26/8 = 0.0325$ for $k = 4$; the best is $k = 2$, short of the per-relation gate by $0.05/8 = 0.0063$. The per-relation thresholds equalize the marginal gain against one cost: every retrieved band has $g > c$ and every skipped band $g \le c$, whatever its relation. Fitting one threshold per relation on development questions, as Mallen et al. did, is the sample version of this rule.

Problem 4 (reading the list first). No signal is available before retrieval. After retrieval a score $\psi$ is high or low with probability one half each, with $h = 0.30$ when high and $h = -0.10$ when low, so $g = 0.10$. Reading the passage costs $c_x = 0.02$. Compare the best pre- and post-retrieval gates when the retrieval call costs $c_r = 0.03$, and find the $c_r$ at which they are equal.

The pre-retrieval gate retrieves for everyone if $g > c_r + c_x$: gain $(0.10 - 0.05)^+ = 0.05$. The post-retrieval gate pays $c_r$ for everyone and reads only when $\psi$ is high: gain $-0.03 + \tfrac12(0.30 - 0.02) + \tfrac12 \cdot 0 = 0.11$. Reading the list first is worth 0.06 more. In general here the post gate gains $0.14 - c_r$ and the pre gate $(0.08 - c_r)^+$; they are equal only where $0.14 - c_r = 0$, at $c_r = 0.14$, since for $c_r \le 0.08$ the difference is the constant 0.06 and for $0.08 < c_r < 0.14$ the post gate still gains while the pre gate retrieves nothing. The value of the information in $\psi$ is $I = E[(h - c_x)^+] - (g - c_x)^+ = 0.14 - 0.08 = 0.06$, and Theorem 5(d) gives the same answer: the post gate wins exactly when $0.06 > (c_r - 0.08)^+$, that is when $c_r < 0.14$. At $c_r = 0.10$, larger than $I$, it still wins, 0.04 against 0, because the pre-retrieval gate would not have saved the whole retrieval cost there.

Problem 5 (a confidence threshold that is not optimal, on the run). Sort the 0.5B model's 1,000 questions by the mean token log-probability of its closed-book answer and cut them into five groups of 200, least confident first. For a cost of $c = 0.45$, compare the best gate on the five groups with the best threshold, and say why Theorem 4's condition fails.

Group (least confident first) Closed-book accuracy With passage Fixes Breaks Gain $g$
1 0.025 0.530 101 0 0.505
2 0.035 0.520 98 1 0.485
3 0.025 0.450 86 1 0.425
4 0.100 0.580 97 1 0.480
5 0.395 0.635 50 2 0.240

The gain is not monotone: group 3 gains less than group 4. By Theorem 1 the best gate on the groups retrieves where $g > 0.45$, groups 1, 2 and 4, and gains $(0.055 + 0.035 + 0.030)/5 = 0.024$ over never retrieving. A threshold must retrieve the first $k$ groups; the running sums of $g - c$ are $0.055$, $0.090$, $0.065$, $0.095$ and $-0.115$, so the best threshold retrieves the first four and gains $0.095/5 = 0.019$, paying for group 3 to reach group 4. Theorem 4's condition is $r(p') - r(p) \le p' - p$; from group 3 to group 4 the accuracy with the passage rose by 0.130 while the closed-book accuracy rose by 0.075. The cause is in what the groups hold. Group 3 is rich in questions about composers and directors, for which the top passage held the answer less often (0.590 of group 3's passages against 0.665 of group 4's). Confidence orders questions by what the model knows; the gain also depends on what the retriever finds, which confidence does not see. The difference between the two groups' gains, 0.055, is about one standard error of that difference (0.051, from the spread of $\Delta_q$ within each group of 200), so this particular dip may not recur in another sample. In the 1.5B run the gain is not monotone in confidence either, but the shape differs: it is largest in group 3 (0.555). The mechanism, a retrieval accuracy that varies with the kind of question, is a general way for the threshold form to fail.

Open questions

  • Is the difference of P(IK) with and without the retrieved passage a calibrated estimate of the gain $g$? Theorem 1 needs $g$, and the rise of P(IK) with a relevant document (Kadavath et al., Section 5.3) suggests the difference as an estimate. Settling it needs a model with a trained P(IK) head, questions with known answers, and the reliability diagram of the difference against the observed $\Delta_q$, as in Calibration and Proper Scoring Rules.
  • At what model size does the frontier start to fall at the right end? Theorem 3 allows a frontier that falls where breaks outnumber fixes, and Mallen et al. found that for their largest model retrieval helped least, and sometimes hurt, on popular entities, and that adaptive retrieval paid mainly for models above 10 billion parameters. Rerunning this article's script with a series of open models of increasing size, and a full Wikipedia retriever instead of the favorable corpus, would locate the size at which the oracle's falling segment becomes long enough for a gate to matter at zero cost.
  • Does a learned gate beat the best single signal? The run fitted one signal at a time. A logistic model on the signals together (popularity within relation, token probabilities, MaxIDF, post-retrieval scores), trained to predict $\Delta_q$ and thresholded by Theorem 1, can be scored on the same splits, together with a two-stage gate that decides from the pre-retrieval signals whether to retrieve and from the post-retrieval scores whether to read; Theorem 5(d) says how much a post-retrieval feature must add to repay its retrieval.
  • How should a per-sentence gate's cost be stated? FLARE and Self-RAG report frontiers over the share of sentences retrieved but fit no cost. A study that measures latency and tokens per retrieval in a long-form task, converts them to $c$ as in Problem 2, and reads the operating point off the frontier by Theorem 3(c) would show whether the recommended 40% to 80% of sentences (Jiang et al., Section 6.2) holds under a stated cost.

What we have learned

Deciding whether to retrieve is a decision with a proved best form. For any signal, retrieve where the expected number of fixes minus breaks exceeds the cost of a retrieval; when that gain falls as the signal rises, the rule is a threshold, and the best accuracy at each retrieval budget traces a concave frontier between never and always retrieving. A calibrated confidence turns the rule into a comparison of two accuracies, and reading the retrieved list first is worth its cost only if the list says something about the gain that the question did not. Popularity, the model's own confidence, query performance predictors and the per-sentence triggers of FLARE and Self-RAG are all signals of this kind, and none of the published methods discussed here sets its threshold from a stated cost. On 1,000 PopQA questions with two small models and a favorable passage corpus that always held the subject's own introduction, retrieval fixed many answers and broke few; the models' token probabilities knew which answers were wrong, popularity across relation types did not, and at modest costs the best gate was, in effect, to retrieve every time.

Every gate here assumes that the question is complete as asked. In a conversation it often is not: a follow-up such as "and who directed it?" names nothing to retrieve until it is rewritten. That is the subject of Rewriting Questions in a Conversation.

References