{"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/deformable-butterfly-a-highly-structured-and-1","title":"Deformable Butterfly: A Highly Structured and Sparse Linear Transform","arxiv_id":"2203.13556","date":"2022-03-25","proceeding":"NeurIPS 2021 12","authors":["Rui Lin","Jie Ran","King Hung Chiu","Graziano Chesi","Ngai Wong"],"abstract":"We introduce a new kind of linear transform named Deformable Butterfly (DeBut) that generalizes the conventional butterfly matrices and can be adapted to various input-output dimensions. It inherits the fine-to-coarse-grained learnable hierarchy of traditional butterflies and when deployed to neural networks, the prominent structures and sparsity in a DeBut layer constitutes a new way for network compression. We apply DeBut as a drop-in replacement of standard fully connected and convolutional layers, and demonstrate its superiority in homogenizing a neural network and rendering it favorable properties such as light weight and low inference complexity, without compromising accuracy. The natural complexity-accuracy tradeoff arising from the myriad deformations of a DeBut layer also opens up new rooms for analytical and practical research. The codes and Appendix are publicly available at: https://github.com/ruilin0212/DeBut.","url_abs":"https://arxiv.org/abs/2203.13556v1","url_pdf":"https://arxiv.org/pdf/2203.13556v1.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":"deformable-butterfly-a-highly-structured-and-1","repo_url":"https://github.com/ruilin0212/debut","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2203.13556","atlas_url":"https://app.syntology.ai/?focus=2203.13556","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2203.13556"}},"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/ruilin0212/debut","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":6,"ran_draft_wrong":3,"unverified":2},"by_repo_kind":{"official":{"samples":11,"ran":9,"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":"de8cb4badd16d59e","entry":"Find_Blocks","repo":"ruilin0212/debut","repo_kind":"official","path":"ALS_Initialization/utils_init.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/ALS_Initialization/utils_init.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"de8cb4badd16d59e"}},{"code_sha256_prefix":"7f5f67a003e408a1","entry":"Generate_Block","repo":"ruilin0212/debut","repo_kind":"official","path":"ALS_Initialization/utils_init.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/ALS_Initialization/utils_init.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7f5f67a003e408a1"}},{"code_sha256_prefix":"928f819c11e05b43","entry":"Generate_Chain","repo":"ruilin0212/debut","repo_kind":"official","path":"ALS_Initialization/utils_init.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/ALS_Initialization/utils_init.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"928f819c11e05b43"}},{"code_sha256_prefix":"584a7d17454b9f77","entry":"accuracy","repo":"ruilin0212/debut","repo_kind":"official","path":"Fine_tuning/utils/common.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/Fine_tuning/utils/common.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"584a7d17454b9f77"}},{"code_sha256_prefix":"2a80220dabcb742a","entry":"conv1x1","repo":"ruilin0212/debut","repo_kind":"official","path":"Fine_tuning/models/resnet.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/Fine_tuning/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2a80220dabcb742a"}},{"code_sha256_prefix":"600ff2c45e0de056","entry":"conv3x3","repo":"ruilin0212/debut","repo_kind":"official","path":"Fine_tuning/models/resnet.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/Fine_tuning/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"600ff2c45e0de056"}},{"code_sha256_prefix":"8d7ec010c29e813b","entry":"format_time","repo":"ruilin0212/debut","repo_kind":"official","path":"Fine_tuning/utils/common.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/Fine_tuning/utils/common.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8d7ec010c29e813b"}},{"code_sha256_prefix":"74079da8f8ca5a1c","entry":"get_logger","repo":"ruilin0212/debut","repo_kind":"official","path":"Fine_tuning/utils/common.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/Fine_tuning/utils/common.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"74079da8f8ca5a1c"}},{"code_sha256_prefix":"5d8c055976e6aef2","entry":"vgg_16_bn","repo":"ruilin0212/debut","repo_kind":"official","path":"ALS_Initialization/models/vgg.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/ALS_Initialization/models/vgg.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5d8c055976e6aef2"}},{"code_sha256_prefix":"745df5ddce3afb3f","entry":"deform_butterfly_mult_torch","repo":"ruilin0212/debut","repo_kind":"official","path":"Fine_tuning/debut/debut.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/Fine_tuning/debut/debut.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":"745df5ddce3afb3f"}},{"code_sha256_prefix":"cfeda1621764d54b","entry":"process_als_weight","repo":"ruilin0212/debut","repo_kind":"official","path":"Fine_tuning/utils/als_process.py","file_url":"https://github.com/ruilin0212/debut/blob/HEAD/Fine_tuning/utils/als_process.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":"cfeda1621764d54b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}