KAER: A Knowledge Augmented Pre-Trained Language Model for Entity Resolution

Liri Fang, Lan Li, Yiren Liu, Vetle I. Torvik, Bertram LudäscherarXiv 2023

Abstract

Entity resolution has been an essential and well-studied task in data cleaning research for decades. Existing work has discussed the feasibility of utilizing pre-trained language models to perform entity resolution and achieved promising results. However, few works have discussed injecting domain knowledge to improve the performance of pre-trained language models on entity resolution tasks. In this study, we propose Knowledge Augmented Entity Resolution (KAER), a novel framework named for augmenting pre-trained language models with external knowledge for entity resolution. We discuss the results of utilizing different knowledge augmentation and prompting methods to improve entity resolution performance. Our model improves on Ditto, the existing state-of-the-art entity resolution method. In particular, 1) KAER performs more robustly and achieves better results on "dirty data", and 2) with more general knowledge injection, KAER outperforms the existing baseline models on the textual dataset and dataset from the online product domain. 3) KAER achieves competitive results on highly domain-specific datasets, such as citation datasets, requiring the injection of expert knowledge in future work.

Introduction

Entity Resolution (ER) is a critical component of data cleaning, focused on determining whether two distinct records refer to the same real-world entity. While modern Pre-trained Language Models (PLMs) like RoBERTa have shown promise in understanding textual nuances, they often lack the domain-specific context necessary for complex ER tasks. For instance, a model may not inherently recognize that a specific attribute represents an "Album" or that a text string corresponds to a specific product in a global knowledge base.

Existing state-of-the-art methods, such as Ditto, have attempted basic type injections, but these remain limited in scope. The KAER framework addresses this by integrating multi-level knowledge—both at the schema level (semantic typing) and the entity level (linking to external knowledge bases)—to provide the model with a deeper understanding of the data it processes.

Methods

The KAER framework introduces a three-pronged approach to knowledge injection designed to enhance PLMs:

  1. Column Semantic Type (CST) Inference: Instead of relying solely on potentially ambiguous column names, KAER utilizes tools like Sherlock to analyze data values and infer fine-grained types (e.g., identifying a column as "Publisher" rather than just "Attr1").
  2. Entity Linking (EL): The model identifies mentions within the text and links them to WikiData. This allows the model to annotate records with semantic information derived from a massive external knowledge base.
  3. Advanced Prompting Strategies: KAER explores three distinct methods for presenting this knowledge to the model: simple text-based concatenation (Space and Slash) and the more sophisticated Prompting with Constrained Tuning (PCT). PCT uses soft-position encoding and a visible matrix to allow the model to treat injected knowledge as a structured branch of a tree, preventing "knowledge noise" from degrading the original data signal.
The KAER framework illustrating different prompt types and knowledge injection methods.

Results and Analysis

KAER was evaluated using the Magellan datasets, covering structured, dirty, and textual data across various domains. The results demonstrate that KAER significantly outperforms the previous state-of-the-art (Ditto) and baseline RoBERTa models across several key metrics.

Performance comparison (F1 scores) of KAER variants against RoBERTa and Ditto baselines across multiple datasets.

Key Findings

  • Robustness on "Dirty" Data: External knowledge acts as a stabilizer. When data is missing values or contains misplaced attributes, the injected semantic types help the model maintain high accuracy. On the Dirty/iTunes-Amazon dataset, KAER achieved improvements ranging from 9.09% to 21.44%.
  • Performance in Data-Scarce Scenarios: KAER excels on smaller datasets where PLMs typically struggle to generalize. On the Structured/iTunes-Amazon dataset, KAER outperformed baselines by a staggering 24.45% to 39.15% in F1 score.
  • Textual Superiority: On the Abt-Buy product dataset, KAER (using CST and Slash prompting) reached an F1 score of 92.61%, significantly higher than RoBERTa’s 88.41%.

Conclusion

KAER demonstrates that injecting external domain knowledge can significantly boost the performance and robustness of PLMs for entity resolution. While general knowledge from WikiData is highly effective for music and products, specialized fields like academic citations remain a challenge. Future work will focus on the injection of expert-level domain knowledge to bridge this gap and further refining constrained tuning for complex data structures.

Summary updated

BibTeX
@misc{fang2023kaer,
  author = {Liri Fang and Lan Li and Yiren Liu and Vetle I. Torvik and Bertram Ludäscher},
  title = {{KAER: A Knowledge Augmented Pre-Trained Language Model for Entity Resolution}},
  year = {2023},
  eprint = {2301.04770},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.04770},
}
Figure