Skip to content
/ LLM4EM Public

Code for the paper "Match, Compare, or Select? An Investigation of Large Language Models for Entity Matching"

Notifications You must be signed in to change notification settings

tshu-w/LLM4EM

Repository files navigation

Match, Compare, or Select? An Investigation of Large Language Models for Entity Matching

Three strategies for LLM-based entity matching.

Description

Entity matching (EM) is a critical step in entity resolution (ER). Recently, entity matching based on large language models (LLMs) has shown great promise. However, current LLM-based entity matching approaches typically follow a binary matching paradigm that ignores the global consistency between record relationships. In this paper, we investigate various methodologies for LLM-based entity matching that incorporate record interactions from different perspectives. Specifically, we comprehensively compare three representative strategies: matching, comparing, and selecting, and analyze their respective advantages and challenges in diverse scenarios. Based on our findings, we further design a compound entity matching framework (ComEM) that leverages the composition of multiple strategies and LLMs. ComEM benefits from the advantages of different sides and achieves improvements in both effectiveness and efficiency. Experimental results on 8 ER datasets and 9 LLMs verify the superiority of incorporating record interactions through the selecting strategy, as well as the further cost-effectiveness brought by ComEM.

Compound EM framework

How to run

First, install dependencies and prepare the data

# clone project
git clone https://github.com/YourGithubName/your-repository-name
cd LLM4EM

# [SUGGESTED] use conda environment
conda env create -f environment.yaml
conda activate llm4em

# [ALTERNATIVE] install requirements directly
pip install -r requirements.txt

# prepare the data
git clone https://github.com/AI-team-UoA/pyJedAI data/pyJedAI
python src/blocking.py

Next, to obtain the main results of the paper:

python src/{strategy}.py

Citation

@article{YourName,
  title={Your Title},
  author={Your team},
  journal={Location},
  year={Year}
}

About

Code for the paper "Match, Compare, or Select? An Investigation of Large Language Models for Entity Matching"

Topics

Resources

Stars

Watchers

Forks