{"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/implicit-mle-backpropagating-through-discrete","title":"Implicit MLE: Backpropagating Through Discrete Exponential Family Distributions","arxiv_id":"2106.01798","date":"2021-06-03","proceeding":"NeurIPS 2021 12","authors":["Mathias Niepert","Pasquale Minervini","Luca Franceschi"],"abstract":"Combining discrete probability distributions and combinatorial optimization problems with neural network components has numerous applications but poses several challenges. We propose Implicit Maximum Likelihood Estimation (I-MLE), a framework for end-to-end learning of models combining discrete exponential family distributions and differentiable neural components. I-MLE is widely applicable as it only requires the ability to compute the most probable states and does not rely on smooth relaxations. The framework encompasses several approaches such as perturbation-based implicit differentiation and recent methods to differentiate through black-box combinatorial solvers. We introduce a novel class of noise distributions for approximating marginals via perturb-and-MAP. Moreover, we show that I-MLE simplifies to maximum likelihood estimation when used in some recently studied learning settings that involve combinatorial solvers. Experiments on several datasets suggest that I-MLE is competitive with and often outperforms existing approaches which rely on problem-specific relaxations.","url_abs":"https://arxiv.org/abs/2106.01798v2","url_pdf":"https://arxiv.org/pdf/2106.01798v2.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":"implicit-mle-backpropagating-through-discrete","repo_url":"https://github.com/nec-research/tf-imle","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"implicit-mle-backpropagating-through-discrete","repo_url":"https://github.com/edinburghnlp/torch-adaptive-imle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"implicit-mle-backpropagating-through-discrete","repo_url":"https://github.com/uclnlp/torch-imle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"combinatorial-optimization","task_name":"Combinatorial Optimization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2106.01798","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.01798"}},"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":"deterministic:regex_extraction","url":"https://github.com/nec-research/tf-imle","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/edinburghnlp/torch-adaptive-imle","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/uclnlp/torch-imle","reach":null}],"summary":{"ran_fixture":2,"ran":2,"ran_draft_wrong":3,"unverified":3},"by_repo_kind":{"official":{"samples":3,"ran":3,"repositories":1},"listed":{"samples":4,"ran":2,"repositories":1},"community":{"samples":3,"ran":2,"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":"aac686caa4fc5236","entry":"draw_gaussian_diag_samples","repo":"SerChirag/rs-imle","repo_kind":"community","path":"helpers/imle_helpers.py","file_url":"https://github.com/SerChirag/rs-imle/blob/HEAD/helpers/imle_helpers.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":2,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aac686caa4fc5236"}},{"code_sha256_prefix":"63886bbe7b1f023d","entry":"TargetDistribution","repo":"uclnlp/torch-imle","repo_kind":"listed","path":"imle/wrapper.py","file_url":"https://github.com/uclnlp/torch-imle/blob/HEAD/imle/wrapper.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"63886bbe7b1f023d"}},{"code_sha256_prefix":"518265639d392d1a","entry":"_IMLE_PID","repo":"nec-research/tf-imle","repo_kind":"official","path":"SYNTH/imle.py","file_url":"https://github.com/nec-research/tf-imle/blob/HEAD/SYNTH/imle.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"518265639d392d1a"}},{"code_sha256_prefix":"a6163b5a095df556","entry":"_maybe_ctx_call","repo":"nec-research/tf-imle","repo_kind":"official","path":"SYNTH/imle.py","file_url":"https://github.com/nec-research/tf-imle/blob/HEAD/SYNTH/imle.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"a6163b5a095df556"}},{"code_sha256_prefix":"f8752a89ed52495c","entry":"gaussian_analytical_kl","repo":"SerChirag/rs-imle","repo_kind":"community","path":"helpers/imle_helpers.py","file_url":"https://github.com/SerChirag/rs-imle/blob/HEAD/helpers/imle_helpers.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f8752a89ed52495c"}},{"code_sha256_prefix":"728c8123b133d083","entry":"imle","repo":"uclnlp/torch-imle","repo_kind":"listed","path":"imle/wrapper.py","file_url":"https://github.com/uclnlp/torch-imle/blob/HEAD/imle/wrapper.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"728c8123b133d083"}},{"code_sha256_prefix":"b781568015623ad1","entry":"imle_pid","repo":"nec-research/tf-imle","repo_kind":"official","path":"SYNTH/imle.py","file_url":"https://github.com/nec-research/tf-imle/blob/HEAD/SYNTH/imle.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b781568015623ad1"}},{"code_sha256_prefix":"8c92b1b7ad6eec54","entry":"BaseNoiseDistribution","repo":"uclnlp/torch-imle","repo_kind":"listed","path":"imle/wrapper.py","file_url":"https://github.com/uclnlp/torch-imle/blob/HEAD/imle/wrapper.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":"8c92b1b7ad6eec54"}},{"code_sha256_prefix":"cb1a5474e20e34cf","entry":"BaseTargetDistribution","repo":"uclnlp/torch-imle","repo_kind":"listed","path":"imle/wrapper.py","file_url":"https://github.com/uclnlp/torch-imle/blob/HEAD/imle/wrapper.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":"cb1a5474e20e34cf"}},{"code_sha256_prefix":"52eba97aab7c3b34","entry":"get_conv","repo":"SerChirag/rs-imle","repo_kind":"community","path":"helpers/imle_helpers.py","file_url":"https://github.com/SerChirag/rs-imle/blob/HEAD/helpers/imle_helpers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"52eba97aab7c3b34"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}