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

面向实体匹配的大语言模型微调

Fine-tuning Large Language Models for Entity Matching

University of Mannheim(曼海姆大学)

Aaron Steiner, Ralph Peeters, Christian Bizer

AI总结:

本文探索大语言模型微调在实体匹配任务中的潜力,从训练样本表示、样本选择与生成两个维度展开研究,发现微调对小模型性能提升显著,可增强同领域泛化但损害跨领域迁移,结构化解释对多数模型有效,样本方法仅利好Llama 3.1 8B。

摘要:

生成式大语言模型(LLM)凭借出色的零样本性能和对未见过实体的泛化能力,是实体匹配任务中预训练语言模型的颇具潜力的替代方案。现有将LLM用于实体匹配的研究主要聚焦于提示工程和上下文学习。本文探索了微调LLM用于实体匹配的潜力。我们从两个维度分析微调:1)训练样本的表示形式,我们实验了在训练集中添加不同类型的LLM生成的解释;2)使用LLM进行训练样本的选择与生成。除了源数据集上的匹配性能,我们还研究了微调如何影响模型泛化到其他同领域数据集以及跨主题领域的能力。我们的实验表明,微调显著提升了较小模型的性能,而较大模型的结果则好坏参半。微调还提升了对同领域数据集的泛化能力,但会损害跨领域迁移效果。我们发现,向训练集中添加结构化解释对四个LLM中的三个的性能有积极影响,而本文提出的样本选择与生成方法仅提升了Llama 3.1 8B的性能,却会降低GPT-4o-mini的性能。

英文摘要:

Generative large language models (LLMs) are a promising alternative to pre-trained language models for entity matching due to their high zero-shot performance and ability to generalize to unseen entities. Existing research on using LLMs for entity matching has focused on prompt engineering and in-context learning. This paper explores the potential of fine-tuning LLMs for entity matching. We analyze fine-tuning along two dimensions: 1) the representation of training examples, where we experiment with adding different types of LLM-generated explanations to the training set, and 2) the selection and generation of training examples using LLMs. In addition to the matching performance on the source dataset, we investigate how fine-tuning affects the models ability to generalize to other in-domain datasets as well as across topical domains. Our experiments show that fine-tuning significantly improves the performance of the smaller models while the results for the larger models are mixed. Fine-tuning also improves the generalization to in-domain datasets while hurting cross-domain transfer. We show that adding structured explanations to the training set has a positive impact on the performance of three out of four LLMs, while the proposed example selection and generation methods, only improve the performance of Llama 3.1 8B while decreasing the performance of GPT-4o-mini.

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

↑