Skip to main content
QUICK REVIEW

[Paper Review] Using ChatGPT for Entity Matching

Ralph Peeters, Christian Bizer|arXiv (Cornell University)|May 5, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper evaluates using ChatGPT for entity matching as a zero-shot, data-efficient alternative to fine-tuned BERT/RoBERTa models. It demonstrates that with prompt engineering—especially in-context learning and explicit matching rules—ChatGPT achieves 82.35% F1 in zero-shot settings and up to 90.20% F1 with 20 in-context demonstrations, outperforming RoBERTa without fine-tuning and reducing labeling costs significantly.

ABSTRACT

Entity Matching is the task of deciding if two entity descriptions refer to the same real-world entity. State-of-the-art entity matching methods often rely on fine-tuning Transformer models such as BERT or RoBERTa. Two major drawbacks of using these models for entity matching are that (i) the models require significant amounts of fine-tuning data for reaching a good performance and (ii) the fine-tuned models are not robust concerning out-of-distribution entities. In this paper, we investigate using ChatGPT for entity matching as a more robust, training data-efficient alternative to traditional Transformer models. We perform experiments along three dimensions: (i) general prompt design, (ii) in-context learning, and (iii) provision of higher-level matching knowledge. We show that ChatGPT is competitive with a fine-tuned RoBERTa model, reaching a zero-shot performance of 82.35% F1 on a challenging matching task on which RoBERTa requires 2000 training examples for reaching a similar performance. Adding in-context demonstrations to the prompts further improves the F1 by up to 7.85% when using similarity-based example selection. Always using the same set of 10 handpicked demonstrations leads to an improvement of 4.92% over the zero-shot performance. Finally, we show that ChatGPT can also be guided by adding higher-level matching knowledge in the form of rules to the prompts. Providing matching rules leads to similar performance gains as providing in-context demonstrations.

Motivation & Objective

  • To evaluate ChatGPT as a zero-shot, training data-efficient alternative to fine-tuned Transformer models like RoBERTa for entity matching.
  • To investigate the impact of different prompt design strategies—zero-shot, in-context learning, and explicit matching rules—on ChatGPT’s performance.
  • To compare the effectiveness and cost-efficiency of in-context demonstrations versus manually authored matching rules for guiding LLMs.
  • To assess the robustness of ChatGPT on out-of-distribution entities compared to fine-tuned models.
  • To measure the cost implications of using the OpenAI API for entity matching with various prompt configurations.

Proposed method

  • Used the downsampled, challenging WDC Products benchmark (80% corner cases) to evaluate ChatGPT on entity matching.
  • Serialized product pairs using attribute names (brand, title, description, price) into natural language prompts.
  • Evaluated zero-shot performance using only the prompt instruction without demonstrations.
  • Implemented in-context learning by selecting relevant demonstrations using both similarity-based selection and random selection.
  • Introduced handpicked, high-quality demonstrations (20 pairs) and compared their impact to randomly selected or similarity-selected examples.
  • Added explicit matching rules (e.g., for brand, title, price) in natural language to prompts to guide reasoning, testing both zero-shot and combined rule+demo settings.

Experimental results

Research questions

  • RQ1Can ChatGPT achieve competitive zero-shot performance on entity matching without fine-tuning, compared to state-of-the-art fine-tuned RoBERTa models?
  • RQ2How effective is in-context learning with different demonstration selection strategies (similarity-based, random, handpicked) in improving ChatGPT’s matching performance?
  • RQ3Does providing explicit, high-level matching rules in prompts lead to performance gains comparable to in-context demonstrations?
  • RQ4What is the cost-performance trade-off of using in-context demonstrations versus rule-based prompting in terms of API usage and labeling effort?
  • RQ5How robust is ChatGPT to out-of-distribution entities compared to fine-tuned models?

Key findings

  • ChatGPT achieved a zero-shot F1 of 82.35% on a challenging entity matching benchmark, matching the performance of RoBERTa fine-tuned on 2,000 labeled examples.
  • Using 20 similarity-selected in-context demonstrations increased F1 to 90.20%, a 7.85% improvement over zero-shot performance.
  • Handpicked demonstrations (20 pairs) improved F1 by 4.92% over zero-shot, with significantly lower labeling cost than training data for fine-tuned models.
  • Providing explicit matching rules increased zero-shot F1 to 88.29%, a 5.94% improvement, and achieved performance comparable to 20 related demonstrations.
  • Combining rules and demonstrations slightly reduced recall and F1, indicating potential conflict or redundancy when both are used.
  • The cost of using 20 demonstrations per pair was 1,393% higher than zero-shot, but the labeling cost for 20 handpicked examples was far lower than collecting thousands of training pairs for fine-tuning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.