{"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/generative-conditional-distributions-by","title":"Generative Conditional Distributions by Neural (Entropic) Optimal Transport","arxiv_id":"2406.02317","date":"2024-06-04","proceeding":null,"authors":["Bao Nguyen","Binh Nguyen","Hieu Trung Nguyen","Viet Anh Nguyen"],"abstract":"Learning conditional distributions is challenging because the desired outcome is not a single distribution but multiple distributions that correspond to multiple instances of the covariates. We introduce a novel neural entropic optimal transport method designed to effectively learn generative models of conditional distributions, particularly in scenarios characterized by limited sample sizes. Our method relies on the minimax training of two neural networks: a generative network parametrizing the inverse cumulative distribution functions of the conditional distributions and another network parametrizing the conditional Kantorovich potential. To prevent overfitting, we regularize the objective function by penalizing the Lipschitz constant of the network output. Our experiments on real-world datasets show the effectiveness of our algorithm compared to state-of-the-art conditional distribution learning techniques. Our implementation can be found at https://github.com/nguyenngocbaocmt02/GENTLE.","url_abs":"https://arxiv.org/abs/2406.02317v1","url_pdf":"https://arxiv.org/pdf/2406.02317v1.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":"generative-conditional-distributions-by","repo_url":"https://github.com/nguyenngocbaocmt02/gentle","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2406.02317","atlas_url":"https://app.syntology.ai/?focus=2406.02317","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.02317"}},"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":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nguyenngocbaocmt02/gentle","reach":{"status":"ok"}}],"summary":{"ran":6,"unverified":1},"by_repo_kind":{"official":{"samples":7,"ran":6,"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":"2703985e5aca297d","entry":"build_mlp","repo":"nguyenngocbaocmt02/gentle","repo_kind":"official","path":"models/mlp.py","file_url":"https://github.com/nguyenngocbaocmt02/gentle/blob/HEAD/models/mlp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2703985e5aca297d"}},{"code_sha256_prefix":"6219cec3ebd311b6","entry":"esophageal_cancer_sim","repo":"nguyenngocbaocmt02/gentle","repo_kind":"official","path":"datasets/data_generation.py","file_url":"https://github.com/nguyenngocbaocmt02/gentle/blob/HEAD/datasets/data_generation.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6219cec3ebd311b6"}},{"code_sha256_prefix":"e83b17c5d6107e8c","entry":"preprocess_dataset","repo":"nguyenngocbaocmt02/gentle","repo_kind":"official","path":"utils.py","file_url":"https://github.com/nguyenngocbaocmt02/gentle/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e83b17c5d6107e8c"}},{"code_sha256_prefix":"dff06e4cfe94e5b7","entry":"prim","repo":"nguyenngocbaocmt02/gentle","repo_kind":"official","path":"utils.py","file_url":"https://github.com/nguyenngocbaocmt02/gentle/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dff06e4cfe94e5b7"}},{"code_sha256_prefix":"a1533bd5b245fa2e","entry":"scenario_one","repo":"nguyenngocbaocmt02/gentle","repo_kind":"official","path":"datasets/data_generation.py","file_url":"https://github.com/nguyenngocbaocmt02/gentle/blob/HEAD/datasets/data_generation.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a1533bd5b245fa2e"}},{"code_sha256_prefix":"24889ebd201b7512","entry":"scenario_two","repo":"nguyenngocbaocmt02/gentle","repo_kind":"official","path":"datasets/data_generation.py","file_url":"https://github.com/nguyenngocbaocmt02/gentle/blob/HEAD/datasets/data_generation.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"24889ebd201b7512"}},{"code_sha256_prefix":"56d80682979d3e38","entry":"compute_gradient_penalty","repo":"nguyenngocbaocmt02/gentle","repo_kind":"official","path":"train_wgan_gp.py","file_url":"https://github.com/nguyenngocbaocmt02/gentle/blob/HEAD/train_wgan_gp.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":"56d80682979d3e38"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}