arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.11244cs.CLcs.LG
收藏

使用大型语言模型进行实体匹配

Entity Matching using Large Language Models

University of Mannheim(曼海姆大学)

Ralph Peeters, Aaron Steiner, Christian Bizer

AI总结:

本文研究用大型语言模型替代预训练语言模型进行实体匹配,通过零样本、提示设计、上下文演示、规则生成和微调等实验证明LLMs仅需极少训练数据即可达到可比性能,且对未见实体更鲁棒,GPT4还能生成解释并自动识别匹配错误原因。

摘要:

实体匹配是判断两个实体描述是否指向同一现实世界实体的任务。实体匹配是大多数数据集成流程中的核心步骤。许多最先进的实体匹配方法依赖于预训练语言模型(PLMs),如BERT或RoBERTa。这些模型用于实体匹配的两个主要缺点是:(i)模型需要大量任务特定的训练数据,以及(ii)微调后的模型对于分布外实体不够鲁棒。本文研究使用生成式大型语言模型(LLMs)作为基于PLM的匹配器的替代方案,该方案对任务特定训练数据的依赖性更低且更鲁棒。研究涵盖了托管型和可在本地运行的开源LLMs。我们在零样本场景和任务特定训练数据可用的场景下评估这些模型。我们比较了不同的提示设计以及模型的提示敏感性。我们表明不存在单一的最佳提示,提示需要针对每个模型/数据集组合进行调整。我们进一步研究了(i)上下文演示的选择,(ii)匹配规则的生成,以及(iii)使用相同的训练数据池对LLMs进行微调。我们的实验表明,最佳的LLMs不需要或仅需要少量训练示例,就能与使用数千个示例微调的PLMs达到相当的性能。基于LLM的匹配器还表现出对未见实体更高的鲁棒性。我们表明GPT4可以为匹配决策生成结构化解释,并能通过分析错误决策的解释自动识别匹配错误的潜在原因。我们证明该模型能够为识别出的错误类别生成有意义的文本描述,这可以帮助数据工程师改进实体匹配流程。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑