ERNIE-Music: Text-to-Waveform Music Generation with Diffusion Models
Pengfei Zhu, Chao Pang, Yekun Chai, Lei Li, Shuohuan Wang, Yu Sun, Hao Tian, Hua Wu
TL;DR
ERNIE-Music addresses the challenge of directly generating music waveforms from unrestricted text prompts by employing a diffusion-based conditional model conditioned on free-form text. The approach uses a UNet backbone with a text encoder and a text-aware fusion mechanism to integrate linguistic prompts into waveform synthesis, and it compares end-to-end text conditioning against predefined music tags. A large web-derived Web Music with Text dataset is curated to support training despite scarce parallel data, and human evaluations demonstrate improved text-music relevance and audio quality over baselines. The work highlights the potential of waveform-based text-to-music generation and discusses limitations such as fixed sequence length and generation speed, pointing to future extensions to longer pieces and vocal content.
Abstract
In recent years, the burgeoning interest in diffusion models has led to significant advances in image and speech generation. Nevertheless, the direct synthesis of music waveforms from unrestricted textual prompts remains a relatively underexplored domain. In response to this lacuna, this paper introduces a pioneering contribution in the form of a text-to-waveform music generation model, underpinned by the utilization of diffusion models. Our methodology hinges on the innovative incorporation of free-form textual prompts as conditional factors to guide the waveform generation process within the diffusion model framework. Addressing the challenge of limited text-music parallel data, we undertake the creation of a dataset by harnessing web resources, a task facilitated by weak supervision techniques. Furthermore, a rigorous empirical inquiry is undertaken to contrast the efficacy of two distinct prompt formats for text conditioning, namely, music tags and unconstrained textual descriptions. The outcomes of this comparative analysis affirm the superior performance of our proposed model in terms of enhancing text-music relevance. Finally, our work culminates in a demonstrative exhibition of the excellent capabilities of our model in text-to-music generation. We further demonstrate that our generated music in the waveform domain outperforms previous works by a large margin in terms of diversity, quality, and text-music relevance.
