Tricking the Hashing Trick: A Tight Lower Bound on the Robustness of CountSketch to Adaptive Inputs
Not on the map. Why?
Abstract (arXiv)
CountSketch and Feature Hashing (the "hashing trick") are popular randomized dimensionality reduction methods that support recovery of ℓ2-heavy hitters (keys i where vi2 > ε |boldsymbolv|22) and approximate inner products. When the inputs are em not adaptive (do not depend on prior outputs), classic estimators applied to a sketch of size O(ℓ/ε) are accurate for a number of queries that is exponential in ℓ. When inputs are adaptive, however, an adversarial input can be constructed after O(ℓ) queries with the classic estimator and the best known robust estimator only supports tildeO(ℓ2) queries. In this work we show that this quadratic dependence is in a sense inherent: We design an attack that after O(ℓ2) queries produces an adversarial input vector whose sketch is highly biased. Our attack uses "natural" non-adaptive inputs (only the final adversarial input is chosen adaptively) and universally applies with any correct estimator, including one that is unknown to the attacker. In that, we expose inherent vulnerability of this fundamental method.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 27 of its 47 references that are in the map. First posted on arXiv 3 Jul 2022.
Builds on
27 of 47 references.
References · 27
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2013Intriguing properties of neural networkscited by 5,114
- 2016Practical Black-Box Attacks against Machine Learningcited by 893
- 2019Simple Black-box Adversarial Attackscited by 249
- 2020FetchSGD: Communication-Efficient Federated Learning with Sketchingcited by 178
- 2021Adaptive Machine Unlearningcited by 164
- 2015Compressing Neural Networks with the Hashing Trickcited by 150
- 2014Preserving Statistical Validity in Adaptive Data Analysiscited by 102
- 2014Interactive Fingerprinting Codes and the Hardness of Preventing False Discoverycited by 35
- 2014Preventing False Discovery in Interactive Data Analysis is Hardcited by 34
- 2015Compressing Convolutional Neural Networkscited by 25
- 2020A Framework for Adversarially Robust Streaming Algorithmscited by 21
15 more
- 2020Adversarially Robust Streaming Algorithms via Differential Privacycited by 21
- 2019Compressing Gradient Optimizers via Count-Sketchescited by 17
- 2021Dynamic Algorithms Against an Adaptive Adversary: Generic Constructions and Lower Boundscited by 17
- 2020Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimatorscited by 16
- 2018MISSION: Ultra Large-Scale Feature Selection using Count-Sketchescited by 11
- 2020On Adaptive Distance Estimationcited by 10
- 2021A Framework for Adversarial Streaming via Differential Privacy and Difference Estimatorscited by 9
- 2021Adversarially Robust Streaming via Dense--Sparse Trade-offscited by 7
- 2019Rounding Dynamic Matchings Against an Adaptive Adversarycited by 6
- 2022On the Robustness of CountSketch to Adaptive Inputscited by 5
- 2019Minimum Cut in O(mlog2 n) Timecited by 4
- 2020Span Recovery for Deep Neural Networks with Applications to Input Obfuscationcited by 4
- 2021A Simple Proof of a New Set Disjointness with Applications to Data Streamscited by 4
- 2020Decremental SSSP in Weighted Digraphs: Faster and Against an Adaptive Adversarycited by 3
- 2020WOR and p's: Sketches for ℓp-Sampling Without Replacementcited by 3
Built on by
Citing papers per year: 2023: 1; 2024: 0; 2025: 1.
2 papers.