{"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/sampling-with-mirrored-stein-operators","title":"Sampling with Mirrored Stein Operators","arxiv_id":"2106.12506","date":"2021-06-23","proceeding":"ICLR 2022 4","authors":["Jiaxin Shi","Chang Liu","Lester Mackey"],"abstract":"We introduce a new family of particle evolution samplers suitable for constrained domains and non-Euclidean geometries. Stein Variational Mirror Descent and Mirrored Stein Variational Gradient Descent minimize the Kullback-Leibler (KL) divergence to constrained target distributions by evolving particles in a dual space defined by a mirror map. Stein Variational Natural Gradient exploits non-Euclidean geometry to more efficiently minimize the KL divergence to unconstrained targets. We derive these samplers from a new class of mirrored Stein operators and adaptive kernels developed in this work. We demonstrate that these new samplers yield accurate approximations to distributions on the simplex, deliver valid confidence intervals in post-selection inference, and converge more rapidly than prior methods in large-scale unconstrained posterior inference. Finally, we establish the convergence of our new procedures under verifiable conditions on the target distribution.","url_abs":"https://arxiv.org/abs/2106.12506v3","url_pdf":"https://arxiv.org/pdf/2106.12506v3.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":"sampling-with-mirrored-stein-operators","repo_url":"https://github.com/thjashin/mirror-stein-samplers","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":null},{"paper_slug":"sampling-with-mirrored-stein-operators","repo_url":"https://github.com/louissharrock/constrained-coin-sampling","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[{"task_slug":null,"task_name":"valid"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2106.12506","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.12506"}},"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/louissharrock/constrained-coin-sampling","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/thjashin/mirror-stein-samplers","reach":null}],"summary":{"ran_violates":4,"ran_draft_wrong":1,"ran_fixture":1,"unverified":4},"by_repo_kind":{"official":{"samples":6,"ran":5,"repositories":1},"listed":{"samples":4,"ran":1,"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":"79ce2fd838f75e8e","entry":"compute_squared_dist","repo":"thjashin/mirror-stein-samplers","repo_kind":"official","path":"constrained/sampling/svmd.py","file_url":"https://github.com/thjashin/mirror-stein-samplers/blob/HEAD/constrained/sampling/svmd.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"79ce2fd838f75e8e"}},{"code_sha256_prefix":"dc821371bb0da7ca","entry":"cross_diff","repo":"thjashin/mirror-stein-samplers","repo_kind":"official","path":"constrained/sampling/svmd.py","file_url":"https://github.com/thjashin/mirror-stein-samplers/blob/HEAD/constrained/sampling/svmd.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dc821371bb0da7ca"}},{"code_sha256_prefix":"2a75f981b2fb6c6f","entry":"cross_diff","repo":"louissharrock/constrained-coin-sampling","repo_kind":"listed","path":"coin-msvgd/constrained/sampling/svmd.py","file_url":"https://github.com/louissharrock/constrained-coin-sampling/blob/HEAD/coin-msvgd/constrained/sampling/svmd.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2a75f981b2fb6c6f"}},{"code_sha256_prefix":"62523d873cf90c6c","entry":"heuristic_kernel_width","repo":"thjashin/mirror-stein-samplers","repo_kind":"official","path":"constrained/sampling/svmd.py","file_url":"https://github.com/thjashin/mirror-stein-samplers/blob/HEAD/constrained/sampling/svmd.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"62523d873cf90c6c"}},{"code_sha256_prefix":"1e418d43aebf9934","entry":"imq","repo":"thjashin/mirror-stein-samplers","repo_kind":"official","path":"constrained/sampling/svmd.py","file_url":"https://github.com/thjashin/mirror-stein-samplers/blob/HEAD/constrained/sampling/svmd.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1e418d43aebf9934"}},{"code_sha256_prefix":"f48370df4b71895d","entry":"nystrom","repo":"thjashin/mirror-stein-samplers","repo_kind":"official","path":"constrained/sampling/svmd.py","file_url":"https://github.com/thjashin/mirror-stein-samplers/blob/HEAD/constrained/sampling/svmd.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f48370df4b71895d"}},{"code_sha256_prefix":"77ad5a24ef624ff8","entry":"compute_K_psi","repo":"louissharrock/constrained-coin-sampling","repo_kind":"listed","path":"coin-msvgd/constrained/sampling/svmd.py","file_url":"https://github.com/louissharrock/constrained-coin-sampling/blob/HEAD/coin-msvgd/constrained/sampling/svmd.py","link_basis":"first_harvest_node","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":"77ad5a24ef624ff8"}},{"code_sha256_prefix":"2b49f1da52e4d5d7","entry":"rbf","repo":"louissharrock/constrained-coin-sampling","repo_kind":"listed","path":"coin-msvgd/constrained/sampling/svmd.py","file_url":"https://github.com/louissharrock/constrained-coin-sampling/blob/HEAD/coin-msvgd/constrained/sampling/svmd.py","link_basis":"first_harvest_node","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":"2b49f1da52e4d5d7"}},{"code_sha256_prefix":"68800efdb998f7e7","entry":"svmd_update","repo":"thjashin/mirror-stein-samplers","repo_kind":"official","path":"constrained/sampling/svmd.py","file_url":"https://github.com/thjashin/mirror-stein-samplers/blob/HEAD/constrained/sampling/svmd.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":"68800efdb998f7e7"}},{"code_sha256_prefix":"1f380b6e520b5525","entry":"svmd_update","repo":"louissharrock/constrained-coin-sampling","repo_kind":"listed","path":"coin-msvgd/constrained/sampling/svmd.py","file_url":"https://github.com/louissharrock/constrained-coin-sampling/blob/HEAD/coin-msvgd/constrained/sampling/svmd.py","link_basis":"first_harvest_node","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":"1f380b6e520b5525"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}