On Differentially Private String Distances
Jerry Yao-Chieh Hu, Erzhi Liu, Han Liu, Zhao Song, Maojiang Su, Lichen Zhang
ICLR 2026
Abstract. Given a database of bit strings , a fundamental data structure task is to estimate the distances between a given query with all the strings in the database. In addition, one might further want to ensure the integrity of the database by releasing these distance statistics in a secure manner. In this work, we propose differentially private (DP) data structures for this type of tasks, with a focus on Hamming and edit distance. On top of the strong privacy guarantees, our data structures are also time- and space-efficient. In particular, our data structure is -DP against any sequence of queries of arbitrary length, and for any query such that the maximum distance to any string in the database is at most , we output distance estimates. Moreover,
- For Hamming distance, our data structure answers any query in time and each estimate deviates from the true distance by at most ;
- For edit distance, our data structure answers any query in time and each estimate deviates from the true distance by at most .
For moderate , both data structures support sublinear query operations in the combined size of the query and its output. We obtain these results via a novel adaptation of the randomized response technique as a bit flipping procedure, applied to the sketched strings.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
Loading the discussion…