[Paper Review] EmbedJoin: Efficient Edit Similarity Joins via Embeddings
EmbedJoin+ proposes a novel, scalable approach for edit similarity joins by embedding strings into Hamming space using CGK-embedding, followed by locality-sensitive hashing (LSH) for efficient filtering. It achieves up to 22.1x speedup over prior methods on long strings and large distance thresholds (up to 20% error rate), with 95–99% recall and 100% precision, significantly outperforming existing algorithms in both time and memory usage on large-scale datasets.
We study the problem of edit similarity joins, where given a set of strings and a threshold value $K$, we want to output all pairs of strings whose edit distances are at most $K$. Edit similarity join is a fundamental problem in data cleaning/integration, bioinformatics, collaborative filtering and natural language processing, and has been identified as a primitive operator for database systems. This problem has been studied extensively in the literature. However, we have observed that all the existing algorithms fall short on long strings and large distance thresholds. In this paper we propose an algorithm named EmbedJoin which scales very well with string length and distance threshold. Our algorithm is built on the recent advance of metric embeddings for edit distance, and is very different from all of the previous approaches. We demonstrate via an extensive set of experiments that EmbedJoin significantly outperforms the previous best algorithms on long strings and large distance thresholds.
Motivation & Objective
- To address the scalability limitations of existing edit similarity join algorithms on long strings and large distance thresholds (e.g., 20% of string length).
- To develop a method that maintains high performance and low memory usage where traditional algorithms fail or become infeasible.
- To leverage recent advances in metric embeddings for edit distance to enable efficient filtering in Hamming space using LSH.
- To achieve significant speedups over existing algorithms while maintaining high recall and precision on large-scale, real-world datasets.
Proposed method
- Embed all input strings from the edit distance space into a higher-dimensional Hamming space using the CGK-embedding, which preserves edit distance relationships with bounded distortion.
- Apply locality-sensitive hashing (LSH) in the Hamming space to group candidate pairs with small Hamming distance, reducing the number of pairs requiring expensive exact edit distance computation.
- Use a randomized filtering strategy where pairs with sufficient hash signature matches are retained for verification, minimizing false positives.
- Fix parameters r=7, z=16, Δ=50 for EmbedJoin+, and dynamically set m=15−⌊log₂x⌋ based on the threshold x% of string length.
- Apply a post-verification step on candidate pairs to ensure 100% precision, with only a small number of false negatives due to embedding approximation.
- Optimize the algorithm to scale smoothly with increasing string length N and number of strings n, especially for thresholds up to 20%.
Experimental results
Research questions
- RQ1Can metric embeddings of edit distance into Hamming space enable scalable similarity joins on long strings and large distance thresholds?
- RQ2How does the performance of EmbedJoin+ compare to existing algorithms in terms of running time, memory usage, and accuracy on large-scale datasets?
- RQ3What is the trade-off between accuracy and efficiency when using CGK-embedding and LSH for edit similarity joins?
- RQ4How does the algorithm scale with increasing string length and number of input strings beyond the limits of prior methods?
- RQ5Does increasing the threshold K improve or degrade the accuracy of EmbedJoin+, and why?
Key findings
- EmbedJoin+ achieves up to 9.2x speedup on UNIREF (N=4×10⁵), 11.5x on TREC (N=2×10⁵), 22.1x on GEN50kS-aligned (N=5×10⁴), and 4.8x on GEN50kS (N=5×10⁴) compared to the best prior algorithm.
- On long strings (up to 20,000 characters) and thresholds up to 20%, EmbedJoin+ scales smoothly and completes within 24 hours, while competing algorithms fail due to time or memory limits.
- EmbedJoin+ maintains 95–99% recall and 100% precision across all experiments, with accuracy increasing as the threshold K increases due to higher candidate coverage.
- The algorithm reduces false positives via a high threshold of T hash matches, which significantly cuts verification time despite increased embedding and hashing cost.
- On GEN320kS and GEN80kS, EmbedJoin+ outperforms EmbedJoin when K is large, due to reduced false positives from higher substring coverage.
- EmbedJoin+ is the only algorithm that produces results on all tested datasets at 20% threshold, demonstrating its ultimate scalability for real-world workloads.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.