ChatMusician:利用大语言模型内在地理解与生成音乐
ChatMusician: Understanding and Generating Music Intrinsically with LLM
AI总结:
本文提出 ChatMusician,通过在 ABC 记谱法上持续预训练和微调 LLaMA2,使 LLM 无需外部多模态结构即可理解与生成音乐,并在 MusicTheoryBench 上超越 GPT-3.5 等基线。
摘要:
虽然大语言模型(LLMs)在文本生成方面展现出令人印象深刻的能力,但我们发现其能力尚未推广到音乐这一人类创造性语言。我们提出了 ChatMusician,一个集成了内在音乐能力的开源 LLM。它基于对 LLaMA2 在一种文本兼容的音乐表示——ABC 记谱法上进行持续预训练和微调,并将音乐视为第二语言。ChatMusician 能够仅使用纯文本分词器来理解和生成音乐,无需任何外部多模态神经结构或分词器。有趣的是,赋予音乐能力并不会损害语言能力,甚至在 MMLU 分数上略有提高。我们的模型能够根据文本、和弦、旋律、动机、曲式等条件,创作结构良好、篇幅完整的音乐,超越了 GPT-4 基线。在我们精心构建的大学水平音乐理解基准 MusicTheoryBench 上,ChatMusician 在零样本设置下以明显优势超越了 LLaMA2 和 GPT-3.5。我们的工作表明,LLM 可以成为音乐的优秀压缩器,但仍有大量领域有待征服。我们在 GitHub 上发布了 4B token 的音乐-语言语料库 MusicPile、收集的 MusicTheoryBench、代码、模型和演示。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。