Lune

ICML2025Top-tier venue

Differentially Private Space-Efficient Algorithms for Counting Distinct Elements in the Turnstile Model

Rachel Cummings, Alessandro Epasto, Jieming Mao, Tamalika Mukherjee, Tingting Ou, Peilin Zhong

Abstract

The turnstile continual release model of differential privacy captures scenarios where a privacypreserving real-time analysis is sought for a dataset evolving through additions and deletions. In typical applications of real-time data analysis, both the length of the stream T and the size of the universe |U| from which data come can be extremely large. This motivates the study of private algorithms in the turnstile setting using space sublinear in both T and |U|. In this paper, we give the first sublinear space differentially private algorithms for the fundamental problem of counting distinct elements in the turnstile streaming model. Our algorithm achieves, on arbitrary streams, Õη (T 1/3 ) space and additive error, and a (1 + η)-relative approximation for all η ∈ (0, 1). Our result significantly improves upon the space requirements of the state-of-the-art algorithms for this problem, which is linear, approaching the known Ω(T 1/4 ) additive error lower bound for arbitrary streams. Moreover, when a bound W on the number of times an item appears in the stream is known, our algorithm provides Õη ( √ W ) additive error, using Õη ( √ W ) space. This additive error asymptotically matches that of prior work which required instead linear space. Our results address an open question posed by [JKR + 23] about designing low-memory mechanisms for this problem. We complement these results with a space lower bound for this problem, which shows that any algorithm that uses similar techniques must use space Ω(T 1/3 ) on arbitrary streams.

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.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Order-Invariant Cardinality Estimators Are Differentially Private cites The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal Space
  • Order-Invariant Cardinality Estimators Are Differentially Private cites Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic Space
  • 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 Counting Distinct Elements in the Turnstile Model with Differential Privacy under Continual Observation
  • Skirting Additive Error Barriers for Private Turnstile Streams cites Keeping a Secret Requires a Good Memory: Space Lower-Bounds for Private Algorithms
  • Keeping a Secret Requires a Good Memory: Space Lower-Bounds for Private Algorithms cites Skirting Additive Error Barriers for Private Turnstile Streams
  • Edit-Neighboring Data Streams and Privacy under Continual Observation cites Counting Distinct Elements in the Turnstile Model with Differential Privacy under Continual Observation
  • Counting Distinct Elements in the Turnstile Model with Differential Privacy under Continual Observation cites Order-Invariant Cardinality Estimators Are Differentially Private
  • Counting Distinct Elements in the Turnstile Model with Differential Privacy under Continual Observation cites The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal Space
  • Counting Distinct Elements in the Turnstile Model with Differential Privacy under Continual Observation cites Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic Space
  • Counting Distinct Elements in the Turnstile Model with Differential Privacy under Continual Observation cites Sketch-Flip-Merge: Mergeable Sketches for Private Distinct Counting
  • Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic Space cites The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal Space
  • Sketch-Flip-Merge: Mergeable Sketches for Private Distinct Counting cites The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal Space
  • Keeping a Secret Requires a Good Memory: Space Lower-Bounds for Private Algorithms cites Counting Distinct Elements in the Turnstile Model with Differential Privacy under Continual Observation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Skirting Additive Error Barriers for Private Turnstile StreamsAnders Aamand, Justin Y. Chen, Sandeep SilwalICLR 2026 · 2 citations
  2. Keeping a Secret Requires a Good Memory: Space Lower-Bounds for Private AlgorithmsAlessandro Epasto, Xin Lyu, Pasin ManurangsiICML 2026 · 1 citation
  3. Edit-Neighboring Data Streams and Privacy under Continual ObservationJoel Daniel Andersson, Anamay Chaturvedi, Monika Henzinger, Roodabeh SafaviCCS 2026

Builds on7

  1. The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal SpaceAdam D. Smith, Shuang Song, Abhradeep ThakurtaNeurIPS 2020 · 48 citations
  2. Counting Distinct Elements in the Turnstile Model with Differential Privacy under Continual ObservationPalak Jain, Iden Kalemaj, Sofya Raskhodnikova, Satchit Sivakumar et al.NeurIPS 2023 · 24 citations
  3. Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic SpaceLun Wang, Iosif Pinelis, Dawn SongICLR 2022 · 19 citations
  4. Order-Invariant Cardinality Estimators Are Differentially PrivateCharlie Dickens, Justin Thaler, Daniel TingNeurIPS 2022 · 17 citations
  5. Sketch-Flip-Merge: Mergeable Sketches for Private Distinct CountingJonathan Hehir, Daniel Ting, Graham CormodeICML 2023 · 12 citations

Related papers

  1. The Price of Differential Privacy under Continual ObservationPalak Jain, Sofya Raskhodnikova, Satchit Sivakumar, Adam D. SmithICML 2023 · 63 citations
  2. Continual Counting with Gradual Privacy ExpirationJoel Daniel Andersson, Monika Henzinger, Rasmus Pagh, Teresa Anna Steiner et al.NeurIPS 2024 · 4 citations
  3. Differentially Private Continual Release with Relative ErrorBo Li, Wei Wang, Peng YeICML 2026
  4. Efficient and Accurate Differentially Private Cardinality Continual ReleasesDongdong Xie, Pinghui Wang, Quanqing Xu, Chuanhui Yang et al.SIGMOD 2025 · 1 citation
  5. Adversarially Robust Dense-Sparse Tradeoffs via Heavy-HittersDavid P. Woodruff, Samson ZhouNeurIPS 2024 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines