One Passage or Many? RAG-Sequence and RAG-Token
This chapter compares the two original RAG formulations by one decisive question: how much of an answer should be guided by the same retrieved document? RAG-Sequence keeps one document responsible for a whole generated sequence, while RAG-Token can let different documents influence different tokens. Understanding that choice gives readers a way to judge the trade-off between document-level coherence and multi-document composition, and to see why the choice changes decoding as well as model behavior.
The difference is not a cosmetic variation in notation. It changes what counts as a plausible explanation for an answer. A short response may depend on one passage that contains all the necessary context. A longer response may require several pieces of information or may benefit from a passage that supplies an initial clue while the generator completes familiar wording. The two formulations allocate responsibility differently before the first token is produced.
RAG-Sequence asks one document to carry the answer
RAG-Sequence treats the retrieved document as one latent variable for the complete target sequence. For every candidate in the top-K set, the generator calculates the probability of the whole answer while conditioning on that document. The system then weights each sequence probability by the retriever’s probability for the document and sums the alternatives. In plain language, each candidate gets to make a case for the entire answer, and RAG combines those document-level cases.
This can be expressed as a simple comparison among complete candidates. Passage A is evaluated with the full output sequence, passage B is evaluated with that same sequence, and so on. The model does not ask which passage supports the first half and then silently switch for the second half. It asks how well each passage-conditioned run accounts for the answer as a whole, then preserves the alternatives through the marginal probability. The document is therefore a unit of explanation, even though the final result can reflect more than one candidate.
This assumption creates a form of coherence. If one passage contains the relevant context, all tokens in the answer are generated with that passage available. The document does not change halfway through the sequence simply because a later token would be more probable under another candidate. That can make the document-level interpretation easier to explain: one can ask which retrieved passage best accounts for the answer as a whole.
Coherence is an assumption, not a guarantee. An answer can legitimately draw on several passages, especially when the question asks for multiple facts. A single candidate may contain only one part of what is needed. RAG-Sequence can still use the generator’s parametric memory to complete or transform the passage, but it does not give the model a new retrieved document for a later part of the answer. The same-document constraint may therefore favor consistency at the cost of flexibility.
The constraint also affects search at test time. A usual autoregressive beam search works with a per-token transition probability: at each step, it extends partial answers according to their next-token scores.