Unlocking the Power of Large Language Models for Multi-table Entity Matching

Yingkai Tang, Taoyu Su, Wenyuan Zhang, Xiaoyang Guo, Tingwen Liu · DOI

TL;DR

This paper introduces LLM4MEM, a novel framework that leverages Large Language Models (LLMs) to significantly improve multi-table entity matching (MEM). By addressing semantic inconsistencies and computational challenges, LLM4MEM achieves state-of-the-art performance, outperforming existing methods by an average of 5.1% in F1 score.

What Problem Does This Paper Address?

Entity Matching (EM) is the crucial task of identifying equivalent entities across different data sources, especially when unique identifiers are absent. While traditional EM focused on matching pairs of records (dual-table EM), many real-world scenarios involve data spread across multiple tables. Multi-Table Entity Matching (MEM) tackles this by simultaneously matching entities across n tables. However, existing MEM methods, even those using pre-trained language models, struggle with:

  • Semantic Inconsistencies: Variations in numerical attributes (e.g., "64GB" vs. "64*1024MB") and other data formats can confuse matching algorithms.
  • Scalability: The exponential increase in entity comparisons across multiple tables leads to significant computational bottlenecks, making existing methods inefficient.
  • Noise: Inaccurate or irrelevant entities can lead to incorrect matches.

Methods

LLM4MEM is a three-module framework designed to overcome these challenges:

  1. Multi-style Prompt-enhanced LLM Attribute Coordination (MPLAC): This module uses LLMs to standardize and organize data attributes. It employs "multi-style prompts" that guide the LLM to understand data formats, normalize numerical values and time formats, expand abbreviations, and ensure consistent attribute representation. This addresses the semantic inconsistency issue by creating a cleaner, more uniform input for subsequent stages.
  2. Transitive Consensus Embedding Matching (TCEM): To tackle the scalability problem, TCEM first generates embeddings for entities using Sentence-BERT. It then uses Hierarchical Navigable Small World (HNSW) graphs to efficiently find approximate nearest neighbors between tables. A key innovation here is the use of transitive closures to merge directly or indirectly associated entities, forming pre-matched tuples. This approach avoids pairwise comparisons and scales better with an increasing number of tables.
  3. Density-aware Pruning Module (DPM): This module addresses the issue of noisy entities. It defines "core entities" (those with a high density of neighbors) and "reachable entities" (those close to core entities). "Noise entities," which don't fit either category, are removed. This spatial density-based pruning refines the pre-matched tuples generated by TCEM, improving the overall accuracy of the matching.

Datasets

The paper evaluates LLM4MEM on six publicly available real-world datasets from diverse domains:

  • Geo: Geographical entities (from DBpedia, Geonames, Freebase, NY-Times).
  • Music: MusicBrainz records with duplicates generated to simulate high corruption levels.
  • Music-20K, Music-2M: Larger versions of the music dataset.
  • Person: Datasets containing person-related information.
  • Shopee: Product data from the Shopee Price Match Guarantee dataset.

The paper notes that for supervised/semi-supervised baselines, 5% of data was used for training and validation, with the full dataset for testing.

Key Insights and Ideas

  • LLMs as Semantic Regularizers: The paper demonstrates that LLMs can be effectively used not just for classification but as powerful tools to regularize and harmonize data across disparate sources, a crucial step for MEM.
  • Transitive Matching for Scalability: Moving beyond pairwise comparisons by leveraging transitive closures in embedding space is a clever way to manage the combinatorial explosion inherent in multi-table matching.
  • Density-based Pruning for Noise Reduction: The idea of using spatial density to distinguish reliable matches from noise is an intuitive and effective approach for improving precision.
  • Unified Framework for MEM: LLM4MEM provides a comprehensive, end-to-end solution that addresses multiple facets of the MEM problem (semantic inconsistency, scalability, and noise) within a single framework.

Key Results

LLM4MEM achieved state-of-the-art performance across the evaluated datasets, demonstrating significant improvements over baseline methods.

  • Average F1 Improvement: An average of 5.1% F1 score improvement compared to the best baseline.
  • Performance: The model consistently achieved high F1 scores, often outperforming even specialized multi-table methods like MultiEM. For instance, on the Geo dataset, LLM4MEM(Q) achieved an F1 of 97.1, significantly higher than MultiEM's 90.9.
  • Efficiency: The paper highlights that LLM4MEM maintains linear complexity, a significant advantage over methods that suffer from exponential growth in computational cost.
  • Robustness: The framework showed consistent performance across different LLM backbones (LLaMA3.1, Qwen2.5, Falcon3), indicating its generalizability.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper acknowledges that the model's performance is sensitive to key hyperparameters like the similarity threshold ($\lambda$) and the density distance threshold ($d$). These require careful tuning, and their optimal values can be dataset-specific.
  • LLM Resource Requirements: While the paper doesn't explicitly state this as a limitation, using LLMs inherently implies significant computational resources for inference.
  • Future Work: The authors plan to investigate domain adaptation (making the model perform well on new, unseen domains) and dynamic scenarios (handling data that changes over time).

Summary updated

BibTeX
@inproceedings{tang2025unlocking,
  author = {Yingkai Tang and Taoyu Su and Wenyuan Zhang and Xiaoyang Guo and Tingwen Liu},
  title = {{Unlocking the Power of Large Language Models for Multi-table Entity Matching}},
  booktitle = {NLPCC},
  year = {2025},
  doi = {10.1007/978-981-95-3352-7\_17},
}
Figure