[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-345134-105":3,"doc-detail-345134-en":81,"detail-sidebar-cat-0-en-105":116,"doc-similar-345134":163},{"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","compound-word-transformer-learning-to-compose-full-song-music-over-dynamic-directed-hypergraphs","Compound Word Transformer - Learning to Compose Full-Song Music over Dynamic Directed Hypergraphs","","Neural sequence models such as Transformers can generate music only after converting a score into a token sequence from a fixed vocabulary. Music vocabularies contain heterogeneous token types (e.g., pitch, duration, dynamics, onset, and metric events), yet prior models typically treat all tokens uniformly. This paper introduces a compound-word Transformer that respects token types via type-specific decoder heads and compresses sequences by grouping neighboring tokens. The model can be interpreted as learning over dynamic directed hypergraphs and composes expressive full-song Pop piano music with up to 10K tokens per song, converging 5–10× faster than state of the art at comparable quality.",{"@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/compound-word-transformer-learning-to-compose-full-song-music-over-dynamic-directed-hypergraphs/345134/",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/compound-word-transformer-learning-to-compose-full-song-music-over-dynamic-directed-hypergraphs/345134.png","ImageObject",300,407,{"name":42,"@type":43},"McQueen","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-22","2026-09-22",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",17,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem does the compound word Transformer address in symbolic music generation?","Question",{"text":63,"@type":64},"It targets the mismatch between heterogeneous music token types and the common practice of treating all tokens equally, like words in text. It improves modeling by incorporating token-type awareness and compound-word sequence compression.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does the model handle different token types?",{"text":68,"@type":64},"It uses a new Transformer decoder architecture with different feed-forward heads for tokens of different types, rather than a single uniform head.",{"name":70,"@type":61,"acceptedAnswer":71},"What is the purpose of compound-word modeling in the paper?",{"text":72,"@type":64},"It groups neighboring related tokens into compound words to represent a music piece with a shorter sequence. This reduces sequence length while preserving co-occurrence relationships needed for tasks like notes and tempo changes.","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},345134,1790388389,{"code":4,"msg":82,"data":83},"success",{"doc_id":79,"user_id":84,"nickname":42,"user_avatar":85,"doc_module":4,"category_id":86,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":87,"file_id":88,"file_url":89,"file_type":90,"file_size":91,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":92,"language":93,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":94,"faqs":95,"seo_title":96,"seo_description":12,"update_tm":97,"read_time":98,"preview_page_count":33,"preview_urls":99},5909890329169,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc",8,"Compound Word Transformer: Learning to Compose Full-Song Music over Dynamic Directed Hypergraphs  \nWen-Yi Hsiao, 1 Jen-Yu Liu, 1 , Yin-Cheng Yeh, 1 Yi-Hsuan Yang2  \n1Yating Team, Taiwan AI Labs, Taiwan  \n2Academia Sinica, Taiwan  \nfwayne391, jyliu, yyeh, [yhyang](yhyangg@ailabs.tw)[g](yhyangg@ailabs.tw)[@ailabs.tw](yhyangg@ailabs.tw)  \nAbstract  \nTo apply neural sequence models such as the Transformers to music generation tasks, one has to represent a piece of music by a sequence of tokens drawn from a 􀀂nite set of pre-de􀀂ned vocabulary. Such a vocabulary usually involves tokens of various types. For example, to describe a musical note, one needs separate tokens to indicate the note's pitch, duration, velocity (dynamics), and placement (onset time) along the time grid. While different types of tokens may possess different properties, existing models usually treat them equally, in the same way as modeling words in natural languages. In this paper, we present a conceptually different approach that explicitly takes into account the type of the tokens, such as note types and metric types. And, we propose a new Transformer decoder architecture that uses different feed-forward heads to model tokens of different types. With an expansion-compression trick, we convert a piece of music to a sequence of compound words by grouping neighboring tokens, greatly reducing the length of the token sequences. We show that the resulting model can be viewed as a learner over dynamic directed hypergraphs. And, we employ it to learn to compose expressive Pop piano music of full-song length (involving up to 10K individual tokens per song), both conditionally and unconditionally. Our experiment shows that, compared to state-of-the-art models, the proposed model converges 5 to 10 times faster at training (i.e., within a day on a single GPU with 11 GB memory), and with comparable quality in the generated music.  \nIntroduction  \nTo apply neural sequence models such as recurrent neural networks (RNNs) or Transformers (Vaswani et al. 2017) to automatic music composition (a.k.a., symbolic-domain music generation), one has to represent a piece of music as a sequence of tokens drawn from a pre-de􀀂ned vocabulary (Oore et al. 2018) . Unlike the case in text, such a vocabulary usually involves tokens of various types. For example, to represent a musical score, we may need tokens that describe the content of the musical notes (e.g., pitch and duration), their placement along time, the instrument that plays each note, as well as indicators of metrical events such as the beginning of a new beat, bar (measure), or musical phrase (Wu and Yang 2020) . We need such a diverse set of tokens as music is multifaceted; a type alone captures only a certain  \nCopyright 􀀍c 2021, Association for the Advancement of Arti􀀂cial Intelligence ([www.aaai.org](www.aaai.org)). All rights reserved.  \nFigure 1: Illustration of the main ideas of the proposed compound word Transformer: (left) compound word modeling that combines the embeddings (colored gray) of multiple tokens fwt􀀀1;kg, one for e~ach token type k, at each time step t 􀀀 1 to form the input xt􀀀1 to the self-attention layers, and (right) toke type-speci􀀂c feed-forward heads that predict the list of tokens for the next time step t at once at the output.  \naspect of music (e.g., melody, harmony, rhythm, timbre) and cannot faithfully represent a music piece.  \nAs different types of (musical) tokens may have different properties, modeling the dependency of these tokens might not be the same as modeling words in text. However, to our best knowledge, little work has been done to explicitly account for the heterogeneity of tokens in music. The tokens are mostly treated equally, in the same way as words in text (Huang et al. 2019; Payne 2019; Huang and Yang 2020) .  \nWe are therefore motivated to study in this paper whether we can improve sequence modeling of music by highlighting the role of token types. Our 􀀂rst proposal is to custom","cbCaikFxMTINTU2U","https://ap.wps.com/l/cbCaikFxMTINTU2U","pdf",412823,9,"English","# Abstract\n# Introduction\n# Approach and Model Design\n## Type-specific decoder heads\n## Compound-word sequence compression\n# Experimental Results","[{\"question\":\"What problem does the compound word Transformer address in symbolic music generation?\",\"answer\":\"It targets the mismatch between heterogeneous music token types and the common practice of treating all tokens equally, like words in text. It improves modeling by incorporating token-type awareness and compound-word sequence compression.\"},{\"question\":\"How does the model handle different token types?\",\"answer\":\"It uses a new Transformer decoder architecture with different feed-forward heads for tokens of different types, rather than a single uniform head.\"},{\"question\":\"What is the purpose of compound-word modeling in the paper?\",\"answer\":\"It groups neighboring related tokens into compound words to represent a music piece with a shorter sequence. This reduces sequence length while preserving co-occurrence relationships needed for tasks like notes and tempo changes.\"}]","Compound Word Transformer - Learning to Compose Full-Song Music over Dynamic Directed Hypergraphs | PDF",1790056595,23,[100,104,108,112],{"page_no":22,"url":101,"width":102,"height":103},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/9d2a00e872638c11c2feca2ee4e30532.webp",983,1272,{"page_no":26,"url":105,"width":106,"height":107},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/bff759bde89476e906e6c7a70025acd3.webp",982,1270,{"page_no":30,"url":109,"width":110,"height":111},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/8df6418ec16752e3d815d1c054371fda.webp",981,1269,{"page_no":33,"url":113,"width":114,"height":115},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/0e8b4a87f022888e46a9f33b94f82f61.webp",980,1268,{"code":4,"msg":82,"data":117},[118,122,126,130,135,140,145,148,152,155,159],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":120,"slug":121},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":124,"slug":125},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":128,"slug":129},"Exam",70,"exam",{"id":131,"doc_module":4,"doc_module_name":25,"category_name":132,"show_sort_weight":133,"slug":134},5,"Comic",60,"comic",{"id":136,"doc_module":4,"doc_module_name":25,"category_name":137,"show_sort_weight":138,"slug":139},6,"Technology",50,"technology",{"id":141,"doc_module":4,"doc_module_name":25,"category_name":142,"show_sort_weight":143,"slug":144},7,"Healthcare",40,"healthcare",{"id":86,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":146,"slug":147},30,"research-report",{"id":92,"doc_module":4,"doc_module_name":25,"category_name":149,"show_sort_weight":150,"slug":151},"Religion & Spirituality",20,"religion-spirituality",{"id":150,"doc_module":4,"doc_module_name":25,"category_name":153,"show_sort_weight":150,"slug":154},"World Cup","world-cup",{"id":156,"doc_module":4,"doc_module_name":25,"category_name":157,"show_sort_weight":156,"slug":158},10,"Lifestyle","lifestyle",{"id":160,"doc_module":4,"doc_module_name":25,"category_name":161,"show_sort_weight":131,"slug":162},19,"General","general",{"list":164,"token":11},[165,172,179,186,193,200,207,214,221,228],{"doc_id":166,"doc_title":167,"file_type":90,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":29,"create_tm":171},82834,"Do All Visual Tokens Matter Equally Object-Evidence Preserving Token Merging for Vision-Language Retrieval","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808795202/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=Vk9VCkMhJnD2vCH7%2F%2FQEP3S%2Bbdg%3D","do-all-visual-tokens-matter-equally-object-evidence-preserving-token-merging-for-vision-language-retrieval",33,1784183286,{"doc_id":173,"doc_title":174,"file_type":90,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":29,"create_tm":178},328002,"Do All Visual Tokens Matter Equally? - Object-Evidence Preserving Token Merging for Vision-Language Retrieval","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909358157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=j%2FCJXxFMGdqLRWS7yjQhSoBiRRU%3D","do-all-visual-tokens-matter-equally-object-evidence-preserving-token-merging-for-vision-language-retrieval-328002",15,1789978472,{"doc_id":180,"doc_title":181,"file_type":90,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":29,"create_tm":185},82037,"HALO: Hybrid Adaptive Latent Reasoning for Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808662386/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=UMSWjgNNmu3xfwo90ObDl7S1%2BOE%3D","halo-hybrid-adaptive-latent-reasoning-for-language-models",21,1784177730,{"doc_id":187,"doc_title":188,"file_type":90,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":29,"create_tm":192},84940,"NativeMEM: Native Memory Compression for Long-Horizon Robotic Manipulation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809223327/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=N3DmfA1N36V3YUiESy0mX0pEizU%3D","nativemem-native-memory-compression-for-long-horizon-robotic-manipulation",22,1784199593,{"doc_id":194,"doc_title":195,"file_type":90,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":29,"create_tm":199},82191,"Event-Based Token Sequences for Audio-Conditioned Music-Game Level Modeling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808719975/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=6Omn9YF01PXpd%2FVc%2BW5htusPt9k%3D","event-based-token-sequences-for-audio-conditioned-music-game-level-modeling",24,1784178715,{"doc_id":201,"doc_title":202,"file_type":90,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":29,"create_tm":206},82557,"Recovering Input Text from Hidden States Study of Gradient-Based Inversion of Decoder-Only Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808763553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=o4fjjx2TUhXk4LDlBx9jtm5jLw0%3D","recovering-input-text-from-hidden-states-study-of-gradient-based-inversion-of-decoder-only-language-models",27,1784181521,{"doc_id":208,"doc_title":209,"file_type":90,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":29,"create_tm":213},343245,"LightThinker: Thinking Step-by-Step Compression","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910747592/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=p8EEwD8%2BQYGLqSDis8y4%2FhTw9N8%3D","lightthinker-thinking-step-by-step-compression",13,1790050411,{"doc_id":215,"doc_title":216,"file_type":90,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":29,"create_tm":220},661196,"YUE - Scaling Open Foundation Models for Long-Form Music Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229979661234/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=x6QdbOeLln9is2MIm8hLCl7T1n8%3D","yue-scaling-open-foundation-models-for-long-form-music-generation",12,1793159566,{"doc_id":222,"doc_title":223,"file_type":90,"home_preview_img_url":224,"slug":225,"view_count":226,"category_name":29,"create_tm":227},201643,"MCAT - Scaling Many-to-Many Speech-to-Text Translation with MLLMs to 70 Languages","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229882508060/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=e5nlcjEZAO%2FBDmwseb3gBnrGzMM%3D","mcat-scaling-many-to-many-speech-to-text-translation-with-mllms-to-70-languages",16,1788536412,{"doc_id":229,"doc_title":230,"file_type":90,"home_preview_img_url":231,"slug":232,"view_count":233,"category_name":29,"create_tm":234},82850,"Turning Off-Policy Tokens On-Policy: A Plug-in Approach for Improving LLM Alignment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808796863/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=28HSxvJ5WvlhXdOny4c64STH0SY%3D","turning-off-policy-tokens-on-policy-a-plug-in-approach-for-improving-llm-alignment",36,1784183409]