Differentially Private Substring and Document Counting

Differential privacy is the gold standard for privacy in data analysis. In many data analysis applications, the data is a database of documents. For databases consisting of many documents, one of the most fundamental problems is that of pattern matching and computing (i) how often a pattern appears as a substring in the database ( substring counting ) and (ii) how many documents in the collection contain the pattern as a substring ( document counting ). In this paper, we initiate the theoretical study of substring and document counting under differential privacy. We give an ฮต-differentially private data structure solving this problem for all patterns simultaneously with a maximum additive error of O(๐“ โ€ข polylog(n๐“|ฮฃ|)), where ๐“ is the maximum length of a document in the database, n is the number of documents, and |ฮฃ| is the size of the alphabet. We show that this is optimal up to a O(polylog(๐“ƒ๐“)) factor. Further, we show that for (ฮต,ฮด)-differential privacy, the bound for document counting can be improved to O(โˆš๐“ โ€ข polylog(๐“ƒ๐“|ฮฃ|)). Additionally, our data structures are efficient. In particular, our data structures use O(๐“ƒ๐“ 2 ) space, O(๐“ƒ 2 ๐“ 4 ) preprocessing time, and O(|P|) query time where P is the query pattern. Along the way, we develop a new technique for differentially privately computing a general class of counting functions on trees of independent interest. Our data structures immediately lead to improved algorithms for related problems, such as privately mining frequent substrings and q -grams. For q -grams, we further improve the preprocessing time of the data structure.

Authors

Institutions

Publication Details

Journal
Proceedings of the ACM on Management of Data
Published
2025-06-09
DOI
https://doi.org/10.1145/3725232
Primary Topic
Algorithms and Data Compression
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Differentially Private Substring and Document Counting

Inge Li Gรธrtz, Philip Bille, Giulia Bernardini, Teresa Anna Steiner
Proceedings of the ACM on Management of Data
Algorithms and Data Compression
article

Differentially Private Substring and Document Counting

Inge Li Gรธrtz, Philip Bille, Giulia Bernardini, Teresa Anna Steiner
article en

Abstract

Differential privacy is the gold standard for privacy in data analysis. In many data analysis applications, the data is a database of documents. For databases consisting of many documents, one of the most fundamental problems is that of pattern matching and computing (i) how often a pattern appears as a substring in the database ( substring counting ) and (ii) how many documents in the collection contain the pattern as a substring ( document counting ). In this paper, we initiate the theoretical study of substring and document counting under differential privacy. We give an ฮต-differentially private data structure solving this problem for all patterns simultaneously with a maximum additive error of O(๐“ โ€ข polylog(n๐“|ฮฃ|)), where ๐“ is the maximum length of a document in the database, n is the number of documents, and |ฮฃ| is the size of the alphabet. We show that this is optimal up to a O(polylog(๐“ƒ๐“)) factor. Further, we show that for (ฮต,ฮด)-differential privacy, the bound for document counting can be improved to O(โˆš๐“ โ€ข polylog(๐“ƒ๐“|ฮฃ|)). Additionally, our data structures are efficient. In particular, our data structures use O(๐“ƒ๐“ 2 ) space, O(๐“ƒ 2 ๐“ 4 ) preprocessing time, and O(|P|) query time where P is the query pattern. Along the way, we develop a new technique for differentially privately computing a general class of counting functions on trees of independent interest. Our data structures immediately lead to improved algorithms for related problems, such as privately mining frequent substrings and q -grams. For q -grams, we further improve the preprocessing time of the data structure.

Proceedings of the ACM on Management of DataVol. 3(2)
University of Southern Denmark (DK), University of Milan (IT), Technical University of Denmark (DK)
Villum Fonden
Openalex Percentile: Top 94%
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Differentially Private Substring and Document Counting โ€” Inge Li Gรธrtz, Philip Bille, et al. ยท Proceedings of the ACM on Management of Data (2025) | TGRS Research Map | TGRS