{"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/guided-trajectory-generation-with-diffusion","title":"Guided Trajectory Generation with Diffusion Models for Offline Model-based Optimization","arxiv_id":"2407.01624","date":"2024-06-29","proceeding":null,"authors":["Taeyoung Yun","Sujin Yun","Jaewoo Lee","Jinkyoo Park"],"abstract":"Optimizing complex and high-dimensional black-box functions is ubiquitous in science and engineering fields. Unfortunately, the online evaluation of these functions is restricted due to time and safety constraints in most cases. In offline model-based optimization (MBO), we aim to find a design that maximizes the target function using only a pre-existing offline dataset. While prior methods consider forward or inverse approaches to address the problem, these approaches are limited by conservatism and the difficulty of learning highly multi-modal mappings. Recently, there has been an emerging paradigm of learning to improve solutions with synthetic trajectories constructed from the offline dataset. In this paper, we introduce a novel conditional generative modeling approach to produce trajectories toward high-scoring regions. First, we construct synthetic trajectories toward high-scoring regions using the dataset while injecting locality bias for consistent improvement directions. Then, we train a conditional diffusion model to generate trajectories conditioned on their scores. Lastly, we sample multiple trajectories from the trained model with guidance to explore high-scoring regions beyond the dataset and select high-fidelity designs among generated trajectories with the proxy function. Extensive experiment results demonstrate that our method outperforms competitive baselines on Design-Bench and its practical variants. The code is publicly available in \\texttt{https://github.com/dbsxodud-11/GTG}.","url_abs":"https://arxiv.org/abs/2407.01624v1","url_pdf":"https://arxiv.org/pdf/2407.01624v1.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":"guided-trajectory-generation-with-diffusion","repo_url":"https://github.com/dbsxodud-11/gtg","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"jax","reach":{"status":"ok"}}],"tasks":[],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2407.01624","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.01624"}},"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/dbsxodud-11/gtg","reach":{"status":"ok"}}],"summary":{"ran":3,"ran_honours":1,"unverified":3},"by_repo_kind":{"official":{"samples":7,"ran":4,"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":"f34d2aee72bb091e","entry":"apply_conditioning","repo":"dbsxodud-11/gtg","repo_kind":"official","path":"diffuser/models/helpers.py","file_url":"https://github.com/dbsxodud-11/gtg/blob/HEAD/diffuser/models/helpers.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":"f34d2aee72bb091e"}},{"code_sha256_prefix":"b6113e0f43155a33","entry":"cosine_beta_schedule","repo":"dbsxodud-11/gtg","repo_kind":"official","path":"diffuser/models/helpers.py","file_url":"https://github.com/dbsxodud-11/gtg/blob/HEAD/diffuser/models/helpers.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b6113e0f43155a33"}},{"code_sha256_prefix":"69e493e37778664c","entry":"load_environment","repo":"dbsxodud-11/gtg","repo_kind":"official","path":"diffuser/datasets/d4rl.py","file_url":"https://github.com/dbsxodud-11/gtg/blob/HEAD/diffuser/datasets/d4rl.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":"69e493e37778664c"}},{"code_sha256_prefix":"bf6c5a9297d78f74","entry":"process_maze2d_episode","repo":"dbsxodud-11/gtg","repo_kind":"official","path":"diffuser/datasets/d4rl.py","file_url":"https://github.com/dbsxodud-11/gtg/blob/HEAD/diffuser/datasets/d4rl.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":"bf6c5a9297d78f74"}},{"code_sha256_prefix":"785632d29b87adad","entry":"atleast_2d","repo":"dbsxodud-11/gtg","repo_kind":"official","path":"diffuser/datasets/buffer.py","file_url":"https://github.com/dbsxodud-11/gtg/blob/HEAD/diffuser/datasets/buffer.py","link_basis":"harvester_set","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":"785632d29b87adad"}},{"code_sha256_prefix":"09c8479d9a5b3e06","entry":"extract","repo":"dbsxodud-11/gtg","repo_kind":"official","path":"diffuser/models/helpers.py","file_url":"https://github.com/dbsxodud-11/gtg/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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"09c8479d9a5b3e06"}},{"code_sha256_prefix":"6b688f0cd038f65e","entry":"get_dataset","repo":"dbsxodud-11/gtg","repo_kind":"official","path":"diffuser/datasets/d4rl.py","file_url":"https://github.com/dbsxodud-11/gtg/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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6b688f0cd038f65e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}