Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
97 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
5 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your compute (2301.10448v2)

Published 25 Jan 2023 in cs.CL, cs.AI, and cs.LG

Abstract: Retrieval-augmented LLMs such as Fusion-in-Decoder are powerful, setting the state of the art on a variety of knowledge-intensive tasks. However, they are also expensive, due to the need to encode a large number of retrieved passages. Some work avoids this cost by pre-encoding a text corpus into a memory and retrieving dense representations directly. However, pre-encoding memory incurs a severe quality penalty as the memory representations are not conditioned on the current input. We propose LUMEN, a hybrid between these two extremes, pre-computing the majority of the retrieval representation and completing the encoding on the fly using a live encoder that is conditioned on the question and fine-tuned for the task. We show that LUMEN significantly outperforms pure memory on multiple question-answering tasks while being much cheaper than FiD, and outperforms both for any given compute budget. Moreover, the advantage of LUMEN over FiD increases with model size.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Michiel de Jong (14 papers)
  2. Yury Zemlyanskiy (12 papers)
  3. Nicholas FitzGerald (15 papers)
  4. Joshua Ainslie (32 papers)
  5. Sumit Sanghai (15 papers)
  6. Fei Sha (88 papers)
  7. William Cohen (11 papers)
Citations (13)

Summary

We haven't generated a summary for this paper yet.