Domain Ontology-Driven Knowledge Graph Generation from Text

Zhixin Meng, Shaoxiong Zhan, Ruiqing Xu, Wolfgang Mayer, Ye Zhu, Hongyu Zhang, Chuan He, Keqing He, Debo Cheng, Zaiwen FengACM Transactions on Probabilistic Machine Learning 2024

TL;DR

This paper introduces a novel end-to-end approach for generating domain-specific knowledge graphs from text by leveraging domain ontologies and pre-trained language models (PLMs). Their method effectively filters out irrelevant information and extracts domain-relevant entities and relations, leading to more accurate and coherent knowledge graphs.

What Problem Does This Paper Address?

Extracting domain-specific knowledge from vast amounts of text to build knowledge graphs is a significant challenge. While general knowledge graphs are useful, specialized domains often suffer from knowledge redundancy, absence, or unreliability. Existing methods for knowledge graph construction, even those using advanced PLMs, often struggle to precisely capture domain-specific nuances from general text. This can lead to the inclusion of irrelevant information and a lack of focus on the knowledge critical for domain-specific applications like reasoning and question-answering. The paper aims to bridge this gap by proposing a method that uses domain ontologies to guide the extraction process, ensuring that the generated knowledge graphs are both comprehensive and relevant to the target domain.

Methods

The proposed approach is an end-to-end system that integrates domain ontology embedding with PLMs. The core of the method involves two main phases:

  • Domain Node Recognition: This phase first uses a PLM (specifically T5) to identify potential entity nodes in the text. Subsequently, these identified nodes are classified using embeddings derived from the domain ontology. This step acts as a crucial filter, distinguishing domain-relevant entities from those that are not pertinent to the specific domain.
  • Domain Relation Extraction: After identifying and filtering domain-relevant nodes, this phase focuses on extracting relationships between them. The process is guided by the domain ontology's defined relations and class embeddings. The method refines node features and then uses a linear edge classifier to predict relationships, ensuring that the extracted relations are also domain-specific.

A key innovation is the use of domain ontology embedding (specifically leveraging the OWL2Vec* model) to represent the semantics of class nodes and relations as vectors. These embeddings provide rich semantic guidance for both node recognition and relation extraction, helping to filter out irrelevant information and improve accuracy.

Datasets

The authors evaluated their model on two benchmark datasets:

  • Wikidata-TekGen Dataset: This dataset was constructed from the TekGen dataset, which synthesizes natural language text from Wikidata triples. Text2KGBench further refined this dataset by creating 10 domain ontologies based on Wikidata concepts and relations, and manually verifying the text-to-triple alignment.
  • DBpedia-WebNLG Dataset: This dataset is built upon the WebNLG dataset, which consists of triples and corresponding natural language texts. Text2KGBench created domain ontologies for each of the 19 categories in the WebNLG dataset to construct this benchmark.

The authors also note that they made modifications to the domain ontologies of these datasets to address issues like concept redundancy and irrelevant concepts, thereby creating a clearer distinction between domain-specific and non-domain-specific knowledge.

Key Insights and Ideas

  • Ontology as a Filter: The central idea is that a domain ontology is not just a schema but a powerful filtering mechanism. By embedding ontology concepts and relations, the model can effectively prune irrelevant entities and relationships from general text, focusing solely on domain-specific knowledge.
  • End-to-End Efficiency: The proposed method offers an end-to-end solution, meaning it takes raw text as input and directly outputs a domain-specific knowledge graph, eliminating the need for intermediate manual steps or complex pipelines.
  • Reduced Parameter Footprint: The approach utilizes PLMs but aims to achieve strong performance with fewer parameters compared to some baseline LLMs, making it potentially more efficient and accessible.
  • Prompt-Free Generation: A significant advantage highlighted is the ability to generate knowledge graphs without requiring explicit prompts during training, which simplifies the training process and potentially improves generalization.

Key Results

The experimental results demonstrate the effectiveness of the proposed domain ontology-driven approach.

  • On the DBpedia-WebNLG dataset, the proposed model outperformed baseline models (Vicuna and Alpaca-LoRA) in precision, recall, and F1 score, showing improvements of 5%, 13%, and 8% respectively.
  • On the Wikidata-TekGen dataset, while not always achieving the highest accuracy, the model showed notable improvements in recall and F1 score by 4% and 2% respectively compared to baselines.
  • The Ontology Conformance (OC) metric, which measures the proportion of domain-specific triples, showed an average performance of around 90% for the proposed model, indicating its strong ability to extract in-domain knowledge and avoid out-of-domain information.

Limitations and Future Work

The authors acknowledge several limitations:

  • Ontology Quality Dependency: The method's performance is heavily reliant on the quality and coverage of the domain ontology. Incomplete or inaccurate ontologies can lead to suboptimal results.
  • Scalability Concerns: Handling very large or rapidly evolving domains might be challenging due to the complexity of ontology maintenance and updates.
  • Domain Variability: Performance can vary across different domains, influenced by the availability of domain-specific corpora and the complexity of the domain's knowledge structure.

Future work directions include:

  • Automated Ontology Learning: Enhancing ontology quality and coverage through automated techniques to improve performance across diverse domains.
  • Incremental Ontology Updates: Developing methods for incremental ontology updates and dynamic adaptation to handle evolving domains and improve scalability.
  • Multimodal Integration: Exploring the integration of other information sources like images and videos to enrich knowledge graph representations.
  • Broader Evaluation: Extending the evaluation to more datasets and real-world applications to further validate the method's robustness and practical utility.

Summary updated

BibTeX
@article{meng2024domain,
  author = {Zhixin Meng and Shaoxiong Zhan and Ruiqing Xu and Wolfgang Mayer and Ye Zhu and Hongyu Zhang and Chuan He and Keqing He and Debo Cheng and Zaiwen Feng},
  title = {{Domain Ontology-Driven Knowledge Graph Generation from Text}},
  journal = {ACM transactions on probabilistic machine learning.},
  year = {2024},
  doi = {10.1145/3708478},
}
Figure