{"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/certified-training-small-boxes-are-all-you","title":"Certified Training: Small Boxes are All You Need","arxiv_id":"2210.04871","date":"2022-10-10","proceeding":null,"authors":["Mark Niklas Müller","Franziska Eckert","Marc Fischer","Martin Vechev"],"abstract":"To obtain, deterministic guarantees of adversarial robustness, specialized training methods are used. We propose, SABR, a novel such certified training method, based on the key insight that propagating interval bounds for a small but carefully selected subset of the adversarial input region is sufficient to approximate the worst-case loss over the whole region while significantly reducing approximation errors. We show in an extensive empirical evaluation that SABR outperforms existing certified defenses in terms of both standard and certifiable accuracies across perturbation magnitudes and datasets, pointing to a new class of certified training methods promising to alleviate the robustness-accuracy trade-off.","url_abs":"https://arxiv.org/abs/2210.04871v2","url_pdf":"https://arxiv.org/pdf/2210.04871v2.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":"certified-training-small-boxes-are-all-you","repo_url":"https://github.com/eth-sri/sabr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"adversarial-robustness","task_name":"Adversarial Robustness"},{"task_slug":"all","task_name":"All"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2210.04871","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2210.04871"}},"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/eth-sri/sabr","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":12},"by_repo_kind":{"official":{"samples":12,"ran":0,"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":"00837781338cdb92","entry":"add_bounds","repo":"eth-sri/sabr","repo_kind":"official","path":"src/AIDomains/abstract_layers.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/AIDomains/abstract_layers.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":"00837781338cdb92"}},{"code_sha256_prefix":"4f19a6360fe819ae","entry":"clamp_image","repo":"eth-sri/sabr","repo_kind":"official","path":"src/AIDomains/ai_util.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/AIDomains/ai_util.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":"4f19a6360fe819ae"}},{"code_sha256_prefix":"a87633e5881b9360","entry":"clamp_image_const_error","repo":"eth-sri/sabr","repo_kind":"official","path":"src/AIDomains/ai_util.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/AIDomains/ai_util.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":"a87633e5881b9360"}},{"code_sha256_prefix":"a91b097e5d9d19bf","entry":"cut_dataset","repo":"eth-sri/sabr","repo_kind":"official","path":"src/datasets.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/datasets.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":"a91b097e5d9d19bf"}},{"code_sha256_prefix":"ddb73c8c7df5ff68","entry":"getShapeConv","repo":"eth-sri/sabr","repo_kind":"official","path":"src/AIDomains/concrete_layers.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/AIDomains/concrete_layers.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":"ddb73c8c7df5ff68"}},{"code_sha256_prefix":"998ab044ce94c5ec","entry":"get_data_loader","repo":"eth-sri/sabr","repo_kind":"official","path":"src/datasets.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/datasets.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":"998ab044ce94c5ec"}},{"code_sha256_prefix":"ab8fc811cca9ec25","entry":"get_layer_sizes","repo":"eth-sri/sabr","repo_kind":"official","path":"src/AIDomains/deeppoly.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/AIDomains/deeppoly.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":"ab8fc811cca9ec25"}},{"code_sha256_prefix":"caeec8b2bd7730d3","entry":"get_params","repo":"eth-sri/sabr","repo_kind":"official","path":"src/util.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/util.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":"caeec8b2bd7730d3"}},{"code_sha256_prefix":"c43d1405c25d64f6","entry":"get_random_patch_corners","repo":"eth-sri/sabr","repo_kind":"official","path":"src/util.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/util.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":"c43d1405c25d64f6"}},{"code_sha256_prefix":"dec9be77666cc148","entry":"head_from_bounds","repo":"eth-sri/sabr","repo_kind":"official","path":"src/AIDomains/ai_util.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/AIDomains/ai_util.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":"dec9be77666cc148"}},{"code_sha256_prefix":"aaafdea9b3166e25","entry":"margin_loss","repo":"eth-sri/sabr","repo_kind":"official","path":"src/adv_attack.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/adv_attack.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":"aaafdea9b3166e25"}},{"code_sha256_prefix":"ebff8310f990773a","entry":"regularize","repo":"eth-sri/sabr","repo_kind":"official","path":"src/util.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/util.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":"ebff8310f990773a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}