← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

125M-parameter transformer model autocompletes piano performances on-device

🔄 Updated 1h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Model has 125M parameters and runs on iPhone 15.
  • Achieves real-time performance at 108 notes/sec.
  • Key improvements from MIDI representation and data cleaning.
  • The application, RollTab, is available for free.

On-Device Piano Autocompletion

A developer successfully trained a 125-million-parameter transformer model to autocomplete piano performances. This model operates in real-time on an iPhone 15, processing approximately 108 notes per second. The project, named RollTab, is available as a free application for users with a MIDI keyboard and an iPhone or iPad.

Development Process and Optimizations

The development involved extensive experimentation over nearly a year. Significant improvements in the model's performance were achieved through careful selection of the MIDI representation, aggressive cleaning of training data, and the application of DPO (Direct Preference Optimization) during post-training. These steps were crucial for enabling efficient on-device operation.

MIDI Representation Challenges

Training a transformer on musical data required converting MIDI events into a discrete sequence. A naive tokenization approach, directly mapping MIDI events to tokens, would result in a large vocabulary due to the combinations of pitch and velocity. For example, 128 pitches and 128 velocity values could lead to over 16,000 tokens for note-on and note-off events alone. A more efficient approach involves factoring the representation with a grammar, such as separating NOTE_ON, PITCH, and VELOCITY into distinct tokens, to reduce the output space and improve model learning.

Impact on Creative AI

This project showcases the feasibility of deploying complex AI models for creative tasks directly on consumer mobile devices. By enabling real-time piano autocompletion, it provides a practical example of how AI can assist musicians and potentially open new avenues for interactive music creation without relying on cloud processing.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~17 min · 15 stories · Aug 20

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

A developer trained a 125M-parameter transformer model to autocomplete piano performances in real-time on an iPhone 15, achieving approximately 108 notes per second. This development demonstrates the potential for on-device AI in creative applications, specifically in music generation, by optimizing MIDI representation and data cleaning.