[Paper Review] Learning to Traverse Latent Spaces for Musical Score Inpainting
This paper proposes InpaintNet, a deep learning model that generates musically coherent music segments to connect two musical excerpts by learning complex trajectories in the latent space of a Variational Autoencoder (VAE). Using a conditional RNN to traverse the latent space based on both past and future context, the model produces diverse, contextually appropriate inpaintings, demonstrating strong performance in both objective metrics and subjective listening tests, with results showing it performs comparably to baselines and is well-suited for interactive music creation.
Music Inpainting is the task of filling in missing or lost information in a piece of music. We investigate this task from an interactive music creation perspective. To this end, a novel deep learning-based approach for musical score inpainting is proposed. The designed model takes both past and future musical context into account and is capable of suggesting ways to connect them in a musically meaningful manner. To achieve this, we leverage the representational power of the latent space of a Variational Auto-Encoder and train a Recurrent Neural Network which learns to traverse this latent space conditioned on the past and future musical contexts. Consequently, the designed model is capable of generating several measures of music to connect two musical excerpts. The capabilities and performance of the model are showcased by comparison with competitive baselines using several objective and subjective evaluation methods. The results show that the model generates meaningful inpaintings and can be used in interactive music creation applications. Overall, the method demonstrates the merit of learning complex trajectories in the latent spaces of deep generative models.
Motivation & Objective
- To address the limitations of sequential music generation models that rely only on past context, which hinders interactivity and compositional flexibility.
- To enable interactive music creation by allowing users to modify musical contexts and receive new, coherent suggestions.
- To improve upon existing inpainting methods by incorporating both past and future musical context in a deep generative framework.
- To explore the potential of learning complex trajectories in latent spaces for symbolic music generation.
- To develop a training scheme and data encoding method that enhance model generalization and efficiency.
Proposed method
- The model uses a Variational Autoencoder (VAE) to encode musical scores into a low-dimensional latent space, preserving musically meaningful representations.
- A Recurrent Neural Network (RNN) is trained to traverse the latent space, conditioned on both past and future musical contexts, to generate intermediate measures.
- The RNN predicts latent vectors step-by-step, which are then decoded back into musical notation via the VAE decoder.
- A stochastic training scheme is introduced to improve generalization and enable diverse sampling from the same context.
- An uneven tick duration encoding scheme is used to represent musical triplets efficiently without increasing sequence length.
- The model supports multiple generations from the same context due to the stochastic sampling inherent in the VAE inference process.
Experimental results
Research questions
- RQ1Can a deep generative model that conditions on both past and future musical context produce more musically coherent and interactive score inpaintings than autoregressive models?
- RQ2Can learning complex trajectories in the latent space of a VAE lead to better generalization and diversity in music generation?
- RQ3How does the performance of the proposed model compare to competitive baselines in terms of objective metrics and subjective perception?
- RQ4What role does latent space traversal play in maintaining rhythmic consistency and stylistic coherence across generated segments?
- RQ5Why does the model perform well on NLL but not significantly better in subjective listening tests, and what are the key failure modes?
Key findings
- The InpaintNet model achieves competitive performance on the negative log-likelihood (NLL) metric, outperforming baseline models in objective evaluation.
- Subjective listening tests show the model performs at par with baseline models, with a win probability of approximately 0.5 against each, and is not statistically significantly different (p > 0.01).
- Musically proficient participants favored the InpaintNet-generated music more than less proficient participants, suggesting sensitivity to musical quality.
- The model generates diverse outputs for the same context due to stochastic sampling in the VAE, enabling interactive exploration of multiple musical ideas.
- Anomalies in pitch predictions—such as out-of-key notes or unused intervals—were identified as key reasons for lower perceptual ratings despite strong rhythmic modeling.
- The model retains the base rhythm across multiple generations from the same context, indicating strong rhythmic consistency.
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.