Entity Matching using Large Language Models

Ralph Peeters, Aaron Steiner, Christian Bizer
10/17/2023
80 citations
cs.CLcs.LG

Official code: wbsg-uni-mannheim/MatchGPT (68 stars, Jupyter Notebook, last commit 2024-10-18).

Abstract

Entity matching is the task of deciding whether two entity descriptions refer to the same real-world entity. Entity matching is a central step in most data integration pipelines.

Show full abstract

Many state-of-the-art entity matching methods rely on pre-trained language models (PLMs) such as BERT or RoBERTa. Two major drawbacks of these models for entity matching are that (i) the models require significant amounts of task-specific training data and (ii) the fine-tuned models are not robust concerning out-of-distribution entities. This paper investigates using generative large language models (LLMs) as a less task-specific training data-dependent and more robust alternative to PLM-based matchers. The study covers hosted and open-source LLMs which can be run locally. We evaluate these models in a zero-shot scenario and a scenario where task-specific training data is available. We compare different prompt designs and the prompt sensitivity of the models. We show that there is no single best prompt but that the prompt needs to be tuned for each model/dataset combination. We further investigate (i) the selection of in-context demonstrations, (ii) the generation of matching rules, as well as (iii) fine-tuning LLMs using the same pool of training data. Our experiments show that the best LLMs require no or only a few training examples to perform comparably to PLMs that were fine-tuned using thousands of examples. LLM-based matchers further exhibit higher robustness to unseen entities. We show that GPT4 can generate structured explanations for matching decisions and can automatically identify potential causes of matching errors by analyzing explanations of wrong decisions. We demonstrate that the model can generate meaningful textual descriptions of the identified error classes, which can help data engineers to improve entity matching pipelines.

View on arXivView PDF

Code Implementations(1)

This repository contains code and extensive prompt examples to reproduce and extend the experiments in our papers "Using ChatGPT for Entity Matching" and "Entity Matching using Large Language Models".

6813Jupyter Notebook, PythonApr 28, 20232 years ago
entity-resolutionproduct-matching

Similar Papers

Cite this paper

@article{peeters2023entity,
  title  = {Entity Matching using Large Language Models},
  author = {Ralph Peeters and Aaron Steiner and Christian Bizer},
  year   = {2023},
  eprint = {2310.11244},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.11244v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.11244.svg)](https://codeofpaper.com/paper/2310.11244)

Discussion