Papers › Two Sparse Matrices are Better than One: Sparsifying Neural Networks with Double...

Two Sparse Matrices are Better than One: Sparsifying Neural Networks with Double Sparse Factorization

27 Sep 2024arXiv:2409.18850archive 2025-07-28

Vladimír Boža, Vladimír Macko

Neural networks are often challenging to work with due to their large size and complexity. To address this, various methods aim to reduce model size by sparsifying or decomposing weight matrices, such as magnitude pruning and low-rank or block-diagonal factorization. In this work, we present Double Sparse Factorization (DSF), where we factorize each weight matrix into two sparse matrices. Although solving this problem exactly is computationally infeasible, we propose an efficient heuristic based on alternating minimization via ADMM that achieves state-of-the-art results, enabling unprecedented sparsification of neural networks. For instance, in a one-shot pruning setting, our method can reduce the size of the LLaMA2-13B model by 50% while maintaining better performance than the dense LLaMA2-7B model. We also compare favorably with Optimal Brain Compression, the state-of-the-art layer-wise pruning approach for convolutional neural networks. Furthermore, accuracy improvements of our method persist even after further model fine-tuning. Code available at: https://github.com/usamec/double_sparse.

PaperPDFCodeCode 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="2409.18850")

Code

Syntology Ran 6 of 12 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 5 ran with no contract checked.

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

usamec/double_sparse officialmentioned in paperpytorchApache-2.0 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

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

1ran · our draft was wrong
5ran
6unverified

Licence: 0 of the 12 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 usamec/double_sparse. “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.

ent usamec/double_sparse/doublesparse.py official repository ran fingerprinted Apache-2.0 (permissive) · 49a001a61f2633ae · report
find_layers usamec/double_sparse/modelutils.py official repository ran · our draft was wrong Apache-2.0 (permissive) · a9e7f2cdf016b88b · report
find_other2 usamec/double_sparse/doublesparse.py official repository ran Apache-2.0 (permissive) · 2c35e419392e5ae7 · report
get_imagenet usamec/double_sparse/other_experiments/datautils.py official repository ran Apache-2.0 (permissive) · 0723e2735373f4d8 · report
get_llama usamec/double_sparse/llama.py official repository ran Apache-2.0 (permissive) · bf5b0ce87ee19903 · report
mag_prune usamec/double_sparse/doublesparse.py official repository ran fingerprinted Apache-2.0 (permissive) · a1c5a6a697a88d18 · report
get_coco usamec/double_sparse/other_experiments/datautils.py official repository unverified Apache-2.0 (permissive) · 75dbb95badb47b1a · report
get_ptb usamec/double_sparse/datautils.py official repository unverified Apache-2.0 (permissive) · a7cbf4fc49c71e03 · report
get_tokenizer usamec/double_sparse/datautils.py official repository unverified Apache-2.0 (permissive) · 729f957048af4a3f · report
get_wikitext2 usamec/double_sparse/datautils.py official repository unverified Apache-2.0 (permissive) · 011909315dfdbc2e · report
llama_sequential usamec/double_sparse/llama.py official repository unverified Apache-2.0 (permissive) · 14961351f5344dc1 · report
random_subset usamec/double_sparse/other_experiments/datautils.py official repository unverified Apache-2.0 (permissive) · 52ba3cdd84734157 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ADMMPruning

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