Papers › DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradients

DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradients

20 Jun 2016arXiv:1606.06160archive 2025-07-28

Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, Yuheng Zou

We propose DoReFa-Net, a method to train convolutional neural networks that have low bitwidth weights and activations using low bitwidth parameter gradients. In particular, during backward pass, parameter gradients are stochastically quantized to low bitwidth numbers before being propagated to convolutional layers. As convolutions during forward/backward passes can now operate on low bitwidth weights and activations/gradients respectively, DoReFa-Net can use bit convolution kernels to accelerate both training and inference. Moreover, as bit convolutions can be efficiently implemented on CPU, FPGA, ASIC and GPU, DoReFa-Net opens the way to accelerate training of low bitwidth neural network on these hardware. Our experiments on SVHN and ImageNet datasets prove that DoReFa-Net can achieve comparable prediction accuracy as 32-bit counterparts. For example, a DoReFa-Net derived from AlexNet that has 1-bit weights, 2-bit activations, can be trained from scratch using 6-bit gradients to get 46.1\% top-1 accuracy on ImageNet validation set. The DoReFa-Net AlexNet model is released publicly.

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

Code

Syntology Ran 1 of 13 code samples harvested from 4 repositories linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · honoured contract.

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

13 repositories listed; official and paper-mentioned ones first.

tensorpack/tensorpack officialmentioned on GitHubtf report
Enderdead/Pytorch_Quantize_impls mentioned on GitHubpytorchMIT report
Jopyth/BMXNet mentioned on GitHubtf report
Xilinx/QNN-MO-PYNQ mentioned on GitHubBSD-3-Clause report
alfreddzh/paperso mentioned on GitHubNOASSERTION report
calipos/dorefa-caffe mentioned on GitHubNOASSERTION report
hpi-xnor/BMXNet mentioned on GitHubmxnet report
hpi-xnor/BMXNet-v2 mentioned on GitHubmxnetApache-2.0 report
mohdumar644/DoReFaNet-PyTorch mentioned on GitHubpytorch report
zzzxxxttt/Pytorch_DoReFaNet mentioned on GitHubpytorchMIT report
IntelLabs/distiller pytorchnot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-ready 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; 1 ran; 1 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.

1ran · honoured contract
12unverified

Licence: 1 of the 13 samples is 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 4 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.

Binarize mohdumar644/DoReFaNet-PyTorch/dorefa.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · 9b288b4b39df6ef0 · report
cifar_transform zzzxxxttt/Pytorch_DoReFaNet/utils/preprocessing.py community (archive-listed) unverified MIT (permissive) · eae55d588689f5b0 · report
columnToImage Xilinx/QNN-MO-PYNQ/qnn/utils.py community (archive-listed) unverified BSD-3-Clause (permissive) · 1c0993dfa6267ca3 · report
conv2d_Q_fn zzzxxxttt/Pytorch_DoReFaNet/utils/quant_dorefa.py community (archive-listed) unverified MIT (permissive) · 83dd0e0d9e8ff52c · report
conv_layer Xilinx/QNN-MO-PYNQ/qnn/utils.py community (archive-listed) unverified BSD-3-Clause (permissive) · eb32c61d9c2ced17 · report
dataframe_filter Enderdead/Pytorch_Quantize_impls/QuantTorch/compress.1.py community (archive-listed) unverified MIT (permissive) · 69deb4957901ff4f · report
filter_fails Enderdead/Pytorch_Quantize_impls/QuantTorch/compress.py community (archive-listed) unverified MIT (permissive) · 540d4c98feceae53 · report
imageToColumn Xilinx/QNN-MO-PYNQ/qnn/utils.py community (archive-listed) unverified BSD-3-Clause (permissive) · 5807a473e81d05db · report
imgnet_transform zzzxxxttt/Pytorch_DoReFaNet/utils/preprocessing.py community (archive-listed) unverified MIT (permissive) · 2a3eccf3107517a4 · report
linear_Q_fn zzzxxxttt/Pytorch_DoReFaNet/utils/quant_dorefa.py community (archive-listed) unverified MIT (permissive) · 9418f08dc30f8802 · report
resnet20 zzzxxxttt/Pytorch_DoReFaNet/nets/cifar_resnet.py community (archive-listed) unverified MIT (permissive) · ce5d6e10ff074840 · report
resnet56 zzzxxxttt/Pytorch_DoReFaNet/nets/cifar_resnet.py community (archive-listed) unverified MIT (permissive) · 782db452fa8e9972 · report
uniform_quantize zzzxxxttt/Pytorch_DoReFaNet/utils/quant_dorefa.py community (archive-listed) unverified MIT (permissive) · caf68e4b8567c88a · report

Tasks

Quantization

2 archive task tags without a task page not shown.

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