ACL Findings2023
BertNet: Harvesting Knowledge Graphs with Arbitrary Relations from Pretrained Language Models
Shibo Hao, Bowen Tan, Kaiwen Tang, Bin Ni, Xiyan Shao, Hengzhe Zhang, Eric P. Xing, Zhiting Hu
Abstract
It is crucial to automatically construct knowledge graphs (KGs) of diverse new relations to support knowledge discovery and broad applications. Previous KG construction methods, based on either crowdsourcing or text mining, are often limited to a small predefined set of relations due to manual cost or restrictions in text corpus. Recent research proposed to use pretrained language models (LMs) as implicit knowledge bases that accept knowledge queries with prompts. Yet, the implicit knowledge lacks many desirable properties of a full-scale symbolic KG, such as easy access, navigation, editing, and quality assurance. In this paper, we propose a new approach of harvesting massive KGs of arbitrary relations from pretrained LMs. With minimal input of a relation definition (a prompt and a few shot of example entity pairs), the approach efficiently searches in the vast entity pair space to extract diverse accurate knowledge of the desired relation. We develop an effective search-and-rescore mechanism for improved efficiency and accuracy. We deploy the approach to harvest KGs of over 400 new relations from different LMs. Extensive human and automatic evaluations show our approach manages to extract diverse accurate knowledge, including tuples of complex relations (e.g., "A is capable of but not good at B"). The resulting KGs as a symbolic interpretation of the source LMs also reveal new insights into the LMs' knowledge capacities.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Reasoning with Language Model is Planning with World Model cites Language Models are Few-Shot Learners
- SAC-KG: Exploiting Large Language Models as Skilled Automatic Constructors for Domain Knowledge Graph cites Language Models are Few-Shot Learners
- Type-Less yet Type-Aware Inductive Link Prediction with Pretrained Language Models cites Language Models are Few-Shot Learners
- ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings cites Reasoning with Language Model is Planning with World Model
- ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings cites Language Models are Few-Shot Learners
Cited by top-tier papers6
- ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool EmbeddingsShibo Hao, Tianyang Liu, Zhen Wang, Zhiting HuNeurIPS 2023 · 315 citations
- SAC-KG: Exploiting Large Language Models as Skilled Automatic Constructors for Domain Knowledge GraphHanzhu Chen, Xu Shen, Qitan Lv, Jie Wang et al.ACL 2024 · 17 citations
- Grasping the Essentials: Tailoring Large Language Models for Zero-Shot Relation ExtractionSizhe Zhou, Yu Meng, Bowen Jin, Jiawei HanEMNLP 2024 · 6 citations
- Logical Consistency of Large Language Models in Fact-CheckingBishwamittra Ghosh, Sarah Hasan, Naheed Anjum Arafat, Arijit KhanICLR 2025
- Type-Less yet Type-Aware Inductive Link Prediction with Pretrained Language ModelsAlessandro De Bellis, Salvatore Bufi, Giovanni Servedio, Vito Walter Anelli et al.EMNLP 2025
Builds on10
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Inducing Relational Knowledge from BERTZied Bouraoui, José Camacho-Collados, Steven SchockaertAAAI 2020 · 183 citations
- ASER: A Large-scale Eventuality Knowledge GraphHongming Zhang, Xin Liu, Haojie Pan, Yangqiu Song et al.WWW 2020 · 183 citations
- Reasoning with Language Model is Planning with World ModelShibo Hao, Yi Gu, Haodi Ma, Joshua Jiahua Hong et al.EMNLP 2023 · 109 citations
- Maieutic Prompting: Logically Consistent Reasoning with Recursive ExplanationsJaehun Jung, Lianhui Qin, Sean Welleck, Faeze Brahman et al.EMNLP 2022 · 72 citations
Related papers
- KLMo: Knowledge Graph Enhanced Pretrained Language Model with Fine-Grained RelationshipsLei He, Suncong Zheng, Tao Yang, Feng ZhangEMNLP Findings 2021 · 25 citations
- Open Relation Modeling: Learning to Define Relations between EntitiesJie Huang, Kevin Chang, Jinjun Xiong, Wen-Mei HwuACL Findings 2022 · 9 citations
- Do Language Models Perform Generalizable Commonsense Inference?Peifeng Wang, Filip Ilievski, Muhao Chen, Xiang RenACL Findings 2021 · 9 citations
- Text Augmented Open Knowledge Graph Completion via Pre-Trained Language ModelsPengcheng Jiang, Shivam Agarwal, Bowen Jin, Xuan Wang et al.ACL Findings 2023 · 20 citations
- SocraticKG: Knowledge Graph Construction via QA-Driven Fact ExtractionSanghyeok Choi, Woosang Jeon, Kyuseok Yang, Taehyeong KimACL Findings 2026
