DeepDrum: An Adaptive Conditional Neural Network

Dimos Makris, Maximos Kaliakatsos-Papakostas, Katia Lida KermanidisarXiv 2018

TL;DR

DeepDrum is a hybrid neural network architecture that combines Long Short-Term Memory (LSTM) blocks with Feed-Forward "conditional" layers to generate drum rhythms. Unlike standard sequence models that merely imitate a style, DeepDrum actively adapts to external musical constraints—such as bass lines, guitar parts, and tempo changes—even when those specific constraints (like odd time signatures) were never encountered during training.

What Problem Does This Paper Address?

While Deep Learning, particularly LSTMs, has become a staple for generating musical sequences, most models operate in a vacuum. They are excellent at learning the "vibe" of a genre but struggle to interact with other instruments or adhere to rigid structural changes.

In a real-world musical context, a drummer doesn't just play a repetitive loop; they react to the bass player’s syncopation, the guitar’s melody, and shifts in the song’s meter or tempo. The challenge the authors address is how to build a generative system that maintains stylistic integrity while remaining "steerable" by external musical parameters.

Methods

The authors propose a dual-module architecture:

  1. The LSTM Module: This handles the temporal dependencies of drum events. To manage the complexity of a drum kit, the authors split the drum input into three distinct spaces: Kick-Snare, HiHat-Ride, and Toms-Cymbals. Each space is processed by its own stack of two LSTM layers (256 hidden units each).
  2. The Conditional (Feed-Forward) Module: This is the "brain" that processes external context. It takes one-hot encoded data representing guitar and bass notes, metrical structure, tempo, and phrasing.
  3. Pre-FF Layers: These process information from past time-steps and are merged with the drum inputs before the LSTM blocks.
  4. Post-FF Layers: These process current and future time-steps, merging with the LSTM outputs to influence the final Softmax prediction.

By using a moving window of features, the model can "look ahead" to upcoming musical changes, allowing it to prepare for transitions much like a human drummer would.

Datasets

The model was trained on a specialized corpus:

  • Source: 70 songs from two progressive rock bands, manually collected from web tablature (911tabs.com). Progressive rock was chosen specifically for its rhythmic complexity and frequent use of non-standard time signatures.
  • Representation: Data was converted into text-based "words" using one-hot encodings.
  • Evaluation Sets:
    • PT-PF: Four pieces within the learned style but featuring time signatures (3/8, 9/8) not present in the training set.
  • AB: Two pieces from a completely different genre (Disco) to test the model's adaptability.

Key Insights and Ideas

  • Contextual "Rails": The most significant insight is that the Feed-Forward layers act as "rails" for the LSTM. While the LSTM wants to follow the patterns it learned in training, the FF layers force it to reconcile those patterns with the current instrumental context.
  • Zero-Shot Structural Adaptation: Because the model learns the relationship between musical parameters and drum hits, it can successfully navigate time signatures it has never seen before. It doesn't need to have seen a 9/8 bar to understand how to place hits relative to the metrical information provided by the conditional layers.
  • Predictive Drumming: By including "future" time-steps in the Post-FF module, the architecture acknowledges that drumming is a forward-looking activity. Drummers often play "fills" to signal an upcoming change; DeepDrum’s architecture is designed to support this behavior.

Key Results

The authors evaluated the model using t-SNE (t-distributed Stochastic Neighbor Embedding) to map the high-dimensional features of the generated rhythms into a 2D space:

  • Convergence to Style: As training progressed (moving from "early" to "late" epochs), the generated rhythms clustered significantly closer to the Ground-Truth (G-T) progressive rock samples.
  • Adaptability: When tested on the Disco (AB) style, the model’s late-stage generations moved toward the feature space of that genre, despite being trained on progressive rock.
  • Constraint Satisfaction: The model successfully generated rhythms for the "unknown" 3/8 and 9/8 time signatures that both sounded like the training style and correctly followed the new metrical constraints.

Limitations and Future Work

  • Dataset Scale: The study used a relatively small dataset of 70 songs. While progressive rock is dense with information, a larger, more diverse dataset could improve the model's "vocabulary."
  • Subjective Evaluation: The results are largely presented through feature mapping (t-SNE). The authors mention that audio excerpts are available online, but the paper lacks a formal double-blind listening test to quantify "musicality" or "creativity" from a human perspective.
  • Future Directions: The authors suggest further work on enabling the network to better foresee future musical changes, such as phrase transitions and tempo shifts, to create more natural "groove" and transitions.

For those interested in hearing the results, the authors hosted audio excerpts at the Ionian University's Humanistic and Social Informatics Lab website.

Summary updated

BibTeX
@misc{makris2018deepdrum,
  author = {Dimos Makris and Maximos Kaliakatsos-Papakostas and Katia Lida Kermanidis},
  title = {{DeepDrum: An Adaptive Conditional Neural Network}},
  year = {2018},
  eprint = {1809.06127},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.06127},
}
Figure