{"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/kernel-methods-for-multistage-causal","title":"Sequential Kernel Embedding for Mediated and Time-Varying Dose Response Curves","arxiv_id":"2111.03950","date":"2021-11-06","proceeding":null,"authors":["Rahul Singh","Liyuan Xu","Arthur Gretton"],"abstract":"We propose simple nonparametric estimators for mediated and time-varying dose response curves based on kernel ridge regression. By embedding Pearl's mediation formula and Robins' g-formula with kernels, we allow treatments, mediators, and covariates to be continuous in general spaces, and also allow for nonlinear treatment-confounder feedback. Our key innovation is a reproducing kernel Hilbert space technique called sequential kernel embedding, which we use to construct simple estimators that account for complex feedback. Our estimators preserve the generality of classic identification while also achieving nonasymptotic uniform rates. In nonlinear simulations with many covariates, we demonstrate strong performance. We estimate mediated and time-varying dose response curves of the US Job Corps, and clean data that may serve as a benchmark in future work. We extend our results to mediated and time-varying treatment effects and counterfactual distributions, verifying semiparametric efficiency and weak convergence.","url_abs":"https://arxiv.org/abs/2111.03950v5","url_pdf":"https://arxiv.org/pdf/2111.03950v5.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":"kernel-methods-for-multistage-causal","repo_url":"https://github.com/liyuan9988/kernelcausalfunction","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[{"task_slug":"causal-inference","task_name":"Causal Inference"},{"task_slug":null,"task_name":"counterfactual"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2111.03950","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2111.03950"}},"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/liyuan9988/kernelcausalfunction","reach":null}],"summary":{"ran":4,"ran_honours":1,"ran_violates":1,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"listed":{"samples":9,"ran":7,"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":9,"samples":[{"code_sha256_prefix":"c9cfc69cc53cf1f2","entry":"LinearKernel","repo":"liyuan9988/kernelcausalfunction","repo_kind":"listed","path":"src/sate/models/mean_embedding.py","file_url":"https://github.com/liyuan9988/kernelcausalfunction/blob/HEAD/src/sate/models/mean_embedding.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":"c9cfc69cc53cf1f2"}},{"code_sha256_prefix":"e61f69b3d34b46b1","entry":"SATETestDataSet","repo":"liyuan9988/kernelcausalfunction","repo_kind":"listed","path":"src/sate/models/mean_embedding.py","file_url":"https://github.com/liyuan9988/kernelcausalfunction/blob/HEAD/src/sate/models/mean_embedding.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":"e61f69b3d34b46b1"}},{"code_sha256_prefix":"135f9934dce42167","entry":"SATETrainDataSet","repo":"liyuan9988/kernelcausalfunction","repo_kind":"listed","path":"src/sate/models/mean_embedding.py","file_url":"https://github.com/liyuan9988/kernelcausalfunction/blob/HEAD/src/sate/models/mean_embedding.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":"135f9934dce42167"}},{"code_sha256_prefix":"305a25eb67d0a3f6","entry":"SequentialATEMeanEmbedding","repo":"liyuan9988/kernelcausalfunction","repo_kind":"listed","path":"src/sate/models/mean_embedding.py","file_url":"https://github.com/liyuan9988/kernelcausalfunction/blob/HEAD/src/sate/models/mean_embedding.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":"305a25eb67d0a3f6"}},{"code_sha256_prefix":"09bd60f9d75f4674","entry":"cal_loocv","repo":"liyuan9988/kernelcausalfunction","repo_kind":"listed","path":"src/sate/models/mean_embedding.py","file_url":"https://github.com/liyuan9988/kernelcausalfunction/blob/HEAD/src/sate/models/mean_embedding.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"09bd60f9d75f4674"}},{"code_sha256_prefix":"b676d141e3725302","entry":"cal_loocv_emb","repo":"liyuan9988/kernelcausalfunction","repo_kind":"listed","path":"src/sate/models/mean_embedding.py","file_url":"https://github.com/liyuan9988/kernelcausalfunction/blob/HEAD/src/sate/models/mean_embedding.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b676d141e3725302"}},{"code_sha256_prefix":"0b4f342d6ff0e684","entry":"get_kernel_func","repo":"liyuan9988/kernelcausalfunction","repo_kind":"listed","path":"src/sate/models/mean_embedding.py","file_url":"https://github.com/liyuan9988/kernelcausalfunction/blob/HEAD/src/sate/models/mean_embedding.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":"0b4f342d6ff0e684"}},{"code_sha256_prefix":"47a416161e2a3fb5","entry":"AbsKernel","repo":"liyuan9988/kernelcausalfunction","repo_kind":"listed","path":"src/sate/models/mean_embedding.py","file_url":"https://github.com/liyuan9988/kernelcausalfunction/blob/HEAD/src/sate/models/mean_embedding.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":"47a416161e2a3fb5"}},{"code_sha256_prefix":"f1cf390ecdb6a20c","entry":"GaussianKernel","repo":"liyuan9988/kernelcausalfunction","repo_kind":"listed","path":"src/sate/models/mean_embedding.py","file_url":"https://github.com/liyuan9988/kernelcausalfunction/blob/HEAD/src/sate/models/mean_embedding.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":"f1cf390ecdb6a20c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}