Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks

Lewis et al., 2020, Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (Advances in Neural Information Processing Systems 33 (NeurIPS 2020))

Subscriber deck — free during early access

1 cards in “2.5 Decoding” · whole deck

2.5 Decoding

  1. How are RAG-Token and RAG-Sequence decoded?
    RAG-Token is an ordinary autoregressive model with per-step marginalized probabilities, so standard beam search works. RAG-Sequence’s likelihood doesn’t factor per token: run beam search per document, then score each candidate across documents (“thorough decoding”, extra forward passes) or approximate missing scores as zero (“fast decoding”).

Source