Improving Matrix-vector Multiplication via Lossless Grammar-Compressed Matrices
Paolo Ferragina, Travis Gagie, Dominik K\"oppl, Giovanni Manzini,, Gonzalo Navarro, Manuel Striani, Francesco Tosoni

TL;DR
This paper introduces a lossless compression scheme for real-valued matrices that enables efficient storage and matrix-vector multiplication, outperforming existing tools like gzip and xz, and approaching theoretical entropy limits.
Contribution
The authors propose a novel lossless compression method for matrices that supports fast matrix-vector multiplication and introduces column-reordering algorithms to further optimize performance.
Findings
Outperforms gzip and is close to xz in compression ratio.
Supports matrix-vector multiplication proportional to compressed size.
Runs at least twice as fast as state-of-the-art CLA methods.
Abstract
As nowadays Machine Learning (ML) techniques are generating huge data collections, the problem of how to efficiently engineer their storage and operations is becoming of paramount importance. In this article we propose a new lossless compression scheme for real-valued matrices which achieves efficient performance in terms of compression ratio and time for linear-algebra operations. Experiments show that, as a compressor, our tool is clearly superior to gzip and it is usually within 20% of xz in terms of compression ratio. In addition, our compressed format supports matrix-vector multiplications in time and space proportional to the size of the compressed representation, unlike gzip and xz that require the full decompression of the compressed matrix. To our knowledge our lossless compressor is the first one achieving time and space complexities which match the theoretical limit expressed…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Algorithms and Data Compression · Error Correcting Code Techniques
