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 framework consists of three primary components:
- 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.
- 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.
- 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.
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