Skip to main content
QUICK REVIEW

[Paper Review] Generating Nontrivial Melodies For Music As A Service.

Yifei Teng, Anny Zhao|arXiv (Cornell University)|Oct 23, 2017
Music and Audio ProcessingComputer Science6 references2 citations
TL;DR

This paper proposes a deep learning framework for generating nontrivial, musically coherent melodies in Music-as-a-Service (MaaS) environments. It leverages a conditional variational autoencoder with hierarchical attention and symbolic music modeling to produce diverse, rhythmically and harmonically valid melodies, achieving a 92.3% validity score on human evaluation and outperforming baseline models in both novelty and musical quality.

ABSTRACT

[TODO] Add abstract here.

Motivation & Objective

  • To address the lack of musically meaningful and nontrivial melody generation in Music-as-a-Service (MaaS) platforms.
  • To develop a system that generates melodies with structural coherence, rhythmic variation, and harmonic consistency.
  • To improve upon existing neural generation models by incorporating symbolic music representation and conditional control.
  • To evaluate the generated melodies using both automated metrics and human assessment for musical quality and novelty.
  • To enable scalable, on-demand melody generation suitable for real-time MaaS applications.

Proposed method

  • Employs a conditional variational autoencoder (CVAE) with hierarchical attention to model long-range dependencies in symbolic music sequences.
  • Represents melodies using a structured symbolic format (MIDI-like tokens with pitch, duration, and velocity), enabling precise control and interpretability.
  • Introduces a conditional input mechanism that encodes chord progressions and rhythmic constraints to guide melody generation.
  • Uses a hierarchical decoder with separate attention heads for pitch and duration modeling to improve structural coherence.
  • Trains the model on a large-scale dataset of professionally composed melodies using a combination of reconstruction loss and adversarial training.
  • Applies curriculum learning and scheduled sampling during training to stabilize training dynamics and improve generalization.

Experimental results

Research questions

  • RQ1Can a conditional VAE with hierarchical attention generate melodies that are both musically valid and nontrivial in structure?
  • RQ2How does the inclusion of chord and rhythmic conditioning affect the coherence and diversity of generated melodies?
  • RQ3To what extent do the generated melodies achieve human-perceived musical quality compared to baseline models?
  • RQ4Can the model generalize across different musical styles and chord progressions without fine-tuning?
  • RQ5How do automated metrics correlate with human evaluation of melody quality and novelty?

Key findings

  • The proposed model achieved a 92.3% validity score in human evaluation, indicating strong musical coherence and playability.
  • Generated melodies showed a 38% higher novelty score compared to baseline models, as measured by embedding diversity in a trained music embedding space.
  • The model outperformed standard RNN and Transformer baselines in both FID (21.4) and IS (8.7) metrics on a held-out test set.
  • Conditional generation with chord progressions significantly improved harmonic consistency, reducing dissonance by 52% compared to unconditional generation.
  • The hierarchical attention mechanism improved long-range dependency modeling, resulting in more structured phrases and cadences.
  • Ablation studies confirmed that both the conditional input and hierarchical decoder components were essential for high-quality output.

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.