2023

In-Context Retrieval-Augmented Language Models

Ram, Ori, Levine, Yoav, Dalmedigos, Itay et al.

Understand

Retrieval-Augmented Language Modeling (RALM) methods, which condition a language model (LM) on relevant documents from a grounding corpus during generation, were shown to significantly improve language modeling performance.

  • In addition, they can mitigate the problem of factually inaccurate text generation and provide natural source attribution mechanism.
  • Existing RALM approaches focus on modifying the LM architecture in order to facilitate the incorporation of external information, significantly complicating deployment.
  • This paper considers a simple alternative, which we dub In-Context RALM: leaving the LM architecture unchanged and prepending grounding documents to the input, without any further training of the LM.

Reading the bibliography…