Can Generative Pre-trained Language Models Serve as Knowledge Bases for Closed-book QA?

Cunxiang Wang, Pai Liu, Yue Zhang

Abstract

This research investigates the capacity of generative pre-trained language models (PLMs), such as BART, to function as standalone knowledge bases for closed-book question answering (QA). By introducing a rigorous benchmark based on SQuAD, the study reveals significant challenges in both fact memorization and knowledge retrieval. To address these, the authors propose "QA-bridge-tuning," a method that improves the model's ability to access its internal memory.

Introduction: The Illusion of Knowledge

In closed-book QA, models must answer questions using only internal parameters, without external document retrieval. While models like T5 and BART show high performance on standard benchmarks, recent critiques suggest this may be due to "test-train overlap"—where test questions closely mirror training data. This paper explores whether PLMs can truly memorize raw factual knowledge and retrieve it effectively for QA, or if they are merely memorizing superficial patterns.

Methods: A Three-Phase Investigation

The authors evaluate the models through a structured pipeline designed to decouple memorization from retrieval:

  1. LM-finetuning: Raw knowledge is fed into the model using a denoising objective, mirroring the original pre-training phase.
  2. Reciting: A novel evaluation task where the model fills in masked "answer spans" within original passages to test fact retention.
  3. QA-bridge-tuning: A training approach where the model generates a relevant knowledge passage before the final answer (e.g., "Passage <ANSWER> Answer").
  4. Decoupling: Prefix/suffix tokens (e.g., <PASSAGE>, <QUESTION>) are used to separate task spaces and prevent memory corruption.
Overview of the experimental pipeline including LM-finetuning, Reciting, and QA-bridge-tuning.

Datasets and the SQuAD Challenge

The study utilizes WebQuestions (WB), TriviaQA (TQ), and NaturalQuestions (NQ). However, the authors introduce a new adaptation of SQuAD for closed-book QA. Unlike other datasets, SQuAD features traceable sources and significantly lower overlap (~1% vs. ~30% in others), providing a more rigorous test of internal knowledge.

Key Insights: The Retrieval Gap

The research highlights several critical findings:

  • The Overlap Trap: High performance on traditional datasets is often a "mirage." On SQuAD, BART’s accuracy dropped to 1.5%.
  • The Forgetting Curve: Models struggle to scale memory. BART's "recitation" accuracy fell from 87% (20 passages) to 4% (5,000 passages).
  • The Retrieval Gap: Models often fail to use facts they have successfully memorized to answer direct questions, indicating a broken "internal index."
  • Bridge-tuning as a Solution: Forcing the model to output the source passage during training significantly improves retrieval by teaching the model how to access its internal "notes."
Illustration of QA-bridge-tuning where the model generates the source passage before the answer.

Key Results

  • Baseline Performance: BART-Large achieved ~25% accuracy on high-overlap sets but only 1.5% on SQuAD.
  • Memorization: After LM-finetuning, fact recitation rose from 3.6% to 66.3% on a 547-passage subset.
  • Bridge-tuning Impact: On a 160-passage subset, standard QA finetuning yielded 3.2% Exact Match (EM), while bridge-tuning reached 11.8%.
  • Human Evaluation: Experts found bridge-tuning produced more relevant answers in 30.2% of cases, compared to 16.6% for standard methods.

Conclusion

While generative PLMs show potential, their capacity as comprehensive knowledge bases is currently limited by weak memory and scaling issues. Future work will focus on better decoupling knowledge storage from QA tasks and exploring larger architectures to overcome the "scaling wall" of internal memory.

Summary updated

BibTeX
@inproceedings{wang2021can,
  author = {Cunxiang Wang and Pai Liu and Yue Zhang},
  title = {{Can Generative Pre-trained Language Models Serve as Knowledge Bases for Closed-book QA?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.251},
}
Figure