{"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-2605-09439","title":"Inverse Design for Conditional Distribution Matching","arxiv_id":"2605.09439","date":"2026-05-10","proceeding":null,"authors":["Ori Meidler","Shaul Tolkovsky","Or Zuk"],"abstract":"Generative models are powerful tools for sampling from a learned distribution $\\mathcal{P}(Y \\mid X)$, and inverse-design methods invert this map to find an input $x$ that produces a desired point output $y^*$. However, many design goals are naturally distributional rather than pointwise, incorporating the inherent uncertainty of $Y$ and targeting a specific form for it, a task not addressed by standard inverse design. To address this issue we introduce Conditional Distribution Matching (CDM), a new inverse-design problem class in generative modeling: given a joint distribution $\\mathcal{P}(X, Y)$ and a target distribution $\\mathcal{G}(Y)$, find an input $x^*$ whose induced conditional distribution $\\mathcal{P}(Y \\mid X = x^*)$ matches $\\mathcal{G}$. We formally define two variants: Conditional Distribution Matching Sampling (CDMS) and Conditional Distribution Matching Optimization (CDMO). To solve these problems, we propose MLGD-F (Matching-Loss Guided Diffusion with a Fast inner sampler), a plug-and-play inference-time algorithm that combines a pretrained score-based diffusion model with a pretrained fast conditional sampler, requiring no additional training or fine-tuning. By leveraging single-step conditional sampling, MLGD-F enables tractable gradient computation, making the estimation of $\\mathcal{P}(Y \\mid X)$ both memory-efficient and computationally lightweight. We validate MLGD-F on synthetic benchmarks, structured image transformations, and generative editing optimization, demonstrating reliable recovery of inputs whose conditional distributions match diverse user-specified targets, including discrete mixtures and continuous low-rank supports.","url_abs":"https://arxiv.org/abs/2605.09439","url_pdf":"https://arxiv.org/pdf/2605.09439","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":{"atlas_url":"https://app.syntology.ai/?focus=2605.09439","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.09439"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/orineo1/conditional-matching-paper","reach":null}],"summary":{"ran_draft_wrong":4,"ran_honours":1,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":7,"ran":5,"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":7,"samples":[{"code_sha256_prefix":"78ffbb88c5584ade","entry":"angles_to_circular","repo":"orineo1/conditional-matching-paper","repo_kind":"found_in_text","path":"MNIST/run_mlgdf.py","file_url":"https://github.com/orineo1/conditional-matching-paper/blob/HEAD/MNIST/run_mlgdf.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"78ffbb88c5584ade"}},{"code_sha256_prefix":"48e216bc11f8c270","entry":"circular_to_angles","repo":"orineo1/conditional-matching-paper","repo_kind":"found_in_text","path":"MNIST/run_mlgdf.py","file_url":"https://github.com/orineo1/conditional-matching-paper/blob/HEAD/MNIST/run_mlgdf.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"48e216bc11f8c270"}},{"code_sha256_prefix":"c6b963154ef63b75","entry":"compute_step_size","repo":"orineo1/conditional-matching-paper","repo_kind":"found_in_text","path":"MNIST/run_mlgdf.py","file_url":"https://github.com/orineo1/conditional-matching-paper/blob/HEAD/MNIST/run_mlgdf.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c6b963154ef63b75"}},{"code_sha256_prefix":"93dfd294de494c12","entry":"generate_mog_samples","repo":"orineo1/conditional-matching-paper","repo_kind":"found_in_text","path":"MNIST/run_mlgdf.py","file_url":"https://github.com/orineo1/conditional-matching-paper/blob/HEAD/MNIST/run_mlgdf.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"93dfd294de494c12"}},{"code_sha256_prefix":"f4c0308751e5e25d","entry":"sliced_wasserstein_distance","repo":"orineo1/conditional-matching-paper","repo_kind":"found_in_text","path":"MNIST/run_mlgdf.py","file_url":"https://github.com/orineo1/conditional-matching-paper/blob/HEAD/MNIST/run_mlgdf.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f4c0308751e5e25d"}},{"code_sha256_prefix":"362b43b09f169a61","entry":"optimize_LGD","repo":"orineo1/conditional-matching-paper","repo_kind":"found_in_text","path":"MNIST/run_mlgdf.py","file_url":"https://github.com/orineo1/conditional-matching-paper/blob/HEAD/MNIST/run_mlgdf.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":"362b43b09f169a61"}},{"code_sha256_prefix":"2e9fd00c40b35fa4","entry":"set_seed","repo":"orineo1/conditional-matching-paper","repo_kind":"found_in_text","path":"MNIST/run_mlgdf.py","file_url":"https://github.com/orineo1/conditional-matching-paper/blob/HEAD/MNIST/run_mlgdf.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":"2e9fd00c40b35fa4"}}]},"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":null}