{"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/provable-guarantees-for-model-performance-via","title":"Compact Proofs of Model Performance via Mechanistic Interpretability","arxiv_id":"2406.11779","date":"2024-06-17","proceeding":null,"authors":["Jason Gross","Rajashree Agrawal","Thomas Kwa","Euan Ong","Chun Hei Yip","Alex Gibson","Soufiane Noubir","Lawrence Chan"],"abstract":"We propose using mechanistic interpretability -- techniques for reverse engineering model weights into human-interpretable algorithms -- to derive and compactly prove formal guarantees on model performance. We prototype this approach by formally proving lower bounds on the accuracy of 151 small transformers trained on a Max-of-$K$ task. We create 102 different computer-assisted proof strategies and assess their length and tightness of bound on each of our models. Using quantitative metrics, we find that shorter proofs seem to require and provide more mechanistic understanding. Moreover, we find that more faithful mechanistic understanding leads to tighter performance bounds. We confirm these connections by qualitatively examining a subset of our proofs. Finally, we identify compounding structureless noise as a key challenge for using mechanistic interpretability to generate compact proofs on model performance.","url_abs":"https://arxiv.org/abs/2406.11779v10","url_pdf":"https://arxiv.org/pdf/2406.11779v10.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":"provable-guarantees-for-model-performance-via","repo_url":"https://github.com/JasonGross/guarantees-based-mechanistic-interpretability","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"provable-guarantees-for-model-performance-via","repo_url":"https://github.com/jasongross/guarantees-based-mechanistic-interpretability-with-data","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"model","task_name":"model"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2406.11779","atlas_url":"https://app.syntology.ai/?focus=2406.11779","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.11779"}},"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/JasonGross/guarantees-based-mechanistic-interpretability","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jasongross/guarantees-based-mechanistic-interpretability-with-data","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":8,"unverified":2},"by_repo_kind":{"official":{"samples":10,"ran":8,"repositories":2}},"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":"a2d6312ed019908d","entry":"calculate_batch_probabilities","repo":"jasongross/guarantees-based-mechanistic-interpretability-with-data","repo_kind":"official","path":"gbmi/exp_indhead/data_utils.py","file_url":"https://github.com/jasongross/guarantees-based-mechanistic-interpretability-with-data/blob/HEAD/gbmi/exp_indhead/data_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a2d6312ed019908d"}},{"code_sha256_prefix":"afa604c69b95c968","entry":"cat_bos_token","repo":"jasongross/guarantees-based-mechanistic-interpretability-with-data","repo_kind":"official","path":"gbmi/exp_indhead/data_utils.py","file_url":"https://github.com/jasongross/guarantees-based-mechanistic-interpretability-with-data/blob/HEAD/gbmi/exp_indhead/data_utils.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":"afa604c69b95c968"}},{"code_sha256_prefix":"1e8d0fdaa8ed2d56","entry":"check_source_in_git_dir","repo":"JasonGross/guarantees-based-mechanistic-interpretability","repo_kind":"official","path":"etc/setup-alternates.py","file_url":"https://github.com/JasonGross/guarantees-based-mechanistic-interpretability/blob/HEAD/etc/setup-alternates.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":"1e8d0fdaa8ed2d56"}},{"code_sha256_prefix":"88f43fafc05219e7","entry":"hf_sanitize","repo":"JasonGross/guarantees-based-mechanistic-interpretability","repo_kind":"official","path":"notebooks_jason/max_of_K_all_models.py","file_url":"https://github.com/JasonGross/guarantees-based-mechanistic-interpretability/blob/HEAD/notebooks_jason/max_of_K_all_models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"88f43fafc05219e7"}},{"code_sha256_prefix":"608d7669ae6b34d1","entry":"hook_function_attention","repo":"JasonGross/guarantees-based-mechanistic-interpretability","repo_kind":"official","path":"notebooks_soufiane/FineTuneSubtract.py","file_url":"https://github.com/JasonGross/guarantees-based-mechanistic-interpretability/blob/HEAD/notebooks_soufiane/FineTuneSubtract.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":"608d7669ae6b34d1"}},{"code_sha256_prefix":"415042a6d0a48f2d","entry":"increment_zero_counts","repo":"jasongross/guarantees-based-mechanistic-interpretability-with-data","repo_kind":"official","path":"gbmi/exp_indhead/data_utils.py","file_url":"https://github.com/jasongross/guarantees-based-mechanistic-interpretability-with-data/blob/HEAD/gbmi/exp_indhead/data_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"415042a6d0a48f2d"}},{"code_sha256_prefix":"42b722deb4782413","entry":"noise","repo":"JasonGross/guarantees-based-mechanistic-interpretability","repo_kind":"official","path":"gbmi/exp_indhead/realmodeltest.py","file_url":"https://github.com/JasonGross/guarantees-based-mechanistic-interpretability/blob/HEAD/gbmi/exp_indhead/realmodeltest.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"42b722deb4782413"}},{"code_sha256_prefix":"90f877ab0478795e","entry":"resolve_git_dir_recursively","repo":"JasonGross/guarantees-based-mechanistic-interpretability","repo_kind":"official","path":"etc/setup-alternates.py","file_url":"https://github.com/JasonGross/guarantees-based-mechanistic-interpretability/blob/HEAD/etc/setup-alternates.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":"90f877ab0478795e"}},{"code_sha256_prefix":"0224309a1eec4045","entry":"get_git_dir","repo":"JasonGross/guarantees-based-mechanistic-interpretability","repo_kind":"official","path":"etc/setup-alternates.py","file_url":"https://github.com/JasonGross/guarantees-based-mechanistic-interpretability/blob/HEAD/etc/setup-alternates.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":"0224309a1eec4045"}},{"code_sha256_prefix":"b4e6f11d1f2cffc0","entry":"maybe_parallel_map","repo":"JasonGross/guarantees-based-mechanistic-interpretability","repo_kind":"official","path":"notebooks_jason/max_of_4_all_models.py","file_url":"https://github.com/JasonGross/guarantees-based-mechanistic-interpretability/blob/HEAD/notebooks_jason/max_of_4_all_models.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":"b4e6f11d1f2cffc0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}