NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving the Efficiency and Effectiveness for BERT-based Entity Resolution

Bing Li, Yukai Miao, Yaoshu Wang, Yifang Sun, Wei Wang

Abstract

Entity Resolution (ER) is a fundamental task in data integration, determining whether two data records refer to the same real-world object. While BERT-based models have significantly improved matching accuracy, their high computational cost limits scalability. This paper presents BERT-ER, a framework that redesigns BERT for ER by adopting a Siamese architecture with delayed alignment and a learnable blocking module. BERT-ER achieves up to 300x speedups and improved F1 scores compared to standard BERT models.

Introduction

Entity Resolution is essential for merging datasets from diverse sources, such as product listings from Amazon and Google. Recent advancements have leveraged BERT's deep bidirectional representations to achieve state-of-the-art results. However, the standard "cross-encoder" approach—where pairs are concatenated and fed into BERT—suffers from quadratic complexity, making it impractical for large-scale datasets.

The Scalability Bottleneck

In a cross-encoder setup, every potential pair must be processed by the full BERT model to determine a match. For two tables of size $N$, this requires $N^2$ inferences. Moreover, because the model requires a pair as input, it cannot generate standalone representations for individual records, precluding the use of efficient "blocking" techniques that filter out obvious non-matches before expensive deep learning inference.

The BERT-ER Architecture

To overcome these limitations, BERT-ER utilizes a Siamese architecture that processes records independently before performing alignment.

The BERT-ER architecture, featuring a Siamese BERT encoder, a blocking decoder for efficient filtering, and an entity matching decoder for high-precision alignment.

The framework consists of three primary components:

  1. Siamese BERT Encoder: This module encodes each tuple independently. This allows the system to pre-compute and store embeddings, reducing the inference load during matching.
  2. Delayed and Enhanced Alignment: Instead of full cross-attention in every layer, interaction is delayed to a specialized decoder. This decoder uses bilateral comparisons (element-wise subtraction and multiplication) followed by a Convolutional Neural Network (CNN) to capture multi-gram features, mimicking the effectiveness of deep interaction at a lower cost.
  3. Adaptive Blocking with Orthogonalized Hyperplanes (ABOH): A learnable hashing module is integrated to perform "matching-aware" blocking. By using Singular Value Decomposition (SVD) to maintain orthogonal hyperplanes, the model ensures that hash codes are diverse and capture the most relevant semantic information.

Experimental Results

BERT-ER was evaluated on several benchmarks, including large-scale datasets like Walmart-Amazon (56.4 million pairs).

Effectiveness and Efficiency

BERT-ER outperformed standard BERT on matching benchmarks with an average F1 increase of 1.45 points. Its efficiency gains were even more pronounced: on the Walmart-Amazon dataset, BERT-ER reduced processing time from an estimated 99 hours to just 20 minutes—a 304x speedup.

Blocking Performance

The ABOH-SVD method was compared against standard Locality Sensitive Hashing (LSH). As shown in the results, the learnable, matching-aware approach provides significantly better recall (Pair Completeness) for a given reduction ratio.

Comparison of blocking quality (Reduction Ratio and Pair Completeness) across different methods on the Walmart-Amazon and Amazon-Google datasets.

Conclusion

BERT-ER effectively bridges the gap between the high accuracy of Transformer models and the scalability requirements of real-world Entity Resolution. By combining a Siamese encoding strategy with learnable, SVD-optimized blocking, the framework provides a robust solution for large-scale data integration tasks.

Summary updated

BibTeX
@inproceedings{li2021improving,
  author = {Bing Li and Yukai Miao and Yaoshu Wang and Yifang Sun and Wei Wang},
  title = {{Improving the Efficiency and Effectiveness for BERT-based Entity Resolution}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i15.17562},
}
Figure