CountSketches, Feature Hashing and the Median of Three

02/03/2021
by   Kasper Green Larsen, et al.
0

In this paper, we revisit the classic CountSketch method, which is a sparse, random projection that transforms a (high-dimensional) Euclidean vector v to a vector of dimension (2t-1) s, where t, s > 0 are integer parameters. It is known that even for t=1, a CountSketch allows estimating coordinates of v with variance bounded by v_2^2/s. For t > 1, the estimator takes the median of 2t-1 independent estimates, and the probability that the estimate is off by more than 2 v_2/√(s) is exponentially small in t. This suggests choosing t to be logarithmic in a desired inverse failure probability. However, implementations of CountSketch often use a small, constant t. Previous work only predicts a constant factor improvement in this setting. Our main contribution is a new analysis of Count-Sketch, showing an improvement in variance to O(min{v_1^2/s^2,v_2^2/s}) when t > 1. That is, the variance decreases proportionally to s^-2, asymptotically for large enough s. We also study the variance in the setting where an inner product is to be estimated from two CountSketches. This finding suggests that the Feature Hashing method, which is essentially identical to CountSketch but does not make use of the median estimator, can be made more reliable at a small cost in settings where using a median estimator is possible. We confirm our theoretical findings in experiments and thereby help justify why a small constant number of estimates often suffice in practice. Our improved variance bounds are based on new general theorems about the variance and higher moments of the median of i.i.d. random variables that may be of independent interest.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/08/2019

Understanding Sparse JL for Feature Hashing

Feature hashing and more general projection schemes are commonly used in...
research
04/02/2020

No Repetition: Fast Streaming with Highly Concentrated Hashing

To get estimators that work within a certain error bound with high proba...
research
01/16/2019

The median of a jittered Poisson distribution

Let N_λ and U be two independent random variables respectively distribut...
research
11/17/2020

Optimal Sub-Gaussian Mean Estimation in ℝ

We revisit the problem of estimating the mean of a real-valued distribut...
research
06/12/2020

Concentration Bounds for the Collision Estimator

We prove a strong concentration result about the natural collision estim...
research
02/27/2023

On Coresets for Clustering in Small Dimensional Euclidean Spaces

We consider the problem of constructing small coresets for k-Median in E...
research
03/04/2022

Improving Tug-of-War sketch using Control-Variates method

Computing space-efficient summary, or a.k.a. sketches, of large data, is...

Please sign up or login with your details

Forgot password? Click here to reset