[论文解读] Moûsai: Text-to-Music Generation with Long-Context Latent Diffusion
Moûsai 是一种两阶段级联扩散模型,能够在 48kHz 下将文本转化为长时音乐(几分钟),通过对音频进行 64x 压缩的扩散自编码器,以及用于生成的文本条件潜在扩散阶段实现,并且提供开源代码和数据集 Text2Music。
Recent years have seen the rapid development of large generative models for text; however, much less research has explored the connection between text and another "language" of communication -- music. Music, much like text, can convey emotions, stories, and ideas, and has its own unique structure and syntax. In our work, we bridge text and music via a text-to-music generation model that is highly efficient, expressive, and can handle long-term structure. Specifically, we develop Moûsai, a cascading two-stage latent diffusion model that can generate multiple minutes of high-quality stereo music at 48kHz from textual descriptions. Moreover, our model features high efficiency, which enables real-time inference on a single consumer GPU with a reasonable speed. Through experiments and property analyses, we show our model's competence over a variety of criteria compared with existing music generation models. Lastly, to promote the open-source culture, we provide a collection of open-source libraries with the hope of facilitating future work in the field. We open-source the following: Codes: https://github.com/archinetai/audio-diffusion-pytorch; music samples for this paper: http://bit.ly/44ozWDH; all music samples for all models: https://bit.ly/audio-diffusion.
研究动机与目标
- 通过实现文本条件的长时上下文能力来连接文本与音乐。
- 实现高效性,使在消费级 GPU 上实现实时推理成为可能,同时生成多分钟的立体声音乐。
- 开发两阶段扩散管线(DMAE 编码 + TCLD 生成)以及用于训练的大型多样化数据集。
- 提供开源库与数据集,促进文本到音乐扩散领域的进一步研究。
提出的方法
- Stage 1 训练一个扩散幅度自编码器(DMAE),通过将幅度日志声谱编码到潜在空间并利用基于噪声水平和潜在内容条件化的 1D U-Net 进行重建,从而实现音频 64x 的压缩。
- Stage 2 训练一个文本条件潜在扩散(TCLD)模型,利用冻结的语言模型(T5)的文本嵌入,通过跨注意力/长上下文注意力块对潜在表示进行去噪以实现生成。
- 文本条件化在推理阶段使用分类无引导引导(CFG),并设置 0.1 的采样 dropout 以增强提示强度。
- 文本编码器被冻结,TCLD 的 U-Net 在一个压缩的潜在空间上工作,以生成与描述性提示对齐的音乐。
- 模型使用 DDIM 采样器进行高效去噪和现实的样本生成。
- 一个高效的 1D U-Net 架构,包含 ResNet 块、调制单元以及灵活的条件化(注入、注意力、跨注意力),实现快速训练与推理。

实验结果
研究问题
- RQ1两阶段级联扩散方法是否能够产生长时间、高质量的文本条件音乐?
- RQ2在文本到音乐任务中使用扩散自编码器加潜在扩散能带来哪些效率提升?
- RQ3文本条件化的扩散在不同流派与长上下文中与文本提示的对齐程度如何?
- RQ4哪些数据与架构选择能够最大化长上下文音乐结构和多流派多样性?
主要发现
- Moûsai 能在文本描述条件下实现分钟级的 48kHz 立体声音乐。
- DMAE 将音频压缩 64x,为后续扩散生成提供紧凑的潜在空间。
- 通过跨注意力和长上下文注意力块对文本嵌入进行条件化的 TCLD 阶段,提升文本–音乐的对齐。
- 与基线相比,模型在文本–音乐相关性(CLAP 分数)和音乐质量(FAD、人工评估)方面表现出较强的优势。
- Moûsai 实现在消费级 GPU 上的实时推理,以及在单个 A100 GPU 上约一周即可完成每阶段的训练。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。