Counting Distinct Elements in the Turnstile Model with Differential Privacy under Continual Observation
Palak Jain, Iden Kalemaj, Sofya Raskhodnikova, Satchit Sivakumar, Adam Smith
Abstract
Privacy is a central challenge for systems that learn from sensitive data sets, especially when a system's outputs must be continuously updated to reflect changing data. We consider the achievable error for differentially private continual release of a basic statistic - the number of distinct items - in a stream where items may be both inserted and deleted (the turnstile model). With only insertions, existing algorithms have additive error just polylogarithmic in the length of the stream . We uncover a much richer landscape in the turnstile model, even without considering memory restrictions. We show that every differentially private mechanism that handles insertions and deletions has worst-case additive error at least even under a relatively weak, event-level privacy definition. Then, we identify a parameter of the input stream, its maximum flippancy, that is low for natural data streams and for which we give tight parameterized error guarantees. Specifically, the maximum flippancy is the largest number of times that the contribution of a single item to the distinct elements count changes over the course of the stream. We present an item-level differentially private mechanism that, for all turnstile streams with maximum flippancy , continually outputs the number of distinct elements with an additive error, without requiring prior knowledge of . We prove that this is the best achievable error bound that depends only on , for a large range of values of . When is small, the error of our mechanism is similar to the polylogarithmic in error in the insertion-only setting, bypassing the hardness in the turnstile model.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
9 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Improved Differential Privacy for SGD via Optimal Private Linear Operators on Adaptive Streams cites The Price of Differential Privacy under Continual Observation
- Continual Counting with Gradual Privacy Expiration cites Improved Differential Privacy for SGD via Optimal Private Linear Operators on Adaptive Streams
- Continual Counting with Gradual Privacy Expiration cites The Price of Differential Privacy under Continual Observation
- Continual Counting with Gradual Privacy Expiration cites Private Continual Release of Real-Valued Data Streams
- Skirting Additive Error Barriers for Private Turnstile Streams cites The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal Space
- Skirting Additive Error Barriers for Private Turnstile Streams cites Improved Differential Privacy for SGD via Optimal Private Linear Operators on Adaptive Streams
- Skirting Additive Error Barriers for Private Turnstile Streams cites Continual Counting with Gradual Privacy Expiration
- Skirting Additive Error Barriers for Private Turnstile Streams cites Differential Privacy on Fully Dynamic Streams
- Skirting Additive Error Barriers for Private Turnstile Streams cites The Price of Differential Privacy under Continual Observation
- Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic Space cites The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal Space
- The Price of Differential Privacy under Continual Observation cites Private Continual Release of Real-Valued Data Streams
- Efficient and Accurate Differentially Private Cardinality Continual Releases cites The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal Space
- Efficient and Accurate Differentially Private Cardinality Continual Releases cites Improved Differential Privacy for SGD via Optimal Private Linear Operators on Adaptive Streams
- Efficient and Accurate Differentially Private Cardinality Continual Releases cites Private Continual Release of Real-Valued Data Streams
Cited by top-tier papers9
- Continual Counting with Gradual Privacy ExpirationJoel Daniel Andersson, Monika Henzinger, Rasmus Pagh, Teresa Anna Steiner et al.NeurIPS 2024 · 4 citations
- Differential Privacy on Fully Dynamic StreamsYuan Qiu, Ke YiNeurIPS 2025 · 2 citations
- Skirting Additive Error Barriers for Private Turnstile StreamsAnders Aamand, Justin Y. Chen, Sandeep SilwalICLR 2026 · 2 citations
- Differentially Private Gomory-Hu TreesAnders Aamand, Justin Y. Chen, Mina Dalirrooyfard, Slobodan Mitrovic et al.NeurIPS 2025 · 2 citations
- Efficient and Accurate Differentially Private Cardinality Continual ReleasesDongdong Xie, Pinghui Wang, Quanqing Xu, Chuanhui Yang et al.SIGMOD 2025 · 1 citation
Builds on9
- Improved Differential Privacy for SGD via Optimal Private Linear Operators on Adaptive StreamsSergey Denisov, H. Brendan McMahan, John Rush, Adam D. Smith et al.NeurIPS 2022 · 96 citations
- The Price of Differential Privacy under Continual ObservationPalak Jain, Sofya Raskhodnikova, Satchit Sivakumar, Adam D. SmithICML 2023 · 63 citations
- The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal SpaceAdam D. Smith, Shuang Song, Abhradeep ThakurtaNeurIPS 2020 · 48 citations
- Private Continual Release of Real-Valued Data StreamsVictor Perrier, Hassan Jameel Asghar, Dali KaafarNDSS 2019 · 46 citations
- Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic SpaceLun Wang, Iosif Pinelis, Dawn SongICLR 2022 · 19 citations
Related papers
- Differentially Private Space-Efficient Algorithms for Counting Distinct Elements in the Turnstile ModelRachel Cummings, Alessandro Epasto, Jieming Mao, Tamalika Mukherjee et al.ICML 2025
- Differentially Private Continual Release with Relative ErrorBo Li, Wei Wang, Peng YeICML 2026
- Edit-Neighboring Data Streams and Privacy under Continual ObservationJoel Daniel Andersson, Anamay Chaturvedi, Monika Henzinger, Roodabeh SafaviCCS 2026
- Continual Observation under User-level Differential PrivacyWei Dong, Qiyao Luo, Ke YiS&P 2023
- Mean Estimation in the Add-Remove Model of Differential PrivacyAlex Kulesza, Ananda Theertha Suresh, Yuyan WangICML 2024 · 14 citations
