Open Domain Knowledge Extraction for Knowledge Graphs

Kun Qian, Anton Belyi, Fei Wu, Samira Khorshidi, Azadeh Nikfarjam, Rahul Khot, Yisi Sang, Katherine Luna, Xianqi Chu, Eric Choi, Yash Govind, Chloe Seivwright, Yiwen Sun, Ahmed Fakhry, Theodoros Rekatsinas, Ihab F. Ilyas, Xiaoguang Qi, Yunyao LiarXiv 2023 · DOI

TL;DR

This paper introduces ODKE, a scalable and extensible framework for automatically extracting and ingesting high-quality knowledge from the open web into knowledge graphs (KGs). ODKE addresses the critical challenges of data volume, variety, veracity, and velocity to ensure KGs remain complete and fresh, powering downstream applications like LLMs.

What Problem Does This Paper Address?

Knowledge graphs (KGs) are crucial for organizing information and powering applications like question answering and LLMs. However, building and maintaining KGs is challenging due to the sheer volume of web data, the diverse formats it comes in, the prevalence of incorrect or outdated information (veracity), and the need for timely updates (velocity). Traditional manual curation is not scalable. While previous work has tackled specific aspects of knowledge extraction, there's a need for an end-to-end, industrial-scale framework that can continuously grow KGs with accurate and up-to-date information from the open web.

Methods

ODKE is a comprehensive framework with several key components:

  • Extraction Initiator: Determines what information is needed, either by identifying stale/missing facts in the KG or by specifying reliable data sources like Wikipedia for extraction.
  • Evidence Retriever: Gathers relevant web documents using either a crawl-based approach (for known domains like Wikipedia) or a search-based approach (when domains or specific URLs are unclear).
  • Knowledge Extractor: Employs a variety of extractors, including:
  • Pattern-based: For semi-structured data like Wikipedia infoboxes, using domain-specific patterns and link extractors for entity IDs.
  • Model-based: Traditional machine learning extractors, including Question Answering (QA) models like DeBERTa and TaPas, for extracting facts from plain text and tables.
  • LLM-based: Utilizes QA-style LLM prompting for ambiguous or challenging extraction tasks, offering flexibility with different LLM models.
  • Corroborator: Normalizes extracted facts and ranks them by trustworthiness using features like extractor type, score, and occurrence count. It also supports heuristic and learning-based ranking.
  • Data Export & KG Ingestion: Exports facts as (subject, predicate, object) triples, normalizes them to a common ontology, and links them to existing KG entities using IDs or ML models. New entities are created when necessary.
  • Link Inference: An orthogonal component that infers additional KG edges without direct extraction, improving completeness (e.g., inferring symmetrical relationships) and correctness (e.g., validating reverse linkages).
  • Human Curation: Integrated for verifying ambiguous or sensitive extractions, with tasks auto-generated based on extractor confidence.

ODKE supports both batch processing (weekly updates) and streaming processing (hourly updates) to cater to different latency requirements.

Datasets

The paper primarily uses publicly available web data, with a strong focus on:

  • Wikipedia: Used extensively for both crawl-based and search-based extraction, as well as for comparing freshness against Wikidata.
  • Wikidata: Used as a reference for comparing extracted facts and for entity linking.

No new datasets or benchmarks were introduced in this paper.

Key Insights and Ideas

  • Bridging the Freshness Gap: ODKE effectively addresses the freshness gap between platforms like Wikidata and Wikipedia, extracting a significant number of newer and fresher facts.
  • Scalability through Hybrid Extraction: Combining pattern-based, traditional ML, and LLM-based extractors allows ODKE to handle diverse data and extraction challenges at scale, using LLMs judiciously for complex tasks.
  • Importance of Link Inference: Inferring links without direct extraction is a powerful way to enhance KG completeness and correctness, demonstrating significant accuracy.
  • Human Preference for ODKE: In user studies, human judges preferred facts extracted by ODKE over those from Wikidata in specific use cases, highlighting the quality of ODKE's output.
  • Industrial Deployment: The paper emphasizes the successful deployment of ODKE in an industrial setting, showcasing its practical applicability and robustness.

Key Results

  • Freshness Improvement: ODKE extracted over 1 million facts from Wikipedia that were either fresher or entirely new compared to Wikidata for selected entity-property groups.
  • High Extraction Precision: The ODKE-Wikipedia pipeline achieved an aggregate extraction precision of 99.2% across predicates, based on human annotations.
  • Human Preference: In user studies, human judges preferred ODKE-extracted facts over Wikidata facts in 94% and 91.5% of samples for two use cases.
  • Link Inference Accuracy: Inferred facts through link inference achieved 99.7% accuracy, as evaluated by humans.
  • Throughput: The ODKE-Wikipedia pipeline can extract up to 6 million facts per hour or 100K facts per minute, offering a significant speedup (up to 4000x) compared to human curation. Streaming pipelines can achieve an SLA of 4 hours from change to ingestion.
  • LLM Pipeline Throughput: LLM-based pipelines can process up to 200K Wikipedia documents per day.

Limitations and Future Work

  • LLM Cost and Bias: LLM-based extractors are computationally expensive and are currently used for evaluation purposes due to potential bias concerns, rather than direct ingestion into the KG.
  • Ambiguous and Sensitive Cases: While ODKE aims for automation, some ambiguous and sensitive facts still require human verification.
  • Future Work: The authors suggest integrating LLMs more deeply into ODKE pipelines for fact extraction, exploring potential bias mitigation strategies, and expanding the scope of link inference to more properties. They also aim to further improve the scalability and efficiency of their extraction and ingestion processes.

Summary updated

BibTeX
@misc{qian2023open,
  author = {Kun Qian and Anton Belyi and Fei Wu and Samira Khorshidi and Azadeh Nikfarjam and Rahul Khot and Yisi Sang and Katherine Luna and Xianqi Chu and Eric Choi and Yash Govind and Chloe Seivwright and Yiwen Sun and Ahmed Fakhry and Theodoros Rekatsinas and Ihab F. Ilyas and Xiaoguang Qi and Yunyao Li},
  title = {{Open Domain Knowledge Extraction for Knowledge Graphs}},
  year = {2023},
  eprint = {2312.09424},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.09424},
}
Figure