Papers › XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks

XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks

16 Mar 2016arXiv:1603.05279archive 2025-07-28

Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, Ali Farhadi

We propose two efficient approximations to standard convolutional neural networks: Binary-Weight-Networks and XNOR-Networks. In Binary-Weight-Networks, the filters are approximated with binary values resulting in 32x memory saving. In XNOR-Networks, both the filters and the input to convolutional layers are binary. XNOR-Networks approximate convolutions using primarily binary operations. This results in 58x faster convolutional operations and 32x memory savings. XNOR-Nets offer the possibility of running state-of-the-art networks on CPUs (rather than GPUs) in real-time. Our binary networks are simple, accurate, efficient, and work on challenging visual tasks. We evaluate our approach on the ImageNet classification task. The classification accuracy with a Binary-Weight-Network version of AlexNet is only 2.9% less than the full-precision AlexNet (in top-1 measure). We compare our method with recent network binarization methods, BinaryConnect and BinaryNets, and outperform these methods by large margins on ImageNet, more than 16% in top-1 accuracy.

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

Code

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

By repository: community (archive-listed): 18 samples from 5 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.

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

1adrianb/binary-networks-pytorch mentioned on GitHubpytorch report
Akaza994/Binary-Quantization mentioned on GitHubpytorch report
Enderdead/Pytorch_Quantize_impls mentioned on GitHubpytorchMIT report
Jopyth/BMXNet mentioned on GitHubtf report
OneRaynyDay/xnornet mentioned on GitHub report
XinDongol/BENN-PyTorch mentioned on GitHubpytorch report
brycexu/MR-Residual-Net mentioned on GitHubpytorch report
cooooorn/pytorch-xnor-net mentioned on GitHubpytorchBSD-3-Clause report
eghouti/BinaryConnect mentioned on GitHubpytorchMIT report
gaochang-bjtu/1-bit-fqt mentioned on GitHubpytorch report
himewel/yolowell mentioned on GitHub report
hpi-xnor/BMXNet mentioned on GitHubmxnet report
hpi-xnor/BMXNet-v2 mentioned on GitHubmxnetApache-2.0 report
hwang595/cuttlefish mentioned on GitHubjax report
kai-liu001/bimacosr mentioned on GitHubpytorch report
lzj994/Binary-Quantization mentioned on GitHubpytorch report
mazc2121/boolean-nets mentioned on GitHubtfnot reachable when probed 2026-09-18 — repositories for recent papers often appear after camera-ready report
ryuz/BinaryBrain 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

18 samples harvested; 7 ran; 0 honoured the contract we drafted; 11 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.

6ran · our draft was wrong
1ran · fixture could not drive it
11unverified

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

HORQ_grad kai-liu001/bimacosr/models/quant_modules/binary_modules/xnor.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · ccf218a262d1f6ec · report
HORQ_grad_activation kai-liu001/bimacosr/models/quant_modules/binary_modules/xnor.py community (archive-listed) ran · our draft was wrong MIT (permissive) · c8ade230286737dc · report
conv3x3 lzj994/Binary-Quantization/EnResNet.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 03a0be4fb7381bd2 · report
get_model2 lzj994/Binary-Quantization/EnResNet.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · c9385e42b40d1dea · report
get_unique_devices_ 1adrianb/binary-networks-pytorch/bnn/binarize.py community (archive-listed) ran · our draft was wrong BSD-3-Clause (permissive) · 8d4d977813bb8ec8 · report
init_BinaryConv2d_XNOR_from_conv kai-liu001/bimacosr/models/quant_modules/binary_modules/xnor.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 96f39115fb9a3ff1 · report
quantize_bw lzj994/Binary-Quantization/EnResNet.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · cff17e6f91a48ebd · report
bool_to_bytes ryuz/BinaryBrain/python/binarybrain/object.py community (archive-listed) unverified MIT (permissive) · 055f72c94f40a239 · report
get_latest_path ryuz/BinaryBrain/python/binarybrain/storage.py community (archive-listed) unverified MIT (permissive) · 49193f567326cfa9 · report
get_model_list ryuz/BinaryBrain/python/binarybrain/models.py community (archive-listed) unverified MIT (permissive) · d0ee817cb142aaab · report
int_from_bytes ryuz/BinaryBrain/python/binarybrain/object.py community (archive-listed) unverified MIT (permissive) · 1557967fbeeaf682 · report
int_to_bytes ryuz/BinaryBrain/python/binarybrain/object.py community (archive-listed) unverified MIT (permissive) · 6b773115058355ce · report
is_date_string ryuz/BinaryBrain/python/binarybrain/storage.py community (archive-listed) unverified MIT (permissive) · 7feff3e3b9076ac3 · report
make_hls_lut_layer ryuz/BinaryBrain/python/binarybrain/hls.py community (archive-listed) unverified MIT (permissive) · f01a0f48df8e93a7 · report
make_lut_func_name ryuz/BinaryBrain/python/binarybrain/hls.py community (archive-listed) unverified MIT (permissive) · 23b196ab377b76e3 · report
model_creator ryuz/BinaryBrain/python/binarybrain/models.py community (archive-listed) unverified MIT (permissive) · 1d32d47a37a7c627 · report
validate gaochang-bjtu/1-bit-fqt/imagenet.py community (archive-listed) unverified MIT (permissive) · cda3783cdf085eef · report
validate 1adrianb/binary-networks-pytorch/examples/imagenet.py community (archive-listed) unverified BSD-3-Clause (permissive) · 69c03990f136c8a5 · report

Tasks

BinarizationClassification with Binary Neural NetworkGeneral Classification

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