Unmasking Vulnerabilities: Cardinality Sketches under Adaptive Inputs
摘要
Cardinality sketches are popular data structures that enhance the efficiency of working with large data sets. The sketches are randomized representations of sets that are only of logarithmic size but can support set merges and approximate cardinality (i.e., distinct count) queries. When queries are not adaptive, that is, they do not depend on preceding query responses, the design provides strong guarantees of correctly answering a number of queries exponential in the sketch size . In this work, we investigate the performance of cardinality sketches in adaptive settings and unveil inherent vulnerabilities. We design an attack against the ``standard'' estimators that constructs an adversarial input by post-processing responses to a set of simple non-adaptive queries of size linear in the sketch size . Empirically, our attack used only queries with the widely used HyperLogLog (HLL++) sketch. The simple attack technique suggests it can be effective with post-processed natural workloads. Finally and importantly, we demonstrate that the vulnerability is inherent as any estimator applied to known sketch structures can be attacked using a number of queries that is quadratic in , matching a generic upper bound.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Breaking the Quadratic Barrier: Robust Cardinality Sketches for Adaptive Queries 引用了 Adversarially Robust Streaming Algorithms via Differential Privacy
- Breaking the Quadratic Barrier: Robust Cardinality Sketches for Adaptive Queries 引用了 On Adaptive Distance Estimation
- Breaking the Quadratic Barrier: Robust Cardinality Sketches for Adaptive Queries 引用了 A Strong Separation for Adversarially Robust ℓ0 Estimation for Linear Sketches
- Breaking the Quadratic Barrier: Robust Cardinality Sketches for Adaptive Queries 引用了 On the Robustness of CountSketch to Adaptive Inputs
- Breaking the Quadratic Barrier: Robust Cardinality Sketches for Adaptive Queries 引用了 Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimators
- Adaptively Robust Resettable Streaming 引用了 Adversarially Robust Streaming Algorithms via Differential Privacy
- Adaptively Robust Resettable Streaming 引用了 On Adaptive Distance Estimation
- Adaptively Robust Resettable Streaming 引用了 A Strong Separation for Adversarially Robust ℓ0 Estimation for Linear Sketches
- Adaptively Robust Resettable Streaming 引用了 On the Robustness of CountSketch to Adaptive Inputs
- Adaptively Robust Resettable Streaming 引用了 Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimators
- A Strong Separation for Adversarially Robust ℓ0 Estimation for Linear Sketches 引用了 Adversarially Robust Streaming Algorithms via Differential Privacy
- A Strong Separation for Adversarially Robust ℓ0 Estimation for Linear Sketches 引用了 On Adaptive Distance Estimation
- A Strong Separation for Adversarially Robust ℓ0 Estimation for Linear Sketches 引用了 On the Robustness of CountSketch to Adaptive Inputs
- A Strong Separation for Adversarially Robust ℓ0 Estimation for Linear Sketches 引用了 Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimators
- On the Robustness of CountSketch to Adaptive Inputs 引用了 Adversarially Robust Streaming Algorithms via Differential Privacy
- On the Robustness of CountSketch to Adaptive Inputs 引用了 Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimators
- The Cost of Compression: Tight Quadratic Black-Box Attacks on Sketches for ℓ2 Norm Estimation 引用了 Adversarially Robust Streaming Algorithms via Differential Privacy
- The Cost of Compression: Tight Quadratic Black-Box Attacks on Sketches for ℓ2 Norm Estimation 引用了 On Adaptive Distance Estimation
- The Cost of Compression: Tight Quadratic Black-Box Attacks on Sketches for ℓ2 Norm Estimation 引用了 A Strong Separation for Adversarially Robust ℓ0 Estimation for Linear Sketches
- The Cost of Compression: Tight Quadratic Black-Box Attacks on Sketches for ℓ2 Norm Estimation 引用了 On the Robustness of CountSketch to Adaptive Inputs
- The Cost of Compression: Tight Quadratic Black-Box Attacks on Sketches for ℓ2 Norm Estimation 引用了 Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimators
- Adversarial Robustness on Insertion-Deletion Streams 引用了 Breaking the Quadratic Barrier: Robust Cardinality Sketches for Adaptive Queries
- Adversarial Robustness on Insertion-Deletion Streams 引用了 Adversarially Robust Streaming Algorithms via Differential Privacy
- Adversarial Robustness on Insertion-Deletion Streams 引用了 On Adaptive Distance Estimation
- Adversarial Robustness on Insertion-Deletion Streams 引用了 Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimators
引用它的顶会 Paper6
- A Strong Separation for Adversarially Robust ℓ0 Estimation for Linear SketchesElena Gribelyuk, Honghao Lin, David P. Woodruff, Huacheng Yu 等FOCS 2024 · 2 次引用
- Adversarial Robustness on Insertion-Deletion StreamsElena Gribelyuk, Honghao Lin, David P. Woodruff, Huacheng Yu 等STOC 2026 · 2 次引用
- The Cost of Compression: Tight Quadratic Black-Box Attacks on Sketches for ℓ2 Norm EstimationSara Ahmadian, Edith Cohen, Uri StemmerNeurIPS 2025 · 1 次引用
- Breaking the Quadratic Barrier: Robust Cardinality Sketches for Adaptive QueriesEdith Cohen, Mihir Singhal, Uri StemmerICML 2025
- Adaptively Robust Resettable StreamingEdith Cohen, Elena Gribelyuk, Jelani Nelson, Uri StemmerICML 2026
它引用的 Paper11
- Adversarially Robust Streaming Algorithms via Differential PrivacyAvinatan Hassidim, Haim Kaplan, Yishay Mansour, Yossi Matias 等NeurIPS 2020 · 85 次引用
- The Flajolet-Martin Sketch Itself Preserves Differential Privacy: Private Counting with Minimal SpaceAdam D. Smith, Shuang Song, Abhradeep ThakurtaNeurIPS 2020 · 48 次引用
- On Adaptive Distance EstimationYeshwanth Cherapanamjeri, Jelani NelsonNeurIPS 2020 · 34 次引用
- On the Robustness of CountSketch to Adaptive InputsEdith Cohen, Xin Lyu, Jelani Nelson, Tamás Sarlós 等ICML 2022 · 29 次引用
- Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference EstimatorsDavid P. Woodruff, Samson ZhouFOCS 2021 · 25 次引用
相关 Paper
- One Attack to Rule Them All: Tight Quadratic Bounds for Adaptive Queries on Cardinality SketchesEdith Cohen, Jelani Nelson, Tamás Sarlós, Mihir Singhal 等SODA 2026
- 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 次引用
- A Better Cardinality Estimator with Fewer Bits, Constant Update Time, and MergeabilityYang Du, He Huang, Yu-e Sun, Kejian Li 等INFOCOM 2023 · 6 次引用
- Sketch-Flip-Merge: Mergeable Sketches for Private Distinct CountingJonathan Hehir, Daniel Ting, Graham CormodeICML 2023 · 12 次引用
- HyperLogLogLog: Cardinality Estimation With One Log MoreMatti Karppa, Rasmus PaghKDD 2022 · 24 次引用
