Papers › Scalable Methods for 8-bit Training of Neural Networks

Scalable Methods for 8-bit Training of Neural Networks

25 May 2018NeurIPS 2018 12arXiv:1805.11046archive 2025-07-28

Ron Banner, Itay Hubara, Elad Hoffer, Daniel Soudry

Quantized Neural Networks (QNNs) are often used to improve network efficiency during the inference phase, i.e. after the network has been trained. Extensive research in the field suggests many different quantization schemes. Still, the number of bits required, as well as the best quantization scheme, are yet unknown. Our theoretical analysis suggests that most of the training process is robust to substantial precision reduction, and points to only a few specific operations that require higher precision. Armed with this knowledge, we quantize the model parameters, activations and layer gradients to 8-bit, leaving at a higher precision only the final step in the computation of the weight gradients. Additionally, as QNNs require batch-normalization to be trained at high precision, we introduce Range Batch-Normalization (BN) which has significantly higher tolerance to quantization noise and improved computational complexity. Our simulations show that Range BN is equivalent to the traditional batch norm if a precise scale adjustment, which can be approximated analytically, is applied. To the best of the authors' knowledge, this work is the first to quantize the weights, activations, as well as a substantial volume of the gradients stream, in all layers (including batch normalization) to 8-bit while showing state-of-the-art results over the ImageNet-1K dataset.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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

Code

Syntology Ran 2 of 13 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 2 ran · our draft was wrong.

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

eladhoffer/quantized.pytorch officialmentioned in papermentioned on GitHubpytorchMIT report
eladhoffer/convNet.pytorch mentioned on GitHubpytorch report
vaapopescu/gradient-pruning mentioned on GitHubpytorchMIT 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; 2 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
11unverified

Licence: 0 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 eladhoffer/quantized.pytorch. “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.

conv3x3 eladhoffer/quantized.pytorch/models/resnet.py official repository ran · our draft was wrong MIT (permissive) · fac5364e2f53c6db · report
conv3x3 eladhoffer/quantized.pytorch/models/resnext.py official repository ran · our draft was wrong MIT (permissive) · bc359191fdd6e179 · report
conv3x3 eladhoffer/quantized.pytorch/models/resnet_quantized.py official repository unverified MIT (permissive) · 2aae5266d40678b7 · report
conv3x3 eladhoffer/quantized.pytorch/models/resnet_quantized_float_bn.py official repository unverified MIT (permissive) · 3d9a75a675636b11 · report
conv3x3 eladhoffer/quantized.pytorch/models/resnet_bwn.py official repository unverified MIT (permissive) · e6c8bce847358ab5 · report
conv_bn eladhoffer/quantized.pytorch/models/inception_resnet_v2.py official repository unverified MIT (permissive) · 36d164db20c45f6d · report
conv_bn eladhoffer/quantized.pytorch/models/inception_v2.py official repository unverified MIT (permissive) · c852fbd4f3361928 · report
depBatchNorm2d eladhoffer/quantized.pytorch/models/resnext.py official repository unverified MIT (permissive) · 479e6512d18a4cd5 · report
get_dataset eladhoffer/quantized.pytorch/data.py official repository unverified MIT (permissive) · cde16b7e9575ccb9 · report
inception_preproccess eladhoffer/quantized.pytorch/preprocess.py official repository unverified MIT (permissive) · 76d3620502ea711f · report
nearby_int eladhoffer/quantized.pytorch/models/mobilenet_quantized.py official repository unverified MIT (permissive) · f0e3c7e07f4ec4a8 · report
pad_random_crop eladhoffer/quantized.pytorch/preprocess.py official repository unverified MIT (permissive) · 8050fdcf3ccf70b9 · report
scale_crop eladhoffer/quantized.pytorch/preprocess.py official repository unverified MIT (permissive) · a90e11536c336bf6 · report

Tasks

Quantization

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