[Paper Review] Computer Assisted Composition with Recurrent Neural Networks
This paper proposes a hybrid system combining recurrent neural networks (LSTM-based) with human-guided constraints via finite state machines to enable computer-assisted music composition. It introduces an efficient sequential Monte Carlo (SMC) method for approximate sampling from non-Markovian sequence models and compares it with beam search for conditional probability maximization, demonstrating that sampling produces more musically varied and natural results under permissive constraints.
Sequence modeling with neural networks has lead to powerful models of symbolic music data. We address the problem of exploiting these models to reach creative musical goals, by combining with human input. To this end we generalise previous work, which sampled Markovian sequence models under the constraint that the sequence belong to the language of a given finite state machine provided by the human. We consider more expressive non-Markov models, thereby requiring approximate sampling which we provide in the form of an efficient sequential Monte Carlo method. In addition we provide and compare with a beam search strategy for conditional probability maximisation. Our algorithms are capable of convincingly re-harmonising famous musical works. To demonstrate this we provide visualisations, quantitative experiments, a human listening test and audio examples. We find both the sampling and optimisation procedures to be effective, yet complementary in character. For the case of highly permissive constraint sets, we find that sampling is to be preferred due to the overly regular nature of the optimisation based results. The generality of our algorithms permits countless other creative applications.
Motivation & Objective
- To develop a system that enables human-composer collaboration in music composition using advanced neural sequence models.
- To address the limitation of overly regular outputs from optimization-based methods by introducing stochastic sampling.
- To generalize prior work on Markovian models and finite state constraints to non-Markovian, expressive sequence models such as LSTMs.
- To evaluate the effectiveness of sampling versus optimization in generating musically coherent and diverse re-harmonizations.
- To demonstrate the method's feasibility and creative potential through audio examples, visualizations, and human listening tests.
Proposed method
- Employs a Long Short-Term Memory (LSTM) recurrent neural network to model conditional distributions over musical sequences given timing and duration.
- Represents human input as a finite state machine (FSM) that defines a language of allowed musical sequences.
- Uses sequential Monte Carlo (SMC) with systematic resampling to perform approximate inference and sample from the conditional distribution under FSM constraints.
- Implements beam search as an alternative method to maximize the conditional probability of sequences under the same constraints.
- Applies causal factorization to model the conditional probability of note sequences given timing and duration, enabling efficient computation.
- Integrates both sampling and optimization strategies to allow flexible, interactive music composition.
Experimental results
Research questions
- RQ1Can non-Markovian sequence models like LSTMs be effectively combined with human-provided constraints for creative music composition?
- RQ2How do sampling-based and optimization-based approaches compare in terms of musical diversity and coherence under permissive constraints?
- RQ3Does the use of sequential Monte Carlo enable effective approximate inference in expressive, non-Markovian models constrained by finite state machines?
- RQ4Can the system produce convincing re-harmonizations of classical pieces while preserving rhythmic structure and musical intent?
- RQ5How do human listeners perceive the musical quality of results generated by sampling versus beam search?
Key findings
- The sequential Monte Carlo (SMC) sampling method produces more musically varied and natural-sounding re-harmonizations compared to beam search, especially under permissive constraints.
- Beam search results were found to be overly regular and repetitive, particularly when constraints were loose, due to the model favoring high-probability but redundant patterns.
- Both sampling and optimization methods performed well when at least one voice was fixed as a constraint, indicating that even minimal human input can guide high-quality composition.
- The particle filter (SMC) performed only slightly worse than the unconstrained case in terms of harmonic resolution, but avoided the worst-case poor resolutions seen in some unconstrained runs.
- Human listening tests confirmed that SMC-generated music was perceived as more musically interesting and varied than beam search outputs.
- The system successfully re-harmonized Mozart’s string quartets by fixing the melody and generating harmonically coherent, stylistically appropriate accompaniments.
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.