Relation Extraction from Wikipedia Using Subtree Mining

Dat P. T. Nguyen, Yutaka Matsuo, Mitsuru IshizukaAAAI 2007

Abstract

The exponential growth and reliability of Wikipedia have made it a promising data source for intelligent systems. The first challenge of Wikipedia is to make the encyclopedia machine-processable. In this study, we address the problem of extracting relations among entities from Wikipedia's English articles, which in turn can serve for intelligent systems to satisfy users' information needs. Our proposed method first anchors the appearance of entities in Wikipedia articles using some heuristic rules that are supported by their encyclopedic style. Therefore, it uses neither the Named Entity Recognizer (NER) nor the Coreference Resolution tool, which are sources of errors for relation extraction. It then classifies the relationships among entity pairs using SVM with features extracted from the web structure and subtrees mined from the syntactic structure of text. The innovations behind our work are the following: a) our method makes use of Wikipedia characteristics for entity allocation and entity classification, which are essential for relation extraction; b) our algorithm extracts a core tree, which accurately reflects a relationship between a given entity pair, and subsequently identifies key features with respect to the relationship from the core tree. We demonstrate the effectiveness of our approach through evaluation of manually annotated data from actual Wikipedia articles.

Introduction

While Wikipedia is a goldmine of information, it is primarily written for humans in natural language. To make it "machine-processable" for the Semantic Web or AI knowledge bases, we need to extract relations between entities in the form of triples: (Entity A, Relation, Entity B).

Existing methods often struggle with two primary issues. First, standard NLP pipelines rely on Named Entity Recognition (NER) and Coreference Resolution. On Wikipedia's specific style, these tools often fail, and those errors propagate through the extraction pipeline. Second, simple "bag-of-words" models or even "dependency paths" (the shortest link between two words in a sentence structure) often miss critical context. For example, in the sentence "Steve Ballmer joined the company in 1980...", the shortest path between "Steve Ballmer" and "company" is just the verb "joined," which may not explicitly capture a "CEO" relationship without additional syntactic context.

Methodology

The proposed framework treats Wikipedia as a structured database rather than just raw text. The system architecture follows a pipeline from raw Wikipedia articles to structured knowledge.

System architecture for relation extraction from Wikipedia.

Heuristic Entity Anchoring

Instead of using an NER tool, the system leverages Wikipedia’s internal hyperlinks to identify "secondary entities." For the "principal entity" (the subject of the article), the researchers use heuristic rules based on the article title, the first sentence, and pronoun frequency to identify all mentions, effectively bypassing standard coreference resolution tools.

Core Tree Construction and Subtree Mining

At the heart of this approach is the construction of a Core Tree. For any sentence containing two entities, a dependency tree is generated. Rather than just looking at the shortest path between entities, the path is expanded to include "keywords" (e.g., "founder," "executive") identified by a semi-automatic keyword extractor.

Transformation from full dependency trees to core trees and common subtrees.

As shown in the figure above, the full dependency tree (a, b) is pruned into a core tree (c, d) that focuses on the relationship. These trees are then converted into a uniform graph format (e, f) to find common subtrees (g). The system uses the FREQT algorithm to find frequently occurring subtrees within these Core Trees across the training data, which act as templates for specific relations. Finally, Support Vector Machines (SVMs) are trained using these mined subtrees and entity types as features.

Evaluation and Results

The researchers evaluated the system on the English version of Wikipedia, using 5,975 articles for training and testing. The system was tested on 7 entity types and 13 relation types (e.g., CEO, Founder, Birth Place, Spouse).

The proposed system, DepTree₂ (using both subtrees and entity types), significantly outperformed baseline models:

Method Precision Recall F1 Score
Baseline (Bag-of-words) 8.70% 22.26% 12.51%
Baseline (Dependency Path) 9.88% 25.31% 14.21%
Proposed (Subtree + Type) 29.07% 53.86% 37.76%

The jump from a 14.21% F1 score to 37.76% demonstrates that subtrees provide a much richer feature set than simple paths or word lists. The consistency of Wikipedia's grammar makes deep syntactic analysis particularly viable for this domain.

Conclusion

This research demonstrates that leveraging the unique structural characteristics of Wikipedia—such as hyperlinks and category hierarchies—can overcome the limitations of standard NLP tools. While recall was high, precision remains an area for improvement. Future work will focus on more robust feature selection to reduce noise from irrelevant subtrees and extending the model to capture relations that span multiple sentences.

Summary updated

BibTeX
@inproceedings{nguyen2007relation,
  author = {Dat P. T. Nguyen and Yutaka Matsuo and Mitsuru Ishizuka},
  title = {{Relation Extraction from Wikipedia Using Subtree Mining}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2007},
  url = {https://openreview.net/forum?id=S1ZuDgW_br},
}
Figure