← Latest papers
🤖 machine learning

Decomposer: Learning to Decompile Symbolic Music to Programs

The paper introduces Decomposer, a two-stage post-training framework that uses synthetic data and reinforcement learning to effectively decompile symbolic MIDI music into readable, executable Strudel programs, outperforming existing models in both reconstruction accuracy and code quality.

Original authors: Yewon Kim, Apurva Gandhi, David Chung, Graham Neubig, Chris Donahue

Published 2026-07-03
📖 4 min read☕ Coffee break read

Original authors: Yewon Kim, Apurva Gandhi, David Chung, Graham Neubig, Chris Donahue

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a recording of a beautiful song, but all you have is a giant, messy list of every single note played, every drum hit, and every second of silence. It's like having a recipe written out as "add one grain of rice, then another, then another..." instead of "cook 2 cups of rice." You can hear the song, but you can't easily change the tempo, swap the instruments, or understand the structure.

This paper introduces DECOMPOSER, a new tool designed to reverse-engineer that messy list back into a smart, editable musical program.

Here is how it works, broken down into simple concepts:

The Big Problem: The "Note-by-Note" Trap

When you try to turn a song back into code, you face two main hurdles:

  1. The "Robot" Problem: A simple computer script can turn the song into code perfectly, but it writes it like a robot counting every single step. It's accurate, but it's unreadable and impossible for a human to edit.
  2. The "Dreamer" Problem: Advanced AI models (like the smartest chatbots) can write beautiful, readable code, but they often "hallucinate." They might write a cool-sounding program that doesn't actually match the original song when played back.

The Solution: A Two-Stage Training Camp

The authors trained their AI, DECOMPOSER, using a two-step "boot camp" to solve both problems at once.

Stage 1: The "Copycat" Phase (Supervised Fine-Tuning)
First, they created a massive library of fake but perfect examples called STRUDEL-SYNTH. They asked a super-smart AI to write cool music programs, then ran those programs to see what songs they made. This gave them thousands of pairs of "Song + Perfect Code."
They taught DECOMPOSER to mimic these pairs. Think of this as a music student copying sheet music from a master teacher. Now, the AI knows what "good" Strudel code (a language for making music) looks like.

Stage 2: The "Coach" Phase (Reinforcement Learning)
Knowing what code looks like isn't enough; the AI needs to learn to make code that sounds right.

  • The AI tries to turn a song into code.
  • It runs that code to hear the result.
  • The Coach (Reward System): A referee checks two things:
    1. Faithfulness: Does the new song sound exactly like the original?
    2. Readability: Is the code short, clever, and easy for a human to understand? (e.g., using "repeat this pattern" instead of writing the note 100 times).
  • If the code is too messy or sounds wrong, the AI gets a "penalty." If it's clever and accurate, it gets a "reward." The AI learns from this feedback to get better and better.

The Result: The Best of Both Worlds

The paper shows that DECOMPOSER is a "Goldilocks" solution:

  • It is more accurate than the smartest general AI models (which often guess wrong).
  • It is much more readable than simple computer scripts (which are boring and long).

Why This Matters (According to the Paper)

The authors say this allows musicians and coders to take a raw musical performance and turn it into a "living" program. Instead of just having a recording, you get a set of instructions that you can tweak. You could change a chord progression or speed up a rhythm by editing the code, rather than manually moving every single note.

The paper also notes that this works best on music with clear, repeating patterns (like electronic dance music) and is still learning how to handle very complex or irregular styles (like jazz or classical) perfectly.

In short: DECOMPOSER is a translator that turns a "flat" musical recording back into a "smart" musical blueprint, making it easy for humans to understand, edit, and remix the music.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →