{"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/derivative-free-diffusion-manifold","title":"Derivative-Free Diffusion Manifold-Constrained Gradient for Unified XAI","arxiv_id":"2411.15265","date":"2024-11-22","proceeding":"CVPR 2025 1","authors":["Won Jun Kim","Hyungjin Chung","JaeMin Kim","Sangmin Lee","Byeongsu Sim","Jong Chul Ye"],"abstract":"Gradient-based methods are a prototypical family of explainability techniques, especially for image-based models. Nonetheless, they have several shortcomings in that they (1) require white-box access to models, (2) are vulnerable to adversarial attacks, and (3) produce attributions that lie off the image manifold, leading to explanations that are not actually faithful to the model and do not align well with human perception. To overcome these challenges, we introduce Derivative-Free Diffusion Manifold-Constrainted Gradients (FreeMCG), a novel method that serves as an improved basis for explainability of a given neural network than the traditional gradient. Specifically, by leveraging ensemble Kalman filters and diffusion models, we derive a derivative-free approximation of the model's gradient projected onto the data manifold, requiring access only to the model's outputs. We demonstrate the effectiveness of FreeMCG by applying it to both counterfactual generation and feature attribution, which have traditionally been treated as distinct tasks. Through comprehensive evaluation on both tasks, counterfactual explanation and feature attribution, we show that our method yields state-of-the-art results while preserving the essential properties expected of XAI tools.","url_abs":"https://arxiv.org/abs/2411.15265v1","url_pdf":"https://arxiv.org/pdf/2411.15265v1.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":"derivative-free-diffusion-manifold","repo_url":"https://github.com/openxaiproject/pnpxai","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"counterfactual-explanation","task_name":"Counterfactual Explanation"},{"task_slug":null,"task_name":"counterfactual"}],"methods":[{"method_slug":"align","method_name":"ALIGN"},{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2411.15265","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2411.15265"}},"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/openxaiproject/pnpxai","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":10},"by_repo_kind":{"listed":{"samples":10,"ran":0,"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":"798139054e497f0c","entry":"class_to_string","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/utils.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"798139054e497f0c"}},{"code_sha256_prefix":"a1860e57d5a0edec","entry":"default_input_extractor","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/core/experiment/experiment.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/core/experiment/experiment.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a1860e57d5a0edec"}},{"code_sha256_prefix":"0cdd0c5d6ba415a4","entry":"default_label_extractor","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/core/experiment/experiment.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/core/experiment/experiment.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0cdd0c5d6ba415a4"}},{"code_sha256_prefix":"5d63778aac6b9355","entry":"default_target_extractor","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/core/experiment/experiment.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/core/experiment/experiment.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5d63778aac6b9355"}},{"code_sha256_prefix":"8dbe2239fcbea134","entry":"extract_graph_data","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/core/detector/detector.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/core/detector/detector.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8dbe2239fcbea134"}},{"code_sha256_prefix":"825fdcd6ac8695a2","entry":"get_message","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/messages.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/messages.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"825fdcd6ac8695a2"}},{"code_sha256_prefix":"33f03c8a5a42fdf8","entry":"get_target_module_of","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/core/detector/utils.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/core/detector/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"33f03c8a5a42fdf8"}},{"code_sha256_prefix":"91138d6d6ff5ba36","entry":"map_recursive","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/utils.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"91138d6d6ff5ba36"}},{"code_sha256_prefix":"807d4c7be1c43170","entry":"symbolic_trace","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/core/detector/detector.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/core/detector/detector.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"807d4c7be1c43170"}},{"code_sha256_prefix":"d26569f5d3d35dd5","entry":"to_device","repo":"openxaiproject/pnpxai","repo_kind":"listed","path":"pnpxai/utils.py","file_url":"https://github.com/openxaiproject/pnpxai/blob/HEAD/pnpxai/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d26569f5d3d35dd5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}