Skip to content

DuET Piano to Score Transcription: How the Dual-Encoder Model Works

AINewss Editorial Team

DuET tackles piano performance-to-score transcription by separating note-level and frame-level information. This guide explains the two encoders, TimeRoPE and TPRoPE, the reported MUSTER error reductions, and the model's stated limits. Code and weights are linked, with the non-commercial licence stated. Readers searching for "DuET Piano to Score" will find a source-checked answer here.

View 3 references
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

Piano performance MIDI being converted into structured sheet music notation

What is DuET piano to score transcription?

DuET is a research model that converts expressive piano performance MIDI into structured musical notation. It uses a note encoder, a frame encoder and a note-aligned autoregressive decoder, jointly learning score prediction alongside frame-level beat and downbeat tracking. The released weights are paired with code and a paper.

The model comes from a 2026 paper by Wei Zeng and Ye Wang at the National University of Singapore. Weights and code are published under a non-commercial licence, with the Hugging Face model card and the paper page serving as the primary references.

The input is performance MIDI, not raw audio. That distinction matters: DuET works on note events that are already detected, not on a waveform.

Why is piano performance-to-score transcription hard?

Because note information and beat information live at different granularities. A score assigns attributes to discrete notes, while a beat can occur during a sustained note with no new attack at all. This is why a single generic encoder struggles with the task.

A human pianist does not play like a metronome. The same written quarter note may be held slightly longer or shorter in performance, so the algorithm must decide both how long the sound lasted and where it sits in the underlying metrical grid. Those two questions are not the same, and earlier systems often tried to answer both with a single representation.

DuET's premise is that this mismatch should be modelled explicitly rather than ignored. That is the reason for its two encoders.

How does the DuET architecture work?

The note encoder handles discrete note events, while the frame encoder handles the continuous timeline where beats and downbeats can fall. A bidirectional cross-attention mechanism connects them, and an autoregressive decoder alternates between the two representations to emit structured score attributes.

The architecture has three parts:

  • Note encoder: reads the performance MIDI note stream.
  • Frame encoder: reads a frame-level representation carrying beat and downbeat information.
  • Note-aligned decoder: predicts score attributes by alternating between the two representations.

Two position-encoding schemes are introduced: TimeRoPE and time-pitch rotary position encoding, or TPRoPE. Together they establish a shared performance-time reference and encode relative time and pitch relationships explicitly.

How well does DuET perform?

The paper reports that DuET reduces mean MUSTER error on the Gangqinpu dataset from 6.56 percent to 3.64 percent against the strongest baseline, and from 11.30 percent to 11.22 percent on the ASAP classical piano dataset. Both figures come from the authors' own evaluation.

The gap between the two datasets is informative. Gangqinpu is a curated set of roughly 19,000 performance-score pairs covering popular and other genres, while ASAP is classical piano. The large gain on the popular-music set and the small gain on the classical set suggest the dual-encoder design mainly helps with timing and notation problems where beats are less regular.

Ablation studies reported in the paper support the value of frame-level context, time-based positional encodings and the decoder history mask. These figures come from the authors' own evaluation and should be read as such.

What are the limits of the reported results?

The improvements are concentrated in score timing and notated duration, not in every transcription error type. Downbeat accuracy remains an open problem, and the evaluation is limited to piano. The paper frames downbeat transcription as a direction for future work.

Specific caveats worth keeping in view:

  • Piano only. The paper does not show results for string quartets or jazz improvisation.
  • Small absolute gain on ASAP. A move from 11.30 to 11.22 percent is marginal, not a decisive win.
  • One sub-metric favours a simpler model. The paper reports that a note-encoder-only variant performed better on notated duration in Gangqinpu than the full model.
  • MIDI input required. Audio-to-MIDI transcription is a separate upstream problem.

The authors are candid about these points, which makes the reported gains more credible than a uniformly positive result.

How do you get DuET?

Code, installation and usage instructions are hosted on GitHub, and the weights are on Hugging Face under a Creative Commons non-commercial licence. The card lists the licence and architecture but leaves parameter counts and inference examples to the code repository, so plan on reading the repository before running anything.

The practical path is:

  1. Read the DuET model card for the architecture summary and licence terms.
  2. Visit the GitHub repository for installation and usage.
  3. Check the licence before any commercial use. The card declares cc-by-nc-4.0, which restricts commercial deployment.

The model card does not publish parameter counts, checkpoint size or a runnable inference example; those details live in the code repository. Plan on reading the repo rather than copying a snippet from the card.

Who is DuET for?

It is for researchers and developers working on music transcription who already have performance MIDI and want a reproducible baseline with published code and weights. It is not a consumer app that turns a phone recording into sheet music. Expect to work with MIDI files, not recordings.

For a pianist hoping to print a clean score from a live recording, DuET is only one component: an audio-to-MIDI front end would still be needed, and the model's stated limitations apply. For a researcher studying cross-granularity modelling, the note-versus-frame split is the interesting contribution.

What questions do readers ask about DuET Piano to Score?

Common questions ask whether DuET accepts audio, whether it can be used commercially, and what transcription means here. It takes performance MIDI rather than audio, its weights carry a non-commercial licence, and the goal is to recover note values and metrical structure from an expressive performance.

Does DuET work on audio files?

No. The model takes piano performance MIDI as input. Converting audio to MIDI is a separate task handled by other systems.

Can DuET be used commercially?

The model card declares a Creative Commons Attribution-NonCommercial 4.0 licence. Check the repository licence file before any commercial deployment.

What does performance-to-score mean?

It means turning the timing and pitch of an expressive performance into formal notation with note values, beats and measure structure, rather than simply listing the notes that were played.

References

  1. Wayne42/DuET model card - Hugging Facehuggingface.co
  2. DuET: Note-Frame Dual Encoding for Piano Performance-to-Score Transcription - paperhuggingface.co
  3. wei-zeng98/DuET on GitHubgithub.com