{"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/a-neural-framework-for-generalized-causal","title":"A Neural Framework for Generalized Causal Sensitivity Analysis","arxiv_id":"2311.16026","date":"2023-11-27","proceeding":null,"authors":["Dennis Frauen","Fergus Imrie","Alicia Curth","Valentyn Melnychuk","Stefan Feuerriegel","Mihaela van der Schaar"],"abstract":"Unobserved confounding is common in many applications, making causal inference from observational data challenging. As a remedy, causal sensitivity analysis is an important tool to draw causal conclusions under unobserved confounding with mathematical guarantees. In this paper, we propose NeuralCSA, a neural framework for generalized causal sensitivity analysis. Unlike previous work, our framework is compatible with (i) a large class of sensitivity models, including the marginal sensitivity model, f-sensitivity models, and Rosenbaum's sensitivity model; (ii) different treatment types (i.e., binary and continuous); and (iii) different causal queries, including (conditional) average treatment effects and simultaneous effects on multiple outcomes. The generality of NeuralCSA is achieved by learning a latent distribution shift that corresponds to a treatment intervention using two conditional normalizing flows. We provide theoretical guarantees that NeuralCSA is able to infer valid bounds on the causal query of interest and also demonstrate this empirically using both simulated and real-world data.","url_abs":"https://arxiv.org/abs/2311.16026v2","url_pdf":"https://arxiv.org/pdf/2311.16026v2.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":"a-neural-framework-for-generalized-causal","repo_url":"https://github.com/dennisfrauen/neuralcsa","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"causal-inference","task_name":"Causal Inference"},{"task_slug":"sensitivity","task_name":"Sensitivity"},{"task_slug":null,"task_name":"valid"}],"methods":[{"method_slug":"causal-inference","method_name":"Causal inference"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2311.16026","atlas_url":"https://app.syntology.ai/?focus=2311.16026","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.16026"}},"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/dennisfrauen/neuralcsa","reach":null}],"summary":{"ran":2,"ran_draft_wrong":1,"unverified":3},"by_repo_kind":{"official":{"samples":6,"ran":3,"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":6,"samples":[{"code_sha256_prefix":"ba35dc0722808d02","entry":"ConditionalMixtureSameFamily","repo":"dennisfrauen/neuralcsa","repo_kind":"official","path":"models/stage2.py","file_url":"https://github.com/dennisfrauen/neuralcsa/blob/HEAD/models/stage2.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":"ba35dc0722808d02"}},{"code_sha256_prefix":"c068837b11e7fef1","entry":"StackedDistribution","repo":"dennisfrauen/neuralcsa","repo_kind":"official","path":"models/stage2.py","file_url":"https://github.com/dennisfrauen/neuralcsa/blob/HEAD/models/stage2.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":"c068837b11e7fef1"}},{"code_sha256_prefix":"55301e603a0ed76d","entry":"get_logger","repo":"dennisfrauen/neuralcsa","repo_kind":"official","path":"models/stage2.py","file_url":"https://github.com/dennisfrauen/neuralcsa/blob/HEAD/models/stage2.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"55301e603a0ed76d"}},{"code_sha256_prefix":"a842e6d236aba117","entry":"CNF_stage2","repo":"dennisfrauen/neuralcsa","repo_kind":"official","path":"models/stage2.py","file_url":"https://github.com/dennisfrauen/neuralcsa/blob/HEAD/models/stage2.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":"a842e6d236aba117"}},{"code_sha256_prefix":"39345a914f8eec5a","entry":"Stage2","repo":"dennisfrauen/neuralcsa","repo_kind":"official","path":"models/stage2.py","file_url":"https://github.com/dennisfrauen/neuralcsa/blob/HEAD/models/stage2.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":"39345a914f8eec5a"}},{"code_sha256_prefix":"720725b37a7c7b4a","entry":"fit_model","repo":"dennisfrauen/neuralcsa","repo_kind":"official","path":"models/stage2.py","file_url":"https://github.com/dennisfrauen/neuralcsa/blob/HEAD/models/stage2.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":"720725b37a7c7b4a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}