[Paper Review] Prompting as Probing: Using Language Models for Knowledge Base Construction
This paper introduces ProP, a prompting-as-probing framework that leverages GPT-3 to construct knowledge bases by generating object predictions for subject-relation triples. By combining curated prompts, entity alias expansion, and true/false verification, ProP achieved a 36.4 percentage point improvement over the baseline on the LM-KBC challenge, demonstrating that manual prompt engineering and model scale are critical for high-quality knowledge base construction using large language models.
Language Models (LMs) have proven to be useful in various downstream applications, such as summarisation, translation, question answering and text classification. LMs are becoming increasingly important tools in Artificial Intelligence, because of the vast quantity of information they can store. In this work, we present ProP (Prompting as Probing), which utilizes GPT-3, a large Language Model originally proposed by OpenAI in 2020, to perform the task of Knowledge Base Construction (KBC). ProP implements a multi-step approach that combines a variety of prompting techniques to achieve this. Our results show that manual prompt curation is essential, that the LM must be encouraged to give answer sets of variable lengths, in particular including empty answer sets, that true/false questions are a useful device to increase precision on suggestions generated by the LM, that the size of the LM is a crucial factor, and that a dictionary of entity aliases improves the LM score. Our evaluation study indicates that these proposed techniques can substantially enhance the quality of the final predictions: ProP won track 2 of the LM-KBC competition, outperforming the baseline by 36.4 percentage points. Our implementation is available on https://github.com/HEmile/iswc-challenge.
Motivation & Objective
- To improve knowledge base construction using large language models by treating prompting as a probing mechanism for factual knowledge.
- To address the challenge of predicting variable-length answer sets, including empty sets, in a zero-shot setting.
- To evaluate the impact of prompt design, model size, and auxiliary components like entity alias dictionaries on prediction quality.
- To enhance precision and recall in knowledge base completion beyond string-matching baselines, especially for ambiguous or rare entities.
- To demonstrate that LMs can effectively augment knowledge graphs when combined with structured post-processing and verification techniques.
Proposed method
- ProP employs a multi-step pipeline where subject-relation pairs are converted into natural language prompts to probe GPT-3 for potential object answers.
- Manual prompt curation is used to generate diverse, relation-specific prompts that elicit structured, variable-length responses including empty sets.
- An alias fetcher component retrieves known synonyms and alternative names for entities to improve matching accuracy and recall.
- True/false verification is applied to filter low-confidence predictions by posing binary questions about candidate objects.
- The system uses few-shot examples and structured data augmentation to improve generalization and robustness across diverse relations.
- Post-processing includes normalization, deduplication, and alignment with ground truth using fuzzy matching to account for alias variations.
Experimental results
Research questions
- RQ1How does manual prompt curation affect the quality of object predictions in knowledge base construction using LMs?
- RQ2To what extent does encouraging variable-length output, including empty sets, improve performance on open-ended KBC tasks?
- RQ3How effective are true/false verification questions in increasing precision of LM-generated predictions?
- RQ4What impact does the size of the language model have on the final prediction quality in KBC?
- RQ5Can entity alias expansion significantly improve recall and robustness in knowledge base construction with LMs?
Key findings
- ProP outperformed the baseline by 36.4 percentage points in macro-F1 on the test set of the LM-KBC challenge, achieving the highest score in Track 2.
- Manual prompt curation was essential, as automatically generated prompts led to significantly lower performance.
- Encouraging GPT-3 to generate variable-length outputs, including empty sets, improved alignment with the task’s requirement for open-ended prediction.
- True/false verification increased precision by filtering out incorrect or hallucinated predictions, especially for ambiguous relations.
- The size of the language model was the most significant factor influencing performance, with larger models like GPT-3 yielding substantially better results.
- Entity alias dictionaries improved matching accuracy, and in several cases, ProP’s predictions were correct but marked as incorrect due to alias mismatches in the ground truth.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.