Repository navigation
06 Parametric vs Retrieved Knowledge
What a model "knows" lives in two places: its weights (parametric memory) and whatever it can look up at inference time (non-parametric memory). Web search is the largest lookup source available.
Figure 6.1 · Parametric-only answering vs retrieval-augmented answering (project diagram).
Lewis et al. (2020) frame retrieval-augmented generation (RAG) as combining a parametric seq2seq model with a non-parametric memory — a dense index of Wikipedia — accessed by a neural retriever. Earlier and parallel work includes REALM, RETRO and Atlas. A broad survey: Gao et al., 2023.
The RAG-sequence formulation marginalises over retrieved documents
where
Lazaridou et al. (2022) showed that conditioning a language model on live Google Search results improves factuality on time-sensitive questions. WebGPT (Nakano et al., 2021) trained a model to browse text-based web pages and return answers with references.
| Dimension | Parametric weights | Live search / retrieval |
|---|---|---|
| Freshness | Frozen at training cutoff | Current at query time |
| Update cost | Retrain / fine-tune | Change the corpus or query a live index |
| Attribution | Opaque | Citable URLs (vendor docs return cited sources) |
| Long-tail facts | Often wrong or forgotten | Retrievable if indexed |
| Latency / cost | Fast, cheap per token | Extra round-trips, tool fees, tokens for context |
| Failure mode | Hallucination | Bad retrieval, poisoned pages, blocked access |
| Privacy | Training-data memorisation | Query leaves the trust boundary |
| Security | Training poisoning | Prompt injection through retrieved content |
Neither dominates: weights give fluent reasoning and common knowledge cheaply; retrieval supplies fresh, long-tail, citable evidence. Production assistants route between them — vendors say the model decides when to search (Anthropic, OpenAI, DeepSeek).
Let
For stable facts
- Poisoned or low-quality sources → confident wrong answers.
- Context flooding: more snippets ≠ better answers; Anthropic's newer tool can run code to filter results before they reach the context window ("dynamic filtering").
- Access barriers: blocked fetches mean silent evidence gaps (15–17).
Q1. Why is retrieved evidence easier to audit than weights?
Because answers can carry the URLs and text spans they used; parametric knowledge has no addressable source.
Q2. When is $(q-p)L > c_s$ false for a user question?
When the question is stable and well-known (
Q3. Name two risks specific to retrieval-time knowledge.
Prompt injection through fetched pages and evidence gaps caused by blocked access or upstream challenges.
← Prev 5. Metasearch · Next → 7. Agentic Architecture History
Web Search Engine Pipeline Wiki · evidence snapshot 29 Nov 2026 · measured results are from the project's GitHub Actions runs; third-party figures are cited inline and listed in References.
Part I · Mission
Part II · Search Ecosystem
Part III · LLMs Meet the Web
- 6. Parametric vs Retrieved Knowledge
- 7. Agentic Search Architecture History
- 8. How Major Assistants Search
- 9. Search APIs for Agents
- 10. Agentic Browsing & Computer Use
Part IV · Simulation Lab
- 11. Simulation Strategy on GitHub Actions
- 12. Experiments & Measured Results
- 13. Reliability & Failure Taxonomy
- 14. Simulation vs Real Infrastructure
Part V · The Machine-Majority Web
- 15. Bot Traffic & AI Crawlers
- 16. Detection, Blocking & Monetisation
- 17. Detection Gaps
- 18. AI-Generated Content & the Info Ecosystem
- 19. Industry Adoption & Use Cases
Part VI · Future
Appendix