Skip to main content
QUICK REVIEW

[Paper Review] Generative Melody Composition with Human-in-the-Loop Bayesian Optimization

Yijun Zhou, Yuki Koyama|arXiv (Cornell University)|Oct 7, 2020
Music Technology and Sound StudiesComputer Science17 references8 citations
TL;DR

This paper proposes a human-in-the-loop Bayesian optimization system for generative melody composition, enabling novice composers to efficiently discover desired melodies by iteratively selecting preferred candidates from AI-suggested variations. The method reduces search effort by leveraging preferential feedback and smooth latent space exploration, demonstrating effective convergence in simulations and inspiring creativity in a pilot study.

ABSTRACT

Deep generative models allow even novice composers to generate various melodies by sampling latent vectors. However, finding the desired melody is challenging since the latent space is unintuitive and high-dimensional. In this work, we present an interactive system that supports generative melody composition with human-in-the-loop Bayesian optimization (BO). This system takes a mixed-initiative approach; the system generates candidate melodies to evaluate, and the user evaluates them and provides preferential feedback (i.e., picking the best melody among the candidates) to the system. This process is iteratively performed based on BO techniques until the user finds the desired melody. We conducted a pilot study using our prototype system, suggesting the potential of this approach.

Motivation & Objective

  • To address the challenge of navigating high-dimensional, unintuitive latent spaces in deep generative music models.
  • To reduce the cognitive and exploratory burden on novice composers when searching for desired melodies.
  • To investigate whether human-in-the-loop Bayesian optimization can efficiently guide melody discovery with minimal user feedback.
  • To evaluate the system's ability to inspire creativity and support intuitive, interactive music composition.

Proposed method

  • The system uses a pre-trained MusicVAE to embed melodies into a smooth, continuous latent space.
  • In each iteration, the system generates five candidate melodies by sampling along a one-dimensional subspace in the latent space, guided by Bayesian optimization to maximize information gain.
  • The user selects the preferred melody from the five candidates, providing relative (preferential) feedback to guide the next search step.
  • The algorithm updates its belief over the latent space using a probabilistic model, focusing on regions likely to contain the user's target melody.
  • The system allows users to directly edit the selected melody to increase controllability and support iterative refinement.
  • The process is repeated until the user identifies a melody matching their creative intent.

Experimental results

Research questions

  • RQ1Can human-in-the-loop Bayesian optimization effectively guide novice composers toward their desired melody in a high-dimensional latent space?
  • RQ2How many iterations are required for the system to converge to a satisfying melody with minimal user feedback?
  • RQ3To what extent does the system inspire creative exploration and idea generation beyond the user's initial concept?
  • RQ4How does the system's suggestion quality compare to random or heuristic-based search strategies?

Key findings

  • In the simulation experiment, the system reduced the s-DTW distance to the target melody by approximately 70% over 50 iterations, indicating effective convergence.
  • The Euclidean distance in the 4-dimensional latent space to the target melody also decreased consistently, confirming the smoothness of the latent space.
  • The pilot study showed that both novice composers completed their melodies within 2.5 hours, using the search function 6–8 times, indicating efficient interaction.
  • Participants reported that the system generated novel variations that inspired new creative ideas they had not considered before.
  • Users found the system helpful in overcoming creative blocks, with one stating it 'saved their life' by enabling progress when stuck.
  • Feedback indicated a need for enhanced control over search aggressiveness and better consideration of sequential musical context in future versions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.