用于ML覆盖区的随机矩阵:无性能损失的三元随机特征
Random matrices in service of ML footprint: ternary random features with no performance loss
摘要:
本文研究了具有非线性函数$σ(\cdot)$、数据${\bf x}_1, \ldots, {\bf x}_n \in \mathbb{R}^p$和随机投影向量${\bf w} \in \mathbb{R}^p$的${\bf K} = \mathbb{E}_{\bf w} \left[σ\left({\bf w}^{\sf T}{\bf x}_i\right)σ\left({\bf w}^{\sf T}{\bf x}_j\right)\right]_{i,j=1}^n$型随机特征核矩阵的谱行为。条目在一个高维设置的数据$n$和他们的维度$p$的数量都是大的和可比的,我们表明,根据高斯混合模型的数据,${\bf K}$的本征谱是独立的分布的i.i.d.(零均值和单位方差)项,并且仅取决于$σ(\cdot)$经由其(广义)高斯矩$\mathbb{E}_{z\sim \mathcal N(0,1)}[σ'(z)]$和$\mathbb{E}_{z\sim \mathcal N(0,1)}[σ''(z)]$。因此,对于上述形式的任何核矩阵${\bf K}$,我们提出了一种新的随机特征技术,称为三元随机特征(TRF),该技术(i)在谱意义上渐近地产生与原始${\bf K}$相同的限制核,并且(ii)可以通过明智地调整来更有效地计算和存储(以数据相关的方式)函数$σ$和随机向量${\bf w}$,两者都取$\{-1,0,1\}$中的值。所提出的随机特征的计算不需要乘法,并且与诸如随机傅立叶特征的经典随机特征相比,$b$的因子乘以用于存储的比特更少,其中$b$是用于存储全精度值的比特数。此外,在我们对真实数据的实验中,与最先进的随机特征压缩/量化方法相比,计算和存储方面的实质性增益伴随着性能的改善。
英文摘要:
In this article, we investigate the spectral behavior of random features kernel matrices of the type ${\bf K} = \mathbb{E}_{\bf w} \left[σ\left({\bf w}^{\sf T}{\bf x}_i\right)σ\left({\bf w}^{\sf T}{\bf x}_j\right)\right]_{i,j=1}^n$, with nonlinear function $σ(\cdot)$, data ${\bf x}_1, \ldots, {\bf x}_n \in \mathbb{R}^p$, and random projection vector ${\bf w} \in \mathbb{R}^p$ having i.i.d. entries. In a high-dimensional setting where the number of data $n$ and their dimension $p$ are both large and comparable, we show, under a Gaussian mixture model for the data, that the eigenspectrum of ${\bf K}$ is independent of the distribution of the i.i.d.(zero-mean and unit-variance) entries of ${\bf w}$, and only depends on $σ(\cdot)$ via its (generalized) Gaussian moments $\mathbb{E}_{z\sim \mathcal N(0,1)}[σ'(z)]$ and $\mathbb{E}_{z\sim \mathcal N(0,1)}[σ''(z)]$. As a result, for any kernel matrix ${\bf K}$ of the form above, we propose a novel random features technique, called Ternary Random Feature (TRF), that (i) asymptotically yields the same limiting kernel as the original ${\bf K}$ in a spectral sense and (ii) can be computed and stored much more efficiently, by wisely tuning (in a data-dependent manner) the function $σ$ and the random vector ${\bf w}$, both taking values in $\{-1,0,1\}$. The computation of the proposed random features requires no multiplication, and a factor of $b$ times less bits for storage compared to classical random features such as random Fourier features, with $b$ the number of bits to store full precision values. Besides, it appears in our experiments on real data that the substantial gains in computation and storage are accompanied with somewhat improved performances compared to state-of-the-art random features compression/quantization methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。