Leuvenshtein: Efficient FHE-based Edit Distance Computation with Single Bootstrap per Cell
Abstract
An optimized algorithm reduces the computational cost of edit distance calculations within Fully Homomorphic Encryption, achieving significant performance improvements over existing methods.
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 by utilising preprocessing when one of the input strings is unencrypted. Our Leuvenshtein achieves up to 278times faster performance compared to the best available TFHE implementation and up to 39times faster than an optimised implementation of the Wagner-Fisher algorithm. Moreover, when offline preprocessing is possible due to the presence of one unencrypted input on the server side, an additional 3times speedup can be achieved.
Community
Leuvenshtein: Efficient FHE-based Edit Distance Computation with Single Bootstrap per Cell
An optimized algorithm reduces the computational cost of edit distance calculations within Fully Homomorphic Encryption, achieving significant performance improvements over existing methods.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- A Non-leveled and Reliable Approximate FHE Framework through Binarized Polynomial Rings (2025)
- FIDESlib: A Fully-Fledged Open-Source FHE Library for Efficient CKKS on GPUs (2025)
- ReBoot: Encrypted Training of Deep Neural Networks with CKKS Bootstrapping (2025)
- HEIR: A Universal Compiler for Homomorphic Encryption (2025)
- Secure Multi-Key Homomorphic Encryption with Application to Privacy-Preserving Federated Learning (2025)
- Characterizing the Sensitivity to Individual Bit Flips in Client-Side Operations of the CKKS Scheme (2025)
- Ironman: Accelerating Oblivious Transfer Extension for Privacy-Preserving AI with Near-Memory Processing (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper