{"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/stein-variational-gradient-descent-a-general","title":"Stein Variational Gradient Descent: A General Purpose Bayesian Inference Algorithm","arxiv_id":"1608.04471","date":"2016-08-16","proceeding":"NeurIPS 2016 12","authors":["Qiang Liu","Dilin Wang"],"abstract":"We propose a general purpose variational inference algorithm that forms a natural counterpart of gradient descent for optimization. Our method iteratively transports a set of particles to match the target distribution, by applying a form of functional gradient descent that minimizes the KL divergence. Empirical studies are performed on various real world models and datasets, on which our method is competitive with existing state-of-the-art methods. The derivation of our method is based on a new theoretical result that connects the derivative of KL divergence under smooth transforms with Stein's identity and a recently proposed kernelized Stein discrepancy, which is of independent interest.","url_abs":"https://arxiv.org/abs/1608.04471v3","url_pdf":"https://arxiv.org/pdf/1608.04471v3.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":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/DartML/Stein-Variational-Gradient-Descent","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/LMikeH/ocbnn-lmikh","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/aleatory-science/smi_experiments","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"unanswered"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/alegresor/vitruncate","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/chenxy99/stein-variational-gradient-descent","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/dilinwang820/Stein-Variational-Gradient-Descent","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/feynmanliang/dist-svgd","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/larslorch/dibs","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":null},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/louissharrock/coin-svgd","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/lpodl/Stein-Variational-Gradient-Descend","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/lucadellalib/bayestorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/lucadellalib/bdl-rul-svgd","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/MindSpore-scientific-2/code-11/tree/main/SVGD","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/activatedgeek/stein-gradient","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"stein-variational-gradient-descent-a-general","repo_url":"https://github.com/pyro-ppl/pyro","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"unanswered"}}],"tasks":[{"task_slug":"bayesian-inference","task_name":"Bayesian Inference"},{"task_slug":"variational-inference","task_name":"Variational Inference"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1608.04471","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1608.04471"}},"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/larslorch/dibs","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/activatedgeek/stein-gradient","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/LMikeH/ocbnn-lmikh","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aleatory-science/smi_experiments","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pyro-ppl/pyro","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/dilinwang820/Stein-Variational-Gradient-Descent","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lucadellalib/bayestorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/feynmanliang/dist-svgd","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/DartML/Stein-Variational-Gradient-Descent","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lpodl/Stein-Variational-Gradient-Descend","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/louissharrock/coin-svgd","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MindSpore-scientific-2/code-11/tree/main/SVGD","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lucadellalib/bdl-rul-svgd","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/chenxy99/stein-variational-gradient-descent","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/alegresor/vitruncate","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"unverified":5},"by_repo_kind":{"listed":{"samples":5,"ran":0,"repositories":2}},"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":"d8d1608b34db5f1e","entry":"get_loc_scale","repo":"lucadellalib/bayestorch","repo_kind":"listed","path":"bayestorch/distributions/utils.py","file_url":"https://github.com/lucadellalib/bayestorch/blob/HEAD/bayestorch/distributions/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":"d8d1608b34db5f1e"}},{"code_sha256_prefix":"70758901a2163d8e","entry":"get_mixture_loc_scale","repo":"lucadellalib/bayestorch","repo_kind":"listed","path":"bayestorch/distributions/utils.py","file_url":"https://github.com/lucadellalib/bayestorch/blob/HEAD/bayestorch/distributions/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":"70758901a2163d8e"}},{"code_sha256_prefix":"552376bd52d01b1e","entry":"kernel","repo":"feynmanliang/dist-svgd","repo_kind":"listed","path":"experiments/gmm.py","file_url":"https://github.com/feynmanliang/dist-svgd/blob/HEAD/experiments/gmm.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"552376bd52d01b1e"}},{"code_sha256_prefix":"a88cde5db9694a61","entry":"logp","repo":"feynmanliang/dist-svgd","repo_kind":"listed","path":"experiments/gmm.py","file_url":"https://github.com/feynmanliang/dist-svgd/blob/HEAD/experiments/gmm.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a88cde5db9694a61"}},{"code_sha256_prefix":"183a6a21b7a803b6","entry":"nested_apply","repo":"lucadellalib/bayestorch","repo_kind":"listed","path":"bayestorch/nn/utils.py","file_url":"https://github.com/lucadellalib/bayestorch/blob/HEAD/bayestorch/nn/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":"183a6a21b7a803b6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}