[Paper Review] ERNIE-Music: Text-to-Waveform Music Generation with Diffusion Models
ERNIE-Music is a diffusion-based model that generates music waveforms directly from free-form text prompts, trained on web-sourced text-music pairs, and showing superior text-music relevance and quality compared to prior methods.
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.
Motivation & Objective
- Address the lack of parallel text-music waveform data by collecting a web-derived text-music dataset with weak supervision.
- Develop a text-conditional diffusion model to generate music waveforms from unrestricted textual prompts.
- Investigate the impact of text format on text-music relevance by comparing free-form text against music tags.
- Demonstrate that waveform-based music generated by ERNIE-Music achieves diverse, high-quality outputs with strong text-music relevance.
Proposed method
- Use a continuous-time diffusion model that predicts denoised velocity to generate music waveforms conditioned on text y.
- Encode text with a multilingual ERNIE-based text encoder to obtain a sequence representation S, plus a classification token s0.
- Fuse text representation with timestep embeddings to form a text-aware conditioning for the UNet-based diffusion network.
- Integrate conditioning into self-attention in the diffusion backbone via CSA (conditional self-attention) to capture global information.
- Train with a weighted L2 loss (SNR+1 weighting) targeting velocity v_t = α_t ε − σ_t x and using a cosine noise schedule (α_t^2 + σ_t^2 = 1).
- Experiment with two text conditioning formats (end-to-end free-form text vs. music tags) and analyze fusion operations (concatenation vs. element-wise sum).
Experimental results
Research questions
- RQ1Does free-form text conditioning improve text-music relevance over traditional music tag conditioning?
- RQ2How does the fusion operation and text representation influence generation quality and relevance in text-to-music diffusion?
- RQ3Can a diffusion-based model trained on web-sourced text-music pairs produce diverse, high-quality waveform music directly from text prompts?
- RQ4What is the impact of using a multilingual text encoder (ERNIE-M) on cross-lingual text-to-music generation?
- RQ5How does waveform-based music generation compare to existing approaches in text-to-music relevance and audio quality?
Key findings
- The model achieves higher text-music relevance scores than competing methods in human evaluations.
- Waveform music generated by ERNIE-Music shows improved music quality compared with recent waveform-based approaches.
- End-to-end free-form text conditioning yields better text-music relevance than conditioning on pre-defined music tags.
- The architecture with a UNet diffusion backbone and CSA-based conditioning effectively encodes text into music generation.
- Qualitative results demonstrate diverse outputs across instruments, rhythms, and emotions (e.g., piano, guitar, erhu; soft to fast-paced).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.