arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1706.10283cs.PFstat.ML
收藏

Bolt:基于快速向量压缩的加速数据采掘

Bolt: Accelerated Data Mining with Fast Vector Compression

Davis W Blalock, John V Guttag

摘要:

数据向量是机器学习和数据采掘的核心。最近,矢量量化方法在减少对矢量进行操作的时间和空间成本方面表现出很大的希望。我们引入了一种矢量量化算法,它可以比现有技术快12倍以上的速度压缩矢量,同时还可以将近似矢量运算(如距离和点积计算)加速高达10倍。因为它每秒可以编码超过2GB的矢量,它使得矢量量化足够便宜,可以在更多的情况下使用。例如,使用我们的技术在嵌套循环中计算近似点积可以比最先进的BLAS实现更快地乘以矩阵,即使我们的算法必须首先压缩矩阵。除了显示上述加速,我们证明了我们的方法可以加速最近邻搜索和最大内积搜索超过100倍的浮点运算和高达10倍的其他矢量量化方法相比。我们的近似欧几里德距离和点积计算不仅比编码较慢的相关算法更快,而且比汉明距离计算更快,这些计算在测试平台上有直接的硬件支持。我们还评估了我们算法的近似距离和点积的误差,并发现它与现有的,速度较慢的矢量量化算法是有竞争力的。

英文摘要:

Vectors of data are at the heart of machine learning and data mining. Recently, vector quantization methods have shown great promise in reducing both the time and space costs of operating on vectors. We introduce a vector quantization algorithm that can compress vectors over 12x faster than existing techniques while also accelerating approximate vector operations such as distance and dot product computations by up to 10x. Because it can encode over 2GB of vectors per second, it makes vector quantization cheap enough to employ in many more circumstances. For example, using our technique to compute approximate dot products in a nested loop can multiply matrices faster than a state-of-the-art BLAS implementation, even when our algorithm must first compress the matrices. In addition to showing the above speedups, we demonstrate that our approach can accelerate nearest neighbor search and maximum inner product search by over 100x compared to floating point operations and up to 10x compared to other vector quantization methods. Our approximate Euclidean distance and dot product computations are not only faster than those of related algorithms with slower encodings, but also faster than Hamming distance computations, which have direct hardware support on the tested platforms. We also assess the errors of our algorithm's approximate distances and dot products, and find that it is competitive with existing, slower vector quantization algorithms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑