Learning Field Compatibilities to Extract Database Records from Unstructured Text

Michael L. Wick, Aron Culotta, Andrew McCallumEMNLP 2006

Abstract

Named-entity recognition systems extract entities such as people, organizations, and locations from unstructured text. Rather than extract these mentions in isolation, this paper presents a record extraction system that assembles mentions into records (i.e. database tuples). We construct a probabilistic model of the compatibility between field values, then employ graph partitioning algorithms to cluster fields into cohesive records. We also investigate compatibility functions over sets of fields, rather than simply pairs of fields, to examine how higher representational power can impact performance. We apply our techniques to the task of extracting contact records from faculty and student homepages, demonstrating a 53% error reduction over baseline approaches.

Introduction

Information Extraction (IE) systems have traditionally focused on Named Entity Recognition (NER) to identify isolated facts, such as a person's name or a specific city. However, populating real-world databases requires more than isolated entities; it requires multi-field records—structured tuples like a contact card containing a Name, Job Title, Company, and Address.

Historically, researchers approached this through binary relation extraction, attempting to determine if two specific entities are linked. This method struggles when scaling to complex records. For instance, a single faculty homepage might list multiple names, phone numbers, and email addresses. Determining which fields belong together becomes a combinatorial challenge. This paper frames record extraction as a graph partitioning problem, learning to evaluate the compatibility of entire sets of fields rather than just pairs.

Example of extracted records from unstructured text

Methodology

The proposed system models a document as a fully connected graph where each extracted field is a vertex. The objective is to partition this graph into disjoint clusters, each representing a single database record.

Cluster Compatibility Function

A central innovation is the cluster compatibility function. Unlike traditional models that average pairwise scores, this system trains a Maximum Entropy classifier to score the compatibility of an entire set of fields. To train this classifier effectively despite the impossible task of enumerating all subsets, the authors utilize uniform sampling and iterative sampling during the clustering process to generate realistic training examples.

Inference via Agglomerative Clustering

During inference, the system employs greedy agglomerative clustering. Initially, every field occupies its own cluster. The system iteratively merges the most compatible clusters until the compatibility score falls below a predefined threshold (0.5). The classifier utilizes several feature types:

  • Formatting: Proximity between fields, line breaks, and HTML structure.
  • Knowledge-based: External dictionaries (e.g., mapping cities to states).
  • First-order existential features: Logic that examines the cluster as a whole, such as detecting conflicting values (e.g., a single record containing two distinct last names).

Key Insights: The Power of Clusters

The research demonstrates that modeling cluster compatibility is significantly more robust than relying on pairwise averages.

Cluster compatibility vs. pairwise compatibility for phone numbers (a) and locations (b)
  1. Preventing Over-estimation: Pairwise models often fail when similar fields appear in close proximity. For example, three phone numbers listed together might all have high pairwise links. A cluster model can recognize that it is highly improbable for one person to have three different phone numbers with different area codes, thus penalizing the merge (as seen in panel (a) of the figure above).
  2. Fixing Under-estimation: Weak pairwise links can be reinforced within a cluster. A fuzzy match between "Pleasantville" and "Univ of North Dakota, Pleasantville" might be weak on its own. If "Pleasantville" and "North Dakota" are already clustered, the model can more confidently associate the combined City+State with the university name (as seen in panel (b)).
  3. Avoiding the Transitive Closure Trap: In noisy text, if A is linked to B and B to C, transitive logic forces A and C together. Graph partitioning allows the model to evaluate the A-C relationship directly before committing to a merge, preserving precision.

Evaluation and Results

The approach was evaluated on a hand-labeled subset of the WebKB dataset, focusing on 252 faculty and student homepages containing approximately 9,000 fields across 25 categories.

The cluster compatibility method achieved a 91.81% F1 score (92.87% Precision, 90.78% Recall). This represents a 53% error reduction over baseline transitive closure approaches and a 14% error reduction over state-of-the-art methods using geometric means of pairwise edges. Notably, the performance remained stable even on documents with over 80 fields, where pairwise methods typically degrade due to record interleaving. The gains were primarily driven by precision improvements, as the model learned exactly when to stop merging fields.

Conclusion and Future Work

While highly effective, the current model assumes "hard clustering," where each field belongs to exactly one record. Future work could explore overlapping clusters for shared fields (like a lab phone number) or "block moves" in clustering to escape local minima. Additionally, incorporating syntactic information like dependency trees could improve extraction from standard prose, moving beyond the formatting-heavy reliance of the current system.

Summary updated

BibTeX
@inproceedings{wick2006learning,
  author = {Michael L. Wick and Aron Culotta and Andrew McCallum},
  title = {{Learning Field Compatibilities to Extract Database Records from Unstructured Text}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2006},
  url = {https://openreview.net/forum?id=BybIZfGuWr},
}
Figure