Impossibility Results for Grammar-Compressed Linear Algebra
Authors:
- Amir AbboudAAAmir Abboud
- Arturs BackursABArturs Backurs
- Karl BringmannKBKarl Bringmann
- Marvin KünnemannMKMarvin Künnemann
Preprint
Abstract
To handle vast amounts of data, it is natural and popular to compress vectors and matrices. When we compress a vector from size $N$ down to size $n \ll N$, it certainly makes it easier to store and transmit efficiently, but does it also make it easier to process? In this paper we consider lossless compression schemes, and ask if we can run our computations on the compressed data as efficiently as if the original data was that small. That is, if an operation has time complexity $T(\rm{inputsize})$, can we perform it on the compressed representation in time $T(n)$ rather than $T(N)$? We consider the most basic linear algebra operations: inner product, matrix-vector multiplication, and matrix multiplication. In particular, given two compressed vectors, can we compute their inner product in time $O(n)$? Or perhaps we must decompress first and then multiply, spending $\Omega(N)$ time? The answer depends on the compression scheme. While for simple ones such as Run-Length-Encoding (RLE) the inner product can be done in $O(n)$ time, we prove that this is impossible for compressions from a richer class: essentially $n^2$ or even larger runtimes are needed in the worst case (under complexity assumptions). This is the class of grammar-compressions containing most popular methods such as the Lempel-Ziv family. These schemes are more compressing than the simple RLE, but alas, we prove that performing computations on them is much harder.
Keywords
All Related Versions
This publication has 26 references indexed in Scilit:
- A comprehensive survey on model compression and accelerationArtificial Intelligence Review, 2020
- Grammar-based graph compressionInformation Systems, 2018
- Compressed linear algebra for large-scale machine learningThe VLDB Journal, 2017
- A really simple approximation of smallest grammarTheoretical Computer Science, 2016
- Improved Subquadratic 3SUMAlgorithmica, 2015
- Approximation of grammar-based compression via recompressionTheoretical Computer Science, 2015
- Speeding Up HMM Decoding and Training by Exploiting Sequence RepetitionsAlgorithmica, 2007
- Application of Lempel–Ziv factorization to the approximation of grammar-based compressionTheoretical Computer Science, 2003
- A Fully Linear-Time Approximation Algorithm for Grammar-Based Compression2003
- Let Sleeping Files Lie: Pattern Matching in Z-Compressed FilesJournal of Computer and System Sciences, 1996