{"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/generative-causal-explanations-of-black-box","title":"Generative causal explanations of black-box classifiers","arxiv_id":"2006.13913","date":"2020-06-24","proceeding":"NeurIPS 2020 12","authors":["Matthew O'Shaughnessy","Gregory Canal","Marissa Connor","Mark Davenport","Christopher Rozell"],"abstract":"We develop a method for generating causal post-hoc explanations of black-box classifiers based on a learned low-dimensional representation of the data. The explanation is causal in the sense that changing learned latent factors produces a change in the classifier output statistics. To construct these explanations, we design a learning framework that leverages a generative model and information-theoretic measures of causal influence. Our objective function encourages both the generative model to faithfully represent the data distribution and the latent factors to have a large causal influence on the classifier output. Our method learns both global and local explanations, is compatible with any classifier that admits class probabilities and a gradient, and does not require labeled attributes or knowledge of causal structure. Using carefully controlled test cases, we provide intuition that illuminates the function of our objective. We then demonstrate the practical utility of our method on image recognition tasks.","url_abs":"https://arxiv.org/abs/2006.13913v2","url_pdf":"https://arxiv.org/pdf/2006.13913v2.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":"generative-causal-explanations-of-black-box","repo_url":"https://github.com/siplab-gt/generative-causal-explanations","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"generative-causal-explanations-of-black-box","repo_url":"https://github.com/shin-ee-chen/UvA_FACT_2021","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2006.13913","atlas_url":"https://app.syntology.ai/?focus=2006.13913","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2006.13913"}},"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/shin-ee-chen/UvA_FACT_2021","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/siplab-gt/generative-causal-explanations","reach":null}],"summary":{"ran":4,"ran_draft_wrong":7,"ran_violates":1,"unverified":5},"by_repo_kind":{"official":{"samples":4,"ran":2,"repositories":1},"listed":{"samples":13,"ran":10,"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":17,"samples":[{"code_sha256_prefix":"2f1bb1702e6a4d7e","entry":"CNN_Decoder","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"2f1bb1702e6a4d7e"}},{"code_sha256_prefix":"32d564c78ebc874c","entry":"CNN_Encoder","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"32d564c78ebc874c"}},{"code_sha256_prefix":"1816134ae83f80b3","entry":"CNN_OShaugnessy","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"1816134ae83f80b3"}},{"code_sha256_prefix":"51b85bcb73b647d1","entry":"CVAE_to_params","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"51b85bcb73b647d1"}},{"code_sha256_prefix":"a796ddf44f05da07","entry":"ELBO","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"a796ddf44f05da07"}},{"code_sha256_prefix":"5c812a48884b9d4c","entry":"ELBO_to_BPD","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"5c812a48884b9d4c"}},{"code_sha256_prefix":"5f3e98a861c6bffe","entry":"KLD","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"5f3e98a861c6bffe"}},{"code_sha256_prefix":"6402f8adb6d7393a","entry":"MNIST_CNN","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"6402f8adb6d7393a"}},{"code_sha256_prefix":"e678419d29ff4bfa","entry":"VAE_LL_loss","repo":"siplab-gt/generative-causal-explanations","repo_kind":"official","path":"GCE.py","file_url":"https://github.com/siplab-gt/generative-causal-explanations/blob/HEAD/GCE.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e678419d29ff4bfa"}},{"code_sha256_prefix":"bcddd5dc7d00a6a5","entry":"joint_uncond","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"bcddd5dc7d00a6a5"}},{"code_sha256_prefix":"09ecdc463d1023de","entry":"joint_uncond","repo":"siplab-gt/generative-causal-explanations","repo_kind":"official","path":"GCE.py","file_url":"https://github.com/siplab-gt/generative-causal-explanations/blob/HEAD/GCE.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"09ecdc463d1023de"}},{"code_sha256_prefix":"007def2d7b03023a","entry":"sample_reparameterize","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"007def2d7b03023a"}},{"code_sha256_prefix":"c2c80ffca6ccb040","entry":"GenerativeCausalExplainer","repo":"siplab-gt/generative-causal-explanations","repo_kind":"official","path":"GCE.py","file_url":"https://github.com/siplab-gt/generative-causal-explanations/blob/HEAD/GCE.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":"c2c80ffca6ccb040"}},{"code_sha256_prefix":"433fd85ddfc5e9b2","entry":"MNIST_CVAE","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"433fd85ddfc5e9b2"}},{"code_sha256_prefix":"7f1b6272c87c46a5","entry":"joint_uncond_singledim","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"7f1b6272c87c46a5"}},{"code_sha256_prefix":"ebbf181623eec593","entry":"joint_uncond_singledim","repo":"siplab-gt/generative-causal-explanations","repo_kind":"official","path":"GCE.py","file_url":"https://github.com/siplab-gt/generative-causal-explanations/blob/HEAD/GCE.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":"ebbf181623eec593"}},{"code_sha256_prefix":"e79fa0c4f77afdd3","entry":"load_latest","repo":"shin-ee-chen/UvA_FACT_2021","repo_kind":"listed","path":"models/cvae.py","file_url":"https://github.com/shin-ee-chen/UvA_FACT_2021/blob/HEAD/models/cvae.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"e79fa0c4f77afdd3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}