{"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/nice-noise-injection-and-clamping-estimation","title":"NICE: Noise Injection and Clamping Estimation for Neural Network Quantization","arxiv_id":"1810.00162","date":"2018-09-29","proceeding":"ICLR 2019 5","authors":["Chaim Baskin","Natan Liss","Yoav Chai","Evgenii Zheltonozhskii","Eli Schwartz","Raja Giryes","Avi Mendelson","Alexander M. Bronstein"],"abstract":"Convolutional Neural Networks (CNN) are very popular in many fields including\ncomputer vision, speech recognition, natural language processing, to name a\nfew. Though deep learning leads to groundbreaking performance in these domains,\nthe networks used are very demanding computationally and are far from real-time\neven on a GPU, which is not power efficient and therefore does not suit low\npower systems such as mobile devices. To overcome this challenge, some\nsolutions have been proposed for quantizing the weights and activations of\nthese networks, which accelerate the runtime significantly. Yet, this\nacceleration comes at the cost of a larger error. The \\uniqname method proposed\nin this work trains quantized neural networks by noise injection and a learned\nclamping, which improve the accuracy. This leads to state-of-the-art results on\nvarious regression and classification tasks, e.g., ImageNet classification with\narchitectures such as ResNet-18/34/50 with low as 3-bit weights and\nactivations. We implement the proposed solution on an FPGA to demonstrate its\napplicability for low power real-time applications. The implementation of the\npaper is available at https://github.com/Lancer555/NICE","url_abs":"http://arxiv.org/abs/1810.00162v2","url_pdf":"http://arxiv.org/pdf/1810.00162v2.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":"nice-noise-injection-and-clamping-estimation","repo_url":"https://github.com/Lancer555/NICE","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":null,"task_name":"GPU"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"quantization","task_name":"Quantization"},{"task_slug":"speech-recognition","task_name":"Speech Recognition"},{"task_slug":"speech-recognition-1","task_name":"speech-recognition"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1810.00162","atlas_url":"https://app.syntology.ai/?focus=1810.00162","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1810.00162"}},"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/Lancer555/NICE","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":7},"by_repo_kind":{"official":{"samples":8,"ran":1,"repositories":1}},"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":0,"samples":[{"code_sha256_prefix":"dc2219edf51bea05","entry":"act_quant","repo":"Lancer555/NICE","repo_kind":"official","path":"actquant.py","file_url":"https://github.com/Lancer555/NICE/blob/HEAD/actquant.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dc2219edf51bea05"}},{"code_sha256_prefix":"528eda19fa60bac0","entry":"calc_loss","repo":"Lancer555/NICE","repo_kind":"official","path":"loss.py","file_url":"https://github.com/Lancer555/NICE/blob/HEAD/loss.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":"528eda19fa60bac0"}},{"code_sha256_prefix":"36d164db20c45f6d","entry":"conv_bn","repo":"Lancer555/NICE","repo_kind":"official","path":"models/inception_resnet_v2.py","file_url":"https://github.com/Lancer555/NICE/blob/HEAD/models/inception_resnet_v2.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":"36d164db20c45f6d"}},{"code_sha256_prefix":"c852fbd4f3361928","entry":"conv_bn","repo":"Lancer555/NICE","repo_kind":"official","path":"models/inception_v2.py","file_url":"https://github.com/Lancer555/NICE/blob/HEAD/models/inception_v2.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":"c852fbd4f3361928"}},{"code_sha256_prefix":"05f6e3f087c87014","entry":"get_dataset","repo":"Lancer555/NICE","repo_kind":"official","path":"data.py","file_url":"https://github.com/Lancer555/NICE/blob/HEAD/data.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":"05f6e3f087c87014"}},{"code_sha256_prefix":"2f9e3c652b97a3a1","entry":"mosaic_then_demosaic","repo":"Lancer555/NICE","repo_kind":"official","path":"deep_isp_utils.py","file_url":"https://github.com/Lancer555/NICE/blob/HEAD/deep_isp_utils.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":"2f9e3c652b97a3a1"}},{"code_sha256_prefix":"fb3fa2601281d3fa","entry":"mse2psnr","repo":"Lancer555/NICE","repo_kind":"official","path":"deep_isp_utils.py","file_url":"https://github.com/Lancer555/NICE/blob/HEAD/deep_isp_utils.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":"fb3fa2601281d3fa"}},{"code_sha256_prefix":"f3f332849e3331fa","entry":"to_tensor","repo":"Lancer555/NICE","repo_kind":"official","path":"deep_isp_utils.py","file_url":"https://github.com/Lancer555/NICE/blob/HEAD/deep_isp_utils.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":"f3f332849e3331fa"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}