{"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/minedreamer-learning-to-follow-instructions","title":"MineDreamer: Learning to Follow Instructions via Chain-of-Imagination for Simulated-World Control","arxiv_id":"2403.12037","date":"2024-03-18","proceeding":null,"authors":["Enshen Zhou","Yiran Qin","Zhenfei Yin","Yuzhou Huang","Ruimao Zhang","Lu Sheng","Yu Qiao","Jing Shao"],"abstract":"It is a long-lasting goal to design a generalist-embodied agent that can follow diverse instructions in human-like ways. However, existing approaches often fail to steadily follow instructions due to difficulties in understanding abstract and sequential natural language instructions. To this end, we introduce MineDreamer, an open-ended embodied agent built upon the challenging Minecraft simulator with an innovative paradigm that enhances instruction-following ability in low-level control signal generation. Specifically, MineDreamer is developed on top of recent advances in Multimodal Large Language Models (MLLMs) and diffusion models, and we employ a Chain-of-Imagination (CoI) mechanism to envision the step-by-step process of executing instructions and translating imaginations into more precise visual prompts tailored to the current state; subsequently, the agent generates keyboard-and-mouse actions to efficiently achieve these imaginations, steadily following the instructions at each step. Extensive experiments demonstrate that MineDreamer follows single and multi-step instructions steadily, significantly outperforming the best generalist agent baseline and nearly doubling its performance. Moreover, qualitative analysis of the agent's imaginative ability reveals its generalization and comprehension of the open world.","url_abs":"https://arxiv.org/abs/2403.12037v2","url_pdf":"https://arxiv.org/pdf/2403.12037v2.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":"minedreamer-learning-to-follow-instructions","repo_url":"https://github.com/Zhoues/MineDreamer","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"instruction-following","task_name":"Instruction Following"},{"task_slug":"minecraft","task_name":"Minecraft"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2403.12037","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.12037"}},"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/Zhoues/MineDreamer","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":8,"ran_draft_wrong":2,"unverified":2},"by_repo_kind":{"official":{"samples":12,"ran":10,"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":"95636daa8c9cdedc","entry":"batch_recursive_objects","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/helpers.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/helpers.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":"95636daa8c9cdedc"}},{"code_sha256_prefix":"2bcf842598e9b062","entry":"get_band_diagonal_mask","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/VPT/lib/masked_attention.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/VPT/lib/masked_attention.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":"2bcf842598e9b062"}},{"code_sha256_prefix":"5a483048c1438391","entry":"get_ith_slice_of_object","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/helpers.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/helpers.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":"5a483048c1438391"}},{"code_sha256_prefix":"5234c0dfb707f813","entry":"intprod","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/VPT/lib/misc.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/VPT/lib/misc.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":"5234c0dfb707f813"}},{"code_sha256_prefix":"b2300f16257d73e9","entry":"json_action_to_env_action","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/VPT/run_inverse_dynamics_model.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/VPT/run_inverse_dynamics_model.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b2300f16257d73e9"}},{"code_sha256_prefix":"c4a3560ab2dcdd89","entry":"object_to_numpy","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/helpers.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/helpers.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":"c4a3560ab2dcdd89"}},{"code_sha256_prefix":"7191618c00cc9152","entry":"resize_image","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/VPT/agent.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/VPT/agent.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":"7191618c00cc9152"}},{"code_sha256_prefix":"e9f218ee05e29fad","entry":"store_args","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/VPT/lib/minecraft_util.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/VPT/lib/minecraft_util.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e9f218ee05e29fad"}},{"code_sha256_prefix":"6e2674f0120e0c29","entry":"transpose","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/VPT/lib/misc.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/VPT/lib/misc.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":"6e2674f0120e0c29"}},{"code_sha256_prefix":"5760c363cbb2cc44","entry":"transpose_undo","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/VPT/lib/misc.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/VPT/lib/misc.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":"5760c363cbb2cc44"}},{"code_sha256_prefix":"c85876e5bf29dc07","entry":"get_mask","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/VPT/lib/masked_attention.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/VPT/lib/masked_attention.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":"c85876e5bf29dc07"}},{"code_sha256_prefix":"46d393af0ba227d6","entry":"get_norm_entropy_from_cat_head","repo":"Zhoues/MineDreamer","repo_kind":"official","path":"minedreamer/VPT/lib/minecraft_util.py","file_url":"https://github.com/Zhoues/MineDreamer/blob/HEAD/minedreamer/VPT/lib/minecraft_util.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":"46d393af0ba227d6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}