What happened
The project focused on training a transformer model to continue musical sequences based on MIDI data. The team started with a collection of MIDI files from popular games and other sources, primarily focusing on piano-like material to simplify the learning process.
They experimented with various tokenization methods, ultimately settling on a representation where each note is defined by its pitch, velocity, duration, and time shift relative to the previous note. This approach avoids issues encountered when directly using MIDI events, which can lead to instability and memory problems for smaller models running in real-time. The resulting vocabulary size, while initially large (potentially 16,512 tokens), was carefully managed through grammar-based tokenization to reduce sparsity and ensure syntactically valid output. The team tested several alternative approaches but ultimately found the final representation—using a single ‘NOTE’ token with pitch, delta_onset, duration, velocity—to be most successful.
Why it matters
The implications of this research extend beyond simply generating music. It demonstrates that transformer models, traditionally used for natural language processing, can successfully tackle sequential data in entirely different domains like music.
This opens the door to new applications such as personalized musical composition, interactive music creation tools, and even the restoration of damaged or incomplete musical recordings. The ability to represent music as a sequence of discrete events—a fundamental principle behind many AI models—provides a powerful framework for understanding and generating complex musical patterns.
“‘it gets the large model to about 108 notes/second on an iphone, well above anything a human would need for live playing.’”
— Dr Non
The counter-take
The common assumption that music generation requires extensive hand-crafted rules is increasingly being challenged by AI systems capable of learning patterns directly from data. This shift reflects a broader trend in AI where models are replacing explicit programming with data-driven learning approaches – a previously held belief about creativity has been overturned.
The AI angle
AI-powered music generation is creating new tools for creative expression, enabling musicians to experiment with novel sounds and patterns that might not have been possible through traditional methods. However, it also introduces asymmetry – while AI can rapidly generate variations, humans remain essential for curating and refining these outputs, leading to a technological upgrade for musical creation.
