Papers › Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activations

Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activations

22 Sep 2016arXiv:1609.07061archive 2025-07-28

Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, Yoshua Bengio

We introduce a method to train Quantized Neural Networks (QNNs) --- neural networks with extremely low precision (e.g., 1-bit) weights and activations, at run-time. At train-time the quantized weights and activations are used for computing the parameter gradients. During the forward pass, QNNs drastically reduce memory size and accesses, and replace most arithmetic operations with bit-wise operations. As a result, power consumption is expected to be drastically reduced. We trained QNNs over the MNIST, CIFAR-10, SVHN and ImageNet datasets. The resulting QNNs achieve prediction accuracy comparable to their 32-bit counterparts. For example, our quantized version of AlexNet with 1-bit weights and 2-bit activations achieves 51% top-1 accuracy. Moreover, we quantize the parameter gradients to 6-bits as well which enables gradients computation using only bit-wise operation. Quantized recurrent neural networks were tested over the Penn Treebank dataset, and achieved comparable accuracy as their 32-bit counterparts using only 4-bits. Last but not least, we programmed a binary matrix multiplication GPU kernel with which it is possible to run our MNIST QNN 7 times faster than with an unoptimized GPU kernel, without suffering any loss in classification accuracy. The QNN code is available online.

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="1609.07061")

Code

Syntology Ran 0 of 12 code samples harvested from 2 repositories linked to this paper; 12 have no recorded run.

By repository: community (archive-listed): 12 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

CR-Ko/BinaryNet-Caffe2 mentioned on GitHubcaffe2 report
PIlotcnc/neural mentioned on GitHubpytorchApache-2.0 report
neuralmagic/sparseml mentioned on GitHubpytorch report
neuralmagic/sparsify mentioned on GitHubtfApache-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; 0 ran; 0 honoured the contract we drafted; 12 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.

12unverified

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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

add_data_opts neuralmagic/sparsify/src/sparsify/cli/opts.py community (archive-listed) unverified Apache-2.0 (permissive) · c55723df4fa1140d · report
add_deploy_opts neuralmagic/sparsify/src/sparsify/cli/opts.py community (archive-listed) unverified Apache-2.0 (permissive) · 64dc20dca8882db2 · report
convert_example_to_features PIlotcnc/neural/integrations/transformers/run_distill_qa.py community (archive-listed) unverified Apache-2.0 (permissive) · fb67524ca6f08994 · report
detect_framework PIlotcnc/neural/src/sparseml/base.py community (archive-listed) unverified Apache-2.0 (permissive) · e73fc1a24af5a318 · report
drop_layers PIlotcnc/neural/integrations/transformers/run_distill_qa.py community (archive-listed) unverified Apache-2.0 (permissive) · b05e6b10690ba830 · report
execute_in_sparseml_framework PIlotcnc/neural/src/sparseml/base.py community (archive-listed) unverified Apache-2.0 (permissive) · 8c8865bf5862de8e · report
get_kr_layer PIlotcnc/neural/utils/pytorch2keras.py community (archive-listed) unverified Apache-2.0 (permissive) · 37057a7078af9a5d · report
get_pytorch_name PIlotcnc/neural/utils/pytorch2keras.py community (archive-listed) unverified Apache-2.0 (permissive) · 0988e1f7835f94f8 · report
get_version PIlotcnc/neural/src/sparseml/base.py community (archive-listed) unverified Apache-2.0 (permissive) · 416986508915b636 · report
load_and_normalize_cifar10 PIlotcnc/neural/integrations/keras/prune_resnet20.py community (archive-listed) unverified Apache-2.0 (permissive) · 6fe673c869d15b78 · report
postprocess_qa_predictions PIlotcnc/neural/integrations/transformers/utils_qa.py community (archive-listed) unverified Apache-2.0 (permissive) · 181ade20c4851e11 · report
postprocess_qa_predictions_with_beam_search PIlotcnc/neural/integrations/transformers/utils_qa.py community (archive-listed) unverified Apache-2.0 (permissive) · b33c979ffa9d04b2 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

1x1 ConvolutionConvolutionDense ConnectionsDropoutGrouped ConvolutionLocal Response NormalizationMax PoolingReLUSoftmax

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