KnowGL: Knowledge Generation and Linking from Text

Gaetano Rossiello, Md. Faisal Mahbub Chowdhury, Nandana Mihindukulasooriya, Owen Cornec, Alfio Massimiliano Gliozzo

Abstract

KnowGL is a generative framework designed to transform raw text into structured Knowledge Graph (KG) triples in a single end-to-end step. By framing information extraction as a sequence-to-sequence translation task using the BART language model, KnowGL avoids the error propagation common in traditional multi-step pipelines. The system generates linearized triples that include entity mentions, canonical labels, and types, which are then ranked and linked to the Wikidata ontology. Evaluation on the REBEL dataset demonstrates that KnowGL achieves a state-of-the-art F1 score of 70.74, significantly outperforming both traditional pipelines and existing generative models.

Introduction

Constructing and maintaining large-scale Knowledge Graphs (KGs) such as Wikidata is a fundamental challenge in natural language processing. The conventional approach relies on an Information Extraction (IE) pipeline consisting of discrete steps: Named Entity Recognition (NER), Entity Linking (EL), and Relation Extraction (RE). This "assembly line" architecture is prone to error propagation, where a failure in an early stage (e.g., misidentifying a name) inevitably leads to downstream errors. Furthermore, managing multiple specialized models increases deployment complexity.

KnowGL addresses these issues by replacing the fragmented pipeline with a unified generative model. It treats the extraction of facts as a "translation" from natural language into a structured, KG-ready format.

Methods

The KnowGL framework utilizes a sequence-to-sequence (Seq2Seq) architecture with BART-large as the core backbone. The process is divided into three primary stages:

  1. Knowledge Generation: The model translates an input sentence into a specific linearized string format: [(subject mention # label # type) | relation | (object mention # label # type)]. This format enforces the generation of canonical labels and types defined within the KG's TBox (schema), ensuring the output is structurally consistent with the target ontology.
  2. Fact Ranking: To handle the multiple interpretations produced during beam search, KnowGL employs a ranking component. It calculates scores based on the negative log-likelihood of the generated sequences. If a specific fact appears across multiple beams, its scores are aggregated to boost high-confidence triples.
  3. Linking to Wikidata: The final stage maps the generated text labels and types to unique Wikidata identifiers (e.g., mapping "Semantic Web" to Q54837). To ensure efficiency and avoid the latency of live SPARQL queries, this is implemented using optimized key-value maps.
The KnowGL Parser architecture, illustrating the three-stage process: Generation, Ranking, and Linking.

Datasets

The model was trained and evaluated using an augmented version of the REBEL dataset. REBEL is a standard benchmark for relation extraction derived from Wikipedia abstracts and Wikidata. The authors extended this dataset by enriching it with entity labels and types for every surface form, enabling the model to learn "full-stack" extraction—simultaneously identifying mentions, labels, types, and relations.

Key Insights

  • Schema-Driven Constraints: By requiring the model to generate entity labels and types alongside mentions, the output format acts as an implicit constraint. This forces the model to learn the underlying ontological structure, reducing the likelihood of generating semantically invalid relations.
  • Contextual Robustness: Collapsing NER, RE, and EL into a single task allows the model to leverage the full context of a triple. This holistic view helps resolve ambiguities that might confuse standalone components in a traditional pipeline.
  • Discovery of New Knowledge: When the model generates a label that does not yet exist in Wikidata, the system returns a null ID. This capability allows KnowGL to serve as a tool for identifying potential new entities or facts for inclusion in the Knowledge Graph.

Results

KnowGL demonstrates superior performance compared to existing methodologies:

  • State-of-the-Art Accuracy: It achieved an F1 score of 70.74 on the REBEL test set.
  • Comparative Advantage: This result significantly surpasses a standard multi-step IE pipeline (42.50 F1) and improves upon the previous state-of-the-art generative model, GenIE (68.93 F1).
  • Accessibility: The framework is supported by a web-based UI and a REST API, providing interactive visualization of extracted knowledge as a multi-graph.

Limitations and Future Work

Despite its strengths, KnowGL faces several challenges. The use of large generative models like BART-large entails higher computational costs compared to simpler classifiers, which may limit real-time scalability. Additionally, like all large language models, there is a risk of "hallucination," though the ranking mechanism provides some mitigation. Future research will focus on extending the model to handle document-level extraction, addressing cross-sentence co-references that are currently beyond the scope of sentence-level processing.

Summary updated

BibTeX
@inproceedings{rossiello2023knowgl,
  author = {Gaetano Rossiello and Md. Faisal Mahbub Chowdhury and Nandana Mihindukulasooriya and Owen Cornec and Alfio Massimiliano Gliozzo},
  title = {{KnowGL: Knowledge Generation and Linking from Text}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i13.27084},
}
Figure