ChatMusician: Understanding and Generating Music Intrinsically with LLM
Authors: name: Ruibin Yuan; name: Hanfeng Lin; name: Yi Wang; name: Zeyue Tian; name: Shangda Wu; name: Tianhao Shen; name: Ge Zhang; name: Yuhang Wu; name: Cong Liu; name: Ziya Zhou; name: Ziyang Ma; name: Liumeng Xue; name: Ziyu Wang; name: Qin Liu; name: Tianyu Zheng; name: Yizhi Li; name: Yinghao Ma; name: Yiming Liang; name: Xiaowei Chi; name: Ruibo Liu; name: Zili Wang; name: Pengfei Li; name: Jingcheng Wu; name: Chenghua Lin; name: Qifeng Liu; name: Tao Jiang; name: Wenhao Huang; name: Wenhu Chen; name: Emmanouil Benetos; name: Jie Fu; name: Gus Xia; name: Roger Dannenberg; name: Wei Xue; name: Shiyin Kang; name: Yike Guo
Published: 2024-02-25 17:19:41

Abstract: While Large Language Models (LLMs) demonstrate impressive capabilities in
text generation, we find that their ability has yet to be generalized to music,
humanity's creative language. We introduce ChatMusician, an open-source LLM
that integrates intrinsic musical abilities. It is based on continual
pre-training and finetuning LLaMA2 on a text-compatible music representation,
ABC notation, and the music is treated as a second language. ChatMusician can
understand and generate music with a pure text tokenizer without any external
multi-modal neural structures or tokenizers. Interestingly, endowing musical
abilities does not harm language abilities, even achieving a slightly higher
MMLU score. Our model is capable of composing well-structured, full-length
music, conditioned on texts, chords, melodies, motifs, musical forms, etc,
surpassing GPT-4 baseline. On our meticulously curated college-level music
understanding benchmark, MusicTheoryBench, ChatMusician surpasses LLaMA2 and
GPT-3.5 on zero-shot setting by a noticeable margin. Our work reveals that LLMs
can be an excellent compressor for music, but there remains significant
territory to be conquered. We release our 4B token music-language corpora
MusicPile, the collected MusicTheoryBench, code, model and demo in GitHub.