Fine-tuning Large Language Models for Entity Matching

Aaron Steiner, Ralph Peeters, Christian Bizer
9/12/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: wbsg-uni-mannheim/TailorMatch (10 stars, last commit 2025-06-17).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

This repository contains code and comprehensive examples to replicate and build upon the experiments presented in our paper “Fine-tuning Large Language Models for Entity Matching” The repository provides resources for implementing fine-tuning techniques on large language models specifically for entity matching tasks.

104Shell, PythonAug 29, 20241 years ago

Similar Papers

Cite this paper

@article{steiner2024finetuning,
  title  = {Fine-tuning Large Language Models for Entity Matching},
  author = {Aaron Steiner and Ralph Peeters and Christian Bizer},
  year   = {2024},
  eprint = {2409.08185},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.08185v2}
}

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/2409.08185.svg)](https://codeofpaper.com/paper/2409.08185)

Discussion