Leuvenshtein: Efficient FHE-based Edit Distance Computation with Single Bootstrap per Cell
Wouter Legiest, Jan-Pieter D'Anvers, Bojan Spasic, Nam-Luc Tran, Ingrid Verbauwhede

TL;DR
This paper introduces Leuvenshtein, an efficient FHE-based algorithm for computing edit distance that drastically reduces computational costs and achieves significant speedups over existing methods, especially with preprocessing optimizations.
Contribution
The paper presents a novel FHE-compatible edit distance algorithm that reduces bootstrap operations per cell from 94 to 1, enabling faster and more practical secure computations.
Findings
Achieves up to 278x faster performance than existing TFHE implementations.
Reduces ASCII comparison operations to 2 PBS, improving efficiency.
Enables additional 3x speedup with preprocessing when one input is unencrypted.
Abstract
This paper presents a novel approach to calculating the Levenshtein (edit) distance within the framework of Fully Homomorphic Encryption (FHE), specifically targeting third-generation schemes like TFHE. Edit distance computations are essential in applications across finance and genomics, such as DNA sequence alignment. We introduce an optimised algorithm that significantly reduces the cost of edit distance calculations called Leuvenshtein. This algorithm specifically reduces the number of programmable bootstraps (PBS) needed per cell of the calculation, lowering it from approximately 94 operations -- required by the conventional Wagner-Fisher algorithm -- to just 1. Additionally, we propose an efficient method for performing equality checks on characters, reducing ASCII character comparisons to only 2 PBS operations. Finally, we explore the potential for further performance improvements…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGene expression and cancer classification · DNA and Biological Computing
