Skip to main content
QUICK REVIEW

[Paper Review] Incremental Knowledge Base Construction Using DeepDive

Jaeho Shin, Sen Wu|arXiv (Cornell University)|Feb 3, 2015
Geochemistry and Geologic MappingComputer Science15 citations
TL;DR

This paper presents DeepDive, an open-source system that accelerates knowledge base construction (KBC) by enabling incremental grounding and inference. It introduces two approximate inference techniques—sampling and variational inference—combined with a rule-based optimizer, achieving up to 100x speedup in KBC pipelines with minimal quality loss, significantly accelerating the iterative development cycle for knowledge base systems.

ABSTRACT

Populating a database with unstructured information is a long-standing problem in industry and research that encompasses problems of extraction, cleaning, and integration. Recent names used for this problem include dealing with dark data and knowledge base construction (KBC). In this work, we describe DeepDive, a system that combines database and machine learning ideas to help develop KBC systems, and we present techniques to make the KBC process more efficient. We observe that the KBC process is iterative, and we develop techniques to incrementally produce inference results for KBC systems. We propose two methods for incremental inference, based respectively on sampling and variational techniques. We also study the tradeoff space of these methods and develop a simple rule-based optimizer. DeepDive includes all of these contributions, and we evaluate DeepDive on five KBC systems, showing that it can speed up KBC inference tasks by up to two orders of magnitude with negligible impact on quality.

Motivation & Objective

  • To accelerate the iterative development cycle of knowledge base construction (KBC) systems, which are typically slow and labor-intensive.
  • To address the computational bottleneck of statistical inference in KBC by enabling incremental updates to factor graphs after data or program changes.
  • To design a tradeoff-aware inference system that dynamically selects between sampling and variational inference based on workload characteristics.
  • To evaluate the performance and quality tradeoffs of incremental inference in real-world KBC applications across diverse domains.
  • To provide a scalable, production-ready system that supports rapid iteration for engineers building high-quality knowledge bases.

Proposed method

  • DeepDive uses a declarative language based on SQL and Markov Logic Networks to define KBC pipelines, enabling integration of database and machine learning techniques.
  • Grounding is made incremental by specifying 'delta rules' that describe how factor graph outputs change in response to input data or rule updates, reducing redundant computation.
  • For inference, DeepDive implements two approximate inference methods: Gibbs sampling with adaptive acceptance rates and variational inference with mean-field approximation.
  • A rule-based optimizer selects between sampling and variational inference per variable group based on workload characteristics such as distribution stability and factor graph size.
  • The system maintains calibrated marginal probabilities for all extracted facts, ensuring that predicted probabilities reflect actual correctness (e.g., 0.9 probability implies ~90% true positives).
  • Materialization of intermediate inference states enables amortized cost recovery, making the one-time overhead of incremental setup worthwhile over multiple updates.

Experimental results

Research questions

  • RQ1How can the grounding phase of knowledge base construction be made incremental to reduce recomputation after data or rule changes?
  • RQ2What are the performance and quality tradeoffs between sampling-based and variational inference in incremental KBC systems?
  • RQ3Can a dynamic, workload-aware strategy for selecting inference techniques improve end-to-end performance without sacrificing accuracy?
  • RQ4To what extent can incremental inference reduce the total execution time of KBC pipelines in real-world applications?
  • RQ5How does the system maintain calibrated probabilities while enabling fast, incremental updates?

Key findings

  • DeepDive achieved up to two orders of magnitude (100x) speedup in inference execution time across five real-world KBC systems, with negligible impact on precision and recall.
  • The sampling-based approach provided up to 11x speedup on the News system when the distribution remained stable, due to high acceptance rates and low re-computation overhead.
  • For the Paleontology system, a 10x speedup was achieved due to smaller factor graphs per variable, making full inference cheaper and more amenable to incremental updates.
  • The rule-based optimizer outperformed a fixed-strategy baseline by up to 2x faster execution by dynamically selecting the best inference method per variable group.
  • The one-time materialization cost of 12 hours for incremental setup was amortized over multiple updates, making it highly efficient for iterative development.
  • Lesion studies confirmed that disabling either sampling or variational inference significantly degraded performance—up to 36x slower when variational inference was disabled for supervision rules—validating the importance of the dual-technique tradeoff space.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.