Abstract
Generating music has a few notable differences from generating images and videos. First, music is an art of time, necessitating a temporal model. Second, music is usually composed of multiple instruments/tracks with their own temporal dynamics, but collectively they unfold over time interdependently. Lastly, musical notes are often grouped into chords, arpeggios or melodies in polyphonic music, and thereby introducing a chronological ordering of notes is not naturally suitable. In this paper, we propose three models for symbolic multi-track music generation under the framework of generative adversarial networks (GANs). The three models, which differ in the underlying assumptions and accordingly the network architectures, are referred to as the jamming model, the composer model and the hybrid model. We trained the proposed models on a dataset of over one hundred thousand bars of rock music and applied them to generate piano-rolls of five tracks: bass, drums, guitar, piano and strings. A few intra-track and inter-track objective metrics are also proposed to evaluate the generative results, in addition to a subjective user study. We show that our models can generate coherent music of four bars right from scratch (i.e. without human inputs). We also extend our models to human-AI cooperative music generation: given a specific track composed by human, we can generate four additional tracks to accompany it.
Introduction
Generating a single melody is one thing, but generating a cohesive performance by a five-piece rock band is another challenge entirely. In their AAAI-18 paper, researchers from Academia Sinica and National Tsing Hua University introduced MuseGAN, a framework designed to generate multi-track, polyphonic music that actually sounds like the instruments are listening to each other. By modeling music as a collection of interdependent tracks rather than a single sequence of notes, it can either compose four-bar phrases from scratch or "accompany" a human-provided track with a full AI band.
What Problem Does This Paper Address?
Most early AI music generation focused on monophonic (one note at a time) or single-track melodies. However, real music is inherently multi-track and polyphonic.
The authors identify three core challenges:
- Temporal Structure: Music unfolds over time with hierarchical patterns (beats make bars, bars make phrases).
- Multi-track Interdependency: In a band, the bass follows the drums, and the guitar follows the chord progression. They aren't just playing at the same time; they are interacting.
- Polyphony: Notes are often played in chords or overlapping melodies, making simple "next-note prediction" ill-suited for the task.
Methods
The researchers proposed three distinct architectures to handle how instruments interact:
- Jamming Model: Multiple generators work independently, each creating one track. They only "talk" to each other through the feedback they get from their respective critics (discriminators).
- Composer Model: A single generator creates all tracks simultaneously from a shared random vector. This treats the band as a single entity with one "intent."
- Hybrid Model: This combines the two. Each instrument has its own "private" random vector (for individual flair) but also receives a "shared" inter-track vector (to ensure they stay in the same key and rhythm).
To handle time, they moved away from note-by-note generation. Instead, they used transposed convolutional neural networks (CNNs) to generate entire "bars" of music at once. They employed a hierarchical temporal model where a "temporal structure generator" creates a sequence of latent vectors that a "bar generator" then turns into actual piano-rolls. To keep training stable, they used the WGAN-GP (Wasserstein GAN with Gradient Penalty) framework.
Datasets and Evaluation
The authors introduced the Lakh Pianoroll Dataset (LPD), derived from the massive Lakh MIDI Dataset. They processed over 170,000 MIDI files into multi-track piano-rolls, focusing on a subset called LPD-5-cleansed, containing 30,887 multi-track phrases for bass, drums, guitar, piano, and strings.
Since "good music" is subjective, the authors proposed several objective metrics:
- Qualified Notes (QN): Measures if the music is overly fragmented.
- Drum Pattern (DP): Checks if the drums follow standard rock patterns.
- Tonal Distance (TD): Quantifies the harmonic relationship between tracks.
Key Results
The Hybrid Model emerged as the clear winner. In a subjective evaluation with 144 subjects, it was rated highest for being harmonious and having a clear musical structure. Inter-track objective metrics (TD) showed that the Composer and Hybrid models produced much better harmonic relations than the Jamming model, proving that a shared "intent" signal is vital for AI bands. Furthermore, the model successfully demonstrated "track-conditional generation," where the AI generated coherent accompaniment for a human-composed piano track.
Limitations and Future Work
While MuseGAN creates impressive 4-bar phrases, it still struggles with long-term structure. A full song has movements and repetitions that a 4-bar model cannot yet grasp. Additionally, the output is currently binary (on/off), lacking "velocity" or nuanced timing (swing/groove). Future work aims to address these expressive elements and extend temporal coherence beyond short phrases.
Summary updated