{"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/understanding-inter-concept-relationships-in","title":"Understanding Inter-Concept Relationships in Concept-Based Models","arxiv_id":"2405.18217","date":"2024-05-28","proceeding":null,"authors":["Naveen Raman","Mateo Espinosa Zarlenga","Mateja Jamnik"],"abstract":"Concept-based explainability methods provide insight into deep learning systems by constructing explanations using human-understandable concepts. While the literature on human reasoning demonstrates that we exploit relationships between concepts when solving tasks, it is unclear whether concept-based methods incorporate the rich structure of inter-concept relationships. We analyse the concept representations learnt by concept-based models to understand whether these models correctly capture inter-concept relationships. First, we empirically demonstrate that state-of-the-art concept-based models produce representations that lack stability and robustness, and such methods fail to capture inter-concept relationships. Then, we develop a novel algorithm which leverages inter-concept relationships to improve concept intervention accuracy, demonstrating how correctly capturing inter-concept relationships can improve downstream tasks.","url_abs":"https://arxiv.org/abs/2405.18217v1","url_pdf":"https://arxiv.org/pdf/2405.18217v1.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":"understanding-inter-concept-relationships-in","repo_url":"https://github.com/naveenr414/Concept-Learning","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2405.18217","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.18217"}},"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/naveenr414/Concept-Learning","reach":{"status":"ok"}}],"summary":{"ran":17,"unverified":11},"by_repo_kind":{"official":{"samples":28,"ran":17,"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":28,"samples":[{"code_sha256_prefix":"b46d787c7739ef2d","entry":"add_gaussian_noise","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/dataset.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b46d787c7739ef2d"}},{"code_sha256_prefix":"4ff918536e7f785c","entry":"compute_accuracy","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"cem/cem/models/cbm.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/cem/cem/models/cbm.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4ff918536e7f785c"}},{"code_sha256_prefix":"f2a2c7786ba1a01d","entry":"compute_bin_accuracy","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"cem/cem/models/cbm.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/cem/cem/models/cbm.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f2a2c7786ba1a01d"}},{"code_sha256_prefix":"56bec599c7b2bf6a","entry":"create_distance_metric","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/util.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"56bec599c7b2bf6a"}},{"code_sha256_prefix":"8c5436aaf4f86091","entry":"create_encoder","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/models.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8c5436aaf4f86091"}},{"code_sha256_prefix":"93b997ef9a011370","entry":"create_junk_image","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/dataset.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"93b997ef9a011370"}},{"code_sha256_prefix":"a73a5e62b564b3e1","entry":"create_max_hierarchy","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/hierarchy.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/hierarchy.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a73a5e62b564b3e1"}},{"code_sha256_prefix":"850b98940a7a4f09","entry":"create_min_hierarchy","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/hierarchy.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/hierarchy.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"850b98940a7a4f09"}},{"code_sha256_prefix":"3a4aa8a1db711a49","entry":"create_skipgram_architecture","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/models.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3a4aa8a1db711a49"}},{"code_sha256_prefix":"b99e0f3d4a50ad41","entry":"create_ward_hierarchy","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/hierarchy.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/hierarchy.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b99e0f3d4a50ad41"}},{"code_sha256_prefix":"8deaafbaa1d280ab","entry":"diff_xor","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"cem/experiments/cbm_models.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/cem/experiments/cbm_models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8deaafbaa1d280ab"}},{"code_sha256_prefix":"4a29f7b0efb6f11e","entry":"fetch_imagenet_class","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/download_data.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/download_data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4a29f7b0efb6f11e"}},{"code_sha256_prefix":"a8d95e20fb547e39","entry":"filter_data_labels","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/plots.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/plots.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a8d95e20fb547e39"}},{"code_sha256_prefix":"aa7458eb229efdef","entry":"find_average_distances","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/util.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aa7458eb229efdef"}},{"code_sha256_prefix":"d398629f19219bb0","entry":"flip_concept_labels","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/dataset.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d398629f19219bb0"}},{"code_sha256_prefix":"267148a8891a5bc3","entry":"generate_labels_from_activation","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/plots.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/plots.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"267148a8891a5bc3"}},{"code_sha256_prefix":"62c53a5a76b81541","entry":"row_to_fix_2","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/concept_vectors.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/concept_vectors.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"62c53a5a76b81541"}},{"code_sha256_prefix":"625948c28aa9ff09","entry":"compute_accuracy","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"cem/cem/models/cem.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/cem/cem/models/cem.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"625948c28aa9ff09"}},{"code_sha256_prefix":"cf6c255d26875519","entry":"create_concept2vec","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/create_vectors.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/create_vectors.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cf6c255d26875519"}},{"code_sha256_prefix":"ca99a4e19389758e","entry":"create_encoder_model","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/models.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ca99a4e19389758e"}},{"code_sha256_prefix":"264dbbc5f2804efd","entry":"embedding_distance","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/metrics.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"264dbbc5f2804efd"}},{"code_sha256_prefix":"3ee9fed128c703db","entry":"find_paired_distance","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/util.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3ee9fed128c703db"}},{"code_sha256_prefix":"f5087556ea112a96","entry":"get_fix_data","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/concept_vectors.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/concept_vectors.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f5087556ea112a96"}},{"code_sha256_prefix":"f1a0fad179772085","entry":"get_top_k_pairs","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/metrics.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f1a0fad179772085"}},{"code_sha256_prefix":"b18555b57615e2e7","entry":"initialize_model","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"cem/experiments/cbm_models.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/cem/experiments/cbm_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b18555b57615e2e7"}},{"code_sha256_prefix":"9101ea653bd170ba","entry":"row_to_fix","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/concept_vectors.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/concept_vectors.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9101ea653bd170ba"}},{"code_sha256_prefix":"fd02fb27bc4d86b2","entry":"stability_metric","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"src/metrics.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/src/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fd02fb27bc4d86b2"}},{"code_sha256_prefix":"6810adb2ac653d75","entry":"train","repo":"naveenr414/Concept-Learning","repo_kind":"official","path":"cem/experiments/cbm_models.py","file_url":"https://github.com/naveenr414/Concept-Learning/blob/HEAD/cem/experiments/cbm_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6810adb2ac653d75"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}