{"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/content-based-controls-for-music-large","title":"Content-based Controls For Music Large Language Modeling","arxiv_id":"2310.17162","date":"2023-10-26","proceeding":null,"authors":["Liwei Lin","Gus Xia","Junyan Jiang","Yixiao Zhang"],"abstract":"Recent years have witnessed a rapid growth of large-scale language models in the domain of music audio. Such models enable end-to-end generation of higher-quality music, and some allow conditioned generation using text descriptions. However, the control power of text controls on music is intrinsically limited, as they can only describe music indirectly through meta-data (such as singers and instruments) or high-level representations (such as genre and emotion). We aim to further equip the models with direct and content-based controls on innate music languages such as pitch, chords and drum track. To this end, we contribute Coco-Mulla, a content-based control method for music large language modeling. It uses a parameter-efficient fine-tuning (PEFT) method tailored for Transformer-based audio models. Experiments show that our approach achieved high-quality music generation with low-resource semi-supervised learning, tuning with less than 4% parameters compared to the original model and training on a small dataset with fewer than 300 songs. Moreover, our approach enables effective content-based controls, and we illustrate the control power via chords and rhythms, two of the most salient features of music audio. Furthermore, we show that by combining content-based controls and text descriptions, our system achieves flexible music variation generation and arrangement. Our source codes and demos are available online.","url_abs":"https://arxiv.org/abs/2310.17162v3","url_pdf":"https://arxiv.org/pdf/2310.17162v3.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":"content-based-controls-for-music-large","repo_url":"https://github.com/kikyo-16/coco-mulla-repo","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"music-generation","task_name":"Music Generation"},{"task_slug":"style-transfer","task_name":"Style Transfer"},{"task_slug":"parameter-efficient-fine-tuning","task_name":"parameter-efficient fine-tuning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.17162","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.17162"}},"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/kikyo-16/coco-mulla-repo","reach":{"status":"ok"}}],"summary":{"ran":3,"ran_violates":2,"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"official":{"samples":12,"ran":6,"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":12,"samples":[{"code_sha256_prefix":"799fbd89d9ecbf5b","entry":"create_norm_fn","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/models/transformer_cc.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/models/transformer_cc.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":"799fbd89d9ecbf5b"}},{"code_sha256_prefix":"aa5486a3650902d8","entry":"exists","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/utilities/model_utils.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/utilities/model_utils.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aa5486a3650902d8"}},{"code_sha256_prefix":"0ff658860f6a6e4f","entry":"first","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/utilities/model_utils.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/utilities/model_utils.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0ff658860f6a6e4f"}},{"code_sha256_prefix":"383d03399d7ba9ee","entry":"get_encodec_autoencoder","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/models/builders_cc.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/models/builders_cc.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":"383d03399d7ba9ee"}},{"code_sha256_prefix":"f09362f0b657d8b6","entry":"get_init_fn","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/models/lm_cc.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/models/lm_cc.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":"f09362f0b657d8b6"}},{"code_sha256_prefix":"52e10a7d6b0fa036","entry":"once","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/utilities/model_utils.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/utilities/model_utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"52e10a7d6b0fa036"}},{"code_sha256_prefix":"8563f5c5fae8ad76","entry":"create_sin_embedding","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/models/transformer_cc.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/models/transformer_cc.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":"8563f5c5fae8ad76"}},{"code_sha256_prefix":"0627f3dc8c933828","entry":"expand_repeated_kv","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/models/transformer_cc.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/models/transformer_cc.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":"0627f3dc8c933828"}},{"code_sha256_prefix":"8eeb1681acf258b7","entry":"get_encodec_autoencoder","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/audiocraft/models/builders.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/audiocraft/models/builders.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":"8eeb1681acf258b7"}},{"code_sha256_prefix":"cd47db48a31b937a","entry":"get_musicgen","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/models/model.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/models/model.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":"cd47db48a31b937a"}},{"code_sha256_prefix":"4deb496341887485","entry":"load_compression_model","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/models/loaders_cc.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/models/loaders_cc.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":"4deb496341887485"}},{"code_sha256_prefix":"8b569f0c75f3f66d","entry":"load_lm_model","repo":"kikyo-16/coco-mulla-repo","repo_kind":"official","path":"coco_mulla/models/loaders_cc.py","file_url":"https://github.com/kikyo-16/coco-mulla-repo/blob/HEAD/coco_mulla/models/loaders_cc.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":"8b569f0c75f3f66d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}