{"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/2408-03124","title":"CL-DiffPhyCon: Closed-loop Diffusion Control of Complex Physical Systems","arxiv_id":"2408.03124","date":"2024-07-31","proceeding":null,"authors":["Long Wei","Haodong Feng","Yuchen Yang","Ruiqi Feng","Peiyan Hu","Xiang Zheng","Tao Zhang","Dixia Fan","Tailin Wu"],"abstract":"The control problems of complex physical systems have broad applications in science and engineering. Previous studies have shown that generative control methods based on diffusion models offer significant advantages for solving these problems. However, existing generative control approaches face challenges in both performance and efficiency when extended to the closed-loop setting, which is essential for effective control. In this paper, we propose an efficient Closed-Loop Diffusion method for Physical systems Control (CL-DiffPhyCon). By employing an asynchronous denoising framework for different physical time steps, CL-DiffPhyCon generates control signals conditioned on real-time feedback from the system with significantly reduced computational cost during sampling. Additionally, the control process could be further accelerated by incorporating fast sampling techniques, such as DDIM. We evaluate CL-DiffPhyCon on two tasks: 1D Burgers' equation control and 2D incompressible fluid control. The results demonstrate that CL-DiffPhyCon achieves superior control performance with significant improvements in sampling efficiency. The code can be found at https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon.","url_abs":"https://arxiv.org/abs/2408.03124v3","url_pdf":"https://arxiv.org/pdf/2408.03124v3.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":"2408-03124","repo_url":"https://github.com/ai4science-westlakeu/cl_diffphycon","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"denoising","task_name":"Denoising"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"speed","method_name":"SPEED"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2408.03124","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2408.03124"}},"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/AI4Science-WestlakeU/CL_DiffPhyCon","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ai4science-westlakeu/cl_diffphycon","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":3,"ran":2,"ran_violates":4,"unverified":6},"by_repo_kind":{"official":{"samples":15,"ran":9,"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":"7f1040f5e3991d5e","entry":"identity","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"diffusion/diffusion_2d.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/diffusion/diffusion_2d.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":2,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7f1040f5e3991d5e"}},{"code_sha256_prefix":"96caecdace827fb4","entry":"InferencePipeline","repo":"ai4science-westlakeu/cl_diffphycon","repo_kind":"official","path":"inference/inference_2d.py","file_url":"https://github.com/ai4science-westlakeu/cl_diffphycon/blob/HEAD/inference/inference_2d.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":"96caecdace827fb4"}},{"code_sha256_prefix":"d1ef6b8cb9a28a53","entry":"default","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"model/video_diffusion_pytorch_conv3d.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/model/video_diffusion_pytorch_conv3d.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d1ef6b8cb9a28a53"}},{"code_sha256_prefix":"aa5486a3650902d8","entry":"exists","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"model/text.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/model/text.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aa5486a3650902d8"}},{"code_sha256_prefix":"608e364a9d2376a3","entry":"exists","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"model/video_diffusion_pytorch_conv3d.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/model/video_diffusion_pytorch_conv3d.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"608e364a9d2376a3"}},{"code_sha256_prefix":"ebab7abaec014f95","entry":"get_burgers_preprocess","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"dataset/data_1d.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/dataset/data_1d.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":"ebab7abaec014f95"}},{"code_sha256_prefix":"ebc12c938e7a6b29","entry":"is_odd","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"model/video_diffusion_pytorch_conv3d.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/model/video_diffusion_pytorch_conv3d.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ebc12c938e7a6b29"}},{"code_sha256_prefix":"a1229a9f4df127e2","entry":"normalize_to_neg_one_to_one","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"utils_1d/model_utils.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/utils_1d/model_utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a1229a9f4df127e2"}},{"code_sha256_prefix":"97e1bbd232dfe092","entry":"unnormalize_to_zero_to_one","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"utils_1d/model_utils.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/utils_1d/model_utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"97e1bbd232dfe092"}},{"code_sha256_prefix":"ac66a9775ac199a0","entry":"bert_embed","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"model/text.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/model/text.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":"ac66a9775ac199a0"}},{"code_sha256_prefix":"7d3807f597feb193","entry":"display_name","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"phi/model.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/phi/model.py","link_basis":"harvester_set","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":"7d3807f597feb193"}},{"code_sha256_prefix":"8eb357dddd5f2b3e","entry":"guidance_fn","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"inference/inference_2d.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/inference/inference_2d.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":"8eb357dddd5f2b3e"}},{"code_sha256_prefix":"a46646c5c4bab5e8","entry":"solver_env","repo":"ai4science-westlakeu/cl_diffphycon","repo_kind":"official","path":"inference/inference_2d.py","file_url":"https://github.com/ai4science-westlakeu/cl_diffphycon/blob/HEAD/inference/inference_2d.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":"a46646c5c4bab5e8"}},{"code_sha256_prefix":"35eb6064f0c2c7a2","entry":"synchronized_method","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"phi/model.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/phi/model.py","link_basis":"harvester_set","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":"35eb6064f0c2c7a2"}},{"code_sha256_prefix":"03dfcc33eeaff851","entry":"tokenize","repo":"AI4Science-WestlakeU/CL_DiffPhyCon","repo_kind":"official","path":"model/text.py","file_url":"https://github.com/AI4Science-WestlakeU/CL_DiffPhyCon/blob/HEAD/model/text.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":"03dfcc33eeaff851"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}