HackerPapers

arXiv:1706.10283cs.PF

Bolt: Accelerated Data Mining with Fast Vector Compression

Davis W Blalock, John V Guttag

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

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.

arXiv comments
Research track paper at KDD 2017
Journal reference
DOI
doi:10.1145/3097983.3098195
Subjects
cs.PFPerformance stat.MLMachine Learning (Statistics)

On Hacker News

Linked by 1 identifiable commenter in 2 comments across 2 threads, from Jan 2024 to Jul 2024.

Comments linking this paper, per year.

Discussed in comments2 threads

    • I do generally like their approach. It's especially well suited given how easy comptime allows metaprogramming against the target register size. I wish it had a few more builtins for commonly supported operations without me having to write inline assembly (e.g., runtime LUTs are…

      hansvmView on HNParent context

  1. Generalized K-Means Clustering 1 comment
    • The kmeans metric is exactly the metric you would want to optimize the performance of an algorithm like [bolt](https://arxiv.org/abs/1706.10283). In that and other discretization routines, the value of k is a parameter related to compression ratio, efficiency, and other metrics…

      hansvmView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.