{"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/instruct-musicgen-unlocking-text-to-music","title":"Instruct-MusicGen: Unlocking Text-to-Music Editing for Music Language Models via Instruction Tuning","arxiv_id":"2405.18386","date":"2024-05-28","proceeding":null,"authors":["Yixiao Zhang","Yukara Ikemiya","Woosung Choi","Naoki Murata","Marco A. Martínez-Ramírez","Liwei Lin","Gus Xia","Wei-Hsiang Liao","Yuki Mitsufuji","Simon Dixon"],"abstract":"Recent advances in text-to-music editing, which employ text queries to modify music (e.g.\\ by changing its style or adjusting instrumental components), present unique challenges and opportunities for AI-assisted music creation. Previous approaches in this domain have been constrained by the necessity to train specific editing models from scratch, which is both resource-intensive and inefficient; other research uses large language models to predict edited music, resulting in imprecise audio reconstruction. To Combine the strengths and address these limitations, we introduce Instruct-MusicGen, a novel approach that finetunes a pretrained MusicGen model to efficiently follow editing instructions such as adding, removing, or separating stems. Our approach involves a modification of the original MusicGen architecture by incorporating a text fusion module and an audio fusion module, which allow the model to process instruction texts and audio inputs concurrently and yield the desired edited music. Remarkably, Instruct-MusicGen only introduces 8% new parameters to the original MusicGen model and only trains for 5K steps, yet it achieves superior performance across all tasks compared to existing baselines, and demonstrates performance comparable to the models trained for specific tasks. This advancement not only enhances the efficiency of text-to-music editing but also broadens the applicability of music language models in dynamic music production environments.","url_abs":"https://arxiv.org/abs/2405.18386v2","url_pdf":"https://arxiv.org/pdf/2405.18386v2.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":"instruct-musicgen-unlocking-text-to-music","repo_url":"https://github.com/ldzhangyx/instruct-MusicGen","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"instruct-musicgen-unlocking-text-to-music","repo_url":"https://github.com/MS-P3/code5/tree/main/musicgen","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2405.18386","atlas_url":"https://app.syntology.ai/?focus=2405.18386","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.18386"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/MS-P3/code5/tree/main/musicgen","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ldzhangyx/instruct-MusicGen","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":2},"by_repo_kind":{"listed":{"samples":2,"ran":2,"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":"45ac4198df42b5f0","entry":"build_prompt","repo":"MS-P3/code5","repo_kind":"listed","path":"chatglm3/cli_demo.py","file_url":"https://github.com/MS-P3/code5/blob/HEAD/chatglm3/cli_demo.py","link_basis":"harvester_set","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":"45ac4198df42b5f0"}},{"code_sha256_prefix":"bbb3f9a408314433","entry":"extract_function_info","repo":"MS-P3/code5","repo_kind":"listed","path":"generate_comments/generate_comments.py","file_url":"https://github.com/MS-P3/code5/blob/HEAD/generate_comments/generate_comments.py","link_basis":"harvester_set","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":"bbb3f9a408314433"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}