Lune

ICML2025Top-tier venue

Breaking the Quadratic Barrier: Robust Cardinality Sketches for Adaptive Queries

Edith Cohen, Mihir Singhal, Uri Stemmer

Abstract

Cardinality sketches are compact data structures that efficiently estimate the number of distinct elements across multiple queries while minimizing storage, communication, and computational costs. However, recent research has shown that these sketches can fail under adaptively chosen queries, breaking down after approximately Õ(k 2 ) queries, where k is the sketch size. In this work, we overcome this quadratic barrier by designing robust estimators with fine-grained guarantees. Specifically, our constructions can handle an exponential number of adaptive queries, provided that each element participates in at most Õ(k 2 ) queries. This effectively shifts the quadratic barrier from the total number of queries to the number of queries sharing the same element, which can be significantly smaller. Beyond cardinality sketches, our approach expands the toolkit for robust algorithm design.

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.

2 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

  • Adaptive Robustness of Hypergrid Johnson-Lindenstrauss cites Adversarially Robust Streaming Algorithms via Differential Privacy
  • On the Robustness of CountSketch to Adaptive Inputs cites Adversarially Robust Streaming Algorithms via Differential Privacy
  • On the Robustness of CountSketch to Adaptive Inputs cites Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimators
  • Adversarial Robustness on Insertion-Deletion Streams cites Adversarially Robust Streaming Algorithms via Differential Privacy
  • Adversarial Robustness on Insertion-Deletion Streams cites On Adaptive Distance Estimation
  • Adversarial Robustness on Insertion-Deletion Streams cites Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimators
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Adversarial Robustness on Insertion-Deletion StreamsElena Gribelyuk, Honghao Lin, David P. Woodruff, Huacheng Yu et al.STOC 2026 · 2 citations
  2. Adaptive Robustness of Hypergrid Johnson-LindenstraussAndrej Bogdanov, Alon Rosen, Neekon Vafa, Vinod VaikuntanathanSTOC 2026 · 1 citation

Builds on14

  1. Individual Privacy Accounting via a Rényi FilterVitaly Feldman, Tijana ZrnicNeurIPS 2021 · 124 citations
  2. Adversarially Robust Streaming Algorithms via Differential PrivacyAvinatan Hassidim, Haim Kaplan, Yishay Mansour, Yossi Matias et al.NeurIPS 2020 · 85 citations
  3. On Adaptive Distance EstimationYeshwanth Cherapanamjeri, Jelani NelsonNeurIPS 2020 · 34 citations
  4. On the Robustness of CountSketch to Adaptive InputsEdith Cohen, Xin Lyu, Jelani Nelson, Tamás Sarlós et al.ICML 2022 · 29 citations
  5. Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference EstimatorsDavid P. Woodruff, Samson ZhouFOCS 2021 · 25 citations

Related papers

  1. Unmasking Vulnerabilities: Cardinality Sketches under Adaptive InputsSara Ahmadian, Edith CohenICML 2024 · 7 citations
  2. One Attack to Rule Them All: Tight Quadratic Bounds for Adaptive Queries on Cardinality SketchesEdith Cohen, Jelani Nelson, Tamás Sarlós, Mihir Singhal et al.SODA 2026
  3. Tricking the Hashing Trick: A Tight Lower Bound on the Robustness of CountSketch to Adaptive InputsEdith Cohen, Jelani Nelson, Tamás Sarlós, Uri StemmerAAAI 2023 · 14 citations
  4. Robust Algorithms on Adaptive Inputs from Bounded AdversariesYeshwanth Cherapanamjeri, Sandeep Silwal, David P. Woodruff, Fred Zhang et al.ICLR 2023
  5. The Cost of Compression: Tight Quadratic Black-Box Attacks on Sketches for ℓ2 Norm EstimationSara Ahmadian, Edith Cohen, Uri StemmerNeurIPS 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines