[Paper Review] A Unit Selection Methodology for Music Generation Using Deep Neural Networks
This paper proposes a deep learning-based unit selection method for music generation using variable-length musical units (1–4 measures), combining a deep structured semantic model (DSSM) for semantic relevance and an LSTM for concatenation cost. The method outperforms note-level generation in naturalness and likeability, with one- and two-measure units yielding the most perceptually coherent results.
Several methods exist for a computer to generate music based on data including Markov chains, recurrent neural networks, recombinancy, and grammars. We explore the use of unit selection and concatenation as a means of generating music using a procedure based on ranking, where, we consider a unit to be a variable length number of measures of music. We first examine whether a unit selection method, that is restricted to a finite size unit library, can be sufficient for encompassing a wide spectrum of music. We do this by developing a deep autoencoder that encodes a musical input and reconstructs the input by selecting from the library. We then describe a generative model that combines a deep structured semantic model (DSSM) with an LSTM to predict the next unit, where units consist of four, two, and one measures of music. We evaluate the generative model using objective metrics including mean rank and accuracy and with a subjective listening test in which expert musicians are asked to complete a forced-choiced ranking task. We compare our model to a note-level generative baseline that consists of a stacked LSTM trained to predict forward by one note.
Motivation & Objective
- To investigate whether a finite library of variable-length musical units (1–4 measures) can enable effective music generation through unit selection.
- To develop a generative model that ranks units based on semantic relevance and concatenation quality to produce coherent, stylistically consistent music.
- To evaluate the perceptual quality of generated music using subjective listening tests and objective metrics, comparing unit-level and note-level generation.
- To determine the optimal unit length for balancing musical structure and flexibility in unit selection-based music generation.
Proposed method
- A deep autoencoder is trained to reconstruct input music by selecting units from a finite library, enabling qualitative assessment of library sufficiency.
- A generative model uses a DSSM to compute semantic similarity between units in a compressed embedding space, measuring relevance.
- An LSTM is trained to model sequential likelihood of musical events, used to compute concatenation cost at unit boundaries.
- The system ranks candidate units using a weighted combination of semantic relevance and concatenation cost.
- Music is generated by sequentially selecting and concatenating units based on the composite score, with units of 1, 2, or 4 measures evaluated.
- Subjective evaluation is conducted via a forced-choice listening test with expert musicians ranking generated music on naturalness, likeability, and stylistic coherence.
Experimental results
Research questions
- RQ1Can a finite library of variable-length musical units (1–4 measures) enable effective reconstruction and generation of novel music?
- RQ2Does unit selection using semantic relevance and concatenation cost produce more natural and stylistically coherent music than note-level generation?
- RQ3What is the optimal unit length (1, 2, or 4 measures) for balancing musical coherence and structural diversity in unit selection-based generation?
- RQ4How does the perceptual quality of music generated with unit selection compare to that of a note-level LSTM baseline?
Key findings
- The one-measure unit system was ranked highest in overall likeability and naturalness, followed by two-measure units, indicating that shorter units yield more perceptually coherent results.
- The four-measure unit system was ranked highest in naturalness of the generated segment alone, as it consisted of unmodified original music, but performed poorly in overall evaluation due to limited flexibility.
- The note-level LSTM baseline ranked highest in transition naturalness between seed and generated segments but declined in quality as generation progressed, indicating error accumulation.
- Subjective listening tests showed statistically significant differences (p < .05) across systems for all five evaluation criteria, rejecting the null hypothesis of no consistent ranking difference.
- The DSSM-based semantic relevance score effectively captured stylistic relatedness between units, contributing to higher perceived coherence in generated music.
- The combination of DSSM and LSTM-based scoring enabled the system to generate music that was consistently ranked higher than the note-level baseline in overall likeability and naturalness.
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.