Abstract
Entity resolution—the process of identifying and merging duplicate records in large, noisy databases—is a critical task in data science. However, the computational cost of exhaustive all-to-all comparisons ($O(M^2)$) is often prohibitive for massive datasets. This paper addresses the related problem of unique entity estimation (UEE): estimating the total number of unique entities and associated standard errors without performing full deduplication. We propose the Locality Sensitive Hashing Estimator (LSHE), a near-linear time algorithm that leverages Locality Sensitive Hashing (LSH) as an adaptive sampler. Unlike traditional random sampling, which suffers from high variance in sparse duplicate graphs, LSHE provides an unbiased estimate with provably low variance. We demonstrate the efficacy of our approach by estimating the documented deaths in the Syrian conflict. Our method yields an estimate of $191,874 \pm 1772$, closely matching the manual estimate of 191,369 produced by the Human Rights Data Analysis Group (HRDAG), while offering significant computational speedups.
Introduction
As data availability increases, the need to aggregate information from disparate, noisy sources has grown. In contexts such as human rights monitoring, census data, and commercial database management, records often contain errors, typos, or missing fields, leading to multiple entries for the same real-world entity. While entity resolution (ER) seeks to link every record, unique entity estimation (UEE) focuses on the aggregate count.
The primary challenge in UEE is scalability. For a dataset of $M$ records, there are $M(M-1)/2$ possible pairs to compare. In the case of the Syrian conflict dataset (approximately 354,000 records), this results in over 63 billion potential comparisons. On standard hardware, this process can take over a week. While sub-quadratic methods exist, they typically rely on random sampling or complex Bayesian generative models. Random sampling is particularly ineffective here because the "duplicate graph" is extremely sparse; a random draw of pairs is unlikely to find any matches, leading to uninformative samples and massive variance.
The Locality Sensitive Hashing Estimator (LSHE)
To circumvent the quadratic bottleneck, we introduce LSHE. This framework treats the dataset as a graph where nodes are records and edges represent duplicate relationships. The goal is to estimate the number of connected components (unique entities) in this graph.
1. LSH as an Adaptive Sampler
Instead of sampling pairs uniformly at random, we use Locality Sensitive Hashing (LSH) to perform adaptive sampling. By using Densified One Permutation Hashing (DOPH), we index records such that those with high textual similarity (measured by Jaccard similarity of k-grams) are more likely to be hashed into the same "bucket." This ensures that our sampling budget is spent on pairs that are mathematically probable to be duplicates, effectively "densifying" the sample space.
2. Proxy Labeling
To determine if a sampled pair is a true match, we employ a Support Vector Machine (SVM) as a proxy for a human expert. By training the SVM on a tiny fraction of hand-labeled data (less than 0.01%), we achieve high precision (99.9%). This allows the estimation process to be fully automated and scalable.
3. Unbiased Estimation
By observing the distribution of small connected components (singletons, pairs, and triplets) within the LSH-sampled subgraph, we apply a novel set of linear equations to extrapolate the total number of components in the full graph. This estimator is unbiased under realistic assumptions and avoids the need for the strict generative assumptions required by Bayesian alternatives.
Experimental Results
We evaluated LSHE against three benchmark datasets (Restaurant, CD, and Voter) and a real-world dataset of Syrian casualty records.
The Syrian Conflict Case Study
The Syrian dataset consists of 354,996 records aggregated from four human rights organizations: the Violations Documentation Center (VDC), the Syrian Center for Statistics and Research (CSR-SY), the Syrian Network for Human Rights (SNHR), and the Syria Shuhada website (SS).
Our algorithm estimated 191,874 $\pm$ 1772 unique documented deaths. This result is remarkably consistent with the 191,369 deaths identified by HRDAG through exhaustive manual and semi-automated matching. Crucially, the LSH sampler generated the necessary 450,000 candidate pairs in just 127 seconds, representing a 99.99% reduction in comparisons compared to the exhaustive $O(M^2)$ approach.
Comparative Performance
On benchmark datasets, LSHE consistently outperformed existing state-of-the-art estimators, including PRSE, RSGE, and BFSE. In terms of Relative Error, LSHE was often one to two orders of magnitude more accurate than random-sampling-based approaches, which failed to produce stable estimates due to the sparsity of the duplicate records.
Discussion and Limitations
While LSHE provides a powerful tool for large-scale estimation, it has specific constraints. The mathematical framework assumes that large cliques (entities with 4 or more duplicate records) do not frequently break apart during sampling. While this holds true for most real-world datasets where records are sparse, it remains a theoretical consideration. Additionally, our estimate for the Syrian conflict refers specifically to documented, identifiable deaths; it does not account for the "dark figure" of undocumented casualties or missing persons.
Conclusion
LSHE offers a scalable, robust solution for unique entity estimation in massive, noisy datasets. By reframing LSH as an adaptive sampler rather than just a blocking heuristic, we provide a method that is both computationally efficient and statistically sound. The successful application to the Syrian conflict demonstrates that high-stakes humanitarian data can be analyzed accurately in a fraction of the time previously required, enabling faster responses in evolving crises.
Summary updated