Introduction
Knowledge Bases (KBs) such as Wikidata serve as the foundational structured data for modern AI applications. However, the manual curation of these facts is labor-intensive and difficult to scale. Recent advancements in Large Language Models (LLMs) have prompted researchers to explore whether these models can serve as automated "knowledge architects." While previous benchmarks like LAMA focused on single-token completion, real-world Knowledge Base Construction (KBC) requires handling multiple answers, zero-answer sets, and complex multi-token entities.
This paper introduces ProP (Prompting as Probing), a multi-step framework designed to extract structured facts from GPT-3. By treating the LLM as a queryable database, ProP achieved a dominant victory in the ISWC 2022 LM-KBC challenge.
Methodology
The ProP framework utilizes a pipeline of techniques to transform raw model outputs into high-quality KB entries:
- Few-Shot Prompting: The system provides GPT-3 with four representative examples of a specific relation. Two prompting styles were evaluated: Natural Language (e.g., "Which countries neighbour {subject}?") and Triple-based (e.g., "{subject} CountryBordersWithCountry:").
- Handling the "Empty Set": To mitigate hallucinations when no factual relationship exists, the prompts explicitly include examples where the expected answer is
[]or['None']. - Fact Probing (Verification): A novel post-processing step where the model's own suggestions are turned into True/False questions (e.g., "Is it true that Niger neighbors Libya?"). This self-verification significantly filters out false positives.
- Entity Alias Matching: To account for linguistic variation (e.g., "USA" vs. "United States"), the system leverages Wikidata aliases to normalize predictions against ground truth.
Key Insights
Scaling and Model Size
A primary finding of the research is the direct relationship between model capacity and KBC accuracy. The performance improvement from the smallest model (Ada) to the largest (Davinci) follows a nearly linear trajectory in terms of F1-score.
Prompt Engineering Nuances
- Triple Prompts vs. Natural Language: Triple-based prompts generally outperformed natural language queries. The researchers suggest that the structured nature of triples reduces linguistic "noise," allowing the model to focus on the raw relational data.
- The "None" Anchor: Explicitly training the model to recognize when no answer is appropriate is essential. Without a "None" or empty set example, generative models often feel "pressured" to hallucinate incorrect facts.
Key Results
The ProP framework demonstrated a significant performance leap over traditional baselines. On the LM-KBC test set, the system achieved a macro F1-score of 0.689, compared to just 0.317 for the BERT-based baseline—a 36.4 percentage point improvement.
The "Fact Probing" verification step proved particularly effective, successfully filtering incorrect predictions in over 60% of cases for certain relations. Furthermore, the inclusion of alias matching provided the final boost needed to secure the top spot in the competition.
Limitations and Future Directions
Despite its success, ProP is constrained by the "knowledge cutoff" of the underlying model; for instance, GPT-3 was unaware of corporate rebrandings (like Facebook to Meta) that occurred after its training. Additionally, the authors noted that exact string matching can be an overly punitive metric for KBC evaluation.
Future work will focus on automated prompt engineering and "meta-prompts" to reduce manual effort, as well as exploring knowledge distillation to enable smaller, more efficient models to achieve similar performance levels.
Summary updated