A Pre-trained Data Deduplication Model based on Active Learning

Xinyao Liu, Shengdong Du, Fengmao Lv, Hongtao Xue, Jie Hu, Tianrui Li

TL;DR

This paper introduces PDDM-AL, a novel pre-trained Transformer model that leverages active learning to tackle the challenging problem of semantic data deduplication. By intelligently selecting the most informative data for manual labeling and employing R-Drop for robust data augmentation, PDDM-AL significantly improves deduplication accuracy while reducing labeling costs.

What Problem Does This Paper Address?

In the age of big data, ensuring data quality is paramount. A significant hurdle is "dirty data," particularly duplicate records that can arise from various sources like manual entry or database merging. These duplicates can severely skew data analysis and decision-making. Traditional data deduplication methods often rely on fuzzy matching with manually set thresholds, which can be brittle and struggle with nuanced semantic differences. Existing advanced methods, while better, still face challenges in efficiently handling the vast amounts of data and the cost of manual labeling required for training high-performing models. This paper aims to bridge this gap by developing a more efficient and accurate data deduplication system that can understand semantic nuances and minimize human annotation effort.

Methods

The core of this work is the Pre-trained Data Deduplication Model based on Active Learning (PDDM-AL). Here's a breakdown of its key components:

  • Pre-trained Transformer Backbone: The model utilizes a pre-trained Transformer-based language model (specifically BERT is mentioned) as its foundation. This allows it to leverage existing knowledge of language semantics and context, which is crucial for understanding subtle differences in data records.
  • Sequence-to-Classification Task: Data deduplication is framed as a sequence-to-classification problem. Records are serialized into a format suitable for the Transformer, and the model predicts whether a pair of records is a duplicate or not.
  • Active Learning Integration: This is a key novelty. Instead of randomly selecting data for labeling, PDDM-AL employs an active learning strategy. After each training iteration, a "selector" component identifies the most uncertain or valuable data points from the unlabeled pool. These are then presented to human experts for labeling, ensuring that the model learns from the most informative examples. This iterative process significantly reduces the overall labeling burden.
  • R-Drop for Data Augmentation: To further enhance robustness and performance, especially with noisy data, the paper incorporates the R-Drop method. R-Drop performs data augmentation by applying dropout twice to the same input and then regularizing the model to ensure consistency between the two augmented outputs. This helps the model generalize better without introducing semantic distortions often seen in other augmentation techniques.
  • Domain Knowledge Injection: The model also incorporates a mechanism to inject domain-specific knowledge. For instance, it uses Named Entity Recognition (NER) and regular expressions to identify and mark important attributes (like book editions) that might not be obvious from literal string matching.

Datasets

The paper evaluates PDDM-AL on four real-world datasets:

  1. MusicBrainz: A dataset based on song records, with duplicates generated using the DAPO data generator to introduce significant corruption.
  2. Geographic Settlements: A dataset comprising geographical entities from multiple sources (DBpedia, Geonames, Freebase, NYTimes), previously used in the OAEI competition.
  3. Education: A dataset derived from lists of educational entities from ten different sources.
  4. Enterprise Personnel Information: A dataset of Chinese enterprise personnel information.

The datasets were split into training, validation, and testing sets with a 6:2:2 ratio. No new benchmark datasets were introduced.

Key Insights and Ideas

  • Semantic Understanding is Key: The paper strongly emphasizes that true data deduplication, especially with "dirty data," requires understanding the semantic meaning of attributes, not just literal string similarity. Pre-trained language models are well-suited for this.
  • Active Learning for Efficiency: The most significant insight is the power of active learning in drastically reducing the cost of manual labeling for data deduplication. By intelligently querying for labels on the most informative samples, the model can achieve high performance with far fewer annotations than traditional supervised methods.
  • R-Drop for Robustness: The use of R-Drop proves effective in making the model more resilient to noisy data, which is common in real-world deduplication tasks. It achieves this without the semantic drift that other augmentation methods might introduce.
  • Domain Knowledge Matters: Explicitly injecting domain knowledge (like identifying book editions) can significantly boost performance, highlighting the importance of incorporating contextual information beyond raw text.

Key Results

PDDM-AL demonstrated strong performance across the evaluated datasets:

  • State-of-the-Art Performance: PDDM-AL consistently outperformed baseline methods (SentenceBERT, Dedupe, Field-based similarity) in terms of Precision, Recall, and F1 scores.
  • Significant Recall Improvement: The model achieved up to a 28% improvement in Recall on benchmark datasets compared to previous state-of-the-art methods.
  • Active Learning Efficiency: Experiments showed that active learning enabled PDDM-AL to achieve high F1 and Recall scores with a significantly smaller labeled dataset. For instance, on the GeographicSettlements dataset, adding just 1,000 pairs of data per round led to substantial improvements in F1 and Recall.
  • Uncertainty Sampling Superiority: The uncertainty-based active learning selection strategy consistently outperformed random selection, yielding higher F1 and Recall values for the same amount of labeled data.

Limitations and Future Work

  • Limitations:
    • While PDDM-AL shows improved precision, it was slightly lower than Dedupe on the Education dataset.
  • SentenceBERT showed poor performance on GeographicSettlements and Education datasets, potentially due to missing values and irrelevant attributes, which PDDM-AL also had to contend with.
  • Future Work: The authors express interest in continuing to explore different active learning selection strategies and combinations of models to further enhance the accuracy of data deduplication.

Summary updated

BibTeX
@article{liu2023pre,
  author = {Xinyao Liu and Shengdong Du and Fengmao Lv and Hongtao Xue and Jie Hu and Tianrui Li},
  title = {{A Pre-trained Data Deduplication Model based on Active Learning}},
  journal = {Expert Systems with Applications},
  year = {2023},
  url = {https://openreview.net/forum?id=Yit0K4xko6F},
}
Figure