Fine-tuning large language models with contrastive margin ranking loss for selective entity matching in product data integration

Entity Matching (EM) concerns identifying entities from different data sources that correspond to the same real-world object. It is widely used for product data integration in e-commerce, product classification, and inventory management, enabling the matching of duplicate product records with heterogeneous descriptions across various platforms and software systems. The standard EM solution consists of two steps: a blocking step to retrieve a subset of candidates and a pairwise matching step to classify whether the query entity matches each candidate. However, a significant challenge arises when pairwise matching fails to account for similar distractors within the candidate subset, often leading to false positive matches. This issue has been largely overlooked in prior work and existing benchmark datasets. In this study, we address this gap through three key aspects. First, we revisit the standard pairwise EM setting by recompiling existing benchmark datasets to include more hard negative (HN) candidates, which are semantically similar to corresponding query entities. We then evaluate state-of-the-art (SOTA) pairwise matchers on these recompiled datasets, revealing the limitations of the conventional pairwise EM approach under more challenging and realistic conditions. Second, we propose a selective EM approach that formulates EM as a listwise selection task, where the query entity is compared directly with the entire candidate set rather than evaluated through independent pairwise classifications. Accordingly, a new evaluation framework is introduced, including recompiled benchmark datasets and a new evaluation metric. Third, we propose a selective EM method Mistral4SelectEM, which fine-tunes a large language model for selective EM by structuring it into a Siamese network and fine-tuning it with a novel contrastive margin ranking loss (CMRL). It aims to enhance the model’s ability to distinguish true positives from semantically similar HNs. Extensive experiments demonstrate that our method outperforms SOTA pairwise EM approaches in both efficiency and performance across multiple benchmark datasets. The code and the recompiled entity matching benchmark datasets are publicly available at: https://github.com/quickhdsdc/LLM4EntityMatching .

Authors

Institutions

Publication Details

Journal
Advanced Engineering Informatics
Published
2025-06-09
DOI
https://doi.org/10.1016/j.aei.2025.103538
Primary Topic
Data Quality and Management
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Fine-tuning large language models with contrastive margin ranking loss for selective entity matching in product data integration

Thomas Bauernhansl, Dachuan Shi, Qian Ruan
Advanced Engineering Informatics
Data Quality and Management
article

Fine-tuning large language models with contrastive margin ranking loss for selective entity matching in product data integration

Thomas Bauernhansl, Dachuan Shi, Qian Ruan
article en

Abstract

Entity Matching (EM) concerns identifying entities from different data sources that correspond to the same real-world object. It is widely used for product data integration in e-commerce, product classification, and inventory management, enabling the matching of duplicate product records with heterogeneous descriptions across various platforms and software systems. The standard EM solution consists of two steps: a blocking step to retrieve a subset of candidates and a pairwise matching step to classify whether the query entity matches each candidate. However, a significant challenge arises when pairwise matching fails to account for similar distractors within the candidate subset, often leading to false positive matches. This issue has been largely overlooked in prior work and existing benchmark datasets. In this study, we address this gap through three key aspects. First, we revisit the standard pairwise EM setting by recompiling existing benchmark datasets to include more hard negative (HN) candidates, which are semantically similar to corresponding query entities. We then evaluate state-of-the-art (SOTA) pairwise matchers on these recompiled datasets, revealing the limitations of the conventional pairwise EM approach under more challenging and realistic conditions. Second, we propose a selective EM approach that formulates EM as a listwise selection task, where the query entity is compared directly with the entire candidate set rather than evaluated through independent pairwise classifications. Accordingly, a new evaluation framework is introduced, including recompiled benchmark datasets and a new evaluation metric. Third, we propose a selective EM method Mistral4SelectEM, which fine-tunes a large language model for selective EM by structuring it into a Siamese network and fine-tuning it with a novel contrastive margin ranking loss (CMRL). It aims to enhance the model’s ability to distinguish true positives from semantically similar HNs. Extensive experiments demonstrate that our method outperforms SOTA pairwise EM approaches in both efficiency and performance across multiple benchmark datasets. The code and the recompiled entity matching benchmark datasets are publicly available at: https://github.com/quickhdsdc/LLM4EntityMatching .

Advanced Engineering InformaticsVol. 67
University of Stuttgart (DE), Fraunhofer Institute for Manufacturing Engineering and Automation (DE), Technische Universität Darmstadt (DE)
Bundesministerium für Bildung und Forschung
Openalex Percentile: Top 85%
Data Quality and Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.