NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Computer Assisted Composition in Continuous Time

Chamin Hewa Koneputugodage, Rhys Healy, Sean Lamont, Ian Mallett, Matt Brown, Matt Walters, Ushini Attanayake, Libo Zhang, Roger T. Dean, Alexander Hunter, Charles Gretton, Christian WalderarXiv 2019

Abstract

Traditional AI music generation often relies on discrete grids, which can strip music of its natural fluidity and expressive timing. This paper introduces a novel sequential Monte Carlo (particle filter) algorithm designed for computer-assisted composition in continuous time. By treating music as a point process and employing a particle filter to satisfy user-defined constraints, the proposed method generates diverse, human-like compositions. Experimental results and human listening tests demonstrate that this approach significantly outperforms standard beam search methods, producing music that is rated as more interesting and closer to human-written ground truth.

The Challenge of Constrained Composition

Most existing AI music models operate on a discrete time grid, effectively treating a composition like a spreadsheet where notes must align with specific beats. While computationally convenient, this approach fails to capture the continuous, fluid nature of real musical performance. Furthermore, "constrained generation"—the ability to specify that certain notes must occur at specific times—remains a significant hurdle. Current solutions typically either allow for simple continuations of a fragment or use discrete optimization that lacks long-term musical coherence.

Music as a Continuous Time Point Process

To address these limitations, the researchers model music as a Continuous Time Point Process. Instead of predicting events at fixed intervals, the model predicts both the timing and the nature of the next event (such as a note-on or note-off). This allows for complex rhythms and expressive micro-timing that grid-based models cannot represent.

To enforce user constraints (e.g., "a C# must occur at 4.5 seconds"), the authors implement a Sequential Monte Carlo (SMC) scheme, or Particle Filter:

  • Particles: The algorithm maintains multiple parallel composition trajectories (particles).
  • Proposal and Weighting: As the model generates notes, it "looks ahead" to upcoming constraints. Particles are weighted based on a conditional intensity function; those that make a future constraint unlikely are pruned and replaced by more promising trajectories.
  • Model Architecture: The system utilizes a modified Recurrent Neural Network (RNN) that ensures a one-to-one mapping between MIDI data and model tokens, removing ambiguity in representation.

Experimental Results and Human Evaluation

A key finding of this research is the disconnect between mathematical likelihood and musical quality. Standard Beam Search algorithms, which always select the most probable next token, tend to produce technically correct but repetitive and "safe" music.

Figure 4: Distribution of the samples' log-probabilities. Beam search (BS) over-optimizes for high-probability sequences, while the Particle Filter (PF) more closely matches the distribution of human Ground Truth (GT).

As shown in Figure 4, Beam Search (BS1, BS2) over-optimizes for high log-probability, resulting in an outlier distribution compared to human Ground Truth (GT). In contrast, the Particle Filter (PF) samples from the underlying distribution, preserving the diversity and "risk-taking" found in human compositions.

Human Listening Tests

In a large-scale study involving over 11,000 individual tests, the Particle Filter approach was compared against Beam Search and human-written samples.

Figure 6: Binomial probability of win vs. Beam Search. The Particle Filter (PF3) is significantly more likely to be rated as "interesting" by human listeners compared to the Beam Search baseline.

Listeners consistently rated the Particle Filter (specifically PF3 with 300 particles) as significantly more "interesting" than Beam Search, winning approximately 60% of head-to-head matchups (Figure 6). The PF models also performed better in "Overall Quality" assessments, coming closest to the human ground truth.

Conclusion and Future Directions

By moving away from discrete clocks and greedy search algorithms, this work provides a robust framework for interactive computer-assisted composition. While the computational load of running hundreds of particles in a deep RNN is high, the resulting music is significantly more engaging and human-like. Future work may involve extending this framework to multi-instrumental arrangements and optimizing the algorithm for real-time use in digital audio workstations (DAWs), allowing composers to "pin" specific notes and have the AI fluidly fill the gaps.

Summary updated

BibTeX
@misc{koneputugodage2019computer,
  author = {Chamin Hewa Koneputugodage and Rhys Healy and Sean Lamont and Ian Mallett and Matt Brown and Matt Walters and Ushini Attanayake and Libo Zhang and Roger T. Dean and Alexander Hunter and Charles Gretton and Christian Walder},
  title = {{Computer Assisted Composition in Continuous Time}},
  year = {2019},
  eprint = {1909.05030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.05030},
}
Figure