Beyond Scale and Generation: Understanding Language Model-based Entity Matching

Zeyu Zhang, Xue Li, Iacer Calixto, Paul Groth, Sebastian SchelterarXiv 2026

TL;DR

Through a massive controlled study of 1,215 fine-tuning runs, this paper systematically disentangles how model size, pretraining objectives, and network architectures truly impact LLM-based entity matching. The authors reveal that generative matchers do not universally outperform simpler cross-encoders; instead, their unique strength lies in robustness to distribution shifts, while larger models are surprisingly prone to overfitting via shortcut learning.

What Problem Does This Paper Address?

Entity Matching (EM)—the task of identifying whether two different data records (like product listings or movie descriptions) refer to the same real-world entity—is a cornerstone of data integration. Recently, Large Language Models (LLMs) have been adapted to EM using three distinct architectures: bi-encoders (which embed records independently), cross-encoders (which encode record pairs jointly), and generative matchers (which formulate matching as a text generation problem).

However, prior literature has frequently conflated the choice of architecture with other critical variables like model size, underlying backbone, or pretraining objectives (e.g., comparing a tiny BERT-based cross-encoder against a massive GPT-4 generative model). This lack of isolation leaves a glaring question unanswered: What actually drives performance gains in LLM-based entity matching?

Methods

To isolate these variables, the authors conducted a rigorous full-factorial study using the Qwen3 model family. They evaluated every combination across:

  1. Three Matcher Architectures: Bi-encoders, Cross-encoders, and Generative matchers.
  2. Three Pretraining Objectives (Model Variants): Base (next-token prediction), Embedding-oriented, and Instruction-tuned.
  3. Three Model Sizes: 0.6B, 4B, and 8B parameters.

All models were fine-tuned using LoRA adapters across nine datasets with five random seeds, ensuring a completely standardized and fair playing field.

The three LLM-based architectures for entity matching evaluated in the study.

Datasets

The benchmark suite consists of nine diverse entity resolution datasets selected from Magellan, MaChAmp, and WDC Products. These datasets span structured and semi-structured data across domains like products, software, books, and movies, offering a wide variety of token lengths, schema complexities, and challenging "corner cases" (hard negatives).

Table 1: Nine evaluation datasets. CC denotes corner cases. Split reports the sizes of the training, validation, and test par- titions. Pos. denotes the overall positive-pair rate. #Attr. and Length report the rounded average numbers of attributes and tokenized record lengths for the two sources, respectively.

Key Insights and Ideas

  • Bi-encoders live or die by their pretraining: For bi-encoders, initializing with an embedding-oriented variant is paramount. Its zero-shot representation geometry strongly predicts downstream fine-tuned performance. Conversely, for cross- and generative matchers, task-specific fine-tuning completely washes out any initial pretraining differences.
  • Generative matchers are not a silver bullet: On standard, in-distribution datasets, generative matchers perform almost identically to cross-encoders.
  • The Generative Edge is Robustness: Generative matchers shine when encountering distribution shifts, such as unseen schema combinations or cross-dataset transfers. Because they retain their language modeling head, they leverage broader linguistic priors rather than overfitting to narrow dataset boundaries.
  • The Scaling Trap (Shortcut Learning): Bigger is not always better. Under shifts in feature distribution, larger models are actually more susceptible to "shortcut learning"—relying on easy but unreliable training cues (like matching titles in a movie dataset where different movies share the same title), which severely degrades their precision.

Key Results

  • In-Distribution Performance: Cross-encoders maintain a persistent advantage over bi-encoders due to direct token-level interactions, though scaling bi-encoders to 8B partially narrows this gap.
  • Handling Schema Inconsistencies: On the highly heterogeneous Semi-Heter dataset (which features severe train-test schema mismatches), the 8B generative matcher drastically outperformed the cross-encoder, securing an F1 score of 91.5 compared to the cross-encoder's 65.1.
  • Cross-Dataset Transfer: Generative matchers achieved the highest overall transferability, yielding a mean off-diagonal F1 score of 73.8 and retaining 83.6% of target-specific performance when evaluated on entirely unseen datasets.
  • Efficiency Sweet Spot: The 4B cross-encoder emerged as a highly practical default for practitioners, offering an optimal balance of high F1 accuracy and strong inference throughput (~165 pairs/second) without the heavy memory footprint of 8B generative models.
Figure 3: Cross-encoders vs generative matchers. (a) Mean ΔF1 on seven datasets where they perform similarly. (b)–(c) Model size-dependent F1 on sh and sr, respectively.

Limitations and Future Work

The authors note several limitations that pave the way for future research:

  • The prompt structure, record serialization templates, and output tokens ("yes"/"no") were kept static, meaning their individual impacts were not isolated.
  • The study did not mathematically isolate the exact structural contribution of the language-modeling head versus a standard classification head.
  • The bi-encoder scaling analysis was constrained by the availability of larger embedding-specific checkpoints.

Moving forward, the authors urge the EM community to shift focus away from saturated in-distribution benchmarks and design evaluations that explicitly test model generalization and robustness under distribution shifts.

Summary updated

BibTeX
@misc{zhang2026beyond,
  author = {Zeyu Zhang and Xue Li and Iacer Calixto and Paul Groth and Sebastian Schelter},
  title = {{Beyond Scale and Generation: Understanding Language Model-based Entity Matching}},
  year = {2026},
  eprint = {2607.24688},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.24688},
}
Figure