{"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-ai-for-fast-and-accurate","title":"Generative AI for fast and accurate statistical computation of fluids","arxiv_id":"2409.18359","date":"2024-09-27","proceeding":null,"authors":["Roberto Molinaro","Samuel Lanthaler","Bogdan Raonić","Tobias Rohner","Victor Armegioiu","Stephan Simonis","Dana Grund","Yannick Ramic","Zhong Yi Wan","Fei Sha","Siddhartha Mishra","Leonardo Zepeda-Núñez"],"abstract":"We present a generative AI algorithm for addressing the pressing task of fast, accurate, and robust statistical computation of three-dimensional turbulent fluid flows. Our algorithm, termed as GenCFD, is based on an end-to-end conditional score-based diffusion model. Through extensive numerical experimentation with a set of challenging fluid flows, we demonstrate that GenCFD provides an accurate approximation of relevant statistical quantities of interest while also efficiently generating high-quality realistic samples of turbulent fluid flows and ensuring excellent spectral resolution. In contrast, ensembles of deterministic ML algorithms, trained to minimize mean square errors, regress to the mean flow. We present rigorous theoretical results uncovering the surprising mechanisms through which diffusion models accurately generate fluid flows. These mechanisms are illustrated with solvable toy models that exhibit the mathematically relevant features of turbulent fluid flows while being amenable to explicit analytical formulae. Our codes are publicly available at https://github.com/camlab-ethz/GenCFD.","url_abs":"https://arxiv.org/abs/2409.18359v2","url_pdf":"https://arxiv.org/pdf/2409.18359v2.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-ai-for-fast-and-accurate","repo_url":"https://github.com/camlab-ethz/gencfd","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"operator-learning","task_name":"Operator learning"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.18359","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.18359"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/camlab-ethz/gencfd","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":5,"unverified":2},"by_repo_kind":{"official":{"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":0,"samples":[{"code_sha256_prefix":"ec800de8d7a491d0","entry":"default_init","repo":"camlab-ethz/gencfd","repo_kind":"official","path":"GenCFD/utils/model_utils.py","file_url":"https://github.com/camlab-ethz/gencfd/blob/HEAD/GenCFD/utils/model_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ec800de8d7a491d0"}},{"code_sha256_prefix":"ef098f3e4b165412","entry":"logsnr2sigma","repo":"camlab-ethz/gencfd","repo_kind":"official","path":"GenCFD/diffusion/diffusion.py","file_url":"https://github.com/camlab-ethz/gencfd/blob/HEAD/GenCFD/diffusion/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ef098f3e4b165412"}},{"code_sha256_prefix":"9c2b2e2cdc5d0104","entry":"permute_tensor","repo":"camlab-ethz/gencfd","repo_kind":"official","path":"GenCFD/utils/model_utils.py","file_url":"https://github.com/camlab-ethz/gencfd/blob/HEAD/GenCFD/utils/model_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9c2b2e2cdc5d0104"}},{"code_sha256_prefix":"ecddf32972d7861a","entry":"sigma2logsnr","repo":"camlab-ethz/gencfd","repo_kind":"official","path":"GenCFD/diffusion/diffusion.py","file_url":"https://github.com/camlab-ethz/gencfd/blob/HEAD/GenCFD/diffusion/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ecddf32972d7861a"}},{"code_sha256_prefix":"bb519c2de685640f","entry":"train_test_split","repo":"camlab-ethz/gencfd","repo_kind":"official","path":"GenCFD/dataloader/dataset.py","file_url":"https://github.com/camlab-ethz/gencfd/blob/HEAD/GenCFD/dataloader/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bb519c2de685640f"}},{"code_sha256_prefix":"0bfaa74ea1d71e0f","entry":"init_distributed_mode","repo":"camlab-ethz/gencfd","repo_kind":"official","path":"GenCFD/eval/evaluate_gencfd.py","file_url":"https://github.com/camlab-ethz/gencfd/blob/HEAD/GenCFD/eval/evaluate_gencfd.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0bfaa74ea1d71e0f"}},{"code_sha256_prefix":"2772d01c19339fc4","entry":"reshape_jax_torch","repo":"camlab-ethz/gencfd","repo_kind":"official","path":"GenCFD/utils/model_utils.py","file_url":"https://github.com/camlab-ethz/gencfd/blob/HEAD/GenCFD/utils/model_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2772d01c19339fc4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}