Decomposer Recovers Music Programs from Symbolic MIDI Data

Yewon Kim, Apurva Gandhi, David Chung, Graham Neubig, Chris Donahue· July 3, 2026 View original

▶ The 2-minute explainer

Summary

Decomposer is a new framework that decompiles symbolic MIDI music into executable Strudel programs, allowing for the recovery of high-level musical instructions. It addresses challenges of low-resource language data and code readability by using synthetic data for fine-tuning and reinforcement learning to optimize both reconstruction faithfulness and code clarity.

Musical performance involves executing high-level instructions, but extracting these instructions from a performance is a complex inverse problem. This research introduces Decomposer, a post-training framework designed for symbolic music decompilation. Its goal is to recover editable music programs from symbolic music, specifically converting MIDI input into Strudel, a music programming language, such that the generated program can reconstruct the original MIDI. The framework tackles two main hurdles: the scarcity of paired MIDI-code data for Strudel and the risk of generating unreadable, note-by-note transliterations if only MIDI reconstruction is optimized. Decomposer addresses these by first creating "Strudel-Synth," a synthetic corpus of paired Strudel programs and MIDI, used for supervised fine-tuning. Subsequently, it refines the model using reinforcement learning on unpaired MIDI, optimizing for both faithful MIDI reconstruction and the readability of the generated code. Evaluations show Decomposer significantly outperforms closed-source LLMs in MIDI reconstruction while producing more readable and diverse code than heuristic converters.

Why it matters

This technology could revolutionize how musicians, composers, and developers interact with music, enabling easier analysis, modification, and generation of musical pieces from existing performances.

How to implement this in your domain

  1. 1Explore Decomposer for analyzing existing musical compositions to understand their underlying programmatic structure.
  2. 2Integrate Decomposer into music production workflows to convert recorded MIDI performances into editable code.
  3. 3Utilize the framework for generating new musical variations or styles by modifying decompiled Strudel programs.
  4. 4Develop educational tools that demonstrate musical composition principles through code-based representations.

Who benefits

Music ProductionEntertainmentEdTechAI DevelopmentCreative Arts

Key takeaways

  • Decomposer converts symbolic MIDI into editable music programs.
  • It uses synthetic data and reinforcement learning for training.
  • The framework balances reconstruction accuracy with code readability.
  • It offers a new way to analyze, modify, and generate music programmatically.

Original post by Yewon Kim, Apurva Gandhi, David Chung, Graham Neubig, Chris Donahue

"arXiv:2607.01849v1 Announce Type: new Abstract: Musical performance involves executing a set of high-level musical instructions, yet recovering those instructions from the performance is a challenging inverse problem. We present Decomposer, a post-training framework for symbolic…"

View on X

Originally posted by Yewon Kim, Apurva Gandhi, David Chung, Graham Neubig, Chris Donahue on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses