{"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/semi-implicit-variational-inference-via-score","title":"Semi-Implicit Variational Inference via Score Matching","arxiv_id":"2308.10014","date":"2023-08-19","proceeding":null,"authors":["Longlin Yu","Cheng Zhang"],"abstract":"Semi-implicit variational inference (SIVI) greatly enriches the expressiveness of variational families by considering implicit variational distributions defined in a hierarchical manner. However, due to the intractable densities of variational distributions, current SIVI approaches often use surrogate evidence lower bounds (ELBOs) or employ expensive inner-loop MCMC runs for unbiased ELBOs for training. In this paper, we propose SIVI-SM, a new method for SIVI based on an alternative training objective via score matching. Leveraging the hierarchical structure of semi-implicit variational families, the score matching objective allows a minimax formulation where the intractable variational densities can be naturally handled with denoising score matching. We show that SIVI-SM closely matches the accuracy of MCMC and outperforms ELBO-based SIVI methods in a variety of Bayesian inference tasks.","url_abs":"https://arxiv.org/abs/2308.10014v1","url_pdf":"https://arxiv.org/pdf/2308.10014v1.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":"semi-implicit-variational-inference-via-score","repo_url":"https://github.com/longinyu/sivism","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"bayesian-inference","task_name":"Bayesian Inference"},{"task_slug":"denoising","task_name":"Denoising"},{"task_slug":"variational-inference","task_name":"Variational Inference"}],"methods":[{"method_slug":"variational-inference","method_name":"Variational Inference"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2308.10014","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2308.10014"}},"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/longinyu/sivism","reach":{"status":"ok"}}],"summary":{"ran":7,"unverified":2},"by_repo_kind":{"official":{"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":"194f644e93aa7d07","entry":"Banana_shape","repo":"longinyu/sivism","repo_kind":"official","path":"sivism_bnn.py","file_url":"https://github.com/longinyu/sivism/blob/HEAD/sivism_bnn.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":"194f644e93aa7d07"}},{"code_sha256_prefix":"d6679521ee7f93eb","entry":"Fnet","repo":"longinyu/sivism","repo_kind":"official","path":"sivism_bnn.py","file_url":"https://github.com/longinyu/sivism/blob/HEAD/sivism_bnn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d6679521ee7f93eb"}},{"code_sha256_prefix":"032e848a748c8c7a","entry":"Hapt","repo":"longinyu/sivism","repo_kind":"official","path":"sivism_bnn.py","file_url":"https://github.com/longinyu/sivism/blob/HEAD/sivism_bnn.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":"032e848a748c8c7a"}},{"code_sha256_prefix":"cb2b409b790ad510","entry":"Mnist","repo":"longinyu/sivism","repo_kind":"official","path":"sivism_bnn.py","file_url":"https://github.com/longinyu/sivism/blob/HEAD/sivism_bnn.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":"cb2b409b790ad510"}},{"code_sha256_prefix":"0d497b28dac8630e","entry":"Multimodal","repo":"longinyu/sivism","repo_kind":"official","path":"sivism_bnn.py","file_url":"https://github.com/longinyu/sivism/blob/HEAD/sivism_bnn.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":"0d497b28dac8630e"}},{"code_sha256_prefix":"b7a6574ab050c68a","entry":"SIMINet","repo":"longinyu/sivism","repo_kind":"official","path":"sivism_bnn.py","file_url":"https://github.com/longinyu/sivism/blob/HEAD/sivism_bnn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b7a6574ab050c68a"}},{"code_sha256_prefix":"f55474e23936a04a","entry":"X_shaped","repo":"longinyu/sivism","repo_kind":"official","path":"sivism_bnn.py","file_url":"https://github.com/longinyu/sivism/blob/HEAD/sivism_bnn.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":"f55474e23936a04a"}},{"code_sha256_prefix":"2a999f392dfcbb18","entry":"SIVISM","repo":"longinyu/sivism","repo_kind":"official","path":"sivism_bnn.py","file_url":"https://github.com/longinyu/sivism/blob/HEAD/sivism_bnn.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":"2a999f392dfcbb18"}},{"code_sha256_prefix":"ecbbc585a4118a16","entry":"parse_config","repo":"longinyu/sivism","repo_kind":"official","path":"sivism_bnn.py","file_url":"https://github.com/longinyu/sivism/blob/HEAD/sivism_bnn.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":"ecbbc585a4118a16"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}