← Back to article

Equation 6 · Retrieval Is an Evidence System, Not a Memory

What does this equation mean?

p(y∣x)≈∑z∈Zk(x)pη(z∣x)∏i=1∣y∣pθ(yi∣x,z,y1:i−1)p(y \mid x) \approx \sum_{z \in \mathcal{Z}_k(x)} p_\eta(z \mid x) \prod_{i=1}^{|y|} p_\theta\left(y_i \mid x, z, y_{1:i-1}\right)

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

Inputs and operations1^|y| p_θ(y_i mid x, z, y_1:i-1)
Result or conditionp(y mid x) ≈ sum_z in Z_k(x) p_eta(z mid x) prod_i
How to read the two sides of this formula. Follow the article passage for the meaning of each quantity.

This equation gives an approximation: it relates the quantities while allowing an approximation. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

pp

Symbol p

p appears in the conditional probability being evaluated. The vertical bar identifies the information or condition supplied to that probability.

Understand this part →

yy

Symbol y

y appears in the bound of this product. The bound states where the repeated operation starts, ends, or which values it includes.

Understand this part →

xx

Symbol x

the writing.

Understand this part →

zz

Symbol z

z appears in the bound of this sum. The bound states where the repeated operation starts, ends, or which values it includes.

Understand this part →

Zk\mathcal{Z}_k

Symbol Z_k

ZkZ_k appears in the bound of this sum. The bound states where the repeated operation starts, ends, or which values it includes.

Understand this part →

pηp_\eta

Symbol p_eta

pep_eta appears in the conditional probability being evaluated. The vertical bar identifies the information or condition supplied to that probability.

Understand this part →

ii

Symbol i

i appears in the bound of this product. The bound states where the repeated operation starts, ends, or which values it includes.

Understand this part →

pθp_\theta

Symbol p_θ

p_θ is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

yiy_i

Symbol y_i

yiy_i is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

y1:i−1y_{1:i-1}

Symbol y_1:i-1

y1y_1:i-1 is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

=

=

The expressions on both sides represent the same quantity under the stated assumptions.

Understand this part →

See an illustrated explanation →
≈

≈

Approximately equal to; the equality is not exact.

Understand this part →

subtraction

subtraction

Subtract the following term or group from the preceding one. A leading minus marks a negative quantity.

Understand this part →

subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

superscript

superscript

A raised number can be a power. When it is a label or bound, it selects a case or the upper limit of a sum; the formula’s structure distinguishes these uses.

Understand this part →

See an illustrated explanation →
z∈Zk(x)z \in \mathcal{Z}_k(x)

Starting index or lower bound: z in Z_k(x)

This label says where the repeated addition, multiplication, or accumulation starts. Read its value or condition together with the article’s description of the index.

Understand this part →

i=1i=1

Starting index or lower bound: i=1

This label says where the repeated addition, multiplication, or accumulation starts. Read its value or condition together with the article’s description of the index.

Understand this part →

∣y∣|y|

Ending index or upper bound: |y|

This label says where the repeated addition, multiplication, or accumulation stops. It sets the last term or end of the range.

Understand this part →

How to interpret it

Its accuracy depends on the assumptions and range of use described in the article. Read it with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

The retrieval literature said the opposite. Lewis and colleagues introduced RAG explicitly as a combination of parametric and non-parametric memory, and the architectural point is that the second is a different kind of object, not an extension of the first [ 1 ] . Their formulation treats the retrieved passage as a latent variable to be marginalised over. Writing x for the query, y for the output, and Zk(x)\mathcal{Z}_k(x) for the top k passages returned by a retriever with parameters η\eta : p(y∣x)≈∑z∈Zk(x)pη(z∣x)∏i=1∣y∣pθ(yi∣x,z,y1:i−1)p(y \mid x) \approx \sum_{z \in \mathcal{Z}_k(x)} p_\eta(z \mid x) \prod_{i=1}^{|y|} p_\theta\left(y_i \mid x, z, y_{1:i-1}\right). Read the structure rather than the arithmetic. The generator is never conditioned on the corpus. It is conditioned on z — one span, or a handful — and its output distribution is a…
Read the full surrounding passage
The retrieval literature said the opposite. Lewis and colleagues introduced RAG explicitly as a combination of parametric and non-parametric memory, and the architectural point is that the second is a different kind of object, not an extension of the first [ 1 ] . Their formulation treats the retrieved passage as a latent variable to be marginalised over. Writing x for the query, y for the output, and Zk(x)\mathcal{Z}_k(x) for the top k passages returned by a retriever with parameters η\eta : p(y∣x)≈∑z∈Zk(x)pη(z∣x)∏i=1∣y∣pθ(yi∣x,z,y1:i−1)p(y \mid x) \approx \sum_{z \in \mathcal{Z}_k(x)} p_\eta(z \mid x) \prod_{i=1}^{|y|} p_\theta\left(y_i \mid x, z, y_{1:i-1}\right). Read the structure rather than the arithmetic. The generator is never conditioned on the corpus. It is conditioned on z — one span, or a handful — and its output distribution is a weighted account of what those spans support. Everything outside Zk(x)\mathcal{Z}_k(x) has probability zero of influencing the answer, and the system has no representation of what it excluded. REALM made the same commitment on the training side, learning a latent retriever end-to-end so that the model attends over documents drawn from a corpus at pretraining, fine-tuning and inference time, and reporting 4–16% absolute gains on open-domain question answering over prior methods [ 2 ] .

Read the equation in its article →

Sources cited in the surrounding passage

These citations give research context. Read each source to check which claims it supports.

Return to Retrieval Is an Evidence System, Not a Memory

See this formula across 1 published context →

Browse the mathematical compendium →