Papers › Learned Step Size Quantization

Learned Step Size Quantization

21 Feb 2019ICLR 2020 1arXiv:1902.08153archive 2025-07-28

Steven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy, Dharmendra S. Modha

Deep networks run with low precision operations at inference time offer power and space advantages over high precision alternatives, but need to overcome the challenge of maintaining high accuracy as precision decreases. Here, we present a method for training such networks, Learned Step Size Quantization, that achieves the highest accuracy to date on the ImageNet dataset when using models, from a variety of architectures, with weights and activations quantized to 2-, 3- or 4-bits of precision, and that can train 3-bit models that reach full precision baseline accuracy. Our approach builds upon existing methods for learning weights in quantized networks by improving how the quantizer itself is configured. Specifically, we introduce a novel means to estimate and scale the task loss gradient at each weight and activation layer's quantizer step size, such that it can be learned in conjunction with other network parameters. This approach works using different levels of precision as needed for a given system and requires only a simple modification of existing training code.

PaperPDFConference PDFCodeCode 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="1902.08153")

Code

Syntology Ran 7 of 23 code samples harvested from 4 repositories linked to this paper; 16 have no recorded run. Of those that ran: 4 ran · honoured contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it.

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

Adlik/model_optimizer mentioned on GitHubpytorchApache-2.0 report
DeadAt0m/LSQ-PyTorch mentioned on GitHubpytorch report
DeadAt0m/LSQFakeQuantize-PyTorch mentioned on GitHubpytorch report
Kelvinyu1117/LSQ-implementation mentioned on GitHubpytorch report
Shunli-Wang/Tiny-YOLO-LSQ mentioned on GitHubpytorch report
ZouJiu1/LSQplus mentioned on GitHubpytorch report
jiyoonkm/columnquant mentioned on GitHubpytorch report
zhutmost/lsq-net 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

23 samples harvested; 7 ran; 4 honoured the contract we drafted; 16 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.

4ran · honoured contract
2ran · our draft was wrong
1ran · fixture could not drive it
16unverified

Licence: 6 of the 23 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 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.

conv1x1 zhutmost/lsq-net/model/resnet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · d9def42110729a85 · report
conv3x3 zhutmost/lsq-net/model/resnet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 160bb14bd76201b4 · report
decompose_weights jiyoonkm/columnquant/LSQ.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 19f65b05591a698b · report
grad_scale jiyoonkm/columnquant/LSQ.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · a488bae52f1bfd5d · report
grad_scale hustzxd/LSQuantization/lsq.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · d75564df9359ef7b · report
round_pass jiyoonkm/columnquant/LSQ.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · ed1a69e092272dba · report
round_pass hustzxd/LSQuantization/lsq.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · 40027e5e78ca8837 · report
accuracy zhutmost/lsq-net/process.py community (archive-listed) unverified MIT (permissive) · 9453c291b0f1f0bc · report
create_model zhutmost/lsq-net/model/model.py community (archive-listed) unverified MIT (permissive) · cfdac0ab4bbef047 · report
find_modules_to_quantize zhutmost/lsq-net/quan/utils.py community (archive-listed) unverified MIT (permissive) · d111297ab7138f2f · report
get_config zhutmost/lsq-net/util/config.py community (archive-listed) unverified MIT (permissive) · d0100ae80d1bfe92 · report
init_logger zhutmost/lsq-net/util/config.py community (archive-listed) unverified MIT (permissive) · dcafab1705c6104a · report
load_checkpoint zhutmost/lsq-net/util/checkpoint.py community (archive-listed) unverified MIT (permissive) · ecf0e2f2f2b1b80a · report
load_data zhutmost/lsq-net/util/data_loader.py community (archive-listed) unverified MIT (permissive) · 72f8eaea5e7a643d · report
lr_scheduler zhutmost/lsq-net/util/lr_scheduler.py community (archive-listed) unverified MIT (permissive) · 39de768061885cd0 · report
merge_nested_dict zhutmost/lsq-net/util/config.py community (archive-listed) unverified MIT (permissive) · 742d60dfe2ec0c9f · report
prepare ZouJiu1/LSQplus/quantization/lsqquantize_V1.py community (archive-listed) unverified GPL-3.0 (copyleft) · pointer only · bd2c949ff15695e5 · report
quantizer zhutmost/lsq-net/quan/utils.py community (archive-listed) unverified MIT (permissive) · c5c793591e0a89c4 · report
replace_module_by_names zhutmost/lsq-net/quan/utils.py community (archive-listed) unverified MIT (permissive) · cd4da274de64134b · report
resnet18 zhutmost/lsq-net/model/resnet.py community (archive-listed) unverified MIT (permissive) · 3f5510bd7f92fad4 · report
resnet20 zhutmost/lsq-net/model/resnet_cifar.py community (archive-listed) unverified MIT (permissive) · d759ea54f50325b0 · report
resnet32 zhutmost/lsq-net/model/resnet_cifar.py community (archive-listed) unverified MIT (permissive) · 472d3c550a61f926 · report
resnet44 zhutmost/lsq-net/model/resnet_cifar.py community (archive-listed) unverified MIT (permissive) · 1db27ae5efae49cc · report

Tasks

Model CompressionQuantization

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Model Compression ImageNet ADLIK-MO-ResNet50+W4A4 Top-1 77.878 #1 of 12 Archive leaderboard report
Model Compression ImageNet ADLIK-MO-ResNet50+W3A4 Top-1 77.34 #2 of 12 Archive leaderboard report
Quantization ImageNet ADLIK-MO-ResNet50-W4A4 Activation bits 4 #9 of 27 Archive leaderboard report
Quantization ImageNet ADLIK-MO-ResNet50-W4A4 Top-1 Accuracy (%) 77.878 #9 of 27 Archive leaderboard report
Quantization ImageNet ADLIK-MO-ResNet50-W4A4 Weight bits 4 #9 of 27 Archive leaderboard report
Quantization ImageNet ADLIK-MO-ResNet50-W3A4 Activation bits 4 #10 of 27 Archive leaderboard report
Quantization ImageNet ADLIK-MO-ResNet50-W3A4 Top-1 Accuracy (%) 77.34 #10 of 27 Archive leaderboard report
Quantization ImageNet ADLIK-MO-ResNet50-W3A4 Weight bits 3 #10 of 27 Archive leaderboard report
Quantization ImageNet ResNet50-W4A4 (paper) Activation bits 4 #12 of 27 Archive leaderboard report
Quantization ImageNet ResNet50-W4A4 (paper) Top-1 Accuracy (%) 76.7 #12 of 27 Archive leaderboard report
Quantization ImageNet ResNet50-W4A4 (paper) Weight bits 4 #12 of 27 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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