Lune

NeurIPS2020Top-tier venue

The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal Space

Adam D. Smith, Shuang Song, Abhradeep Thakurta

Abstract

We revisit the problem of counting the number of distinct elements F 0 (D) in a data stream D, over a domain [u]. We propose an (ε, δ)-differentially private algorithm that approximates F 0 (D) within a factor of (1 ± γ), and with additive error of O( ln(1/δ)/ε), using space O(ln(ln(u)/γ)/γ 2 ). We improve on the prior work at least quadratically and up to exponentially, in terms of both space and additive error. Our additive error guarantee is optimal up to a factor of O( ln(1/δ)), and the space bound is optimal up to a factor of O min ln ln(u) . We assume the existence of an ideal uniform random hash function, and ignore the space required to store it. We later relax this requirement by assuming pseudorandom functions and appealing to a computational variant of differential privacy, SIM-CDP. Our algorithm is built on top of the celebrated Flajolet-Martin (FM) sketch. We show that FM-sketch is differentially private as is, as long as there are ≈ ln(1/δ)/(εγ) distinct elements in the data set. Along the way, we prove a structural result showing that the maximum of k i.i.d. random variables is statistically close (in the sense of ε-differential privacy) to the maximum of (k + 1) i.i.d. samples from the same distribution, as long as k = Ω 1 ε . Finally, experiments show that our algorithms introduces error within an order of magnitude of the non-private analogues for streams with thousands of distinct elements, even while providing strong privacy guarantee (ε ≤ 1).

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.

20 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 Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic Space
  • 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 Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic Space
  • Differentially Private Vertical Federated Clustering cites Membership Inference Attacks Against Machine Learning Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. Differentially Private Linear Sketches: Efficient Implementations and ApplicationsFuheng Zhao, Dan Qiao, Rachel Redberg, Divyakant Agrawal et al.NeurIPS 2022 · 40 citations
  2. Differentially Private Vertical Federated ClusteringZitao Li, Tianhao Wang, Ninghui LiVLDB 2023 · 26 citations
  3. 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
  4. Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic SpaceLun Wang, Iosif Pinelis, Dawn SongICLR 2022 · 19 citations
  5. Order-Invariant Cardinality Estimators Are Differentially PrivateCharlie Dickens, Justin Thaler, Daniel TingNeurIPS 2022 · 17 citations

Builds on2

  1. Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 citations
  2. Connecting Robust Shuffle Privacy and Pan-PrivacyVictor Balcer, Albert Cheu, Matthew Joseph, Jieming MaoSODA 2021 · 27 citations

Related papers

  1. An LDP Compatible Sketch for Securely Approximating Set Intersection CardinalitiesPinghui Wang, Yitong Liu, Zhicheng Li, Rundong LiSIGMOD 2024 · 7 citations
  2. An Effective and Differentially Private Protocol for Secure Distributed Cardinality EstimationPinghui Wang, Chengjin Yang, Dongdong Xie, Junzhou Zhao et al.SIGMOD 2023 · 5 citations
  3. Differentially Private Space-Efficient Algorithms for Counting Distinct Elements in the Turnstile ModelRachel Cummings, Alessandro Epasto, Jieming Mao, Tamalika Mukherjee et al.ICML 2025
  4. DPSW-Sketch: A Differentially Private Sketch Framework for Frequency Estimation over Sliding WindowsYiping Wang, Yanhao Wang, Cen ChenKDD 2024 · 2 citations
  5. A Fast, Mergeable, and LDP Compatible Sketch for Counting the Number of Distinct Values in Fully Dynamic TablesZhicheng Li, Pinghui Wang, Zeli Lin, Bichun Chen et al.SIGMOD 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines