Convolutional Embedding for Edit Distance

Xinyan Dai, Xiao Yan, Kaiwen Zhou, Yuxuan Wang, Han Yang +1 more
1/31/2020
3 citations
cs.DBcs.LG

Official code: xinyandai/string-embed (63 stars, Python, MIT, last commit 2023-05-03).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

string embed for fast edit distance computation, codes for [Convolutional Embedding for Edit Distance (SIGIR 20)].

6320Python, Jupyter NotebookJul 9, 20193 years agoMIT

Similar Papers

Cite this paper

@article{dai2020convolutional,
  title  = {Convolutional Embedding for Edit Distance},
  author = {Xinyan Dai and Xiao Yan and Kaiwen Zhou and Yuxuan Wang and Han Yang and James Cheng},
  year   = {2020},
  eprint = {2001.11692},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.11692}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2001.11692.svg)](https://codeofpaper.com/paper/2001.11692)

Discussion