# Hybrid Compression for Memory-Efficient Matrix-Vector Multiplication

arXiv: https://arxiv.org/abs/2611.18792 · HTML: https://mlsanity.com/paper/2611.18792/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 15 of its 38 references that are in the map.
- Submitted 13 Nov 2026.

## Builds on (most cited first, 15 of 15)

- [Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding](https://mlsanity.com/paper/1510.00149/) (2015)
- [A Survey of Quantization Methods for Efficient Neural Network Inference](https://mlsanity.com/paper/2103.13630/) (2021)
- [Sparsity in Deep Learning: Pruning and growth for efficient inference and training in neural networks](https://mlsanity.com/paper/2102.00554/) (2021)
- [A Survey on Large-scale Machine Learning](https://mlsanity.com/paper/2008.03911/) (2020)
- [From Theory to Practice: Plug and Play with Succinct Data Structures](https://mlsanity.com/paper/1311.1249/) (2013)
- [Improving Matrix-vector Multiplication via Lossless Grammar-Compressed Matrices](https://mlsanity.com/paper/2203.14540/) (2022)
- [Scalable Partial Least Squares Regression on Grammar-Compressed Data Matrices](https://mlsanity.com/paper/1606.05031/) (2016)
- [Space-Efficient Re-Pair Compression](https://mlsanity.com/paper/1611.01479/) (2016)
- [Two-Dimensional Block Trees](https://mlsanity.com/paper/1803.01362/) (2018)
- [Rpair: Rescaling RePair with Rsync](https://mlsanity.com/paper/1906.00809/) (2019)
- [Grammar Compression By Induced Suffix Sorting](https://mlsanity.com/paper/2011.12898/) (2020)
- [The landscape of compressibility measures for two-dimensional data](https://mlsanity.com/paper/2307.02629/) (2023)
- [Toward Greener Matrix Operations by Lossless Compressed Formats](https://mlsanity.com/paper/2409.18620/) (2024)
- [Depth first representations of k2-trees](https://mlsanity.com/paper/2505.11302/) (2025)
- [Right Multiplication on Grammar-Compressed Matrices: A Streaming, Memory-Bounded GPU Engine](https://mlsanity.com/paper/2607.24971/) (2026)

## Abstract (arXiv)

Iterative machine-learning algorithms repeatedly access large real-valued matrices through matrix-vector products, and their performance is limited by memory bandwidth rather than arithmetic throughput. Lossless compression schemes that support computation directly over the compressed data reduce both the data moved and the memory footprint of these workloads. The mm-RePair framework [11] follows this approach by applying the RePair grammar compressor to the Compressed Sparse Row/Value (CSRV) representation of a matrix and performing matrix-vector multiplications directly on the compressed data. Its effectiveness, however, degrades on matrices that are dense or contain many distinct values. In this paper we present a hybrid strategy for the mm-RePair framework that combines grammar and entropy compression. The CSRV sequence is partitioned into a grammar-compressible component, formed by the entries that mm-RePair can compress effectively, and an entropy-compressible component holding the remaining entries, which is encoded with the ans-fold coder [24]. Compression improves further by sorting and delta encoding the entries of each row in the CSRV representation, and by remapping the alphabet to a contiguous range. Experiments on real-valued machine-learning matrices, including word embeddings and transformer hidden states, show that our hybrid strategy is more compact than the original mmRepair on every input and reduces the peak memory of multiplication, with the largest gains on dense matrices with many distinct values, at competitive multiplication times. It also outperforms the column-reordering variant of mmRepair on most of the matrices, and combining the two is even more compact on the sparse ones, at the cost of a much longer compression time. Finally, our strategy scales with the number of threads as well as the original mmRepair does.
