Conditional Drums Generation Using Compound Word Representations

Dimos Makris, Zixun Guo, Maximos A. Kaliakatsos-Papakostas, Dorien Herremans

Introduction

Automatic music composition has seen significant advancements with the rise of Transformer architectures. However, generating drum tracks that feel rhythmically coherent and "in the pocket" with other instruments remains a distinct challenge. Most existing models operate in an unconditional fashion, generating beats in isolation. This paper presents a novel sequence-to-sequence (Seq2Seq) framework designed to generate drum tracks that syncopate naturally with existing guitar and bass accompaniments.

The Challenge of Drum Generation

Drumming is more than just keeping time; it is about the "groove"—the subtle rhythmic interplay between instruments. Traditional MIDI-like encodings often fail here for three primary reasons:

  1. Sequence Length: Representing every musical attribute (time, note, velocity) as an individual token leads to extremely long sequences that are computationally taxing for Transformers to process.
  2. Musical Coherence: It is difficult for models to align drum hits with the specific syncopation of a bass line or guitar riff without a robust conditioning mechanism.
  3. Complexity: Many models default to repetitive, simplistic patterns, failing to capture the intricate dynamics found in genres like Rock or Metal.

Methodology: Compound Words and Hybrid Architectures

To address these issues, the authors introduce Compound Word (CP) representations. Instead of a linear stream of individual tokens, multiple musical attributes (e.g., Type, Duration, Value) are grouped into a single multi-dimensional "super token." This drastically reduces the sequence length, allowing the model to process longer musical windows more efficiently.

The architecture follows a hybrid Seq2Seq approach:

  • Encoder (BiLSTM): A 3-layer Bidirectional Long Short-Term Memory network processes the conditioning tracks (Guitar and Bass) along with high-level metadata like Tempo and Time Signature. The BiLSTM is particularly effective at summarizing the overall "vibe" and context of the accompaniment.
  • Decoder (Music Transformer): A Transformer-based decoder utilizing Relative Global Attention generates the drum sequence. Relative attention allows the model to prioritize the rhythmic intervals between notes rather than their absolute positions, which is crucial for maintaining a consistent beat.
Overview of the Compound Word representation and the Seq2Seq framework, showing how guitar/bass inputs are mapped to drum outputs.

Data and Evaluation

The model was trained on a curated subset of the LAKH MIDI dataset, specifically focusing on the Rock and Metal genres due to their rhythmic complexity. The researchers extracted over 14,000 phrases, ensuring each contained guitar, bass, and drum tracks. Rare time signatures and extreme tempos were eliminated to ensure a clean training corpus.

Key Results

The CP-based model was evaluated using both objective metrics and subjective listening tests against several baselines, including MuseGAN.

  • Objective Performance: The model achieved significantly lower error rates in matching the syncopation and symmetry of human-composed ground truths. This suggests the AI-generated drums possess rhythmic structures very similar to professional human drummers.
  • The "Turing Test" Moment: In blind listening tests with 41 participants, the AI-generated drums were frequently indistinguishable from human performances. In fact, 41.75% of listeners identified the AI tracks as "Human-composed," while nearly 46% of actual human recordings were mistaken for AI. The model even outperformed the ground truth in categories like Naturalness, Grooviness, and Coherence.

Conclusion and Future Directions

By combining the contextual summary of a BiLSTM with the structural precision of a Transformer, and optimizing the data via Compound Words, this framework sets a new bar for conditional music generation. While the current model is limited to guitar and bass inputs, future work aims to expand the palette to include more instruments and incorporate expressive dynamics, such as note velocity and cymbal duration, to further enhance realism.

Summary updated

BibTeX
@inproceedings{makris2022conditional,
  author = {Dimos Makris and Zixun Guo and Maximos A. Kaliakatsos-Papakostas and Dorien Herremans},
  title = {{Conditional Drums Generation Using Compound Word Representations}},
  booktitle = {Evomusart},
  year = {2022},
  doi = {10.1007/978-3-031-03789-4\_12},
}
Figure