Stochastic RAG: End-to-End Retrieval-Augmented Generation through Expected Utility Maximization

Hamed Zamani, Michael Bendersky
5/5/2024
cs.CLcs.IRcs.LG

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

This paper introduces Stochastic RAG--a novel approach for end-to-end optimization of retrieval-augmented generation (RAG) models that relaxes the simplifying assumptions of marginalization and document independence, made in most prior work. Stochastic RAG casts the retrieval process in RAG as a stochastic sampling without replacement process. Through this formulation, we employ straight-through Gumbel-top-k that provides a differentiable approximation for sampling without replacement and enables effective end-to-end optimization for RAG. We conduct extensive experiments on seven diverse datasets on a wide range of tasks, from open-domain question answering to fact verification to slot-filling for relation extraction and to dialogue systems. By applying this optimization method to a recent and effective RAG model, we advance state-of-the-art results on six out of seven datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zamani2024stochastic,
  title  = {Stochastic RAG: End-to-End Retrieval-Augmented Generation through Expected Utility Maximization},
  author = {Hamed Zamani and Michael Bendersky},
  year   = {2024},
  eprint = {2405.02816},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.02816v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.02816.svg)](https://codeofpaper.com/paper/2405.02816)

Discussion