{"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/deal-disentangle-and-localize-concept-level","title":"DEAL: Disentangle and Localize Concept-level Explanations for VLMs","arxiv_id":"2407.14412","date":"2024-07-19","proceeding":null,"authors":["Tang Li","Mengmeng Ma","Xi Peng"],"abstract":"Large pre-trained Vision-Language Models (VLMs) have become ubiquitous foundational components of other models and downstream tasks. Although powerful, our empirical results reveal that such models might not be able to identify fine-grained concepts. Specifically, the explanations of VLMs with respect to fine-grained concepts are entangled and mislocalized. To address this issue, we propose to DisEntAngle and Localize (DEAL) the concept-level explanations for VLMs without human annotations. The key idea is encouraging the concept-level explanations to be distinct while maintaining consistency with category-level explanations. We conduct extensive experiments and ablation studies on a wide range of benchmark datasets and vision-language models. Our empirical results demonstrate that the proposed method significantly improves the concept-level explanations of the model in terms of disentanglability and localizability. Surprisingly, the improved explainability alleviates the model's reliance on spurious correlations, which further benefits the prediction accuracy.","url_abs":"https://arxiv.org/abs/2407.14412v1","url_pdf":"https://arxiv.org/pdf/2407.14412v1.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":"deal-disentangle-and-localize-concept-level","repo_url":"https://github.com/tangli-udel/DEAL","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2407.14412","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.14412"}},"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/tangli-udel/DEAL","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"ran_draft_wrong":7,"ran":3,"ran_violates":1,"unverified":6},"by_repo_kind":{"official":{"samples":18,"ran":12,"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":"3936ee935ec8fce1","entry":"aggregate_similarity","repo":"tangli-udel/DEAL","repo_kind":"official","path":"load.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/load.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3936ee935ec8fce1"}},{"code_sha256_prefix":"98f385d847636a3e","entry":"basic_clean","repo":"tangli-udel/DEAL","repo_kind":"official","path":"CLIP/clip/simple_tokenizer.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/CLIP/clip/simple_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"98f385d847636a3e"}},{"code_sha256_prefix":"0173b09907880333","entry":"batch_gradCAM","repo":"tangli-udel/DEAL","repo_kind":"official","path":"explainer.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/explainer.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":"0173b09907880333"}},{"code_sha256_prefix":"d919ae32e5e4e616","entry":"get_pairs","repo":"tangli-udel/DEAL","repo_kind":"official","path":"CLIP/clip/simple_tokenizer.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/CLIP/clip/simple_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d919ae32e5e4e616"}},{"code_sha256_prefix":"0ec4cd6b1e544f4c","entry":"gradCAM","repo":"tangli-udel/DEAL","repo_kind":"official","path":"explainer.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/explainer.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":"0ec4cd6b1e544f4c"}},{"code_sha256_prefix":"1069918b276d2855","entry":"load_json","repo":"tangli-udel/DEAL","repo_kind":"official","path":"loading_helpers.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/loading_helpers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1069918b276d2855"}},{"code_sha256_prefix":"6775b1940ad09da2","entry":"make_descriptor_sentence","repo":"tangli-udel/DEAL","repo_kind":"official","path":"loading_helpers.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/loading_helpers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6775b1940ad09da2"}},{"code_sha256_prefix":"33c1a0c844a11c56","entry":"multi_head_attention_forward","repo":"tangli-udel/DEAL","repo_kind":"official","path":"CLIP/clip/auxilary.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/CLIP/clip/auxilary.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":"33c1a0c844a11c56"}},{"code_sha256_prefix":"e9b027ab862daf7d","entry":"normalize_heatmap","repo":"tangli-udel/DEAL","repo_kind":"official","path":"loss.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/loss.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e9b027ab862daf7d"}},{"code_sha256_prefix":"46062947cf3ab0e6","entry":"stringtolist","repo":"tangli-udel/DEAL","repo_kind":"official","path":"descriptor_strings.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/descriptor_strings.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"46062947cf3ab0e6"}},{"code_sha256_prefix":"9542161e9640b858","entry":"whitespace_clean","repo":"tangli-udel/DEAL","repo_kind":"official","path":"CLIP/clip/simple_tokenizer.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/CLIP/clip/simple_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9542161e9640b858"}},{"code_sha256_prefix":"1812ba359126089a","entry":"wordify","repo":"tangli-udel/DEAL","repo_kind":"official","path":"loading_helpers.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/loading_helpers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1812ba359126089a"}},{"code_sha256_prefix":"7ecaa1ab867d461d","entry":"build_model","repo":"tangli-udel/DEAL","repo_kind":"official","path":"CLIP/clip/model.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/CLIP/clip/model.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":"7ecaa1ab867d461d"}},{"code_sha256_prefix":"8bd4fcd6be04a6f6","entry":"interpret","repo":"tangli-udel/DEAL","repo_kind":"official","path":"explainer.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/explainer.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":"8bd4fcd6be04a6f6"}},{"code_sha256_prefix":"348977282f211827","entry":"interpret","repo":"tangli-udel/DEAL","repo_kind":"official","path":"CLIP/example.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/CLIP/example.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":"348977282f211827"}},{"code_sha256_prefix":"f764db9d0498c5c4","entry":"load","repo":"tangli-udel/DEAL","repo_kind":"official","path":"CLIP/clip/clip.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/CLIP/clip/clip.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":"f764db9d0498c5c4"}},{"code_sha256_prefix":"0eac6e65494da061","entry":"mod_stringtolist","repo":"tangli-udel/DEAL","repo_kind":"official","path":"descriptor_strings.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/descriptor_strings.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":"0eac6e65494da061"}},{"code_sha256_prefix":"1fa486482cc060ee","entry":"stringtolist_opt","repo":"tangli-udel/DEAL","repo_kind":"official","path":"descriptor_strings.py","file_url":"https://github.com/tangli-udel/DEAL/blob/HEAD/descriptor_strings.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":"1fa486482cc060ee"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}