{"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/arxiv-2602-11325","title":"Amortised and provably-robust simulation-based inference","arxiv_id":"2602.11325","date":"2026-02-11","proceeding":null,"authors":["Ayush Bharti","Charita Dellaporta","Yuga Hikida","François-Xavier Briol"],"abstract":"Complex simulator-based models are now routinely used to perform inference across the sciences and engineering, but existing inference methods are often unable to account for outliers and other extreme values in data which occur due to faulty measurement instruments or human error. In this paper, we introduce a novel approach to simulation-based inference grounded in generalised Bayesian inference and a neural approximation of a weighted score-matching loss. This leads to a method that is both amortised and provably robust to outliers, a combination not achieved by existing approaches. Furthermore, through a carefully chosen conditional density model, we demonstrate that inference can be further simplified and performed without the need for Markov chain Monte Carlo sampling, thereby offering significant computational advantages, with complexity that is only a small fraction of that of current state-of-the-art approaches.","url_abs":"https://arxiv.org/abs/2602.11325","url_pdf":"https://arxiv.org/pdf/2602.11325","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2602.11325","atlas_url":"https://app.syntology.ai/?focus=2602.11325","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.11325"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/bharti-ayush/nsm-bayes","reach":null}],"summary":{"unverified":15},"by_repo_kind":{"found_in_text":{"samples":15,"ran":0,"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":15,"samples":[{"code_sha256_prefix":"8249d45f1bea72a1","entry":"add_outliers_by_proportion","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/utils.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/utils.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":"8249d45f1bea72a1"}},{"code_sha256_prefix":"0a1652fdac68eaac","entry":"cache_perx_sm_losses","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/gpc.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/gpc.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":"0a1652fdac68eaac"}},{"code_sha256_prefix":"e833641b90218c59","entry":"get_simulations","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/utils.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/utils.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":"e833641b90218c59"}},{"code_sha256_prefix":"1d7cab6817725ae3","entry":"get_simulations_npe","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"baselines/Robust-SBI/exp_gnk.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/baselines/Robust-SBI/exp_gnk.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":"1d7cab6817725ae3"}},{"code_sha256_prefix":"c8e9438a26c56284","entry":"make_nle_logprob","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/run_gnk.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/run_gnk.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":"c8e9438a26c56284"}},{"code_sha256_prefix":"bd07da937e3e9a0e","entry":"median_heuristic","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/method.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/method.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":"bd07da937e3e9a0e"}},{"code_sha256_prefix":"83ec9c9998aae33b","entry":"multinomial_bootstrap_counts","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/gpc.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/gpc.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":"83ec9c9998aae33b"}},{"code_sha256_prefix":"1a1fe100795606e1","entry":"run_mcmc","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/utils.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/utils.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":"1a1fe100795606e1"}},{"code_sha256_prefix":"28099853867c96c6","entry":"run_multivariate_slice_sampler_tuned","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/slice_sampler.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/slice_sampler.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":"28099853867c96c6"}},{"code_sha256_prefix":"feecbf77995ae4a6","entry":"sample_gandk_fully_reparameterized","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/simulators.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/simulators.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":"feecbf77995ae4a6"}},{"code_sha256_prefix":"1db964f1646ad001","entry":"simulate_sir","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/simulators.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/simulators.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":"1db964f1646ad001"}},{"code_sha256_prefix":"98996688c87c55e2","entry":"sir_summary","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/simulators.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/simulators.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":"98996688c87c55e2"}},{"code_sha256_prefix":"e13791e0b924a051","entry":"w_imq_squared","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/method.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/method.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":"e13791e0b924a051"}},{"code_sha256_prefix":"765ada194c8dee4e","entry":"weight_function_factory","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/method.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/method.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":"765ada194c8dee4e"}},{"code_sha256_prefix":"d380a812b2dd78a3","entry":"weight_function_factory_batched","repo":"bharti-ayush/nsm-bayes","repo_kind":"found_in_text","path":"nsm-bayes/gpc.py","file_url":"https://github.com/bharti-ayush/nsm-bayes/blob/HEAD/nsm-bayes/gpc.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":"d380a812b2dd78a3"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}