Controlling Perceived Emotion in Symbolic Music Generation with Monte Carlo Tree Search

Lucas N. Ferreira, Lili Mou, Jim Whitehead, Levi H. S. Lelis
8/10/2022
22 citations
cs.SDcs.LGcs.MM

Official code: lucasnfe/puct-music-emotion (15 stars, Python, last commit 2022-11-28).

Abstract

This paper presents a new approach for controlling emotion in symbolic music generation with Monte Carlo Tree Search. We use Monte Carlo Tree Search as a decoding mechanism to steer the probability distribution learned by a language model towards a given emotion.

Show full abstract

At every step of the decoding process, we use Predictor Upper Confidence for Trees (PUCT) to search for sequences that maximize the average values of emotion and quality as given by an emotion classifier and a discriminator, respectively. We use a language model as PUCT's policy and a combination of the emotion classifier and the discriminator as its value function. To decode the next token in a piece of music, we sample from the distribution of node visits created during the search. We evaluate the quality of the generated samples with respect to human-composed pieces using a set of objective metrics computed directly from the generated samples. We also perform a user study to evaluate how human subjects perceive the generated samples' quality and emotion. We compare PUCT against Stochastic Bi-Objective Beam Search (SBBS) and Conditional Sampling (CS). Results suggest that PUCT outperforms SBBS and CS in almost all metrics of music quality and emotion.

View on arXivView PDF

Code Implementations(1)

151Python, HTMLApr 7, 20224 years ago

Similar Papers

Cite this paper

@article{ferreira2022controlling,
  title  = {Controlling Perceived Emotion in Symbolic Music Generation with Monte Carlo Tree Search},
  author = {Lucas N. Ferreira and Lili Mou and Jim Whitehead and Levi H. S. Lelis},
  year   = {2022},
  eprint = {2208.05162},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2208.05162v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.05162.svg)](https://codeofpaper.com/paper/2208.05162)

Discussion