TL;DR
RECITE is a new paradigm that boosts the factual accuracy of Large Language Models (LLMs) in "closed-book" settings by forcing them to recite relevant information from their own memory before answering a question. By mimicking an internal retrieval step, RECITE achieves state-of-the-art performance on knowledge-intensive tasks without needing access to any external databases or search engines.
What Problem Does This Paper Address?
While LLMs like PaLM or GPT-3 are essentially massive repositories of human knowledge, they often struggle to "find" the right facts when asked a direct question. This is largely because the way we prompt them (e.g., "Who wrote this song?") is very different from how they were trained (predicting the next word in a sequence).
Current solutions usually involve Retrieval-Augmented Generation (RAG), where a model looks up information in an external corpus like Wikipedia. However, RAG requires maintaining a massive, up-to-date index and a separate retrieval system. The authors of this paper asked: Can we get the benefits of retrieval by just looking inside the model’s own weights?
Methods
The authors introduce RECITE, a "recite-and-answer" scheme. Instead of going straight from Question $\rightarrow$ Answer, the process becomes:
- Knowledge Recitation: Given a question, the LLM is prompted to generate (recite) one or more relevant passages from its internal memory.
- Task Execution: The model then uses those recited passages as context to generate the final answer.
To make this robust, the authors employ several clever techniques:
- Self-Consistency Ensembling: The model generates multiple different recitations via sampling. It then produces an answer for each recitation and uses a majority vote to pick the final winner.
- Multi-hop Recitation: For complex questions requiring multiple steps of logic, the model recites information sequentially, where the second recitation can build on the first.
- Passage Hint-based Diversification: To prevent the model from repeating the same (potentially wrong) fact, the authors use "passage hints" (like Wikipedia section titles) to force the model to look at the topic from different angles.
- Fine-tuning on Synthetic Data: They show that fine-tuning the model on synthetic question-passage pairs helps it learn the mapping between a query and its internal "latent" documents.
Datasets
The researchers evaluated RECITE across three primary knowledge-intensive benchmarks:
- Natural Questions (NQ): Real-world queries from Google Search.
- TriviaQA: A reading comprehension dataset containing trivia enthusiast-authored questions.
- HotpotQA: A dataset designed for multi-hop reasoning, where answers must be synthesized from multiple pieces of information.
They tested these on four major model families: PaLM, UL2, OPT, and Codex.
Key Insights and Ideas
- The "Latent" Knowledge Base: The paper proves that LLMs contain a vast amount of "underestimated" knowledge that direct prompting fails to extract. Recitation acts as a bridge that aligns the QA task with the model's original pre-training objective.
- Fuzzy Memorization is Enough: Interestingly, the model doesn't need to recite a passage word-for-word to be helpful. Even a "fuzzy" recitation that captures the core facts significantly improves the accuracy of the subsequent answer.
- Recitation vs. Chain-of-Thought (CoT): While CoT (showing your work) is great for logic and math, RECITE is superior for fact-heavy questions. In multi-hop tasks (HotpotQA), RECITE outperformed CoT because it focused on retrieving facts rather than just explaining the reasoning steps.
- Internal vs. External Retrieval: RECITE can sometimes rival traditional retrieval methods (like BM25). While it doesn't replace the need for external data entirely, it shows that the "internal" retrieval capacity of LLMs is a powerful, untapped resource.
Key Results
RECITE consistently outperformed direct generation across all models and datasets:
- Natural Questions: On PaLM-62B (5-shot), RECITE improved the Exact Match (EM) score from 25.76 to 32.20 when using diversified recitation.
- TriviaQA: Improvements were even more pronounced on smaller models; for example, UL2-20B saw an EM jump from 48.73 to 53.42.
- Multi-hop Reasoning: On HotpotQA, RECITE achieved 37.11 EM with Codex, significantly outperforming both direct prompting (28.32) and Chain-of-Thought (34.38).
Limitations and Future Work
- Knowledge Staleness: Unlike external RAG, which can be updated by simply swapping the text corpus, RECITE relies on the model's weights. Updating the model's knowledge requires expensive retraining or fine-tuning.
- Inference Cost: Generating 20 different recitation paths to perform majority voting is computationally expensive and increases latency.
- Hallucination: While the two-step process helps, the model can still "recite" plausible-sounding lies. The authors suggest that future work could involve better fact-checking mechanisms for these internal recitations.
- Scaling: The authors note that while RECITE works for various sizes, the quality of recitation scales with model size, suggesting that the "internal retrieval" effect is an emergent property of larger LLMs.
Summary updated