Deep Entity Matching with Pre-Trained Language Models

Yuliang Li, Jinfeng Li, Yoshihiko Suhara, AnHai Doan, Wang-Chiew Tan

TL;DR

This paper introduces DITTO, a novel entity matching system that leverages pre-trained Transformer language models (like BERT) to achieve state-of-the-art results with significantly less labeled data. DITTO enhances matching quality through three key optimizations: injecting domain knowledge, summarizing long text, and augmenting training data with challenging examples.

What Problem Does This Paper Address?

Entity Matching (EM) is the crucial task of identifying records that refer to the same real-world entity across different datasets. This is fundamental for data integration, cleaning, and analysis. However, traditional EM systems struggle with the nuances of natural language, requiring extensive manual effort for rule creation or large amounts of labeled data for training. Existing deep learning approaches often rely on complex architectures and still demand significant training data. The challenge is to build EM systems that are accurate, efficient, and require less human supervision, especially when dealing with unstructured or semi-structured text data.

Methods

DITTO frames entity matching as a sequence-pair classification problem, allowing it to directly fine-tune pre-trained Transformer language models (LMs) like BERT, RoBERTa, and DistilBERT. This approach leverages the rich contextual understanding embedded in these LMs.

DITTO introduces three key optimizations to boost performance:

  1. Leveraging Domain Knowledge (DK): This allows users to inject domain-specific information by highlighting important parts of the input data. This is achieved through "span typing" (tagging specific types of text spans like product IDs or dates) and "span normalization" (rewriting semantically equivalent but syntactically different spans into a canonical form).
  2. Summarizing Long Entries: Transformer LMs have a maximum input sequence length (e.g., 512 tokens for BERT). For long text entries, DITTO uses a TF-IDF-based summarization technique to retain only the most informative tokens, preventing information loss due to truncation.
  3. Augmenting Training Data (DA): DITTO employs data augmentation techniques adapted from NLP. Operators like span_del (deleting spans) and attr_del (deleting attributes) create "harder" examples, forcing the model to learn more robust matching strategies. The MixDA technique interpolates original and augmented examples to mitigate potential label distortion.

Datasets

The authors evaluated DITTO on several benchmark datasets:

  • ER Benchmark datasets [26] and Magellan datasets [25]: These are a collection of 13 datasets covering various domains (products, publications, businesses) with structured data. Some datasets have "dirty" versions to test robustness against noisy data.
  • WDC product matching dataset [39]: A large-scale dataset of product offers from e-commerce websites, used to evaluate performance on text-heavy data and label efficiency.
  • A real-world employer matching task: Two large company datasets (789K and 412K records) were used for a case study, demonstrating DITTO's effectiveness on a practical, large-scale problem.

Key Insights and Ideas

  • Pre-trained LMs are powerful for EM: Even a straightforward fine-tuning of LMs like BERT significantly outperforms previous state-of-the-art (SOTA) methods, highlighting the advantage of deep language understanding.
  • Optimizations are crucial: While the base LM is strong, the three proposed optimizations (DK, Summarization, DA) provide substantial further improvements, especially on challenging datasets.
  • Label efficiency is a major win: DITTO can achieve comparable or better performance than existing SOTA methods using less than half the labeled data, making it highly practical.
  • Domain knowledge injection is effective: Explicitly guiding the model with span typing and normalization leads to noticeable performance gains, especially when domain-specific cues are important.
  • Data augmentation makes models more robust: Creating challenging examples through DA helps DITTO learn to handle variations and noise in data, improving its generalization.

Key Results

  • DITTO consistently outperforms previous SOTA EM solutions on benchmark datasets, achieving up to a 31% improvement in F1 score.
  • It achieves previous SOTA results with at most half the number of labeled data.
  • On a real-world employer matching task with millions of records, DITTO achieved a high F1 score of 96.5%.
  • The summarization optimization significantly improved performance on text-heavy datasets, boosting F1 from 41% to over 93%.
  • The DK optimization led to an average improvement of 1.2% on ER-Magellan datasets.
  • The DA optimization improved performance on WDC datasets by an average of 2.53%.
  • DITTO's training and prediction times are comparable to existing SOTA systems, especially with optimizations like fp16.

Limitations and Future Work

  • Domain-specific LMs: The current LMs are trained on general English text. For highly specialized domains (e.g., scientific or medical texts), using domain-specific pre-trained LMs (like SciBERT or BioBERT) could further improve performance.
  • Numeric Data: For datasets with a lot of numeric data, a hybrid approach combining textual features with specialized numeric processing might be beneficial.
  • Active Learning: While DITTO is label-efficient, integrating active learning could further reduce labeling effort by interactively selecting the most informative examples for human annotation.
  • Broader Applications: The authors plan to extend DITTO to other data integration tasks beyond EM, such as entity type detection and schema matching, aiming to build BERT-like models for tabular data.

Summary updated

BibTeX
@article{li2020deep,
  author = {Yuliang Li and Jinfeng Li and Yoshihiko Suhara and AnHai Doan and Wang-Chiew Tan},
  title = {{Deep Entity Matching with Pre-Trained Language Models}},
  journal = {Proc. VLDB Endow.},
  year = {2020},
  url = {https://openreview.net/forum?id=MA9T4kHeXVn},
}
Figure