Generative Knowledge Graph Construction: A Review

Hongbin Ye, Ningyu Zhang, Hui Chen, Huajun Chen

Abstract

Knowledge Graph Construction (KGC) is undergoing a significant transition from traditional discriminative pipelines to a unified generative paradigm. This review systematizes the emerging field of Generative KGC, where sequence-to-sequence (Seq2Seq) models are employed to extract structured information directly from unstructured text. By categorizing existing research into five distinct generation strategies—copy-based, structure-linearized, label-augmented, indice-based, and blank-based—this paper analyzes how these models overcome the limitations of error propagation and task-specific rigidity. We further examine empirical performance across major benchmarks and identify critical future directions, including inference efficiency and neuro-symbolic integration.

Introduction

Building Knowledge Graphs (KGs) from unstructured text is a fundamental task in natural language processing. Historically, this process relied on complex pipelines of discriminative models, each dedicated to a specific sub-task such as Named Entity Recognition (NER), Entity Linking, or Relation Extraction. While effective, these pipelines are often brittle, suffering from error propagation (where a mistake in an early stage like NER compromises all subsequent steps) and requiring bespoke architectures for every new task.

The advent of powerful pre-trained language models (PLMs) like T5 and BART has catalyzed a paradigm shift toward Generative KGC. In this framework, KGC is treated as a sequence-to-sequence translation problem: the model "reads" a sentence and "writes" the extracted structured data. This approach offers a flexible, unified alternative capable of handling complex scenarios like overlapping relations and nested entities that often challenge traditional classifiers.

A Taxonomy of Generative Strategies

The core contribution of recent literature is the development of diverse "generation targets"—the specific format the model is trained to output. These can be categorized into five primary paradigms:

  1. Copy-based Sequences: To mitigate the risk of hallucination, these models are constrained to copy entity tokens directly from the input text while generating relation tokens from a predefined, restricted vocabulary.
  2. Structure-linearized Sequences: These models output a linearized representation of the knowledge structure, often utilizing brackets or XML-like tags (e.g., using markers to denote trees or graphs) to unify the output format for complex tasks like event extraction.
  3. Label-augmented Sequences: By inserting natural language labels and markers (e.g., [ Tolkien | person ]) into a copy of the input text, these models leverage the rich semantic knowledge inherent in PLMs to improve extraction accuracy.
  4. Indice-based Sequences: Rather than generating text tokens, these models output the numerical indices of words within the input. This restricts the output space to the length of the input, which can significantly accelerate model convergence.
  5. Blank-based Sequences: This strategy utilizes natural language templates with placeholders (e.g., <arg1> bought <arg3>). The model fills these blanks with extracted text, effectively turning KGC into a "fill-in-the-blank" task that benefits from the model's pre-training.

Empirical Performance and Benchmarks

Generative KGC models have demonstrated competitive performance against state-of-the-art discriminative systems across standard benchmarks like the New York Times (NYT) dataset and ACE-2005.

Relation Extraction

On the NYT dataset, generative models show high efficacy. Structure-based models like CGT (89.1 F1) and label-augmented models like TANL (90.8 F1) perform closely to top-tier discriminative models such as OneRel (92.8 F1). The slight performance gap is often offset by the generative models' superior ability to handle overlapping relational triples and their inherent flexibility.

Event Extraction

In the domain of event extraction, particularly on the ACE-2005 benchmark, generative models have begun to outperform traditional baselines. For instance, the blank-based model PAIE achieved a 75.7 F1 score for argument identification, demonstrating the power of template-based generation in capturing complex event structures.

Key Insights and Trade-offs

The design of the target sequence represents a fundamental trade-off between semantic richness and computational efficiency. Indice-based methods converge quickly due to their constrained output space but may fail to exploit the semantic depth of the language model. Conversely, blank-based and label-augmented methods utilize natural language semantics more effectively but often require labor-intensive manual template engineering or larger computational overhead.

Furthermore, the generative paradigm facilitates "universal" architectures. By framing KGC as a text-to-text task, a single model can be trained to perform NER, relation extraction, and event extraction simultaneously, enabling cross-task knowledge transfer and simplifying the deployment pipeline.

Limitations and Future Directions

Despite their promise, generative models face several challenges:

  • Inference Speed: The autoregressive nature of decoding—generating one token at a time—makes these models significantly slower than their discriminative counterparts.
  • Architectural Homogeneity: Most current research is centered on Transformer-based architectures, leaving other potential models unexplored.
  • Computational Cost: Training and fine-tuning large-scale generative models remains resource-intensive.

Future research is expected to focus on non-autoregressive decoding to improve inference speed, allowing models to predict multiple relational triples in parallel. Additionally, the integration of neuro-symbolic models and diffusion models presents an opportunity to combine the flexibility of neural networks with the precision of symbolic logic. Finally, improving training efficiency through prompt learning and retrieval-augmented generation remains a high priority for the field.

Summary updated

BibTeX
@inproceedings{ye2022generative,
  author = {Hongbin Ye and Ningyu Zhang and Hui Chen and Huajun Chen},
  title = {{Generative Knowledge Graph Construction: A Review}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.1},
}
Figure