Papers › Matrix Compression via Randomized Low Rank and Low Precision Factorization

Matrix Compression via Randomized Low Rank and Low Precision Factorization

17 Oct 2023NeurIPS 2023 11arXiv:2310.11028archive 2025-07-28

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 𝐀 as 𝐀 ≈𝐋𝐑, where 𝐋 and 𝐑 are the low rank factors. The total number of elements in 𝐋 and 𝐑 can be significantly less than that in 𝐀. Furthermore, the entries of 𝐋 and 𝐑 are quantized to low precision formats – compressing 𝐀 by giving us a low rank and low precision factorization. Our algorithm first computes an approximate basis of the range space of 𝐀 by randomly sketching its columns, followed by a quantization of the vectors constituting this basis. It then computes approximate projections of the columns of 𝐀 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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.11028")

Code

Syntology Ran 12 of 13 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

pilancilab/matrix-compressor officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 12 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12ran
1unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from pilancilab/matrix-compressor. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

batch_cutmix pilancilab/matrix-compressor/src/hlb/utils.py official repository ran no licence file found · pointer only · 6547238fd017af95 · report
batch_normalize_images pilancilab/matrix-compressor/src/hlb/utils.py official repository ran fingerprinted no licence file found · pointer only · 80750b7d0796de5a · report
extract_embeddings pilancilab/matrix-compressor/src/mnet/utils.py official repository ran no licence file found · pointer only · 246fd19433ca457a · report
get_patches pilancilab/matrix-compressor/src/hlb/nn/builder.py official repository ran no licence file found · pointer only · d7186cdef9b0b0a5 · report
get_whitening_parameters pilancilab/matrix-compressor/src/hlb/nn/builder.py official repository ran fingerprinted no licence file found · pointer only · 1dd822fea50fd772 · report
init_whitening_conv pilancilab/matrix-compressor/src/hlb/nn/builder.py official repository ran no licence file found · pointer only · 5d8137fb7e543a54 · report
make_random_square_masks pilancilab/matrix-compressor/src/hlb/utils.py official repository ran no licence file found · pointer only · b82ee0719ccaa6a5 · report
maximum_output_rank pilancilab/matrix-compressor/src/lplr/utils.py official repository ran no licence file found · pointer only · 6b7a27a3ef3f576d · report
normalize_and_shift_wrt_inner_prod pilancilab/matrix-compressor/src/lplr/utils.py official repository ran fingerprinted no licence file found · pointer only · a81fb3527c31a385 · report
relative_tensor_error pilancilab/matrix-compressor/src/shared/error.py official repository ran fingerprinted no licence file found · pointer only · bab310a37b20a439 · report
sparse_jl_transform pilancilab/matrix-compressor/src/lplr/utils.py official repository ran fingerprinted no licence file found · pointer only · 70c7d56564a6351e · report
uncompressed pilancilab/matrix-compressor/src/lplr/compressors.py official repository ran fingerprinted no licence file found · pointer only · 4e097d543e13c385 · report
load_mobilenet_without_head pilancilab/matrix-compressor/src/mnet/loader.py official repository unverified no licence file found · pointer only · 3fcac282a5058eac · report

Tasks

Image CompressionQuantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections