Skip to main content
QUICK REVIEW

[Paper Review] Active Retrieval Augmented Generation

Zhengbao Jiang, Frank F. Xu|arXiv (Cornell University)|May 11, 2023
Topic ModelingComputer Science17 citations
TL;DR

FLARE introduces a forward-looking, active retrieval framework that decides when and what to retrieve during long-form generation, improving factuality and coverage across multiple knowledge-intensive tasks. It demonstrates superior or competitive performance versus baselines on four long-form datasets.

ABSTRACT

Despite the remarkable ability of large language models (LMs) to comprehend and generate language, they have a tendency to hallucinate and create factually inaccurate output. Augmenting LMs by retrieving information from external knowledge resources is one promising solution. Most existing retrieval augmented LMs employ a retrieve-and-generate setup that only retrieves information once based on the input. This is limiting, however, in more general scenarios involving generation of long texts, where continually gathering information throughout generation is essential. In this work, we provide a generalized view of active retrieval augmented generation, methods that actively decide when and what to retrieve across the course of the generation. We propose Forward-Looking Active REtrieval augmented generation (FLARE), a generic method which iteratively uses a prediction of the upcoming sentence to anticipate future content, which is then utilized as a query to retrieve relevant documents to regenerate the sentence if it contains low-confidence tokens. We test FLARE along with baselines comprehensively over 4 long-form knowledge-intensive generation tasks/datasets. FLARE achieves superior or competitive performance on all tasks, demonstrating the effectiveness of our method. Code and datasets are available at https://github.com/jzbjyb/FLARE.

Motivation & Objective

  • Motivate the need for continual information gathering during long-form generation to reduce hallucinations.
  • Propose a generic active retrieval framework that decides when and what to retrieve during generation.
  • Introduce FLARE, which uses forward-looking signals to trigger retrieval and regenerate text.
  • Evaluate FLARE on four long-form knowledge-intensive tasks to assess generality and effectiveness.

Proposed method

  • Formalize active retrieval augmented generation, where retrieval queries are generated at generation steps based on prior context and output.
  • Present two FLARE variants: FLARE_instruct uses retrieval-instruction prompts to elicit queries; FLARE_direct uses next-sentence generation to trigger retrieval.
  • In FLARE_direct, generate a temporary next sentence, trigger retrieval if confidence is low, then regenerate the sentence with retrieved documents.
  • Use confidence/probability thresholds to decide when to retrieve (theta) and when to proceed without retrieval.
  • Formulate queries based on either the next sentence or masked/explicit questions derived from low-confidence spans to reduce noise in retrieval.
  • Evaluate with off-the-shelf retrievers (BM25 on Wikipedia dumps; Bing for open web) and GPT-3.5 text-davinci-003 as the LM.

Experimental results

Research questions

  • RQ1Can an active retrieval strategy that decides when to retrieve improve long-form, knowledge-intensive generation?
  • RQ2How do different query formulations (next-sentence, masked tokens, explicit questions) affect retrieval quality and generation fidelity?
  • RQ3Is forward-looking retrieval more effective than using past context as queries for long-form generation tasks?
  • RQ4What is the impact of retrieval frequency (via threshold theta) on performance and efficiency?

Key findings

  • FLARE achieves superior or competitive performance across four long-form knowledge-intensive tasks compared to single-time and multi-time baselines.
  • On 2WikiMultihopQA, FLARE_direct achieves the highest EM (51.0) and F1 (59.7) among listed baselines.
  • Across StrategyQA, ASQA, ASQA-hint, and WikiAsp, FLARE methods outperform baselines on key metrics, demonstrating generalizability.
  • Forward-looking retrieval (using the next sentence as query) outperforms previous-context retrieval (using the past sentence or window) in ablations.
  • Masking low-confidence tokens before retrieval improves performance over using the full next sentence as a query.
  • Explicitly generated questions for low-confidence spans perform comparably to implicit masking, offering flexible query formulations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.