Skip to main content
QUICK REVIEW

[论文解读] Using ChatGPT for Entity Matching

Ralph Peeters, Christian Bizer|arXiv (Cornell University)|May 5, 2023
Topic ModelingComputer Science被引用 3
一句话总结

本文评估了使用ChatGPT进行实体匹配作为微调BERT/RoBERTa模型的零样本、数据高效替代方案。结果表明,通过提示工程——尤其是少样本提示学习和显式匹配规则——ChatGPT在零样本设置下达到82.35%的F1,在20个上下文演示下最高可达90.20%的F1,优于未微调的RoBERTa,且显著降低了标注成本。

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.

研究动机与目标

  • 评估ChatGPT作为微调Transformer模型(如RoBERTa)在实体匹配任务中的零样本、训练数据高效替代方案。
  • 研究不同提示设计策略(零样本、上下文学习、显式匹配规则)对ChatGPT性能的影响。
  • 比较通过上下文演示与手工编写的匹配规则在引导大语言模型方面的有效性与成本效率。
  • 评估ChatGPT在分布外实体上的鲁棒性,相较于微调模型的表现。
  • 衡量使用OpenAI API进行实体匹配时,不同提示配置下的成本影响。

提出的方法

  • 使用下采样且具有挑战性的WDC Products基准(80%为边缘情况)来评估ChatGPT在实体匹配中的表现。
  • 将产品对按属性名称(品牌、标题、描述、价格)序列化为自然语言提示。
  • 通过仅使用提示指令而不提供示例,评估零样本性能。
  • 通过基于相似性的选择和随机选择两种方式,实现上下文学习。
  • 引入精心挑选的高质量演示(20对),并与随机选择或基于相似性的示例进行对比。
  • 在提示中加入自然语言形式的显式匹配规则(如品牌、标题、价格),以引导推理,测试零样本与规则+演示组合设置下的表现。

实验结果

研究问题

  • RQ1与最先进的微调RoBERTa模型相比,ChatGPT是否能在不微调的情况下实现具有竞争力的零样本实体匹配性能?
  • RQ2不同演示选择策略(基于相似性、随机、手工挑选)的上下文学习在提升ChatGPT匹配性能方面的有效性如何?
  • RQ3在提示中提供显式的高层次匹配规则是否能带来与上下文演示相当的性能提升?
  • RQ4在API使用成本与标注工作量方面,使用上下文演示与基于规则的提示工程之间的成本-性能权衡如何?
  • RQ5与微调模型相比,ChatGPT在分布外实体上的鲁棒性如何?

主要发现

  • ChatGPT在具有挑战性的实体匹配基准上实现了82.35%的零样本F1,与在2,000个标注样本上微调的RoBERTa性能相当。
  • 使用20个基于相似性选择的上下文演示,F1提升至90.20%,较零样本性能提高7.85%。
  • 手工挑选的演示(20对)使F1较零样本提升4.92%,且标注成本远低于微调模型所需的训练数据量。
  • 提供显式匹配规则使零样本F1提升至88.29%,提高5.94%,性能与20个相关演示相当。
  • 结合规则与演示略微降低了召回率和F1,表明两者同时使用时可能存在冲突或冗余。
  • 每对使用20个演示的API成本是零样本的1,393%,但20个手工挑选示例的标注成本远低于为微调收集数千个训练对的成本。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。