gBuilder: A Scalable Knowledge Graph Construction System for Unstructured Corpus

Yanzeng Li, Lei ZouarXiv 2022 · DOI

Abstract

Building Knowledge Graphs (KGs) from unstructured text is a complex, multi-stage process that often faces challenges in scalability, flexibility, and ease of use. This paper presents gBuilder, a cloud-native system designed to automate KG construction. gBuilder introduces the "Flowline" abstraction—a Directed Acyclic Graph (DAG) of information extraction operators—allowing for the seamless integration of diverse models, including Large Language Models (LLMs). To address scalability, the system employs a self-adaptive scheduling algorithm that optimizes for both processing speed and monetary cost in cloud environments. Experimental results on multiple benchmarks demonstrate that gBuilder achieves competitive extraction performance while providing near-linear scalability and superior cost-efficiency compared to traditional scheduling methods.

Introduction

The construction of Knowledge Graphs from scratch involves a "long and tedious workflow" encompassing schema design, entity extraction (NER), and relation extraction (RE). Current Knowledge Graph Construction (KGC) tools face four major gaps:

  1. Rigidity: Difficulty in integrating new state-of-the-art (SOTA) techniques like Transformers or LLMs.
  2. High Barrier to Entry: Requirement for significant coding and machine learning expertise.
  3. Poor Scalability: Inefficient inference processes at scale.
  4. LLM Inefficiency: Prohibitive costs and latency when using LLMs exclusively for large corpora.

gBuilder addresses these gaps by providing a user-friendly, pluggable, and scalable framework for end-to-end KGC.

System Architecture and Methodology

The core innovation of gBuilder is the Flowline, which represents the KGC workflow as a Directed Acyclic Graph (DAG). This abstraction allows users to compose complex pipelines by mixing and matching various information extraction (IE) models and post-processing operators.

System overview of gBuilder, illustrating the end-to-end pipeline from unstructured corpus input to graph database storage.

Model Normalization and Flowline Abstraction

To ensure the system is "pluggable," gBuilder normalizes IE models into two categories: Classification-based (CC) and Chunk Extraction-based (CE). This unified interface allows the system to integrate SOTA techniques without significant re-engineering. The Flowline allows for branched execution, where different models can target specific entity or relation types before being merged into a final triple set.

An example of a Flowline DAG in gBuilder, showing the sequence of NER, filtering, permutation, and RE operators leading to triple extraction.

Cloud-Native Scheduling and Data Management

gBuilder is designed for large-scale deployment. It utilizes a Self-Adaptive Task Scheduling engine that employs a two-step heuristic:

  • Compounding: GPU-intensive tasks are grouped with their immediate CPU-only successors (e.g., filters, mappers) to minimize inter-node data transmission latency.
  • Greedy Partitioning: These compounds are assigned to cloud instances using a multi-objective optimization strategy that balances processing time against monetary cost.

Furthermore, a Hierarchical Data Layout (Corpora, Task Columns, Data Slices, and Batches) facilitates asynchronous data transmission and reduces overhead during large-scale processing.

Experimental Evaluation

The system was evaluated using four major benchmarks: NYT, WebNLG, TACRED, and DUIE 2.0.

Extraction Performance

Pipelines organized via gBuilder achieved high F1 scores (e.g., 74.0 on NYT and 70.0 on DUIE 2.0 using RoBERTa-based models). Notably, these specialized pipelines outperformed raw ChatGPT, which often struggled with strict schema constraints and formatting requirements.

Efficiency and Scalability

In cloud-based experiments on qCloud, gBuilder's scheduling heuristic consistently outperformed standard algorithms like MOHEFT and OMOPSO. The system demonstrated near-linear scaling, where processing time increases proportionally with corpus size once resource allocation is optimized.

Discussion and Conclusion

gBuilder provides a significant step toward democratizing Knowledge Graph construction. By abstracting the workflow into a Flowline and optimizing cloud resource usage, it enables domain experts to build high-quality KGs efficiently.

While gBuilder excels at information extraction, future work will focus on integrating advanced Knowledge Fusion (entity resolution), automated Quality Control, and Schema Discovery to provide a truly comprehensive end-to-end solution.

Summary updated

BibTeX
@misc{li2022gbuilder,
  author = {Yanzeng Li and Lei Zou},
  title = {{gBuilder: A Scalable Knowledge Graph Construction System for Unstructured Corpus}},
  year = {2022},
  eprint = {2208.09705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.09705},
}
Figure