[Paper Review] Symbolic Music Generation with Diffusion Models
This paper proposes a diffusion model for symbolic music generation by training on continuous latents from a pre-trained variational autoencoder (VAE), enabling non-autoregressive, parallel generation of long melodic sequences. The method achieves state-of-the-art unconditional and conditional infilling performance, outperforming autoregressive baselines like TransformerMDN in both quality and structural consistency.
Score-based generative models and diffusion probabilistic models have been successful at generating high-quality samples in a variety of continuous domains. However, due to their Langevin-inspired sampling mechanisms, their application to discrete symbolic music data has been limited. In this work, we present a technique for training diffusion models on symbolic music data by parameterizing the discrete domain in the continuous latent space of a pre-trained variational autoencoder. Our method is non-autoregressive and learns to generate sequences of latent embeddings through the reverse process and offers parallel generation with a constant number of iterative refinement steps. We show strong unconditional generation and post-hoc conditional infilling results compared to autoregressive language models operating over the same continuous embeddings.
Motivation & Objective
- To enable diffusion models to generate high-quality symbolic music, which are inherently discrete and thus incompatible with standard continuous-domain diffusion sampling.
- To overcome the limitations of Langevin-based sampling in discrete spaces by mapping symbolic music to a continuous latent space via a pre-trained VAE.
- To demonstrate that diffusion models trained on VAE latents can generate long-form, coherent musical sequences with strong structural consistency.
- To enable post-hoc conditional generation (e.g., infilling) by conditioning on partial sequences in the latent space.
- To compare the performance of diffusion models on latent representations against strong autoregressive baselines like TransformerMDN.
Proposed method
- The method uses a pre-trained 2-bar melody MusicVAE to embed discrete MIDI sequences into continuous latent codes, transforming discrete music into a continuous latent space.
- A denoising diffusion probabilistic model (DDPM) is trained on these continuous latents, learning to reverse a forward diffusion process that gradually adds noise to the latents.
- Sampling is performed by starting from random Gaussian noise and iteratively refining it through the reverse diffusion process, producing latent sequences that are decoded back into MIDI.
- The model uses a time-dependent noise schedule and a denoising loss based on predicting the noise added at each diffusion step, minimizing L2 loss between predicted and true noise.
- For conditional infilling, the model conditions on the first and last partial sequences by fixing their latents during reverse sampling, enabling coherent completion of missing sections.
- The framework enables non-autoregressive generation with a fixed number of refinement steps, allowing parallel sampling and faster inference compared to autoregressive models.
Experimental results
Research questions
- RQ1Can diffusion models be effectively applied to discrete symbolic music data, which are traditionally incompatible with continuous diffusion sampling?
- RQ2Does training a diffusion model on VAE-learned continuous latents lead to higher-quality and more structurally coherent music generation than autoregressive models?
- RQ3Can the proposed method support post-hoc conditional generation such as infilling, where missing sections of music are completed based on context?
- RQ4How does the iterative refinement process in the latent space affect sample quality and structural consistency over time?
- RQ5Does the diffusion model outperform autoregressive baselines like TransformerMDN in hierarchical modeling of continuous latents, especially in terms of reduced exposure bias?
Key findings
- The diffusion model generates high-quality unconditional melodic sequences of 1024 tokens (64 bars) with strong structural coherence and musical fluency.
- The model outperforms the autoregressive TransformerMDN baseline in both consistency and variance similarity metrics, demonstrating superior hierarchical modeling of latent representations.
- Post-hoc conditional infilling of 32-measure gaps achieves high consistency and variance similarity to real music, outperforming both latent interpolation and independent prior sampling.
- Latent metrics improve steadily during refinement, while framewise self-similarity metrics show early stability and variance similarity emerges only in later steps, indicating progressive quality improvement.
- The method enables parallel generation with a constant number of refinement steps, offering faster inference than autoregressive models without sacrificing sample quality.
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.