{"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/diffusion-predictive-control-with-constraints","title":"Diffusion Predictive Control with Constraints","arxiv_id":"2412.09342","date":"2024-12-12","proceeding":null,"authors":["Ralf Römer","Alexander von Rohr","Angela P. Schoellig"],"abstract":"Diffusion models have become popular for policy learning in robotics due to their ability to capture high-dimensional and multimodal distributions. However, diffusion policies are stochastic and typically trained offline, limiting their ability to handle unseen and dynamic conditions where novel constraints not represented in the training data must be satisfied. To overcome this limitation, we propose diffusion predictive control with constraints (DPCC), an algorithm for diffusion-based control with explicit state and action constraints that can deviate from those in the training data. DPCC incorporates model-based projections into the denoising process of a trained trajectory diffusion model and uses constraint tightening to account for model mismatch. This allows us to generate constraint-satisfying, dynamically feasible, and goal-reaching trajectories for predictive control. We show through simulations of a robot manipulator that DPCC outperforms existing methods in satisfying novel test-time constraints while maintaining performance on the learned control task.","url_abs":"https://arxiv.org/abs/2412.09342v2","url_pdf":"https://arxiv.org/pdf/2412.09342v2.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":"diffusion-predictive-control-with-constraints","repo_url":"https://github.com/ralfroemer99/dpcc","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"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2412.09342","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2412.09342"}},"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/ralfroemer99/dpcc","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":11},"by_repo_kind":{"official":{"samples":11,"ran":0,"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":"5347209028588046","entry":"add_deltas","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/datasets/preprocessing.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/datasets/preprocessing.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":"5347209028588046"}},{"code_sha256_prefix":"6bd9807956a87606","entry":"apply_conditioning","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/models/helpers.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/models/helpers.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":"6bd9807956a87606"}},{"code_sha256_prefix":"785632d29b87adad","entry":"atleast_2d","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/datasets/buffer.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/datasets/buffer.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":"785632d29b87adad"}},{"code_sha256_prefix":"3ca83b3e96824f00","entry":"atleast_2d","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/datasets/normalization.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/datasets/normalization.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":"3ca83b3e96824f00"}},{"code_sha256_prefix":"e91c32f7d4bff61d","entry":"convert_minari_to_d4rl","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/datasets/d4rl.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/datasets/d4rl.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":"e91c32f7d4bff61d"}},{"code_sha256_prefix":"0e2971f42b6c3323","entry":"cosine_beta_schedule","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/models/helpers.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/models/helpers.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":"0e2971f42b6c3323"}},{"code_sha256_prefix":"2fd70118265255f8","entry":"empirical_cdf","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/datasets/normalization.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/datasets/normalization.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":"2fd70118265255f8"}},{"code_sha256_prefix":"09c8479d9a5b3e06","entry":"extract","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/models/helpers.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/models/helpers.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":"09c8479d9a5b3e06"}},{"code_sha256_prefix":"505d6b06c543b4fb","entry":"flatten","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/datasets/normalization.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/datasets/normalization.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":"505d6b06c543b4fb"}},{"code_sha256_prefix":"65e5c27060559602","entry":"get_policy_preprocess_fn","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/datasets/preprocessing.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/datasets/preprocessing.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":"65e5c27060559602"}},{"code_sha256_prefix":"54442074c20e0e8f","entry":"get_preprocess_fn","repo":"ralfroemer99/dpcc","repo_kind":"official","path":"diffuser/datasets/preprocessing.py","file_url":"https://github.com/ralfroemer99/dpcc/blob/HEAD/diffuser/datasets/preprocessing.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":"54442074c20e0e8f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}