Papers › Trained Ternary Quantization

Trained Ternary Quantization

4 Dec 2016arXiv:1612.01064archive 2025-07-28

Chenzhuo Zhu, Song Han, Huizi Mao, William J. Dally

Deep neural networks are widely used in machine learning applications. However, the deployment of large neural networks models can be difficult to deploy on mobile devices with limited power budgets. To solve this problem, we propose Trained Ternary Quantization (TTQ), a method that can reduce the precision of weights in neural networks to ternary values. This method has very little accuracy degradation and can even improve the accuracy of some models (32, 44, 56-layer ResNet) on CIFAR-10 and AlexNet on ImageNet. And our AlexNet model is trained from scratch, which means it's as easy as to train normal full precision model. We highlight our trained quantization method that can learn both ternary values and ternary assignment. During inference, only ternary values (2-bit weights) and scaling factors are needed, therefore our models are nearly 16x smaller than full-precision models. Our ternary models can also be viewed as sparse binary weight networks, which can potentially be accelerated with custom circuit. Experiments on CIFAR-10 show that the ternary models obtained by trained quantization method outperform full-precision models of ResNet-32,44,56 by 0.04%, 0.16%, 0.36%, respectively. On ImageNet, our model outperforms full-precision AlexNet model by 0.3% of Top-1 accuracy and outperforms previous ternary models by 3%.

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

Code

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

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

VeritasXu/Ternary-Federated mentioned on GitHubpytorchMIT report
czhu95/ternarynet mentioned on GitHubtf report
tensorpack/tensorpack mentioned on GitHubtf report
vinsis/ternary-quantization mentioned on GitHubpytorch report
yamilvindas/aTTQ mentioned on GitHubpytorch report
yamilvindas/pTTQ mentioned on GitHubpytorchNOASSERTION 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

7 samples harvested; 5 ran; 1 honoured the contract we drafted; 2 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
3ran · our draft was wrong
1ran · fixture could not drive it
2unverified

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

computeMeanMetricsLastEpochs yamilvindas/aTTQ/src/utils/plot_results_classification.py community (archive-listed) ran · fixture could not drive it licence not identified · pointer only · bd0565df4c59e38b · report
get_data czhu95/ternarynet/examples/Ternary-Net/tw-cifar10-resnet.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 262b8057646d1be3 · report
get_quantization_grads vinsis/ternary-quantization/quantification.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · b834150b9d445a4f · report
load_results_data yamilvindas/aTTQ/src/utils/plot_results_classification.py community (archive-listed) ran · our draft was wrong licence not identified · pointer only · 0ba505651b8b7e1c · report
quantize vinsis/ternary-quantization/quantification.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · d68f2c13b2387a62 · report
get_data czhu95/ternarynet/examples/Ternary-Net/p-cifar10-resnet.py community (archive-listed) unverified Apache-2.0 (permissive) · 6986da09c8c85488 · report
plotMeanMetrics yamilvindas/aTTQ/src/utils/plot_results_classification.py community (archive-listed) unverified licence not identified · pointer only · cca5ba3ad019a6c9 · report

Tasks

Quantization

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