Abstract: Recent work has suggested that language models (LMs) store both common-sense and factual knowledge learned from pre-training data. In this paper, we leverage this implicit knowledge to create an effective end-to-end fact checker using a solely a language model, without any external knowledge or explicit retrieval components. While previous work on extracting knowledge from LMs have focused on the task of open-domain question answering, to the best of our knowledge, this is the first work to examine the use of language models as fact checkers. In a closed-book setting, we show that our zero-shot LM approach outperforms a random baseline on the standard FEVER task, and that our fine-tuned LM compares favorably with standard baselines. Though we do not ultimately outperform methods which use explicit knowledge bases, we believe our exploration shows that this method is viable and has much room for exploration.
Introduction
Traditional automated fact-checking is a computationally intensive engineering task. Standard pipelines typically rely on a three-stage process: searching through millions of documents (Document Retrieval), identifying specific sentences that support or refute a claim (Evidence Selection), and finally using a classifier to determine a verdict (Claim Verification). This approach requires maintaining massive external databases like Wikipedia and is limited by the speed and accuracy of the retrieval steps.
This research investigates whether large language models (LMs) like BERT can serve as "closed-book" fact-checkers. By querying an LM's internal knowledge through masked token prediction, the authors explore if we can skip the external database entirely and rely on the facts the model "memorized" during its pre-training phase.
Methodology: The $BERT_{asKB}$ Pipeline
The authors propose a novel architecture called $BERT_{asKB}$ (BERT as a Knowledge Base). Instead of retrieving external evidence, the system generates its own "internal" evidence through a structured process.
- Automatic Masking: A Named-Entity-Recognition (NER) tool identifies the last named entity in a claim and replaces it with a
[MASK]token. For example, "Tim Roth is an English actor" becomes "Tim Roth is an English [MASK]." - Evidence Generation: The masked claim is fed into BERT, which predicts the most likely token to fill the blank. The resulting completed sentence serves as the generated "evidence."
- Verification via Entailment: The original claim and the generated evidence are processed by a pre-trained textual entailment model to identify semantic relationships.
- Final Classification: Features from the entailment model are passed through a Multi-Layer Perceptron (MLP) to produce a final label: SUPPORTS, REFUTES, or NOT ENOUGH INFORMATION (NEI).
Experimental Setup
The study utilizes the FEVER (Fact Extraction and VERification) dataset, which contains claims derived from approximately 5.4 million Wikipedia documents. Each claim is manually annotated with a truth label. Because this "closed-book" approach does not utilize external URLs, the evaluation focuses on label accuracy rather than the traditional FEVER score which requires specific document citations.
Results and Analysis
The $BERT_{asKB}$ model achieved a label accuracy of 49%. This is a significant result, as it matches the original FEVER shared-task baseline (48.8%) that utilized an external knowledge base. The model significantly outperformed both a random baseline (33%) and a "frozen" BERT baseline (38%).
As shown in the results table, the model was particularly effective at identifying supported claims, reaching an F1 score of 0.57 for the "SUPPORTS" class. However, a notable performance gap remains between this closed-book approach and state-of-the-art (SOTA) systems like DREAM (77%), which employ sophisticated retrieval and graph-based reasoning.
Discussion and Limitations
A key insight from this work is that the phrasing of the "query" matters immensely. BERT is highly sensitive to formatting; for instance, it may correctly identify a birth year in a parenthetical format common to Wikipedia but fail when the same information is requested in a full sentence.
Several limitations persist:
- The NEI Problem: The model struggled with the "Not Enough Information" category (F1: 0.24), often hallucinating tokens or showing overconfidence when it lacked the underlying knowledge.
- Knowledge Cutoff: As a closed-book model, its knowledge is static and limited to its training data cutoff. It cannot verify events that occurred after its pre-training.
- Masking Strategy: The current strategy is limited to masking the final named entity. More flexible generative models (like T5) might produce more natural and accurate evidence sentences.
Despite these challenges, the study demonstrates that using LMs as implicit knowledge bases for fact-checking is a viable path. As models grow in size and memorization capacity, the effectiveness of this simplified, retrieval-free approach is expected to improve.
Summary updated