{"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/towards-a-fuller-understanding-of-neurons-1","title":"Towards a fuller understanding of neurons with Clustered Compositional Explanations","arxiv_id":"2310.18443","date":"2023-10-27","proceeding":"NeurIPS 2023 11","authors":["Biagio La Rosa","Leilani H. Gilpin","Roberto Capobianco"],"abstract":"Compositional Explanations is a method for identifying logical formulas of concepts that approximate the neurons' behavior. However, these explanations are linked to the small spectrum of neuron activations (i.e., the highest ones) used to check the alignment, thus lacking completeness. In this paper, we propose a generalization, called Clustered Compositional Explanations, that combines Compositional Explanations with clustering and a novel search heuristic to approximate a broader spectrum of the neurons' behavior. We define and address the problems connected to the application of these methods to multiple ranges of activations, analyze the insights retrievable by using our algorithm, and propose desiderata qualities that can be used to study the explanations returned by different algorithms.","url_abs":"https://arxiv.org/abs/2310.18443v1","url_pdf":"https://arxiv.org/pdf/2310.18443v1.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":"towards-a-fuller-understanding-of-neurons-1","repo_url":"https://github.com/krlgroup/clustered-compositional-explanations","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2310.18443","atlas_url":"https://app.syntology.ai/?focus=2310.18443","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.18443"}},"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":"deterministic:regex_extraction","url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/krlgroup/clustered-compositional-explanations","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":20,"ran_honours":3,"unverified":6},"by_repo_kind":{"listed":{"samples":29,"ran":23,"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":"6e38a1a9bf49e62e","entry":"And","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6e38a1a9bf49e62e"}},{"code_sha256_prefix":"77d55b4b5690d4e1","entry":"F","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.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":"77d55b4b5690d4e1"}},{"code_sha256_prefix":"d19ee8c373497030","entry":"Leaf","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d19ee8c373497030"}},{"code_sha256_prefix":"307306f38b84eb6e","entry":"Node","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.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":"307306f38b84eb6e"}},{"code_sha256_prefix":"b078feb4ba8b2545","entry":"Not","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b078feb4ba8b2545"}},{"code_sha256_prefix":"2eb76680fde29ee0","entry":"OrderedFormula","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.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":"2eb76680fde29ee0"}},{"code_sha256_prefix":"5e67839d7dc4c8c7","entry":"UnaryNode","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5e67839d7dc4c8c7"}},{"code_sha256_prefix":"1ca87d6074add59d","entry":"build_dense_label_array","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/segmentations.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/segmentations.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":"1ca87d6074add59d"}},{"code_sha256_prefix":"c841173740b51fe3","entry":"build_numpy_category_map","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/segmentations.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/segmentations.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":"c841173740b51fe3"}},{"code_sha256_prefix":"62e245e9fea48980","entry":"build_ranges_from_clusters","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/activation_utils.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/activation_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":"62e245e9fea48980"}},{"code_sha256_prefix":"8904ea91efc13ec0","entry":"compute_hits","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8904ea91efc13ec0"}},{"code_sha256_prefix":"51278ffc0e50fce0","entry":"compute_hits","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/metrics.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/metrics.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":"51278ffc0e50fce0"}},{"code_sha256_prefix":"d9cbb5def766dac8","entry":"extract_mask","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/mask_utils.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/mask_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":"d9cbb5def766dac8"}},{"code_sha256_prefix":"29d583b830de2e63","entry":"get_mask_type","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/mask_utils.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/mask_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":"29d583b830de2e63"}},{"code_sha256_prefix":"93c52c7617a3d277","entry":"get_rectangles_overlap","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/heuristics.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/heuristics.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":"93c52c7617a3d277"}},{"code_sha256_prefix":"51e482d6b1330aa9","entry":"hook","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/model_utils.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/model_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":"51e482d6b1330aa9"}},{"code_sha256_prefix":"130670bcfa93f2d8","entry":"index_has_any_data","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/segmentations.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/segmentations.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":"130670bcfa93f2d8"}},{"code_sha256_prefix":"6aee6866c4385318","entry":"iou","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6aee6866c4385318"}},{"code_sha256_prefix":"084259c7a0ea2d61","entry":"load_model_from_settings","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/model_utils.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/model_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":"084259c7a0ea2d61"}},{"code_sha256_prefix":"6f526af36b5ca85d","entry":"load_sparse_masks","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/mask_utils.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/mask_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":"6f526af36b5ca85d"}},{"code_sha256_prefix":"b2a19cb38c877ae0","entry":"set_seed","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/utils.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/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":"b2a19cb38c877ae0"}},{"code_sha256_prefix":"e602316fb47c122d","entry":"sparse_to_torch","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e602316fb47c122d"}},{"code_sha256_prefix":"e98d8f1b76401340","entry":"torch_to_sparse","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/utils.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/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":"e98d8f1b76401340"}},{"code_sha256_prefix":"e2b83fbe48e387a5","entry":"Or","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.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":"e2b83fbe48e387a5"}},{"code_sha256_prefix":"4cbadf168b410b2a","entry":"beam_search","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.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":"4cbadf168b410b2a"}},{"code_sha256_prefix":"f68205752587488c","entry":"compute_bitmaps","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/activation_utils.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/activation_utils.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":"f68205752587488c"}},{"code_sha256_prefix":"90164d2b4896308d","entry":"compute_hash_value","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.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":"90164d2b4896308d"}},{"code_sha256_prefix":"e83325ca92154c23","entry":"get_formula_mask","repo":"krlgroup/clustered-compositional-explanations","repo_kind":"listed","path":"src/heuristic_search.py","file_url":"https://github.com/krlgroup/clustered-compositional-explanations/blob/HEAD/src/heuristic_search.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":"e83325ca92154c23"}},{"code_sha256_prefix":"95abb69df3bd1d4e","entry":"get_formula_str","repo":"KRLGroup/Clustered-Compositional-Explanations","repo_kind":"listed","path":"src/formula.py","file_url":"https://github.com/KRLGroup/Clustered-Compositional-Explanations/blob/HEAD/src/formula.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":"95abb69df3bd1d4e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}