Tricking the Hashing Trick: A Tight Lower Bound on the Robustness of CountSketch to Adaptive Inputs
Edith Cohen, Jelani Nelson, Tam\'as Sarl\'os, Uri Stemmer

TL;DR
This paper demonstrates a fundamental vulnerability in CountSketch and Feature Hashing, showing that an adversary can craft inputs after quadratic queries to bias the sketch, revealing limits of robustness in adaptive scenarios.
Contribution
The authors prove a tight lower bound by constructing an attack that exploits CountSketch's vulnerability to adaptive inputs, establishing inherent robustness limitations.
Findings
Adversarial inputs can bias CountSketch after O(ell^2) queries.
Classic estimators fail under adaptive adversarial inputs.
The attack applies universally to any correct estimator, known or unknown.
Abstract
CountSketch and Feature Hashing (the "hashing trick") are popular randomized dimensionality reduction methods that support recovery of -heavy hitters (keys where ) 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 are accurate for a number of queries that is exponential in . When inputs are adaptive, however, an adversarial input can be constructed after queries with the classic estimator and the best known robust estimator only supports queries. In this work we show that this quadratic dependence is in a sense inherent: We design an attack that after queries produces an adversarial input vector whose sketch is highly biased. Our attack uses "natural" non-adaptive…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Machine Learning and Algorithms · Domain Adaptation and Few-Shot Learning
