{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/xnor-net-imagenet-classification-using-binary","title":"XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks","arxiv_id":"1603.05279","date":"2016-03-16","proceeding":null,"authors":["Mohammad Rastegari","Vicente Ordonez","Joseph Redmon","Ali Farhadi"],"abstract":"We propose two efficient approximations to standard convolutional neural\nnetworks: Binary-Weight-Networks and XNOR-Networks. In Binary-Weight-Networks,\nthe filters are approximated with binary values resulting in 32x memory saving.\nIn XNOR-Networks, both the filters and the input to convolutional layers are\nbinary. XNOR-Networks approximate convolutions using primarily binary\noperations. This results in 58x faster convolutional operations and 32x memory\nsavings. XNOR-Nets offer the possibility of running state-of-the-art networks\non CPUs (rather than GPUs) in real-time. Our binary networks are simple,\naccurate, efficient, and work on challenging visual tasks. We evaluate our\napproach on the ImageNet classification task. The classification accuracy with\na Binary-Weight-Network version of AlexNet is only 2.9% less than the\nfull-precision AlexNet (in top-1 measure). We compare our method with recent\nnetwork binarization methods, BinaryConnect and BinaryNets, and outperform\nthese methods by large margins on ImageNet, more than 16% in top-1 accuracy.","url_abs":"http://arxiv.org/abs/1603.05279v4","url_pdf":"http://arxiv.org/pdf/1603.05279v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/1adrianb/binary-networks-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/Akaza994/Binary-Quantization","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/Enderdead/Pytorch_Quantize_impls","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/Jopyth/BMXNet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"unanswered"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/OneRaynyDay/xnornet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/XinDongol/BENN-PyTorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/brycexu/MR-Residual-Net","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/cooooorn/pytorch-xnor-net","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/eghouti/BinaryConnect","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/gaochang-bjtu/1-bit-fqt","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/himewel/yolowell","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/hpi-xnor/BMXNet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"mxnet","reach":{"status":"unanswered"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/hpi-xnor/BMXNet-v2","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"mxnet","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/hwang595/cuttlefish","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/kai-liu001/bimacosr","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/lucamocerino/Binary-Neural-Networks-PyTorch-1.0","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/lzj994/Binary-Quantization","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/mazc2121/boolean-nets","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"gone","observed_at":"2026-09-18","how":"tree_404+repo_404"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/ryuz/BinaryBrain","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"xnor-net-imagenet-classification-using-binary","repo_url":"https://github.com/pminhtam/xnor_conv_pytorch_extension","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"binarization","task_name":"Binarization"},{"task_slug":"classification-with-binary-neural-network","task_name":"Classification with Binary Neural Network"},{"task_slug":"classification","task_name":"General Classification"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"grouped-convolution","method_name":"Grouped Convolution"},{"method_slug":"local-response-normalization","method_name":"Local Response Normalization"},{"method_slug":"max-pooling","method_name":"Max Pooling"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"softmax","method_name":"Softmax"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1603.05279","atlas_url":"https://app.syntology.ai/?focus=1603.05279","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1603.05279"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pminhtam/xnor_conv_pytorch_extension","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cooooorn/pytorch-xnor-net","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Akaza994/Binary-Quantization","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Jopyth/BMXNet","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/himewel/yolowell","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lzj994/Binary-Quantization","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/XinDongol/BENN-PyTorch","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mazc2121/boolean-nets","reach":{"status":"gone","observed_at":"2026-09-18","how":"tree_404+repo_404"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/brycexu/MR-Residual-Net","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/eghouti/BinaryConnect","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/gaochang-bjtu/1-bit-fqt","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hpi-xnor/BMXNet","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hpi-xnor/BMXNet-v2","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/1adrianb/binary-networks-pytorch","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hwang595/cuttlefish","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lucamocerino/Binary-Neural-Networks-PyTorch-1.0","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ryuz/BinaryBrain","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/OneRaynyDay/xnornet","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Enderdead/Pytorch_Quantize_impls","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kai-liu001/bimacosr","reach":null}],"summary":{"ran_draft_wrong":6,"ran_fixture":1,"unverified":11},"by_repo_kind":{"listed":{"samples":18,"ran":7,"repositories":5}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":3,"samples":[{"code_sha256_prefix":"ccf218a262d1f6ec","entry":"HORQ_grad","repo":"kai-liu001/bimacosr","repo_kind":"listed","path":"models/quant_modules/binary_modules/xnor.py","file_url":"https://github.com/kai-liu001/bimacosr/blob/HEAD/models/quant_modules/binary_modules/xnor.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ccf218a262d1f6ec"}},{"code_sha256_prefix":"c8ade230286737dc","entry":"HORQ_grad_activation","repo":"kai-liu001/bimacosr","repo_kind":"listed","path":"models/quant_modules/binary_modules/xnor.py","file_url":"https://github.com/kai-liu001/bimacosr/blob/HEAD/models/quant_modules/binary_modules/xnor.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c8ade230286737dc"}},{"code_sha256_prefix":"03a0be4fb7381bd2","entry":"conv3x3","repo":"lzj994/Binary-Quantization","repo_kind":"listed","path":"EnResNet.py","file_url":"https://github.com/lzj994/Binary-Quantization/blob/HEAD/EnResNet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"03a0be4fb7381bd2"}},{"code_sha256_prefix":"c9385e42b40d1dea","entry":"get_model2","repo":"lzj994/Binary-Quantization","repo_kind":"listed","path":"EnResNet.py","file_url":"https://github.com/lzj994/Binary-Quantization/blob/HEAD/EnResNet.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c9385e42b40d1dea"}},{"code_sha256_prefix":"8d4d977813bb8ec8","entry":"get_unique_devices_","repo":"1adrianb/binary-networks-pytorch","repo_kind":"listed","path":"bnn/binarize.py","file_url":"https://github.com/1adrianb/binary-networks-pytorch/blob/HEAD/bnn/binarize.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"8d4d977813bb8ec8"}},{"code_sha256_prefix":"96f39115fb9a3ff1","entry":"init_BinaryConv2d_XNOR_from_conv","repo":"kai-liu001/bimacosr","repo_kind":"listed","path":"models/quant_modules/binary_modules/xnor.py","file_url":"https://github.com/kai-liu001/bimacosr/blob/HEAD/models/quant_modules/binary_modules/xnor.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"96f39115fb9a3ff1"}},{"code_sha256_prefix":"cff17e6f91a48ebd","entry":"quantize_bw","repo":"lzj994/Binary-Quantization","repo_kind":"listed","path":"EnResNet.py","file_url":"https://github.com/lzj994/Binary-Quantization/blob/HEAD/EnResNet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cff17e6f91a48ebd"}},{"code_sha256_prefix":"055f72c94f40a239","entry":"bool_to_bytes","repo":"ryuz/BinaryBrain","repo_kind":"listed","path":"python/binarybrain/object.py","file_url":"https://github.com/ryuz/BinaryBrain/blob/HEAD/python/binarybrain/object.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"055f72c94f40a239"}},{"code_sha256_prefix":"49193f567326cfa9","entry":"get_latest_path","repo":"ryuz/BinaryBrain","repo_kind":"listed","path":"python/binarybrain/storage.py","file_url":"https://github.com/ryuz/BinaryBrain/blob/HEAD/python/binarybrain/storage.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"49193f567326cfa9"}},{"code_sha256_prefix":"d0ee817cb142aaab","entry":"get_model_list","repo":"ryuz/BinaryBrain","repo_kind":"listed","path":"python/binarybrain/models.py","file_url":"https://github.com/ryuz/BinaryBrain/blob/HEAD/python/binarybrain/models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d0ee817cb142aaab"}},{"code_sha256_prefix":"1557967fbeeaf682","entry":"int_from_bytes","repo":"ryuz/BinaryBrain","repo_kind":"listed","path":"python/binarybrain/object.py","file_url":"https://github.com/ryuz/BinaryBrain/blob/HEAD/python/binarybrain/object.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1557967fbeeaf682"}},{"code_sha256_prefix":"6b773115058355ce","entry":"int_to_bytes","repo":"ryuz/BinaryBrain","repo_kind":"listed","path":"python/binarybrain/object.py","file_url":"https://github.com/ryuz/BinaryBrain/blob/HEAD/python/binarybrain/object.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6b773115058355ce"}},{"code_sha256_prefix":"7feff3e3b9076ac3","entry":"is_date_string","repo":"ryuz/BinaryBrain","repo_kind":"listed","path":"python/binarybrain/storage.py","file_url":"https://github.com/ryuz/BinaryBrain/blob/HEAD/python/binarybrain/storage.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7feff3e3b9076ac3"}},{"code_sha256_prefix":"f01a0f48df8e93a7","entry":"make_hls_lut_layer","repo":"ryuz/BinaryBrain","repo_kind":"listed","path":"python/binarybrain/hls.py","file_url":"https://github.com/ryuz/BinaryBrain/blob/HEAD/python/binarybrain/hls.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f01a0f48df8e93a7"}},{"code_sha256_prefix":"23b196ab377b76e3","entry":"make_lut_func_name","repo":"ryuz/BinaryBrain","repo_kind":"listed","path":"python/binarybrain/hls.py","file_url":"https://github.com/ryuz/BinaryBrain/blob/HEAD/python/binarybrain/hls.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"23b196ab377b76e3"}},{"code_sha256_prefix":"1d32d47a37a7c627","entry":"model_creator","repo":"ryuz/BinaryBrain","repo_kind":"listed","path":"python/binarybrain/models.py","file_url":"https://github.com/ryuz/BinaryBrain/blob/HEAD/python/binarybrain/models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1d32d47a37a7c627"}},{"code_sha256_prefix":"cda3783cdf085eef","entry":"validate","repo":"gaochang-bjtu/1-bit-fqt","repo_kind":"listed","path":"imagenet.py","file_url":"https://github.com/gaochang-bjtu/1-bit-fqt/blob/HEAD/imagenet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cda3783cdf085eef"}},{"code_sha256_prefix":"69c03990f136c8a5","entry":"validate","repo":"1adrianb/binary-networks-pytorch","repo_kind":"listed","path":"examples/imagenet.py","file_url":"https://github.com/1adrianb/binary-networks-pytorch/blob/HEAD/examples/imagenet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"69c03990f136c8a5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}