[Paper Review] Counterpoint By Convolution.
Coconet trains a deep convolutional model to complete partial polyphonic scores using orderless NADE training and improves sample quality via blocked Gibbs sampling, with tests on Bach chorales showing Gibbs-based methods outperform ancestral sampling.
Machine learning models of music typically break up the task of composition into a chronological process, composing a piece of music in a single pass from beginning to end. On the contrary, human composers write music in a nonlinear fashion, scribbling motifs here and there, often revisiting choices previously made. In order to better approximate this process, we train a convolutional neural network to complete partial musical scores, and explore the use of blocked Gibbs sampling as an analogue to rewriting. Neither the model nor the generative procedure are tied to a particular causal direction of composition. Our model is an instance of orderless NADE (Uria et al., 2014), which allows more direct ancestral sampling. However, we find that Gibbs sampling greatly improves sample quality, which we demonstrate to be due to some conditional distributions being poorly modeled. Moreover, we show that even the cheap approximate blocked Gibbs procedure from Yao et al. (2014) yields better samples than ancestral sampling, based on both log-likelihood and human evaluation.
Motivation & Objective
- Introduce a convolutional generative model for musical counterpoint that can complete partial scores.
- Leverage orderless NADE training to enable conditioning on arbitrary contexts.
- Evaluate sampling strategies and demonstrate improved sample quality with blocked Gibbs sampling.
- Compare performance against sequence-based models on Bach chorales at multiple temporal resolutions.
Proposed method
- Represent music as piano rolls (I x T x P) and model p_theta(x) with a deep CNN.
- Train with orderless NADE to learn p_theta(x_i | x_C) for all context C.
- Mask random subsets C of the score and reconstruct the rest using a softmax over pitches.
- Use framed-based log-likelihood evaluation that conditions on model predictions without ground-truth frames.
- Compare chronological versus random orderings and evaluate sampling methods including ancestral sampling and blocked Gibbs sampling with annealing.
- Provide public code and samples for replication.
Experimental results
Research questions
- RQ1Can a convolutional model trained under orderless NADE effectively complete partial polyphonic scores?
- RQ2Does blocked Gibbs sampling improve sample quality over ancestral sampling in an orderless NADE setting?
- RQ3How do sampling schemes (ancestral vs blocked Gibbs, independent vs ancestral) affect log-likelihood and human judgments of Bach chorales?
- RQ4What is the impact of temporal resolution on model likelihood and evaluation metrics in polyphonic music generation?
Key findings
- Block Gibbs sampling significantly improves sample quality over ancestral sampling.
- Independent blocked Gibbs sampling yields better samples and faster generation than ancestral sampling.
- Random orderings provide better log-likelihoods than strictly chronological orderings on Bach chorales.
- Temporal resolution affects reported log-likelihoods, with higher resolutions influencing evaluation due to chord-change sparsity.
- Sampling likelihoods with independent Gibbs are competitive with or superior to naive Nade ancestral sampling, as shown by both quantitative and human evaluations.
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.