Skip to main content
QUICK REVIEW

[Paper Review] Self-Prompting Large Language Models for Zero-Shot Open-Domain QA

Junlong Li, Wang, Jinyuan|arXiv (Cornell University)|Dec 16, 2022
Topic ModelingComputer Science13 citations
TL;DR

This paper proposes Self-Prompting, a framework that leverages large language models (LLMs) to autonomously generate high-quality pseudo QA datasets with passages and explanations for in-context learning in zero-shot open-domain question answering. By iteratively prompting LLMs to create structured QA triples and using a clustering-based retrieval method to select diverse, salient demonstrations, the approach achieves state-of-the-art performance on WebQ, NQ, and TriviaQA, matching or surpassing fine-tuned Retriever-Reader models without any training data.

ABSTRACT

Open-Domain Question Answering (ODQA) aims to answer questions without explicitly providing specific background documents. This task becomes notably challenging in a zero-shot setting where no data is available to train tailored retrieval-reader models. While recent Large Language Models (LLMs) like GPT-3 have demonstrated their effectiveness in zero-shot ODQA using direct prompting methods, these methods still fall short of fully harnessing the potential of LLMs when implicitly invoked. In this paper, we propose a Self-Prompting framework to explicitly utilize the massive knowledge encoded in the parameters of LLMs and their strong instruction understanding abilities. Concretely, we prompt LLMs step by step to generate multiple pseudo QA pairs with background passages and explanations entirely from scratch. These generated elements are then utilized for in-context learning. Experimental results show that our method significantly surpasses previous state-of-the-art zero-shot methods on three widely-used ODQA datasets and even achieves comparable performance with various customized fine-tuned models on full training data. Our code is available at https://github.com/lockon-n/self-prompting.

Motivation & Objective

  • To address the challenge of zero-shot open-domain question answering (ODQA) where no training data or external knowledge corpus is available.
  • To explicitly leverage the knowledge and instruction-following capabilities of LLMs beyond simple direct prompting.
  • To improve zero-shot ODQA performance by generating a pseudo QA dataset with passages and explanations for in-context learning.
  • To develop an effective method for selecting high-quality, diverse demonstrations from the generated pseudo-dataset for inference.
  • To evaluate whether LLM-generated data can match the performance of manually annotated training data in in-context learning.

Proposed method

  • The method consists of two stages: preparation and inference.
  • In the preparation stage, the LLM is prompted step-by-step to generate Wikipedia-style passages, extract named entities as answers, formulate questions, and write concise explanations for each QA pair.
  • The generated pseudo-dataset includes structured QA pairs with associated passages and explanations, forming a high-quality synthetic training set.
  • In the inference stage, a clustering-based retrieval method selects semantically similar and diverse examples from the pseudo-dataset for each test question.
  • The selected QA pairs, along with their passages and explanations, are concatenated with the test question in a specific format (e.g., QAE: Question, Answer, Explanation) to form the final input for the LLM.
  • The final answer is generated by the LLM based on the in-context demonstrations, enabling zero-shot inference without any fine-tuning.

Experimental results

Research questions

  • RQ1Can LLMs autonomously generate high-quality, factually consistent QA triples with supporting passages and explanations for zero-shot ODQA?
  • RQ2Does using self-generated pseudo-datasets for in-context learning outperform direct prompting and previous SOTA zero-shot methods?
  • RQ3How effective is a clustering-based retrieval strategy for selecting diverse and relevant demonstrations from the generated pseudo-dataset?
  • RQ4Can the performance of LLM-generated data match that of manually annotated training data in in-context learning?
  • RQ5How do different prompt formats (e.g., QA vs. QAE) affect the final answer accuracy?

Key findings

  • Self-Prompting significantly outperforms previous SOTA zero-shot ODQA methods, including GENREAD, on WebQ, NQ, and TriviaQA benchmarks.
  • The method achieves performance comparable to fine-tuned Retriever-Reader models that are trained on full training data, despite using no training data.
  • The performance of Self-Prompting is within 1 EM/F1 point of using manually annotated training data with the same number of demonstrations, indicating high-quality data generation.
  • The QAE format (Question, Answer, Explanation) consistently improves performance over QA format, especially with fewer demonstrations.
  • InstructGPT and Codex generate higher-quality data with fewer factual errors than smaller models like Alpaca and GPT-NeoX, demonstrating the impact of model scale and instruction-following ability.
  • The clustering-based retrieval method effectively selects diverse and semantically relevant demonstrations, improving generalization and robustness across test samples.

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.