---
title: "Recitation-Augmented Language Models — Sun 2022"
description: "Recitation-Augmented Language Models tests whether generating relevant passages before answering improves factual accuracy without a…"
canonical: "https://research.elamur.ai/free/en/papers/sun-2022-recitation-augmented-language-models/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/sun-2022-recitation-augmented-language-models/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Recitation-Augmented Language Models

# Recitation-Augmented Language Models

Paper · 2022 · Zhiqing Sun, Xuezhi Wang, Yi Tay et al.

**Authors:** [Zhiqing Sun](https://md.research.elamur.ai/free/en/authors/zhiqing-sun/), [Xuezhi Wang](https://md.research.elamur.ai/free/en/authors/xuezhi-wang/), [Yi Tay](https://md.research.elamur.ai/free/en/authors/yi-tay/), [Yiming Yang](https://md.research.elamur.ai/free/en/authors/yiming-yang/) and [Denny Zhou](https://md.research.elamur.ai/free/en/authors/denny-zhou/) · **Year:** 2022 · **Venue:** arXiv (Cornell University) · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[**30** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4302305884) · [Cited by **89** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/sun-2022-recitation-augmented-language-models/cited-by/) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2210.01296)
- [arXiv 2210.01296](https://arxiv.org/abs/2210.01296)
- [OpenAlex](https://openalex.org/W4302305884)

Citations: OpenAlex, 2026-10-14.

## Summary

A system can have enough information to answer a question and still fail when asked for the answer directly. In *Recitation-Augmented Language Models*, the authors test whether an intermediate step can make that information easier to use. Their method, RECITE, asks a [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) to generate a passage related to the question, then gives it the passage and asks for an answer. This is closed-book [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/): the system may use what it learned during training, along with examples in the prompt, and answers new questions without looking up documents in an external collection.

The simplest version uses separate prompts to demonstrate what a relevant passage looks like and how to give a short answer. An ensemble version samples several passages, produces an answer from each, and chooses the answer that receives the most votes. For questions that require facts from different sources, the system can generate passages in sequence, allowing a later passage to pick up an entity introduced earlier. Another version samples the titles and locations of possible passages first, generates the text for each distinct location, and then reads the resulting passages together. The authors train that version on Wikipedia passages paired with questions generated for them.

The main experiments use PaLM, UL2, OPT, and Codex on [Natural Questions](https://md.research.elamur.ai/free/en/papers/kwiatkowski-2019-natural-questions-benchmark-question-answering/), [TriviaQA](https://md.research.elamur.ai/free/en/papers/joshi-2017-triviaqa-large-scale-distantly-supervised/), and [HotpotQA](https://md.research.elamur.ai/free/en/papers/yang-2018-hotpotqa-dataset-diverse-explainable-multi/). The gains over direct answering are more consistent across systems on Natural Questions. On TriviaQA, the gains are more pronounced for smaller systems in the main comparison. On HotpotQA, generating supporting passages can outperform prompting for a step-by-step explanation. The version trained to generate passages from location hints further improves PaLM’s Natural Questions performance.

Generating a passage gives the answerer something concrete to work with, but the passage can be wrong, and a correct candidate answer can lose the vote. In the TriviaQA error analysis, those problems account for more of the failures than cases where a sampled passage contains the answer and the answering stage never produces it. The experiments show that a change in how the system is asked can improve factual answers. A separate question remains whether a particular answer was grounded in the generated passage or whether that passage faithfully reproduces a source.

## Deep dive: Recitation-Augmented Language Models

Recitation-Augmented Language Models tests whether generating relevant passages before answering improves factual accuracy without a live search. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Answering directly asks for information in a particular form

Open-domain question answering starts with a question and no accompanying passage. The question may refer to an event, a person, or a connection between entities, and the system has to supply the requested fact. An open-book system can search Wikipedia or another text collection. In the pipeline described by the authors, a retriever finds likely documents, and a reader uses those documents to produce an answer. [Reading Wikipedia to Answer Open-Domain Questions](https://md.research.elamur.ai/free/en/papers/chen-2017-reading-wikipedia-answer-open-domain/) is one of the precedents the paper cites for that arrangement.

With the book closed, an answer has to come from information represented in the system’s learned parameters or supplied in its prompt. The benchmark can still have human-selected source passages and reference answers. Those materials serve to construct examples or judge outputs. The distinction concerns what can be accessed for a new question. In [retrieval-augmented generation](https://md.research.elamur.ai/free/en/concepts/retrieval-augmented-generation/), the system can search a collection for text tailored to that question. In RECITE’s closed-book setting, the system itself generates that intermediate text. The earlier work includes [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks](https://md.research.elamur.ai/free/en/papers/lewis-2020-retrieval-augmented-generation-knowledge-intensive/).

The authors’ motivation is that pretraining and direct answering ask for different kinds of text. During causal language pretraining, the task is to continue text given its preceding context. A short-answer prompt calls for a compact response, often in a form that would rarely occur in ordinary prose. Someone who remembers a run of digits can work out a particular digit from its position, even if they have never encountered a sentence stating the digit at that position. The paper uses the digits of π to illustrate this difference. Recovering an extended sequence and then inspecting it makes the answer available in a form suited to the question.

The same idea applies to prose. A passage about an event might give its date, participants, and location together. A question about the event asks for just one of those details. In a direct prompt, the system has to arrive at the requested detail and express it immediately. RECITE gives it time to generate a larger unit of text, then presents that text as part of the input to the answering step. The authors’ hypothesis is that this gives the system a better route to some information learned during pretraining.

A passage can also supply a connection that is difficult to infer from the question alone. If a question identifies a person by relationship to an institution, a passage about one named entity might first establish which institution is involved. A later passage can then describe the institution or identify the person. This motivates a version in which passage generation proceeds sequentially. The information needed to generate the next passage can emerge from an earlier passage, even when the final answer has yet to be generated.

#### What earlier closed-book tests measured

The paper connects closed-book answering to research that treated pretrained systems as implicit stores of facts. Work such as [Language Models as Knowledge Bases?](https://md.research.elamur.ai/free/en/papers/petroni-2019-language-models-as-knowledge-bases/) helped motivate the idea that useful factual associations could be recovered from learned parameters. The authors also describe earlier tests in which [T5](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/) was trained on question–answer pairs and then answered knowledge-intensive questions without a document lookup.

That earlier setup introduced a question about what the evaluation rewarded. The paper cites work finding that overlap between training and test questions contributed substantially to the apparent success of supervised closed-book answering. Success on a familiar question can reflect memory of a particular question and its response, whereas a fresh question can require expressing related knowledge in a different form. The authors also cite work finding closed-book answering difficult for comparatively small pretrained systems, including [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/).

RECITE’s main comparisons use [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) in context. A small set of examples appears in the input and shows the system what kind of response to produce. The examples guide the current generation while leaving the trained parameters as they are. This setup reduces reliance on benchmark-specific supervised training for the prompt-only comparisons. It still leaves open what material the system encountered in pretraining. The paper treats few-shot evaluation as a way to reduce one source of overlap bias, with the pretraining history a separate issue. [Language Models Are Few-Shot Learners](https://md.research.elamur.ai/free/en/papers/brown-2020-language-models-few-shot-learners/) is the main precedent it cites for learning a task from examples in a prompt.

The related-work discussion also describes Atlas, which uses retrieval and can achieve strong knowledge-intensive performance with relatively little task-specific training. Atlas illustrates the value of locating facts in an external collection. RECITE examines a different opportunity in the same broad problem: a system with fixed weights may produce useful factual context when the prompt requests a passage, even if the same system struggles to produce a short answer directly.

#### Remembering a passage and working out an answer

The authors distinguish their use of intermediate text from the role of a worked solution. Prior work on math word problems generated explanations in ordinary language and equations before giving a result. [Training Verifiers to Solve Math Word Problems](https://md.research.elamur.ai/free/en/papers/cobbe-2021-training-verifiers-solve-math-word/) developed that line of work with a larger training set and a learned ranker for candidate solutions. [Chain-of-Thought Prompting](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/) brought intermediate reasoning into the few-shot prompt itself. In those approaches, the generated text can describe the steps that lead to the answer.

RECITE asks for information that a reader could use to take such steps. A supporting passage might identify which organization owns a property. The task may then be to combine that relationship with something learned from another passage. The passage has a function even when it never states how to combine the facts. This matters for the HotpotQA comparison, where a generated explanation and a succession of generated passages offer different ways to arrive at an answer.

The memorization studies cited by the paper clarify what “recitation” means here. Some earlier experiments gave a system a prefix known to come from training material and checked whether it reproduced the continuation. The authors describe findings linking exact reproduction to factors including system capacity, repeated appearances of an example in training, and the amount of prefix available. RECITE typically starts with a question whose wording need never have appeared next to the relevant passage. The authors describe this as a looser kind of recall. A passage can be useful if it expresses the necessary relationship accurately, regardless of whether its wording matches any particular original.

That looser criterion also shapes the paper’s comparison with [information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/). A search system returns an item from a collection. RECITE produces text that can play the role of a retrieved item in the answering prompt. Both workflows give a reader material particular to the question. Their outputs have different ties to source documents, which becomes important when assessing the accuracy of the intermediate material itself.

### The method, step by step

#### Generate a passage, then use it

For a single-hop question, the authors begin with the assumption that one passage can usually supply the relevant information. They construct a recitation prompt with examples, each pairing a question with a supporting passage. The new question appears after these demonstrations. The system continues in the demonstrated format, producing a passage on the question’s subject. The examples teach the first stage to produce enough context to support an answer rather than immediately stopping at a name or short phrase.

The second stage uses a separate prompt. It includes the generated passage at the beginning, then the demonstrations of short question–answer pairs and the new question. The passage now serves as input to be read. The demonstrations show the intended response format. This arrangement lets the authors use a familiar few-shot answering prompt and change the information available to it by adding the generated text.

The basic procedure uses the same pretrained system for both roles. “Reciter” and “answerer” refer to different calls with different prompts. The reciter has to produce potentially relevant prose. The answerer has to identify what the question asks and generate a response while the prose is in view. A detail can be recoverable in the second call even if the first call does not state it in the form of a short answer. Conversely, the answerer can reach a response from its learned knowledge even when the generated context offers little help.

From a question to a recited passage and answer The steps in order.

The split lets the authors examine the intermediate output. If the final answer is wrong, they can look for the expected answer in the generated passage and compare that with what the answering call returned. This is useful even though text inspection gives limited evidence about the computation itself. A passage can contain the right words in an unrelated statement, and a passage can imply an answer without spelling it out.

The prompt templates make the boundaries between questions, passages, and answers explicit. The authors generally use two successive newline characters between parts of an example and three between examples. The UL2 setup substitutes a semicolon for each newline because its [SentencePiece](https://md.research.elamur.ai/free/en/papers/kudo-2018-sentencepiece-simple-language-independent-subword/) vocabulary lacks the newline symbol used by the other prompts. Here the separator is part of the input format. Preserving the distinction between parts of an example and between complete examples helps retain the structure of the demonstration across systems.

#### Sample passages and vote on answers

A question may admit several useful passages. The authors illustrate this with the opening of London Bridge by Queen Elizabeth II. An article about the bridge and an article about events in the relevant month might both describe the opening. A generator might recover the same fact in an account centered on the bridge or in an account centered on the date. That possibility motivates an ensemble in which a single question goes through the pipeline several times.

For each path, the reciter generates a passage using top-k sampling. At a generation step, it limits the possible next tokens to the highest-ranked candidates and samples among those candidates. In the name “top-k,” k is the size of this candidate set at a step. A token is the unit of text used by the generator, which may be a word or part of one. Sampling lets the text take different continuations from the same prompt, so the resulting passages can cover different aspects of the question.

The answerer processes each sampled passage separately and uses greedy decoding: at each step of producing the short answer, it takes the highest-scoring next token. This puts stochastic variation in the evidence-generation stage. One path consists of a passage and its corresponding answer. The system counts votes for the answers across paths and selects the one with the most support. A plurality can be decisive even when the leading answer lacks an absolute majority.

The voting procedure adapts [self-consistency](https://md.research.elamur.ai/free/en/papers/wang-2022-self-consistency-improves-chain-thought/) from earlier work on sampling multiple lines of reasoning. The hypothesis is that useful differences between passages can produce the same correct answer. A passage may describe an event from one perspective and another may mention it in a chronology. In that case, the answer is the suitable object of comparison. Counting identical passages would discard the benefit of getting different accounts that support the same response.

The vote uses agreement as its selection signal. That signal has a clear limitation even before evaluation. A recurring mistake can gather support from several paths, while a sound passage may contribute only one correct answer. Independently sampling the paths describes how the generations are drawn. Their shared system and prompt still give them shared tendencies. This is why the paper later separates the appearance of a correct answer among the candidates from its selection as the final answer.

#### Let one passage supply the subject of the next

In multi-hop question answering, the supporting information spans documents. Asking for a single passage can keep the system on the subject most readily identified from the question. The authors extend the recitation prompt by demonstrating successive passages with separate labels. The first passage can settle one part of the question or uncover a useful entity. The next can move to the topic that entity suggests.

Generation takes place sequentially within a single completion. Every later passage has the question and the earlier recitations in its preceding context. The paper’s illustration shows the name Oberoi Group becoming available through an earlier passage and usable in the next. The point is the availability of an intermediate entity: demonstrations can teach the system that it should continue with a passage on a connected subject, and the actual subject can be supplied by text generated for that question.

The answering stage then uses the set of passages in the path. It may need to connect a fact from the earlier passage with another from the later one. A path for a multi-hop question therefore contains a sequence of recitations and its answer. Self-consistency can still operate across paths. The system samples multiple sequences, answers from each, and votes on the answers. Sampling across paths and continuing within a path serve different purposes. Sampling explores alternatives, while sequential generation carries information forward.

The first passage can direct subsequent generation towards the wrong entity as easily as towards the right one. Because the later passage is produced with the earlier one in view, a fluent sequence of passages can develop a mistaken association. Voting gives the method a chance to choose another path when the mistake is uncommon. The procedure itself supplies no external check on the relationship that connected the passages.

#### Vary the location before varying the text

The passage-hint variant addresses a tradeoff in sampling whole passages. More variation can uncover distinct supporting facts, but changes to the sampled text can also change a date, place, or name. Lower sampling temperature makes the generator favor likely continuations more heavily. The authors want to preserve selectivity when generating factual text while retaining enough variation to reach different pieces of evidence.

A passage hint identifies a location using an article title, the relevant hierarchy of section headings, and the paragraph’s position within that section. The paper illustrates this with the Wikipedia article on child support, where the hierarchy identifies a subsection on enforcement and the position identifies a particular paragraph there. A heading like “Enforcement” could occur in many places. The article and section hierarchy make it specific, and the paragraph position allows the hint to distinguish neighboring passages.

At inference, the reciter samples possible hints for a question. It removes repeated hints before generating full passages. For each remaining hint, it generates the passage greedily, favoring the highest-scoring next token throughout. The sampling stage explores locations, while the passage-completion stage tries to give a stable continuation for each location. Greedy decoding is the authors’ way of reducing variation in the text once the hint is fixed. It supplies no direct test of whether a generated detail is true.

A hint is a generated text label at this stage. Even though the label has the structure of a Wikipedia location, the system is generating the content associated with it and does not fetch the corresponding paragraph. The second stage receives the generated passages together in one context, along with question–answer demonstrations. The design lets the answerer consider distinct passages jointly. It also changes how the passages are combined. The sampled-passage ensemble combines short answers by voting, whereas the hint-based variant combines passages before generating a short answer.

Removing duplicate hints ensures that identical location labels do not use several of the passage-generation slots. Distinct labels can still lead to passages that cover the same fact, and a generated passage can depart from the implied source. The deduplication rule acts on the available labels. Its rationale is that separate article or section locations are a practical way to seek distinct material without depending on random variation in every word of the recitation.

#### Create training examples from passages

The authors found that ordinary few-shot prompting made the hint format difficult to use. Wikipedia may be part of a system’s pretraining data without article structure being represented consistently in the text it saw. In particular, the authors say section titles are frequently missing from such training inputs. The scheme requires the system to associate questions with hints and hints with passages. Familiarity with prose alone may leave either association weak.

The authors therefore use [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) for the Natural Questions hint variant. They assume access to highly ranked Wikipedia pages associated with search queries. They collect passages from those pages and construct hints from the documents’ structure. Each collected passage has an actual text and a location label. The missing element is a question that calls for information in the passage.

They generate that missing element by prompting in the reverse direction. The prompt contains 5 examples that pair an annotated Natural Questions long answer with its question. Given a sampled Wikipedia passage, the generator follows those demonstrations and writes a question for it. This produces a synthetic training item with a generated question, a rule-derived hint, and the original passage. The authors then train PaLM in the forward direction, asking it to predict the hint and the passage from the question.

There are two uses of passage text here. The original Wikipedia paragraph provides material from which to generate a training question and serves as a target in fine-tuning. The passage presented to the answerer at evaluation is generated. Training therefore adds exposure to an external document collection while preserving the closed-book condition at answer time. The hint-based approach relies on access to supporting pages during preparation, whereas the prompt-only approach relies on the recitation demonstrations and the pretrained system.

The reported PaLM run uses 10,000 training steps with a batch size of 64. The paper gives roughly 1 day on 64 TPUv4 chips for that run. After fine-tuning, the recitation stage can generate hints and passages without further recitation examples in its prompt. The answering stage still follows the procedure in which generated context accompanies demonstrations of the desired answer format. The authors released the RECITE evaluation code and documented the prompts used for the benchmarks.

### Experiments and results

#### The benchmarks and the evidence shown in prompts

Natural Questions uses real Google search queries. The benchmark connects answers to a Wikipedia page among the top 5 search results. The authors evaluate it as a single-hop task, judging the generated short answer and using the benchmark’s long-answer annotations to demonstrate recitation. A long answer marks a portion of a page that contains enough information to infer the short answer. It gives the reciter an example of what a supporting passage looks like for a naturally phrased query.

The main Natural Questions comparisons include 5-shot and 64-shot conditions. Each count refers to how many demonstrations the prompt supplies in the relevant few-shot setup. The count does not change the number of generated passages in an ensemble, which is a separate setting. Natural Questions also supplies the material needed for the fine-tuned hint variant and the context-source comparison. Those analyses give the authors different ways to use its annotated long answers and associated Wikipedia pages.

TriviaQA pairs questions written by trivia enthusiasts with answers and retrospectively collected evidence. That evidence collection does not yield the same straightforward long-answer annotation. The authors sample 5 training questions and manually compose their supporting passages from Wikipedia for the 5-shot recitation prompt. The main experiments treat the task as single-hop. The tests therefore assess whether prompt-based recitation helps for questions whose style and demonstration passages differ from those of Natural Questions.

HotpotQA was designed to ask for information that must be connected across supporting documents. The paper evaluates it in a 4-shot setting. The recitation demonstrations show how to generate multiple passages for a question, and the chain-of-thought baseline uses demonstrations of intermediate reasoning. The paper’s appendix also shows qualitative comparisons with direct answering. The task gives the authors a setting in which the final answer may require both finding the relevant facts internally and composing them.

The evaluation uses a labeled test split where available and the development split otherwise. The authors run on the first 1,024 examples for TriviaQA and HotpotQA because evaluation with these systems is expensive. This fixed portion is the scope of those reported comparisons. A separate Natural Questions analysis explicitly uses the first 1024 validation examples and changes what context the answerer sees.

#### Systems, baselines, and scoring

The main systems are [PaLM](https://md.research.elamur.ai/free/en/papers/chowdhery-2022-palm-scaling-language-modeling-pathways/), UL2, [OPT](https://md.research.elamur.ai/free/en/papers/zhang-2022-opt-open-pre-trained-transformer/), and [Codex](https://md.research.elamur.ai/free/en/papers/chen-2021-evaluating-large-language-models-trained/). The PaLM configuration has 62B parameters. UL2-20B is an encoder–decoder trained with a mixture of denoising tasks. The experiments use its S-Denoiser mode, which supports generation after a supplied prefix. The OPT configuration has 30B parameters. The authors access Codex through the code-davinci-002 interface and say that its size and detailed configuration are unknown.

The primary baseline is standard prompting. In this condition, the system sees question–answer demonstrations and then answers the new question directly. Recite-and-answer adds the generated context. The settings with self-consistency also introduce multiple paths and answer voting. The HotpotQA comparison adds a rationale-based baseline. For the hint-based experiment, the authors compare standard prompting, recite-and-answer with self-consistency, and the fine-tuned system that generates passages from hints and gives them to the reader together.

The reported answer metrics are exact match, abbreviated EM, and F1. Exact match checks whether the normalized prediction is the same as an accepted reference answer. F1 reflects overlap between the prediction and reference, so an answer can receive some credit for matching relevant words while differing elsewhere. The paper says the precise text-normalization procedure can vary by dataset. These metrics assess the answer string. The paper examines the recited passages separately, using diagnostics for whether they contain an answer and comparisons with contexts of known origin.

A gain in exact match is evidence of more correct short answers under the benchmark’s matching rule. F1 can also register gains when the system supplies more of the reference answer without reproducing it completely. Neither score tells which passage supported a response or whether a correct response follows from that passage. That distinction matters because RECITE changes several aspects of generation with the aim of improving the final answer, while also making intermediate text visible for inspection.

#### Where recitation improved answers

On Natural Questions, the authors report that prompt-based recitation improves upon direct prompting more consistently across the systems than it does on TriviaQA. The result applies to a setup in which the recitation examples come from annotated long answers. This is evidence that the passage-first procedure helps across different pretrained systems in that benchmark setting. The reports of gains at different demonstration counts also make the case less dependent on any one prompt length.

On TriviaQA, the authors report stronger gains from recitation for the smaller systems in their main comparison. They suggest that trivia questions tend to supply more contextual cues in their own wording. For a system such as PaLM, the question may already contain enough cues to make direct answering effective, leaving less room for a generated passage to help. This is their explanation of the pattern across the tested configurations. The experiment compares systems and prompts on the available questions, rather than varying the amount of information in a given question.

On HotpotQA, multiple recitations can outperform the chain-of-thought baseline. The authors also observe that PaLM, which benefits substantially from chain-of-thought prompting, benefits substantially from recitation. That combination is consistent with the different roles of the intermediate text. A system that uses extra context effectively can gain from factual passages as well as from a worked line of reasoning. The reported comparison concerns the benchmark answers, with qualitative examples illustrating how the prompting formats can produce different intermediate outputs.

The fine-tuned PaLM-62B hint variant further improves Natural Questions results in the reported comparison. In that run, the system has been trained to predict passage locations and text, diversifies the locations it tries, and reads the generated passages as a group. Its advantage is a result for the whole configuration. The experiment does not assign separate amounts of the gain to the training examples, hint sampling, duplicate removal, or the change from answer voting to joint reading.

The main comparisons are described by the direction of their EM and F1 results in the paper’s prose. The explicit percentages below come from a different measurement, the per-path TriviaQA error analysis. In the analysis of the 1024 TriviaQA evaluation examples, the authors report that around 7% to 10% of cases in the per-path analysis have a passage with the answer tokens but an incorrect output. Around 12% have a correct output in spite of the absence of the matching answer tokens in the recitation. The bounds in the chart represent the reported range for the same kind of mismatch.

TriviaQA per-path analysis, share of cases where passage match and answer accuracy disagree Correct answers without matching passage tokens occur more often than incorrect answers with matching tokens.

**The numbers**

| System or setting | share of cases % |
| --- | --- |
| Answer tokens present, answer incorrect, lower bound | 7 |
| Answer tokens present, answer incorrect, upper bound | 10 |
| RECITE answer correct, answer tokens absent (this paper) | 12 |

The chart measures disagreement between a token-level passage check and the outcome of the answering call. In this diagnostic, lower means less disagreement. Correct answers without matching tokens still count as successes on the answering task. They are informative because they show that answer accuracy can improve without establishing that the generated passage supplied the answer in a form the token check detects.

### What the ablations show

#### More sampled passages helped the ensemble

The authors vary the number of self-consistency paths on TriviaQA using OPT-30B and UL2-20B. To avoid repeatedly paying for new generations at every path count, they first generate a pool and simulate smaller ensembles by drawing subsets from it. The pool limit is written as:

```
k = 20
```

In this analysis, k is the cap on the number of recitation passages sampled for a question, the equals sign specifies the chosen cap, and 20 is that cap. This use of k refers to complete passages per question. In the method’s term “top-k sampling,” k instead refers to the pool of next-token candidates within an individual generation step.

For each tested number of paths, the authors repeat the subset evaluation five times. They report the mean, which summarizes the resulting scores, and the standard deviation, which summarizes their spread. Using subsets of the same generation pool keeps the reciter fixed while changing how much of its output the vote can consider. They find that more paths tend to improve the TriviaQA EM and F1 results and reduce the variation seen across subsets.

The comparison shows what the answer vote gains from access to more samples of the existing reciter. Additional paths may supply a correct candidate absent from a small subset or reinforce an answer already found. The design does not distinguish these effects in the path-count curves. It also uses a finite pool, so the trend applies over the tested range. Beyond that range, more samples would depend on what other passages the reciter can produce and whether the vote can recognize their contribution.

#### The result survived changes to the demonstrations

A few-shot evaluation can depend on which examples are chosen and the order in which they appear. The authors test this by sampling and shuffling the 5-shot demonstrations for TriviaQA with 5 random seeds. Each seed governs a choice and ordering of examples. For UL2, they compare direct prompting and sampled recite-and-answer and report how the scores vary over the runs.

Under these changes, the authors find that the sampled recitation approach has similarly small deviations to standard prompting, with performance gains across the tested choices. This provides a check against the result being due entirely to a favorable demonstration set. Because selection and order change together, the comparison measures their combined effect. It leaves separate questions about which demonstration features matter and how sensitive the method would be to examples from a different distribution.

The amount of demonstration material is varied in another analysis. On Natural Questions with UL2-20B, recite-and-answer consistently improves on standard prompting across the plotted demonstration counts, with the largest reported improvement in the 1-shot setting. The authors’ finding concerns the difference between prompting methods at each count. The setting with the largest gain need not be the setting with the highest answer score. The comparison shows that the recitation procedure can provide a substantial advantage even when the prompt gives only a single example of the task.

The appendix also compares standard prompting with recite-and-answer on TriviaQA using instruction-fine-tuned FLAN-T5. Its instruction training exposed the system to tasks presented in written instructions. Recitation improves the reported 5-shot EM and F1 results across the tested sizes, and the largest gain is reported for the largest configuration, described as xxl (11B). That pattern and the stronger gains for smaller systems in the main TriviaQA comparison come from different groups of systems. Together they show that the benefit is sensitive to the family and training setup. The experiments do not reduce it to a general rule about size.

#### External, generated, and annotated contexts

The authors also change the source of the passage available to the answerer. They compare BM25 retrieval, generated recitation, and annotated long answers on the first 1024 Natural Questions validation examples. BM25 searches an indexed Wikipedia passage collection to find text related to the question. Recitation generates text from the question. The annotated long answer supplies human-designated context for the same benchmark item. UL2 and Codex are the answerers in this comparison.

The long answer matters because it helps separate the quality of the context source from the answerer’s ability to make use of a relevant passage. A system can fail even with a passage selected to contain sufficient information. The annotated context is a reference condition for the reader. BM25 tests whether an ordinary search method supplies practically useful context, and recitation tests whether internally generated text can serve that role.

The authors find BM25 strong and describe recitation as competitive without the document lookup. They also report a more favorable comparison for Codex’s own recitations relative to its BM25 context. These are comparisons of downstream answering. A recited paragraph may help because it expresses a salient fact succinctly, while a retrieved paragraph may require the reader to ignore more irrelevant material. The experimental score reflects the interaction between passage and answerer, and the comparison does not establish the relative factual accuracy of the passages themselves.

Natural Questions is the benchmark that gives the authors a consistent long-answer reference for this analysis. That makes it possible to compare the three sources in the same task. The results apply to the specified validation portion, answerers, and retrieval setup. They show that generated context can compete with a useful external baseline under those conditions. Retrieval with other collections, retrievers, or answering procedures is a separate comparison.

#### Where the right answer disappeared

The TriviaQA error analysis follows correct-answer strings through the stages of sampled recitation. The authors examine up to 20 passages and their corresponding candidate answers for each question in the analysis. First they ask whether the answer appears anywhere in the passages. If it does, they ask whether any answering call outputs it. If at least one call does, they ask whether voting selects it. Exact match identifies an ultimately correct answer.

In the first failure category, the expected answer is absent from all sampled recitations. This points to evidence generation as a practical bottleneck. Some questions may call for information that the system rarely produces. In others, the needed fact could appear indirectly or in a form the answer-string check misses. The diagnostic labels the outcome the authors can observe. It cannot distinguish unavailable knowledge from a failure to express accessible knowledge in those samples.

In the next category, a passage contains the answer but none of the candidates returns it. The reader may miss the relevant text or prefer a different answer. Simply finding the right string in a passage does not establish that the rest of the passage supports it. This category is still useful for locating a failure after generation has exposed the answer tokens. The authors find these cases less prominent than missing coverage and losing the vote.

In the other major failure category, at least one path returns the right answer and the aggregate decision selects another candidate. The system has already generated an acceptable answer, so the observed failure is in the selection procedure. This explains why improvements in passage generation can be hidden by voting. A new passage may contribute the first correct candidate and still have no effect on exact match if many other paths return the same wrong answer.

The per-path analysis complements the question-level categories. A passage with the right tokens can lead to an incorrect answer, and the answerer can be correct without those tokens in view. The latter case could involve inference from an indirectly helpful passage or recall from the system’s learned parameters. The diagnostic does not discriminate between those explanations. What it establishes is that visible answer tokens are neither a guarantee of successful answering nor a requirement for it.

### Limitations

#### Limits identified by the authors

The authors single out time-sensitive facts. When a fact changes, a system using only learned parameters to generate its evidence may keep producing the old account. Updating those parameters with a new collection would require training or fine-tuning, which the authors describe as costly. An external collection can be updated separately from the system that reads it. The closed-book design gives up that direct route to current information at question time.

The ethics statement identifies a related risk. The reciter and answerer both draw on learned parameters, so an existing bias can appear in the supporting passage and then influence the final response. Retrieval can supply material from an independently chosen, trusted collection. RECITE’s passages may look like evidence from such a collection while having been produced by the system itself. The experiments measure answers on the selected benchmarks. They do not measure bias amplification or establish overall improvements in faithfulness.

The authors also leave broader knowledge-intensive tasks for future work. They mention fact checking as an example. Finding a short answer to a question and verifying a claim put different demands on evidence. The latter may require identifying a contradiction, comparing sources, or establishing what an independent source actually says. The reported closed-book QA results give a reason to investigate such tasks while leaving their outcomes open.

#### Limits visible in the setup

The name “recitation” is an account of how the system is prompted and how the authors motivate the method. The benchmark gains cannot establish the origin of every generated passage in training data. A system might reproduce part of an article, synthesize material across related texts, or generate a plausible passage containing unsupported details. The passage remains inspectable in any of those cases, but its availability is distinct from verifiable provenance. Even a correctly formed passage hint is a generated claim about where content belongs when the system has performed no lookup.

For the same reason, the experiments do not isolate internal recall as the sole cause of improvement. The passage-first procedure changes the prompt, gives the system more space to produce relevant material, and makes that text available to another generation. The ensemble adds multiple attempts and a selection rule. The method-level comparison shows what happens when those procedures replace direct answering. A claim about exactly which internal process caused the gain would require evidence that follows the contribution of the generated passage more directly.

The task scores also leave room for a correct answer supported by a mistaken account. Exact match cares about the final normalized string. F1 cares about the overlap with the reference. If a passage offers a correct name with an incorrect explanation of the person’s role, the answer can receive full credit when only the name is requested. The multi-hop setting carries a related ambiguity. A correct response alone does not prove that the passages jointly established the intended chain of facts.

The few-shot setting uses a small number of supervised demonstrations, but those demonstrations contain real work. The Natural Questions recitation prompt benefits from long-answer annotations. The TriviaQA demonstrations rely on manually composed support. The HotpotQA prompts encode how to express separate evidence passages. The findings show what recitation can do with those kinds of examples. They do not establish how well it would perform if the only material available were short question–answer pairs and no one had prepared passage examples.

The fine-tuned condition has a different data dependency. It uses an external set of passages collected from Wikipedia pages associated with search queries, as well as synthetic questions. The word “closed-book” correctly describes how the trained system answers at evaluation. It does not imply that preparing that system is possible without document access. This distinction matters when comparing the hint-based result to direct prompting. The improved configuration has seen additional training data and uses a different decoding and aggregation procedure.

The tested dataset portions and comparisons also limit generalization. The TriviaQA and HotpotQA evaluations use the first 1,024 examples rather than an analysis over every available labeled item. The comparison with retrieval uses a particular BM25 index and a particular Natural Questions validation portion. The robustness check changes random seeds on TriviaQA with UL2, and the path-count study uses two named systems on that benchmark. Each tells the reader where a pattern was observed. The paper does not establish that every pattern carries across all collections, retrievers, prompt designs, and pretrained systems.

Finally, repeated generation incurs extra inference work. A path needs both a recitation and an answer, and multi-hop paths include more supporting text. The path-count analysis explicitly reuses a sampled pool to limit expense. The hint-based variant also incurs a training run. The paper shows cases where the additional work improves accuracy, while leaving the cost comparison with direct prompting and retrieval dependent on the implementation and evaluation setting.

### What came after

#### Deciding where supporting information comes from

RECITE treats access to knowledge as a decision about what information to place in front of the answerer. Later citing work studies source selection more directly. *When Not to Trust Language Models* investigates the effectiveness of parametric and non-parametric memory. Parametric memory is information represented through learned weights. Non-parametric memory supplies information from outside the weights, such as through a document collection. RECITE’s use of a passage generated from weights is one case on the parametric side of that comparison. The later paper’s question is when the choice between sources matters to the reliability of an answer. [When Not to Trust Language Models](https://md.research.elamur.ai/free/en/papers/mallen-2023-when-not-trust-language-models/)

*Self-Knowledge Guided Retrieval Augmentation* connects retrieval to what a system can determine about its own knowledge. RECITE uses internal generation to supply evidence under a fixed closed-book constraint. Self-knowledge-guided retrieval considers internal knowledge in making use of an external source. The relationship is particularly clear in light of RECITE’s error analysis. In some cases a generator finds several usable passages, while in others its sampled material never exposes the required fact. An external route is relevant to the latter case if the system has a signal that it needs help. [Self-Knowledge Guided Retrieval Augmentation](https://md.research.elamur.ai/free/en/papers/wang-2023-self-knowledge-guided-retrieval-augmentation/)

*FreshLLMs* addresses the freshness problem through search engine augmentation. RECITE’s authors identify changing facts as a particular difficulty for relying on stored parameters. Search provides a route by which a system can receive information from sources available at answer time. These papers place the update at different points in the process. The closed-book system must be adapted to make new information available in its learned parameters. Search augmentation can change the text supplied to the answerer without requiring that text to have been incorporated into those parameters beforehand. [FreshLLMs](https://md.research.elamur.ai/free/en/papers/vu-2023-freshllms-refreshing-large-language-models/)

The survey *Retrieval-Augmented Generation for Large Language Models* places retrieval-based methods within a broader account of the field. Its relationship to RECITE is the shared use of supporting text before generation. RECITE is a useful case for thinking about the boundary of retrieval augmentation because the recited paragraph can occupy the same place in the answer prompt as a retrieved paragraph. How it reached the prompt determines whether there is a document the reader can consult to check it. [Retrieval-Augmented Generation for Large Language Models: A Survey](https://md.research.elamur.ai/free/en/papers/gao-2023-retrieval-augmented-generation-large-language/)

#### Using intermediate text to guide search

*Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions* brings search into a succession of reasoning steps. The connection to RECITE is the role of information revealed along the way. In the HotpotQA method, an earlier recitation can introduce an entity that guides the next one. In interleaved retrieval and reasoning, an intermediate step can inform what to retrieve as the question is worked through. Both arrangements give the next stage a more specific starting point than the original question alone may offer. The later work is explicitly concerned with a setting that includes a retrieval source. [Interleaving Retrieval with Chain-of-Thought Reasoning](https://md.research.elamur.ai/free/en/papers/trivedi-2022-interleaving-retrieval-chain-thought-reasoning/)

*Active Retrieval Augmented Generation* moves the retrieval decision into generation. Its relation to RECITE is easiest to see by asking when the system commits to the text it will use. RECITE’s main answerer receives its recited context before it starts producing the short answer. Active retrieval concerns seeking information as generation proceeds. This makes the developing output relevant to the timing of evidence acquisition, whereas RECITE’s sequential variant uses developing passage text to guide the next recitation. [Active Retrieval Augmented Generation](https://md.research.elamur.ai/free/en/papers/jiang-2023-active-retrieval-augmented-generation/)

*Query2doc* uses generated language for query expansion. A short query can give a search system few words with which to find the relevant material. Generating a document-like expansion puts the original request into a richer textual form. In RECITE, that richer form goes straight to the answerer as context. In Query2doc, it serves the search process. This is a distinct use of the same broad observation about form: generating text around a question can make that question easier for a subsequent component to act on. [Query2doc](https://md.research.elamur.ai/free/en/papers/wang-2023-query2doc-query-expansion-large-language/)

*Demonstrate-Search-Predict* studies the composition of demonstrations, retrieval, and prediction for knowledge-intensive language tasks. RECITE is also compositional, with separate demonstrations for generating evidence and generating an answer. The operation between the demonstrations and prediction is different. Searching a collection produces documents to pass forward, while recitation generates the material passed forward. Comparing the designs makes clear that the arrangement of stages is separable from the choice of information source at each stage. [Demonstrate-Search-Predict](https://md.research.elamur.ai/free/en/papers/khattab-2022-demonstrate-search-predict-composing-retrieval/)

#### Examining the status of generated evidence

*“According to . . . ”* studies prompting for quotations from pretraining data. Its subject gives source wording a more direct role than it has in RECITE’s question-answering tests. A recitation can help answer a question when it conveys the relevant fact in different words. A quotation is judged partly by whether it reproduces a source’s wording. These tasks thus distinguish two possible goals for prompting a system to recall text: making the content available for use and reproducing how it appeared in a source. [“According to . . . ”](https://md.research.elamur.ai/free/en/papers/weller-2024-according-prompting-language-models-improves/)

*Blinded by Generated Contexts* examines how generated and retrieved contexts are combined when they conflict. RECITE compares the two context sources in separate Natural Questions conditions. A conflict setting instead presents a reader with the consequences of having both kinds of material available. The distinction matters because an answer produced after reading a generated passage can look as well grounded as one produced after reading a retrieved passage. When the passages disagree, the source of the text and the reader’s response to that disagreement become central to the evaluation. [Blinded by Generated Contexts](https://md.research.elamur.ai/free/en/papers/tan-2024-blinded-generated-contexts-how-language/)

*Making Reasoning Matter* concerns measuring and improving whether a displayed chain of thought is faithful to the reasoning behind an answer. RECITE exposes a related evaluation problem for factual context. Its answerer can be correct when its passage lacks the matching answer tokens, and a passage can contain the tokens without yielding a correct answer. The intermediate artifacts differ, since a chain of thought describes reasoning and a recitation supplies putative facts. In both settings, a reader can see the intermediate text, while measuring whether that text actually determined the outcome calls for a separate analysis. [Making Reasoning Matter](https://md.research.elamur.ai/free/en/papers/paul-2024-making-reasoning-matter-measuring-improving/)

## Cite

Cite as Zhiqing Sun, Xuezhi Wang, Yi Tay, Yiming Yang and Denny Zhou. 2022. Recitation-Augmented Language Models. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2210.01296](https://doi.org/10.48550/arxiv.2210.01296) · [arXiv 2210.01296](https://arxiv.org/abs/2210.01296)

```bibtex
@misc{sun2022recitation,
  title = {{Recitation-Augmented Language Models}},
  author = {Zhiqing Sun, Xuezhi Wang, Yi Tay, Yiming Yang and Denny Zhou},
  year = {2022},
  doi = {10.48550/arxiv.2210.01296},
  eprint = {2210.01296},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2210.01296}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
