My paper “Medusa: Fast bit-parallel private edit distance over mixed secret-sharing modes” was accepted to USENIX Security 2027! This is joint work with my professors Vasiliki Kalavri, Mayank Varia, and John Liagouris. Medusa previously won the ACM SIGOPS Student Research Competition at SOSP 2026.
The name Medusa stands for Myers Edit Distance for Unifying Secure Analytics. This is the first paper I’ve led that is being published, so I think both the figure of Medusa and edit distance will always hold a special place in my heart now.
Secure multiparty computation (MPC) is a cryptographic paradigm where multiple mutually distrusting parties jointly compute large-scale analytics over private data. To do so, data owners must outsource their data into an aligned database, with complete data and matching schemas. Prior systems (such as CryptDough, which I co-authored) assume that this step can be done in plaintext. For this work, we just considered the setting where there are two parties.
Medusa instead implements private MPC operators for data imputation and schema matching based on edit distance. Under MPC, there are two main paradigms we could do this task with: Boolean sharing and Yao sharing.1 In Boolean sharing, parties communicate with each other for almost every operation; in Yao sharing, one party (the garbler) sends the circuit they want to compute to the other party (the evaluator) in a single round.
As you might imagine, the better sharing choice depends on the input size and network parameters. For example, a higher latency network might benefit more from Yao sharing and a network with a lower bandwidth cap might benefit more from Boolean sharing. Furthermore, in Boolean sharing, we often try to pack operations in vectors, so we can do as much in parallel during the rounds we have as possible; if there is nothing to vectorize, Yao sharing might be the better pick.
We realized that due to these differences, a mixed-mode framework would be the best way to go for solving this task. You can imagine that for something like data imputation, where you need to transmit the whole database, Boolean sharing might work better, while for schema matching, which operates on a far smaller amount of data, Yao sharing might work better.
We introduce two protocols for computing the edit distance: Medusa-Viper uses Yao sharing and is optimized for computation between pairwise vectors, while Medusa-Hydra uses Boolean sharing and is optimized for computation between a query and a large database. We built a cost model that predicts which of the two will be faster for a given workload and network, so Medusa can pick the right one automatically.
For actually computing the edit distance, I dove into the old algorithms literature and found the Myers algorithm, a bit-parallel algorithm for computing the edit distance. I noticed that unlike the heavily sequential dynamic programming algorithm you would normally use for edit distance, the Myers algorithm’s optimizations would work very well for MPC.2 We made a bunch of optimizations to tailor the Myers algorithm for MPC, such as computing all independent Boolean operations on stacked vectors, using De Morgan’s laws to negate pieces of the stacked vector as needed to align the Boolean operation being performed.
That is the crux of the protocol! There were a lot of cool systems optimizations we did, such as batching the garbler’s send operation, so they send data when a certain batch size is reached instead of just once at the end of the computation, as well as splitting the garbled table sending across multiple TCP connections.
We also had novelty in our data imputation and schema matching protocols. Our selection protocol for imputation once the edit distances were calculated wasn’t anything too special, but nobody had ever done it under MPC before. For schema matching, we performed a stable matching of edit distances, and came up with a tournament-based protocol for performing it efficiently based on the fact that edit distance is symmetric (i.e., this task is a bit easier than your standard stable matching), which ended up working really well.
To evaluate Medusa, we used (reasonably) realistic benchmarks for genomic sequencing, data imputation, and schema matching. We were able to outperform the state-of-the-art system SecurED, even though they assume that the edit distance is small relative to the input and we make no such assumption—it wouldn’t make sense for data alignment anyway. We built modes for Medusa with both semi-honest (i.e., passive, where an adversary cannot change the protocol in any way) and malicious (i.e., active, where they can) security, and evaluated it on both a fast LAN network and a simulated slow WAN network.
This was a really fun paper to work on, and I’m honored that it has been so heavily decorated! Not even considering its win at the ACM SIGOPS Student Research Competition, USENIX Security had a record number of submissions in the first cycle this year, and the acceptance rate was really low. The full paper will be available early next year, when USENIX publishes the cycle 1 accepted papers, and the codebase will be made public around then too.
There is also arithmetic sharing, but it turns out to clearly be the inferior option for our protocol. ↩︎
A really cool work called Leuvenshtein, which appeared at USENIX Security 2025, used the Myers algorithm in a totally different way to create an edit distance protocol for fully homomorphic encryption, a different paradigm for cryptographic computation. I actually thought of using the Myers algorithm before I learned about this work, though! ↩︎
