{"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/scaling-up-exact-neural-network-compression","title":"Scaling Up Exact Neural Network Compression by ReLU Stability","arxiv_id":"2102.07804","date":"2021-02-15","proceeding":"NeurIPS 2021 12","authors":["Thiago Serra","Xin Yu","Abhinav Kumar","Srikumar Ramalingam"],"abstract":"We can compress a rectifier network while exactly preserving its underlying functionality with respect to a given input domain if some of its neurons are stable. However, current approaches to determine the stability of neurons with Rectified Linear Unit (ReLU) activations require solving or finding a good approximation to multiple discrete optimization problems. In this work, we introduce an algorithm based on solving a single optimization problem to identify all stable neurons. Our approach is on median 183 times faster than the state-of-art method on CIFAR-10, which allows us to explore exact compression on deeper (5 x 100) and wider (2 x 800) networks within minutes. For classifiers trained under an amount of L1 regularization that does not worsen accuracy, we can remove up to 56% of the connections on the CIFAR-10 dataset. The code is available at the following link, https://github.com/yuxwind/ExactCompression.","url_abs":"https://arxiv.org/abs/2102.07804v4","url_pdf":"https://arxiv.org/pdf/2102.07804v4.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":"scaling-up-exact-neural-network-compression","repo_url":"https://github.com/yuxwind/ExactCompression","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}}],"tasks":[{"task_slug":"neural-network-compression","task_name":"Neural Network Compression"}],"methods":[{"method_slug":"l1-regularization","method_name":"L1 Regularization"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2102.07804","atlas_url":"https://app.syntology.ai/?focus=2102.07804","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2102.07804"}},"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":"deterministic:regex_extraction","url":"https://github.com/yuxwind/ExactCompression","reach":{"status":"unanswered"}}],"summary":{"ran_honours":1,"ran_draft_wrong":1,"ran_fixture":1,"unverified":5},"by_repo_kind":{"official":{"samples":8,"ran":3,"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":8,"samples":[{"code_sha256_prefix":"78fd65e96ec8ebff","entry":"find_independ_rows","repo":"yuxwind/exactcompression","repo_kind":"official","path":"prune_network.py","file_url":"https://github.com/yuxwind/exactcompression/blob/HEAD/prune_network.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"78fd65e96ec8ebff"}},{"code_sha256_prefix":"f745cdc193c5f937","entry":"parse_line","repo":"yuxwind/exactcompression","repo_kind":"official","path":"get_activation_patterns.py","file_url":"https://github.com/yuxwind/exactcompression/blob/HEAD/get_activation_patterns.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f745cdc193c5f937"}},{"code_sha256_prefix":"d2734b8d652d3d28","entry":"prune_inactive_per_layer","repo":"yuxwind/exactcompression","repo_kind":"official","path":"prune_network.py","file_url":"https://github.com/yuxwind/exactcompression/blob/HEAD/prune_network.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d2734b8d652d3d28"}},{"code_sha256_prefix":"469bf48752905889","entry":"accuracy","repo":"yuxwind/exactcompression","repo_kind":"official","path":"train_fcnn.py","file_url":"https://github.com/yuxwind/exactcompression/blob/HEAD/train_fcnn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"469bf48752905889"}},{"code_sha256_prefix":"2893257a02af7980","entry":"get_features","repo":"yuxwind/exactcompression","repo_kind":"official","path":"train_fcnn.py","file_url":"https://github.com/yuxwind/exactcompression/blob/HEAD/train_fcnn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2893257a02af7980"}},{"code_sha256_prefix":"d04f5ead368dc743","entry":"parse_file","repo":"yuxwind/exactcompression","repo_kind":"official","path":"get_activation_patterns.py","file_url":"https://github.com/yuxwind/exactcompression/blob/HEAD/get_activation_patterns.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d04f5ead368dc743"}},{"code_sha256_prefix":"b386ef159cae2024","entry":"prune_active_per_layer","repo":"yuxwind/exactcompression","repo_kind":"official","path":"prune_network.py","file_url":"https://github.com/yuxwind/exactcompression/blob/HEAD/prune_network.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b386ef159cae2024"}},{"code_sha256_prefix":"43483040e905c664","entry":"validate","repo":"yuxwind/exactcompression","repo_kind":"official","path":"train_fcnn.py","file_url":"https://github.com/yuxwind/exactcompression/blob/HEAD/train_fcnn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"43483040e905c664"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}