{"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/neural-conditional-probability-for-inference","title":"Neural Conditional Probability for Uncertainty Quantification","arxiv_id":"2407.01171","date":"2024-07-01","proceeding":null,"authors":["Vladimir R. Kostic","Karim Lounici","Gregoire Pacreau","Pietro Novelli","Giacomo Turri","Massimiliano Pontil"],"abstract":"We introduce Neural Conditional Probability (NCP), an operator-theoretic approach to learning conditional distributions with a focus on statistical inference tasks. NCP can be used to build conditional confidence regions and extract key statistics such as conditional quantiles, mean, and covariance. It offers streamlined learning via a single unconditional training phase, allowing efficient inference without the need for retraining even when conditioning changes. By leveraging the approximation capabilities of neural networks, NCP efficiently handles a wide variety of complex probability distributions. We provide theoretical guarantees that ensure both optimization consistency and statistical accuracy. In experiments, we show that NCP with a 2-hidden-layer network matches or outperforms leading methods. This demonstrates that a a minimalistic architecture with a theoretically grounded loss can achieve competitive results, even in the face of more complex architectures.","url_abs":"https://arxiv.org/abs/2407.01171v2","url_pdf":"https://arxiv.org/pdf/2407.01171v2.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":[],"tasks":[{"task_slug":"uncertainty-quantification","task_name":"Uncertainty Quantification"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2407.01171","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.01171"}},"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/CSML-IIT-UCL/NCP","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/lee-group-cmu/NNKCDE","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/lee-group-cmu/FlexCode","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/ZijunGao/LinCDE","reach":{"status":"ok"}}],"summary":{"ran":3,"ran_violates":2,"ran_fixture":4,"ran_draft_wrong":7,"ran_honours":1,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":22,"ran":17,"repositories":3}},"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":22,"samples":[{"code_sha256_prefix":"5a945c81cf02322b","entry":"NCPOperator","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.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":"5a945c81cf02322b"}},{"code_sha256_prefix":"0eee2a4d029c1104","entry":"SingularLayer","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0eee2a4d029c1104"}},{"code_sha256_prefix":"e3f9c741e1884e63","entry":"TopKReturnType","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.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":"e3f9c741e1884e63"}},{"code_sha256_prefix":"32abafc5e441e582","entry":"box_transform","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"32abafc5e441e582"}},{"code_sha256_prefix":"10792a494a7f3b4b","entry":"cde_loss","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"10792a494a7f3b4b"}},{"code_sha256_prefix":"617ff62972595603","entry":"cosine_basis","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.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":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"617ff62972595603"}},{"code_sha256_prefix":"a70a1a2899dfa603","entry":"ensure_torch","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a70a1a2899dfa603"}},{"code_sha256_prefix":"3a07f048b41f2cd1","entry":"filter_reduced_rank_svals","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.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":"3a07f048b41f2cd1"}},{"code_sha256_prefix":"67ec048966977d12","entry":"fourier_basis","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.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":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"67ec048966977d12"}},{"code_sha256_prefix":"6cca2cf1db8a2456","entry":"frnp","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.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":"6cca2cf1db8a2456"}},{"code_sha256_prefix":"ef6f976bc872ec2c","entry":"kde","repo":"lee-group-cmu/NNKCDE","repo_kind":"found_in_text","path":"python/src/nnkcde/core.py","file_url":"https://github.com/lee-group-cmu/NNKCDE/blob/HEAD/python/src/nnkcde/core.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ef6f976bc872ec2c"}},{"code_sha256_prefix":"83826ed517001ce4","entry":"make_grid","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"83826ed517001ce4"}},{"code_sha256_prefix":"f8320b9a55f263b9","entry":"sqrtmh","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.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":"f8320b9a55f263b9"}},{"code_sha256_prefix":"8dc81d781fb203c8","entry":"tensor_basis","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.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":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"8dc81d781fb203c8"}},{"code_sha256_prefix":"12f203b46fecc22d","entry":"tonp","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.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":"12f203b46fecc22d"}},{"code_sha256_prefix":"5cb70d0fe9e95c27","entry":"topk","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5cb70d0fe9e95c27"}},{"code_sha256_prefix":"3d2fc4ac3ae78854","entry":"wavelet_basis","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"3d2fc4ac3ae78854"}},{"code_sha256_prefix":"092df1eff806e58d","entry":"BasisCoefs","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"092df1eff806e58d"}},{"code_sha256_prefix":"3e6c220b84182e13","entry":"FlexCodeModel","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"3e6c220b84182e13"}},{"code_sha256_prefix":"8104876ddda996f6","entry":"NNKCDE","repo":"lee-group-cmu/NNKCDE","repo_kind":"found_in_text","path":"python/src/nnkcde/core.py","file_url":"https://github.com/lee-group-cmu/NNKCDE/blob/HEAD/python/src/nnkcde/core.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":"8104876ddda996f6"}},{"code_sha256_prefix":"ed348884e63a844a","entry":"cross_cov","repo":"CSML-IIT-UCL/NCP","repo_kind":"found_in_text","path":"NCP/model.py","file_url":"https://github.com/CSML-IIT-UCL/NCP/blob/HEAD/NCP/model.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":"ed348884e63a844a"}},{"code_sha256_prefix":"bc3221ff9022ccf8","entry":"evaluate_basis","repo":"lee-group-cmu/FlexCode","repo_kind":"found_in_text","path":"src/flexcode/core.py","file_url":"https://github.com/lee-group-cmu/FlexCode/blob/HEAD/src/flexcode/core.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"bc3221ff9022ccf8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}