[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-489269-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-489269-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","songcomposer-songcomposer-a-large-language-model-for-lyric-and-melody-generation-in-song-composition","SongComposer - SongComposer: A Large Language Model for Lyric and Melody Generation in Song Composition","","Creating lyrics and melodies for the vocal track in a symbolic format—song composition—requires expert musical knowledge of melody, strong understanding of lyrics, and precise alignment between them. Despite progress in related sub-tasks, a unified model for composing both concurrently under instructions remains missing. This paper presents SongComposer, a music-specialized LLM integrating lyric-melody joint composition via tuple alignment, an extended tokenizer for song notes, and a multi-stage structural pipeline. Experiments show improved results in multiple generation tasks, supported by a planned Chinese-English training dataset release.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/songcomposer-songcomposer-a-large-language-model-for-lyric-and-melody-generation-in-song-composition/489269/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/songcomposer-songcomposer-a-large-language-model-for-lyric-and-melody-generation-in-song-composition/489269.png","ImageObject",300,407,{"name":42,"@type":43},"Aldword","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-01","2026-10-01",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",10,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem does SongComposer address in song composition?","Question",{"text":63,"@type":64},"SongComposer addresses the lack of a unified, instruction-following model that can generate lyrics and melodies together with precise alignment in symbolic song composition.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does SongComposer represent alignment between lyrics and melodies?",{"text":68,"@type":64},"It uses a flexible tuple format for word-level alignment of lyrics and melodies, enabling simultaneous composition of both tracks within an LLM framework.",{"name":70,"@type":61,"acceptedAnswer":71},"What innovations and pipeline does SongComposer use to improve musical coherence?",{"text":72,"@type":64},"SongComposer extends tokenization with song-note vocabulary, initializes scalars using musical knowledge, and applies a multi-stage pipeline from motif-level melody patterns to phrase-level structure for better coherence.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},489269,1790977935,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":55,"slug":125},"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":118,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":104,"preview_page_count":33,"preview_urls":144},2336478940917,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","SongComposer: A Large Language Model for Lyric and Melody Generation in Song Composition  \nShuangrui Ding1 * , Zihan Liu2,3∗, Xiaoyi Dong1,3 , Pan Zhang3 , Rui Qian1 , Junhao Huang3 , Conghui He3 , Dahua Lin1,3,4 , Jiaqi Wang3  \n1The Chinese University of Hong Kong, 2Beihang University,  \n3 Shanghai AI Laboratory, 4 CPII under InnoHK  \n[Correspondence:](Correspondence: wangjiaqi@pjlab.org.cn)[ wangjiaqi@pjlab.org.cn](Correspondence: wangjiaqi@pjlab.org.cn)  \nAbstract  \nCreating lyrics and melodies for the vocal track in a symbolic format, known as song composition, demands expert musical knowledge of melody, an advanced understanding of lyrics, and precise alignment between them. Despite achievements in sub-tasks such as lyric generation, lyric-to-melody, and melody-to-lyric, etc, a unified model for song composition has not yet been achieved. In this paper, we introduce SongComposer, a pioneering step towards a unified song composition model that can readily create symbolic lyrics and melodies following instructions. SongComposer is a music-specialized large language model (LLM) that, for the first time, integrates the capability of simultaneously composing lyrics and melodies into LLMs by leveraging three key innovations: 1) a flexible tuple format for word-level alignment of lyrics and melodies, 2) an extended tokenizer vocabulary for song notes, with scalar initialization based on musical knowledge to capture rhythm, and 3) a multi-stage pipeline that captures musical structure, starting with motif-level melody patterns and progressing to phrase-level structure for improved coherence. Extensive experiments demonstrate that SongComposer outperforms advanced LLMs, including GPT-4, in tasks such as lyric-to-melody generation, melody-tolyric generation, song continuation, and text-tosong creation. We showcase the generated samples on our project page 1. Moreover, we will release SongCompose, a large-scale dataset for training, containing paired lyrics and melodies in Chinese and English.  \n1 Introduction  \nSymbolic song composition aims to generate the vocal track of a song as a sequence of symbols representing lyrics and melodies. It is a vital task in  \n*equal contribution 1 [https://pjlab-songcomposer.github.io/](https://pjlab-songcomposer.github.io/)  \nsong generation and requires professional knowledge. Recently, this field has become a highly active area of research in both academic and industrial domains. Previous efforts have made significant progress in isolated sub-tasks of song composition such as lyric generation (Zhang et al., 2022c), lyricto-melody (Yu et al., 2021a ; Ju et al., 2022 ; Shenget al., 2021 ; Zhang et al., 2022a) or melody-to-lyric generation (Sheng et al., 2021 ; Ma et al., 2021) . However, the absence of a unified framework for generating both lyrics and melodies concurrently while adhering to specific instructions poses a challenge for seamless adaptation, thereby creating a higher hurdle for everyday amateurs.  \nThe recent surge in large language models (LLMs) has dramatically revolutionized the artificial intelligence landscape, especially in natural language understanding and generation (Brown et al., 2020 ; Chiang et al., 2023 ; Wei et al., 2021 ; Chowdhery et al., 2023 ; Raffel et al., 2020 ; Devlin et al., 2018) . These models have established new benchmarks for parsing and producing human language, showcasing human-level proficiency in complex language environments. Given that symbolic song representation shares structural similarities with human language, it seems plausible that LLMs could facilitate the creation of symbolic songs. Furthermore, unlike previous non-LLM methods (Sheng et al., 2021 ; Ju et al., 2022) that handle only specific tasks, LLMs can integrate various sub-tasks of song composition into a single model due to their instruction-following abilities. However, enabling LLMs to compose full-length songs that harmonize melody and lyrics is not a trivial task. First, as illust","cbCaiog0idXv3VOX","https://ap.wps.com/l/cbCaiog0idXv3VOX","pdf",6370891,"English","# Abstract\n# Introduction\n## Symbolic song composition and its challenges\n## LLMs for instruction-following song generation","[{\"question\":\"What problem does SongComposer address in song composition?\",\"answer\":\"SongComposer addresses the lack of a unified, instruction-following model that can generate lyrics and melodies together with precise alignment in symbolic song composition.\"},{\"question\":\"How does SongComposer represent alignment between lyrics and melodies?\",\"answer\":\"It uses a flexible tuple format for word-level alignment of lyrics and melodies, enabling simultaneous composition of both tracks within an LLM framework.\"},{\"question\":\"What innovations and pipeline does SongComposer use to improve musical coherence?\",\"answer\":\"SongComposer extends tokenization with song-note vocabulary, initializes scalars using musical knowledge, and applies a multi-stage pipeline from motif-level melody patterns to phrase-level structure for better coherence.\"}]","SongComposer - SongComposer: A Large Language Model for Lyric and Melody Generation in Song Composition | PDF",1790821885,[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/33e86f92b49cf3d54f214bc035e6e68a.webp",983,1390,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/06762710eb9e87de488abea8d1b6fedc.webp",982,1388,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b72b2bd5ae9060318d7e92fe705fc412.webp",981,1387,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/ea56915ced6a288b6199dad03e327b6d.webp",980,1385]