Skip to content

06 Parametric vs Retrieved Knowledge

Anurag Prasad edited this page Nov 29, 2026 · 1 revision

6. 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.

RAG vs parametric Figure 6.1 · Parametric-only answering vs retrieval-augmented answering (project diagram).

6.1 Two kinds of memory

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 $z$:

$$p(y\mid x)\approx\sum_{z\in\text{top-}k,(p_\eta(\cdot\mid x))}p_\eta(z\mid x),\prod_{i=1}^{N}p_\theta(y_i\mid x,z,y_{1:i-1})$$

where $p_\eta$ is the retriever and $p_\theta$ the generator.

6.2 Internet-augmented models

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.

6.2.1 Edge of search over weights

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).

6.3 A simple cost model

Let $p$ be the probability the parametric answer is correct, $q$ the probability a retrieval-grounded answer is correct, $c_s$ the extra cost of a search round and $L$ the loss from a wrong answer. Searching is worthwhile when

$$(q-p),L > c_s$$

For stable facts $p\approx q$ (do not search); for post-cutoff facts $p\approx 0$ (search). This is a framing of what vendors call "steerable triggering".

6.4 Where retrieval hurts


❓ Check your understanding

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 ($q-p\approx0$) or the cost of being wrong is tiny; then search adds latency without benefit.

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

Clone this wiki locally