KB-LDA: Jointly Learning a Knowledge Base of Hierarchy, Relations, and Facts

Dana Movshovitz-Attias, William W. CohenACL 2015

Abstract

Building Knowledge Bases (KBs) typically requires a predefined ontology, which is often unavailable for specialized domains. This paper presents KB-LDA, an unsupervised generative model that jointly induces a KB's schema—including hierarchy and relations—and its facts directly from a text corpus. By integrating topic modeling with stochastic blockmodels, KB-LDA organizes entities into a latent ontology while simultaneously extracting domain-specific relations. Evaluation on a large-scale software engineering dataset (StackOverflow) demonstrates that KB-LDA achieves high precision in concept and relation extraction, significantly outperforming general-purpose Open Information Extraction (Open IE) systems.

Introduction

Traditional Knowledge Base construction follows an ontology-guided approach, where human experts define categories and relations before fact extraction begins. While effective, this method is difficult to scale and rigid when applied to niche domains. Conversely, Open Information Extraction (Open IE) offers flexibility by extracting triples without predefined structure, but often results in noisy data lacking hierarchical organization. KB-LDA addresses this gap by providing a framework for the simultaneous induction of structure and facts, enabling the creation of specialized KBs without manual overhead.

Methodology

KB-LDA is a generative model that fuses three components into a single framework:

  1. Ontology Component: Models hierarchical links between concepts and instances using Hearst patterns and a Mixed Membership Stochastic Blockmodel (MMSB) to infer a latent hierarchy.
  2. Relations Component: Models Subject-Verb-Object (SVO) triples as interactions between latent topics discovered in the ontology component.
  3. Documents Component: Utilizes an LDA-style topic model where documents are treated as "bags of entities."
The graphical model of KB-LDA, illustrating the joint dependencies between the Relations, Ontology, and Documents components.

By sharing latent topics across these components, the model ensures semantic consistency between the extracted facts and the learned hierarchy. Inference is performed using collapsed Gibbs sampling, allowing the model to scale to millions of documents.

Experiments and Datasets

The model was evaluated on a corpus of 5.5 million documents from StackOverflow. The input data included 17,000 filtered concept-instance pairs and 37,000 Subject-Verb-Object triples. The performance of KB-LDA was compared against ReVerb, a standard Open IE system, specifically focusing on the model's ability to identify and rank domain-relevant facts.

Results

The experimental results highlight the effectiveness of joint learning. Expert evaluations showed that KB-LDA achieved high precision across several dimensions. Specifically, the automatically generated category names reached 88% precision according to experts.

Precision metrics for KB-LDA compared to a random baseline across Concepts, Relations, and Subsumptions, evaluated by varying numbers of workers and experts.

Furthermore, KB-LDA proved superior in ranking triples for domain relevance. It achieved an Area Under the Curve (AUC) of 0.67, outperforming ReVerb’s confidence scoring (0.57). The latent topics also showed a strong correlation with human-provided StackOverflow tags, with nearly 50% overlap for the most frequent tags.

Conclusion

KB-LDA demonstrates that jointly learning hierarchy and facts allows structural information to improve fact extraction and vice versa. While the model excels at identifying concepts and relations, hierarchy (subsumption) precision remains a challenge, with expert agreement at approximately 51%. Future work will focus on improving convergence in the ontology component and applying these unsupervised KBs to downstream tasks like specialized question answering.

Summary updated

BibTeX
@inproceedings{movshovitzattias2015kb,
  author = {Dana Movshovitz-Attias and William W. Cohen},
  title = {{KB-LDA: Jointly Learning a Knowledge Base of Hierarchy, Relations, and Facts}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/p15-1140},
}
Figure