充分理解哈希技巧
Fully Understanding the Hashing Trick
摘要:
特征散列,也称为{ \em the hashing trick},由Weinberger等人(2009)引入,是用于扩展机器学习算法的关键技术之一。不严格地说,特征散列使用随机稀疏投影矩阵$A : \mathbb{R}^n \to \mathbb{R}^m$(其中$m \ll n$),以便将数据的维度从$n$减少到$m$,同时近似地保持欧几里德范数。$A$的每一列都只包含一个非零项,等于$-1$或$1$。Weinberger等人给出了$\|Ax\|_2^2$的尾部边界。具体来说,他们表明,对于每个$\varepsilon, δ$,如果$\|x\|_{\infty} / \|x\|_2$足够小,并且$m$足够大,则$$\Pr[ \; | \;\|Ax\|_2^2 - \|x\|_2^2\; | < \varepsilon \|x\|_2^2 \;] \ge 1 - δ\;.$$这些界限后来由Dasgupta \etal(2010)扩展,最近由Dahlgaard等人(2017)进行了改进,然而,这种关键技术的性能的真实性质,具体地说,关键参数$\|x\|_{\infty} / \|x\|_2, m, \varepsilon, δ$之间的正确折衷仍然是一个悬而未决的问题。我们解决这个问题,给出严格的渐近界的确切权衡之间的中心参数,从而提供了一个完整的理解的性能特征散列。我们补充的渐近界与经验数据,这表明常数“隐藏”的渐近符号,事实上,非常接近$1$,从而进一步说明了在实践中的紧密性所提出的界限。
英文摘要:
Feature hashing, also known as {\em the hashing trick}, introduced by Weinberger et al. (2009), is one of the key techniques used in scaling-up machine learning algorithms. Loosely speaking, feature hashing uses a random sparse projection matrix $A : \mathbb{R}^n \to \mathbb{R}^m$ (where $m \ll n$) in order to reduce the dimension of the data from $n$ to $m$ while approximately preserving the Euclidean norm. Every column of $A$ contains exactly one non-zero entry, equals to either $-1$ or $1$. Weinberger et al. showed tail bounds on $\|Ax\|_2^2$. Specifically they showed that for every $\varepsilon, δ$, if $\|x\|_{\infty} / \|x\|_2$ is sufficiently small, and $m$ is sufficiently large, then $$\Pr[ \; | \;\|Ax\|_2^2 - \|x\|_2^2\; | < \varepsilon \|x\|_2^2 \;] \ge 1 - δ\;.$$ These bounds were later extended by Dasgupta \etal (2010) and most recently refined by Dahlgaard et al. (2017), however, the true nature of the performance of this key technique, and specifically the correct tradeoff between the pivotal parameters $\|x\|_{\infty} / \|x\|_2, m, \varepsilon, δ$ remained an open question. We settle this question by giving tight asymptotic bounds on the exact tradeoff between the central parameters, thus providing a complete understanding of the performance of feature hashing. We complement the asymptotic bound with empirical data, which shows that the constants "hiding" in the asymptotic notation are, in fact, very close to $1$, thus further illustrating the tightness of the presented bounds in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。