{"about":{"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.","site":"https://codewithpapers.app","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","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/code/margin-loss","entry":"margin_loss","source":"Syntology graph, per-sample; not an archive number","read_at":"2026-10-05T00:36:11+00:00","claim":"Names are grouped by exact entry-name string. Same-named routines are NOT asserted to be equivalent; 'ran' means executed on a synthesized fixture, not correctness. n_samples_ran = sum of by_status over every status except 'unverified' (ran_draft_wrong and ran_fixture are failures of Syntology's instrument, not of the code); n_papers_ran = papers with at least one such sample = n_papers_ran_no_instrument_failure (papers with a run with no instrument failure) + n_papers_ran_instrument_only (papers where every run was a failure of Syntology's instrument); n_samples_ran = n_samples_ran_checked (honoured, violated, no contract) + n_samples_instrument (failures of Syntology's instrument, not of the code).","status_vocabulary":{"ran_honours":"ran, honoured the contract we drafted","ran_violates":"ran, violated the contract we drafted","ran_draft_wrong":"ran; our contract draft was wrong, not the code","ran_fixture":"ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)","ran":"ran on a synthesized input","unverified":"unverified (harvested, no recorded run)"},"n_papers":13,"n_papers_ran":11,"n_papers_ran_no_instrument_failure":5,"n_papers_ran_instrument_only":6,"units":"n_samples, n_samples_ran, n_samples_fingerprinted and by_status count distinct code bodies (code_sha256); n_places and n_places_pointer_only count places, one per (paper, code body) pair, which is also the unit of the samples list","n_samples":13,"n_samples_ran":10,"n_samples_constructed":0,"n_samples_ran_checked":5,"n_samples_instrument":5,"n_samples_unverified":3,"n_samples_fingerprinted":0,"n_places":16,"n_places_pointer_only":5,"n_places_pointer_only_link_open":1,"inline_ok_is":"inline_ok is true only when both licence gates allow Syntology to serve this code's text: this paper's link (inline_ok_link, from the licence of this paper's copy) and the stored copy of the same code that Syntology serves, which may have been first harvested from another repository. withheld_clause is Syntology's own wording of which gate keeps the text a pointer and why, and is null when inline_ok is true. This site shows no code text either way; n_places_pointer_only_link_open counts the places where this paper's link allows the text and the stored copy does not","by_status":{"ran_honours":0,"ran_violates":0,"ran_draft_wrong":4,"ran_fixture":1,"ran":5,"unverified":3},"key_notes":{"n_samples_ran_checked":"legacy name, kept unchanged so existing readers do not break: it counts the samples that ran with no instrument failure (honoured, violated, and ran with no contract checked); it does not mean a contract was checked, and the pages print it as 'K with no instrument failure', not 'K checked'","n_samples_constructed":"a sub-count of the samples that ran, never subtracted from them and never a failure: an executed sample whose run returned an instance of its own class (fixture_out_type equals the entry name): the run built an object and did not compute a result (Syntology's RAN record, counts.constructed)"},"syntology":{"atlas_url":null,"mcp":null,"mcp_per_sample":{"tool":"get_code","arguments_in":"samples[].mcp_get_code"},"developers":"https://syntology.ai/developers"},"samples":[{"arxiv_id":"2506.04001","arxiv_id_is_arxiv":true,"paper":null,"title":"arXiv:2506.04001","date":null,"month_inferred_from_arxiv_id":"2025-06","title_source":null,"repo":"jihan4431/CARL","path":"utils.py","file_url":"https://github.com/jihan4431/CARL/blob/HEAD/utils.py","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"0d8b9f55cd9c0593","code_sha256_prefix":"0d8b9f55cd9c0593","mcp_get_code":{"code_sha256":"0d8b9f55cd9c0593"}},{"arxiv_id":"2505.15174","arxiv_id_is_arxiv":true,"paper":"/paper/enhancing-certified-robustness-via-block","title":"Enhancing Certified Robustness via Block Reflector Orthogonal Layers and Logit Annealing Loss","date":"2025-05-21","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"ntuaislab/bronet","path":"bronet/models/margin_layer.py","file_url":"https://github.com/ntuaislab/bronet/blob/HEAD/bronet/models/margin_layer.py","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"754099232315fbb5","code_sha256_prefix":"754099232315fbb5","mcp_get_code":{"code_sha256":"754099232315fbb5"}},{"arxiv_id":"2210.04871","arxiv_id_is_arxiv":true,"paper":"/paper/certified-training-small-boxes-are-all-you","title":"Certified Training: Small Boxes are All You Need","date":"2022-10-10","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"eth-sri/sabr","path":"src/adv_attack.py","file_url":"https://github.com/eth-sri/sabr/blob/HEAD/src/adv_attack.py","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"aaafdea9b3166e25","code_sha256_prefix":"aaafdea9b3166e25","mcp_get_code":{"code_sha256":"aaafdea9b3166e25"}},{"arxiv_id":"2203.05154","arxiv_id_is_arxiv":true,"paper":"/paper/practical-evaluation-of-adversarial","title":"Practical Evaluation of Adversarial Robustness via Adaptive Auto Attack","date":"2022-03-10","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"liuye6666/adaptive_auto_attack","path":"Adaptive_Auto_Attack_main.py","file_url":"https://github.com/liuye6666/adaptive_auto_attack/blob/HEAD/Adaptive_Auto_Attack_main.py","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"c832edfa8ce9c69d","code_sha256_prefix":"c832edfa8ce9c69d","mcp_get_code":{"code_sha256":"c832edfa8ce9c69d"}},{"arxiv_id":"2106.03314","arxiv_id_is_arxiv":true,"paper":"/paper/measuring-generalization-with-optimal","title":"Measuring Generalization with Optimal Transport","date":"2021-06-07","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"chingyaoc/kv-margin","path":"kV-Margin/complexity.py","file_url":"https://github.com/chingyaoc/kv-margin/blob/HEAD/kV-Margin/complexity.py","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"3f5c11b768870046","code_sha256_prefix":"3f5c11b768870046","mcp_get_code":{"code_sha256":"3f5c11b768870046"}},{"arxiv_id":"2007.04118","arxiv_id_is_arxiv":true,"paper":"/paper/delving-into-the-adversarial-robustness-on","title":"RobFR: Benchmarking Adversarial Robustness on Face Recognition","date":"2020-07-08","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"thu-ml/realsafe","path":"ares/utils/loss.py","file_url":"https://github.com/thu-ml/realsafe/blob/HEAD/ares/utils/loss.py","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"b460ad8e4633515e","code_sha256_prefix":"b460ad8e4633515e","mcp_get_code":{"code_sha256":"b460ad8e4633515e"}},{"arxiv_id":"2006.13726","arxiv_id_is_arxiv":true,"paper":"/paper/imbalanced-gradients-a-new-cause-of","title":"Imbalanced Gradients: A Subtle Cause of Overestimated Adversarial Robustness","date":"2020-06-24","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"hanxunh/mdattack","path":"attacks/PGD.py","file_url":"https://github.com/hanxunh/mdattack/blob/HEAD/attacks/PGD.py","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"inline_ok_link":true,"withheld_clause":"this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ermongroup/ODS, and GitHub detected no licence in that repository when it was checked","code_sha256":"20c10282e0a610a7","code_sha256_prefix":"20c10282e0a610a7","mcp_get_code":{"code_sha256":"20c10282e0a610a7"}},{"arxiv_id":"2003.06878","arxiv_id_is_arxiv":true,"paper":"/paper/output-diversified-initialization-for","title":"Diversity can be Transferred: Output Diversification for White- and Black-box Attacks","date":"2020-03-15","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"ermongroup/ODS","path":"blackbox_simbaODS.py","file_url":"https://github.com/ermongroup/ODS/blob/HEAD/blackbox_simbaODS.py","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"inline_ok_link":false,"withheld_clause":"GitHub detected no licence in this paper's repository, ermongroup/ODS when it was checked","code_sha256":"e7def3ce17dd2577","code_sha256_prefix":"e7def3ce17dd2577","mcp_get_code":{"code_sha256":"e7def3ce17dd2577"}},{"arxiv_id":"2003.06878","arxiv_id_is_arxiv":true,"paper":"/paper/output-diversified-initialization-for","title":"Diversity can be Transferred: Output Diversification for White- and Black-box Attacks","date":"2020-03-15","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"ermongroup/ODS","path":"whitebox_pgd_attack_cifar10_ODI.py","file_url":"https://github.com/ermongroup/ODS/blob/HEAD/whitebox_pgd_attack_cifar10_ODI.py","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"inline_ok_link":false,"withheld_clause":"GitHub detected no licence in this paper's repository, ermongroup/ODS when it was checked","code_sha256":"20c10282e0a610a7","code_sha256_prefix":"20c10282e0a610a7","mcp_get_code":{"code_sha256":"20c10282e0a610a7"}},{"arxiv_id":"1905.07121","arxiv_id_is_arxiv":true,"paper":"/paper/simple-black-box-adversarial-attacks-1","title":"Simple Black-box Adversarial Attacks","date":"2019-05-17","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":null,"path":"","file_url":null,"status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"inline_ok_link":false,"withheld_clause":"this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it","code_sha256":"e7def3ce17dd2577","code_sha256_prefix":"e7def3ce17dd2577","mcp_get_code":{"code_sha256":"e7def3ce17dd2577"}},{"arxiv_id":"1905.07121","arxiv_id_is_arxiv":true,"paper":"/paper/simple-black-box-adversarial-attacks-1","title":"Simple Black-box Adversarial Attacks","date":"2019-05-17","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":null,"path":"","file_url":null,"status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":null,"inline_ok":false,"inline_ok_link":false,"withheld_clause":"this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it","code_sha256":"20c10282e0a610a7","code_sha256_prefix":"20c10282e0a610a7","mcp_get_code":{"code_sha256":"20c10282e0a610a7"}},{"arxiv_id":"1904.09546","arxiv_id_is_arxiv":true,"paper":"/paper/deepcaps-going-deeper-with-capsule-networks","title":"DeepCaps: Going Deeper with Capsule Networks","date":"2019-04-21","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"mfarhadi98/Use-Capsule-Networks-for-kddcup","path":"utils.py","file_url":"https://github.com/mfarhadi98/Use-Capsule-Networks-for-kddcup/blob/HEAD/utils.py","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"2ae5d6a1a27cfeef","code_sha256_prefix":"2ae5d6a1a27cfeef","mcp_get_code":{"code_sha256":"2ae5d6a1a27cfeef"}},{"arxiv_id":"1807.10108","arxiv_id_is_arxiv":true,"paper":"/paper/effects-of-degradations-on-deep-neural","title":"Effects of Degradations on Deep Neural Network Architectures","date":"2018-07-26","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"prasunroy/cnn-on-degraded-images","path":"train_capsnet.py","file_url":"https://github.com/prasunroy/cnn-on-degraded-images/blob/HEAD/train_capsnet.py","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"02c876eae955d0f8","code_sha256_prefix":"02c876eae955d0f8","mcp_get_code":{"code_sha256":"02c876eae955d0f8"}},{"arxiv_id":"1710.09829","arxiv_id_is_arxiv":true,"paper":"/paper/dynamic-routing-between-capsules","title":"Dynamic Routing Between Capsules","date":"2017-10-26","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"naturomics/CapsLayer","path":"capslayer/ops/losses/losses.py","file_url":"https://github.com/naturomics/CapsLayer/blob/HEAD/capslayer/ops/losses/losses.py","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"8278b9f74e0d99c0","code_sha256_prefix":"8278b9f74e0d99c0","mcp_get_code":{"code_sha256":"8278b9f74e0d99c0"}},{"arxiv_id":"1710.09829","arxiv_id_is_arxiv":true,"paper":"/paper/dynamic-routing-between-capsules","title":"Dynamic Routing Between Capsules","date":"2017-10-26","month_inferred_from_arxiv_id":null,"title_source":"archive","repo":"XifengGuo/CapsNet-Keras","path":"capsulenet.py","file_url":"https://github.com/XifengGuo/CapsNet-Keras/blob/HEAD/capsulenet.py","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"c5ff48b72a93fec5","code_sha256_prefix":"c5ff48b72a93fec5","mcp_get_code":{"code_sha256":"c5ff48b72a93fec5"}},{"arxiv_id":"aaai_28565","arxiv_id_is_arxiv":false,"paper":null,"title":"AAAI id aaai_28565","date":null,"month_inferred_from_arxiv_id":null,"title_source":null,"repo":"zhangxulu1996/Compositional-Inversion","path":"train_compositional_textual_inversion.py","file_url":"https://github.com/zhangxulu1996/Compositional-Inversion/blob/HEAD/train_compositional_textual_inversion.py","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"code_sha256":"c71ca95da295a5eb","code_sha256_prefix":"c71ca95da295a5eb","mcp_get_code":{"code_sha256":"c71ca95da295a5eb"}}],"record_sha256":"da151afb0e0d38e66951a8b53099c2bdd27acdac7f76f1380f1e1079e5777e0d","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}