SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.02973 · 2023

Pruning vs Quantization: Which is Better?

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2307.02973.json · badge: /api/ran/2307.02973.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Qualcomm-AI-research/pruning-vs-quantization canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
FunctionStatusWhere it lives
generate_integr_grid_piecewise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Qualcomm-AI-research/pruning-vs-quantization/quantization/quant_error_estimator.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("dbe9711932a99fd7")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_conv_args Ran
ran; our contract draft was wrong, not the code
Qualcomm-AI-research/pruning-vs-quantization/quantization/autoquant_utils.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("9d1815904a95bcc4")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mulrandn Ran
ran, honoured the contract we drafted
Qualcomm-AI-research/pruning-vs-quantization/quantization/optimizers_sdp.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("dd5c1d8c7fb510bd")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

new_origin Ran
ran, honoured the contract we drafted
Qualcomm-AI-research/pruning-vs-quantization/quantization/optimizers_sdp.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("2a33f6009d1d948b")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

next_bn Ran
ran, violated the contract we drafted
Qualcomm-AI-research/pruning-vs-quantization/quantization/autoquant_utils.py
pointer only (licence: BSD-3-Clause-Clear); the stored copy get_code serves, from Qualcomm-AI-research/BayesianBits, is pointer only (licence: BSD-3-Clause-Clear) · get_code("870c07d5c47a4c01")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

notile Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Qualcomm-AI-research/pruning-vs-quantization/pruning/tiling.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("f54ec5c35b42cc77")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

qp_obj Ran
ran, violated the contract we drafted
Qualcomm-AI-research/pruning-vs-quantization/quantization/optimizers_sdp.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("46ec2462620c40cd")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reparameterize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Qualcomm-AI-research/pruning-vs-quantization/pruning/pruning_manager.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("876d9a307ee3b496")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sparsity_level_cubic Ran
ran, honoured the contract we drafted
Qualcomm-AI-research/pruning-vs-quantization/pruning/pruning_utils.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("9d00ca655ed448eb")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

topk_func Ran
ran; our contract draft was wrong, not the code
Qualcomm-AI-research/pruning-vs-quantization/pruning/pruning_utils.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("91d771e7773df7fa")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, Qualcomm-AI-research/pruning-vs-quantization, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
next_bn 1 other paper
1 dated earlier
2005.07093 (2020-05)
Bayesian Bits: Unifying Quantization and Pruning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Neural network pruning and quantization techniques are almost as old as neural networks themselves. However, to date only ad-hoc comparisons between the two have been published. In this paper, we set out to answer the question on which is better: neural network quantization or pruning? By answering this question, we hope to inform design decisions made on neural network hardware going forward. We provide an extensive comparison between the two techniques for compressing deep neural networks. First, we give an analytical comparison of expected quantization and pruning error for general data distributions. Then, we provide lower bounds for the per-layer pruning and quantization error in trained networks, and compare these to empirical error after optimization. Finally, we provide an extensive experimental comparison for training 8 large-scale models on 3 tasks. Our results show that in most cases quantization outperforms pruning. Only in some scenarios with very high compression ratio, pruning might be beneficial from an accuracy standpoint.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2307.02973")
get_code_for_paper("2307.02973")
have("2307.02973")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2307.02973.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2307.02973.svg)](https://syntology.ai/paper/2307.02973)

Connect an agent — have() is free.