Pattern Learning for Relation Extraction with a Hierarchical Topic Model

Enrique Alfonseca, Katja Filippova, Jean-Yves Delort, Guillermo GarridoACL 2012

Abstract

We describe the use of a hierarchical topic model for automatically identifying syntactic and lexical patterns that explicitly state ontological relations. We leverage distant supervision using relations from the knowledge base FreeBase, but do not require any manual heuristic nor manual seed list selections. Results show that the learned patterns can be used to extract new relations with good precision.

Introduction

Relation Extraction (RE) is the task of identifying facts in text, such as "Barack Obama was born in Hawaii." To do this at scale, researchers often use distant supervision: they take a list of known facts (e.g., [Obama, born_in, Hawaii]) and search for sentences containing both entities, assuming those sentences will reveal the "pattern" for that relationship.

The problem is that this assumption is often wrong. If a sentence says, "Obama visited Hawaii," it contains both entities but doesn't describe the "born in" relation. This "noise" usually requires researchers to write manual rules or heuristics to clean up the data. The authors of this paper wanted to eliminate that manual labor and create a system that learns to distinguish between meaningful relational patterns and coincidental or generic filler text entirely on its own.

Methodology

The authors treat relation extraction as a topic modeling problem. They use a Hierarchical Topic Model (inspired by text summarization techniques) to sort patterns into three buckets:

  1. Global Patterns ($\phi^G$): Generic words or structures that appear everywhere (e.g., "and," "was," or entities appearing side-by-side).
  2. Entity-Pair Specific Patterns ($\phi^D$): Patterns that are unique to a specific pair of entities but don't represent a general relation (e.g., a specific news event involving two people).
  3. Relational Patterns ($\phi^A$): The "gold" patterns that consistently appear across many different pairs sharing the same relation (e.g., "X is the father of Y").

By using Gibbs sampling to estimate these models, the system learns the probability $P(r|w)$—the likelihood that a specific pattern $w$ actually signals relation $r$. They tested two types of patterns: Syntactic (using the grammatical dependency path between entities) and Intertext (simply using the raw text between them).

Syntactic dependency paths learned for the 'Author-book' relation, showing grammatical structures like 'wrote' and 'novel by'.

Datasets and Evaluation

  • Knowledge Base: Freebase, used to provide the initial "seeds" of known entity pairs and relations.
  • Corpus: A massive collection of 33 million English news articles published between 2004 and 2011.
  • Training/Testing Split: 3 million articles were used to train the topic models, and the remaining 30 million were used to evaluate how well the learned patterns could extract new, unknown facts.
Examples of entity pairs used for distant supervision across different relations like 'Person-parent' and 'Person-death place'.

Key Results

  • Superiority over Baselines: The hierarchical topic model significantly outperformed the standard Maximum Likelihood Estimate (MLE) baseline. The MLE approach is easily fooled by frequent but irrelevant patterns, whereas the topic model successfully ignored them.
  • High Precision for Specific Relations: For the "Death place" relation, the system achieved a precision of 0.90 (90% accuracy) when extracting new facts using syntactic patterns.
  • Human Evaluation: The authors used human raters to verify 4,000 extractions. They found that for relations like "Parent," the system was nearly perfect (1.00 precision) at identifying sentences that supported known relations.

Discussion

The cleverest insight is treating "noise" as its own category in a generative model. Instead of trying to write rules to exclude bad data, the model learns that "bad" data is simply data that doesn't generalize across different entity pairs. The paper finds that syntactic dependency paths (grammatical structures) are often more precise than simple "intertext" (the words between entities), especially for complex relations.

However, the model struggled with relations that are highly correlated. For example, it often confused "Nationality" with "President of," because many sentences about presidents also imply their nationality. This highlights a fundamental challenge in unsupervised learning: distinguishing between a direct relation and a strong correlation.

Conclusion

This paper introduces a fully automated way to teach computers how to recognize relationships between people, places, and things in text. By combining distant supervision with a hierarchical topic model, the researchers successfully filtered out the "noise" of coincidental word patterns to identify high-precision templates for extracting new facts from the web without any manual human intervention. Future work should focus on understanding "compatible" or "overlapping" relations—essentially teaching the model that being a "President of a country" might imply "Nationality," rather than the two being mutually exclusive categories.

Summary updated

BibTeX
@inproceedings{alfonseca2012pattern,
  author = {Enrique Alfonseca and Katja Filippova and Jean-Yves Delort and Guillermo Garrido},
  title = {{Pattern Learning for Relation Extraction with a Hierarchical Topic Model}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2012},
  url = {https://openreview.net/forum?id=r1WpsiluWB},
}
Figure