Convolutional Embedding for Edit Distance
Xinyan Dai, Xiao Yan, Kaiwen Zhou, Yuxuan Wang, Han Yang, James Cheng
Abstract
Edit-distance-based string similarity search has many applications such as spell correction, data de-duplication, and sequence alignment. However, computing edit distance is known to have high complexity, which makes string similarity search challenging for large datasets. In this paper, we propose a deep learning pipeline (called CNN-ED) that embeds edit distance into Euclidean distance for fast approximate similarity search. A convolutional neural network (CNN) is used to generate fixed-length vector embeddings for a dataset of strings and the loss function is a combination of the triplet loss and the approximation error. To justify our choice of using CNN instead of other structures (e.g., RNN) as the model, theoretical analysis is conducted to show that some basic operations in our CNN model preserve edit distance. Experimental results show that CNN-ED outperforms data-independent CGK embedding and RNN-based GRU embedding in terms of both accuracy and efficiency by a large margin. We also show that string similarity search can be significantly accelerated using CNN-based embeddings, sometimes by orders of magnitude.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext ad1577b7-5dca-447f-a5c1-f855ce6d830cCited by top-tier papers5
- Neural Distance Embeddings for Biological SequencesGabriele Corso, Zhitao Ying, Michal Pándy, Petar Velickovic et al.NeurIPS 2021 · 51 citations
- Deep Squared Euclidean Approximation to the Levenshtein Distance for DNA StorageAlan J. X. Guo, Cong Liang, Qing-Hu HouICML 2022 · 5 citations
- Neural Embeddings for kNN Search in Biological SequenceZhihao Chang, Linzhu Yu, Yanchao Xu, Wentao HuAAAI 2024 · 4 citations
- Levenshtein Distance Embedding with Poisson Regression for DNA StorageXiang Wei, Alan J. X. Guo, Sihan Sun, Mengyi Wei et al.AAAI 2024 · 2 citations
- DoDo-Code: an Efficient Levenshtein Distance Embedding-based Code for 4-ary IDS ChannelAlan J. X. Guo, Sihan Sun, Xiang Wei, Mengyi Wei et al.NeurIPS 2025
Related papers
- TaGSim: Type-aware Graph Similarity Learning and ComputationJiyang Bai, Peixiang ZhaoVLDB 2022 · 29 citations
- General Neural Embedding for Sequence Distance ApproximationZhihao Chang, Ding Wang, Xiu Tang, Kingsum Chow et al.SIGIR 2025
- Computing Graph Edit Distance via Neural Graph MatchingChengzhi Piao, Tingyang Xu, Xiangguo Sun, Yu Rong et al.VLDB 2023 · 49 citations
- GREED: A Neural Framework for Learning Graph Distance FunctionsRishabh Ranjan, Siddharth Grover, Sourav Medya, Venkatesan T. Chakaravarthy et al.NeurIPS 2022 · 70 citations
- Efficient Graph Similarity Computation with Alignment RegularizationWei Zhuo, Guang TanNeurIPS 2022 · 48 citations
