Statistical and machine-learning algorithms are frequently applied to high-dimensional data. In many of these applications data is scarce, and often much more costly than computation time. We provide the first sample-efficient polynomial-time estimator for high-dimensional spherical Gaussian mixtures.
For mixtures of any $k$ $d$-dimensional spherical Gaussians, we derive an intuitive spectral-estimator that uses $\mathcal{O}_k\bigl(\frac{d\log^2d}{ε^4}\bigr)$ samples and runs in time $\mathcal{O}_{k,ε}(d^3\log^5 d)$, both significantly lower than previously known. The constant factor $\mathcal{O}_k$ is polynomial for sample complexity and is exponential for the time complexity, again much smaller than what was previously known. We also show that $Ω_k\bigl(\frac{d}{ε^2}\bigr)$ samples are needed for any algorithm. Hence the sample complexity is near-optimal in the number of dimensions.
We also derive a simple estimator for one-dimensional mixtures that uses $\mathcal{O}\bigl(\frac{k \log \frac{k}ε }{ε^2} \bigr)$ samples and runs in time $\widetilde{\mathcal{O}}\left(\bigl(\frac{k}ε\bigr)^{3k+1}\right)$. Our other technical contributions include a faster algorithm for choosing a density estimate from a set of distributions, that minimizes the $\ell_1$ distance to an unknown underlying distribution.
On PyTorch Implementation of Density Estimators for von Mises-Fisher and Its Mixture
von Mises-Fisher(vMF)是一个著名的方向随机变量密度模型。最近兴起的用于高维结构化数据(如图像或文本)的深度嵌入方法,旨在提取突出的方向信息,可以使vMF模型更加流行。在本文中,我们将回顾vMF模型及其混合,提供如何在Python/PyTorch中训练模型的详细方法,重点是最大似然估计。特别是,vMF的实现通常会遇到密度归一化器中贝塞尔函数求值的臭名昭著的数值问题,特别是当维数很高时,我们使用支持任意精度的MPMath库来解决这个问题。对于混合学习,我们提供了基于小批量的大规模SGD学习,以及EM算法,这是一个完整的批量估计器。对于每种估计器/方法,我们在一些合成数据上测试我们的实现,同时我们还在更现实的图像聚类场景中演示了用例。我们的代码可在https://github.com/minyoungkim21/vmf-lib上公开获取。