paper-with-me

홈 › Papers

Matrix Compression via Randomized Low Rank and Low Precision Factorization

2023-10-17 · NeurIPS 2023 11 · Rajarshi Saha, Varun Srivastava, Mert Pilanci

Matrices are exceptionally useful in various fields of study as they provide a convenient framework to organize and manipulate data in a structured manner. However, modern matrices can involve billions of elements, making their storage and processing quite demanding in terms of computational resources and memory usage. Although prohibitively large, such matrices are often approximately low rank. We propose an algorithm that exploits this structure to obtain a low rank decomposition of any matrix $\mathbf{A}$ as $\mathbf{A} \approx \mathbf{L}\mathbf{R}$, where $\mathbf{L}$ and $\mathbf{R}$ are the low rank factors. The total number of elements in $\mathbf{L}$ and $\mathbf{R}$ can be significantly less than that in $\mathbf{A}$. Furthermore, the entries of $\mathbf{L}$ and $\mathbf{R}$ are quantized to low precision formats $--$ compressing $\mathbf{A}$ by giving us a low rank and low precision factorization. Our algorithm first computes an approximate basis of the range space of $\mathbf{A}$ by randomly sketching its columns, followed by a quantization of the vectors constituting this basis. It then computes approximate projections of the columns of $\mathbf{A}$ onto this quantized basis. We derive upper bounds on the approximation error of our algorithm, and analyze the impact of target rank and quantization bit-budget. The tradeoff between compression ratio and approximation accuracy allows for flexibility in choosing these parameters based on specific application requirements. We empirically demonstrate the efficacy of our algorithm in image compression, nearest neighbor classification of image and text embeddings, and compressing the layers of LlaMa-$7$b. Our results illustrate that we can achieve compression ratios as aggressive as one bit per matrix coordinate, all while surpassing or maintaining the performance of traditional compression techniques.

📄 PDF Abstract BibTeX arXiv:2310.11028

Code (1)

pilancilab/matrix-compressor 공식 구현 pytorch

Tasks

Image CompressionQuantization

Similar Papers 제목 키워드 기반

Learning nonnegative matrix factorizations from compressed data

2024-09-08 · Abraar Chaudhry, Elizaveta Rebrova

We propose a flexible and theoretically supported framework for scalable nonnegative matrix factorization. The goal is to find nonnegative low-rank components directly from compressed measurements, accessing the original…

Sequential Randomized Matrix Factorization for Gaussian Processes: Efficient Predictions and Hyper-parameter Optimization

2017-11-19 · Shaunak D. Bopardikar, George S. Eskander Ekladious

This paper presents a sequential randomized lowrank matrix factorization approach for incrementally predicting values of an unknown function at test points using the Gaussian Processes framework. It is well-known that in…

Computational EfficiencyGaussian Processes

Low-Rank Prune-And-Factorize for Language Model Compression

2023-06-25 · Siyu Ren, Kenny Q. Zhu

The components underpinning PLMs -- large weight matrices -- were shown to bear considerable redundancy. Matrix factorization, a well-established technique from matrix theory, has been utilized to reduce the number of pa…

Language ModelingLanguage ModellingModel CompressionNetwork Pruning+1

Compression of Acoustic Event Detection Models with Low-rank Matrix Factorization and Quantization Training

2019-05-02 · NIPS Workshop CDNNRIA 2018 · Bowen Shi, Ming Sun, Chieh-Chi Kao, Viktor Rozgic 외

In this paper, we present a compression approach based on the combination of low-rank matrix factorization and quantization training, to reduce complexity for neural network based acoustic event detection (AED) models. O…

Event DetectionQuantization

Heuristics for Exact Nonnegative Matrix Factorization

2014-11-26 · Arnaud Vandaele, Nicolas Gillis, François Glineur, Daniel Tuyttens

The exact nonnegative matrix factorization (exact NMF) problem is the following: given an $m$-by-$n$ nonnegative matrix $X$ and a factorization rank $r$, find, if possible, an $m$-by-$r$ nonnegative matrix $W$ and an $r$…