{"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/1-lipschitz-layers-compared-memory-speed-and","title":"1-Lipschitz Layers Compared: Memory, Speed, and Certifiable Robustness","arxiv_id":"2311.16833","date":"2023-11-28","proceeding":null,"authors":["Bernd Prach","Fabio Brau","Giorgio Buttazzo","Christoph H. Lampert"],"abstract":"The robustness of neural networks against input perturbations with bounded magnitude represents a serious concern in the deployment of deep learning models in safety-critical systems. Recently, the scientific community has focused on enhancing certifiable robustness guarantees by crafting 1-Lipschitz neural networks that leverage Lipschitz bounded dense and convolutional layers. Although different methods have been proposed in the literature to achieve this goal, understanding the performance of such methods is not straightforward, since different metrics can be relevant (e.g., training time, memory usage, accuracy, certifiable robustness) for different applications. For this reason, this work provides a thorough theoretical and empirical comparison between methods by evaluating them in terms of memory usage, speed, and certifiable robust accuracy. The paper also provides some guidelines and recommendations to support the user in selecting the methods that work best depending on the available resources. We provide code at https://github.com/berndprach/1LipschitzLayersCompared.","url_abs":"https://arxiv.org/abs/2311.16833v1","url_pdf":"https://arxiv.org/pdf/2311.16833v1.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":"1-lipschitz-layers-compared-memory-speed-and","repo_url":"https://github.com/berndprach/1lipschitzlayerscompared","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.16833","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.16833"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/berndprach/1lipschitzlayerscompared","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":7,"unverified":3},"by_repo_kind":{"official":{"samples":10,"ran":7,"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":"70073c38af486064","entry":"dump_yaml","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"make_tree.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/make_tree.py","link_basis":"first_harvest_node","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":"70073c38af486064"}},{"code_sha256_prefix":"54e35f4bb46d953b","entry":"epoch_budget_estimator","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"epoch_budget_estimator.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/epoch_budget_estimator.py","link_basis":"first_harvest_node","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":"54e35f4bb46d953b"}},{"code_sha256_prefix":"8402ea08ee6f7913","entry":"get_header","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"make_tree.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/make_tree.py","link_basis":"first_harvest_node","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":"8402ea08ee6f7913"}},{"code_sha256_prefix":"019bfa57926026d3","entry":"get_model","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"make_tree.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/make_tree.py","link_basis":"first_harvest_node","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":"019bfa57926026d3"}},{"code_sha256_prefix":"fb14504d4d3d6ae1","entry":"get_url_models","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"lipnn/lip_conv_net.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/lipnn/lip_conv_net.py","link_basis":"first_harvest_node","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":"fb14504d4d3d6ae1"}},{"code_sha256_prefix":"1cb7369440b6a2f9","entry":"tensor2numpy","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"trainer/train_module.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/trainer/train_module.py","link_basis":"first_harvest_node","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":"1cb7369440b6a2f9"}},{"code_sha256_prefix":"f87136d16621a162","entry":"update_layers_dict","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"epoch_budget_estimator.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/epoch_budget_estimator.py","link_basis":"first_harvest_node","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":"f87136d16621a162"}},{"code_sha256_prefix":"d01cf17f6047ced1","entry":"conv_net","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"models/simplified_conv_net.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/models/simplified_conv_net.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":"d01cf17f6047ced1"}},{"code_sha256_prefix":"c7c9cb838427bef2","entry":"get_layers","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"models/simplified_conv_net.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/models/simplified_conv_net.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":"c7c9cb838427bef2"}},{"code_sha256_prefix":"ed1b102ff4cb8bb8","entry":"load_eco_weights","repo":"berndprach/1lipschitzlayerscompared","repo_kind":"official","path":"plot_lipschitz_constant.py","file_url":"https://github.com/berndprach/1lipschitzlayerscompared/blob/HEAD/plot_lipschitz_constant.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":"ed1b102ff4cb8bb8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}