DuET cuts piano-to-score transcription error from 6.56% to 3.64%

Transcribing an expressive piano performance into musical notation requires simultaneously understanding individual note timing shifts and the underlying metrical structure. Researchers from the National University of Singapore tackled this problem with DuET, a model that jointly models note transcription and beat tracking, linking both processes through dedicated attention mechanisms. DuET is a dual-encoder transformer in which bidirectional cross-attention connects a note encoder and a frame encoder, while an autoregressive decoder alternates between their representations to predict structured score attributes. The model uses TimeRoPE and Time-Pitch Rotary Positional Encoding (TPRoPE) to establish a unified time reference and explicitly encode relative time and pitch relationships. • **Datasets**: ASAP (classical music) and Gangqinpu (more than 18,000 performance-score pairs spanning several genres, with a focus on popular piano music) • **Results**: on Gangqinpu, the MUSTER metric error dropped from 6.56% to 3.64%; on ASAP, it fell from 11.30% to 11.22% • **Resources**: a live demo at https://huggingface.co/spaces/Wayne42/DuET-demo and source code at https://github.com/wei-zeng98/DuET

AI-processed from Hugging Face Daily Papers; edited by Hamidun News
DuET cuts piano-to-score transcription error from 6.56% to 3.64%
Source: Hugging Face Daily Papers. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHugging Face Daily Papers ↗
Editor-in-Chief
DatasetsASAP (classical music) and Gangqinpu (more than 18,000 performance-score pairs spanning several genres, with a focus on popular piano music)
Resultson Gangqinpu, the MUSTER metric error dropped from 6.56% to 3.64%; on ASAP, it fell from 11.30% to 11.22%
Resourcesa live demo at https://huggingface.co/spaces/Wayne42/DuET-demo and source code at https://github.com/wei-zeng98/DuET

The problem and the approach

Automatically transcribing piano performances into musical notation is a complex task. A performer varies the timing of each note and shifts the rhythm, yet the resulting score must capture not only the correct pitches but also the bar structure and how notes line up with strong beats. Traditional approaches have focused either on the note level (pitches sounded) or the frame level (beats and downbeats). Researchers Wei Zeng and Ye Wang from the National University of Singapore proposed a fundamentally different solution: a dual-encoder transformer that handles both tasks at once through mutual attention.

DuET's architecture

The model is built on the following components:

Dual encoding and cross-attention: separate encoders process note pitches and the rhythmic frame grid, linked by bidirectional cross-attention to exchange context. An autoregressive decoder alternates between note and frame representations, predicting score attributes sequentially.

Positional encodings: TimeRoPE establishes a unified performance-time reference, while Time-Pitch Rotary Positional Encoding (TPRoPE) explicitly encodes relative time and pitch relationships. These mechanisms let the model more accurately handle the main sources of error — tempo changes and a performer's phrasing.

Joint training: rather than solving MIDI-to-score transcription (PM2S) and beat-and-downbeat tracking separately, the model treats them as a single task, where context from one level helps the other.

Results on the datasets

The team tested DuET on two datasets:

Gangqinpu — the authors' own dataset, with more than 18,000 performance-score pairs spanning several genres and a particular focus on popular piano music. Here, DuET cut the average MUSTER metric error from 6.56% to 3.64% — an improvement of 2.92 percentage points.

ASAP — a classical dataset of academic repertoire. The result here was more modest: error dropped from 11.30% to 11.22%. The difference stems from the complexity of classical repertoire, where interpretive variation is greater.

Ablation studies confirmed that the gains come from frame-level context, temporal positional encodings, and decoder history masking.

Available resources

The authors have released everything needed to use the model:

Interactive demo: https://huggingface.co/spaces/Wayne42/DuET-demo lets you try the model directly in your browser with your own audio recordings.

Source code and weights: https://github.com/wei-zeng98/DuET contains the full implementation and trained models.

Gangqinpu dataset: the authors plan to release the full dataset of more than 18,000 examples for further research.

The work was published on October 15, 2026 and has already drawn a positive response from the community.

Key Questions Answered

What are the key details on The problem and the approach?

Automatically transcribing piano performances into musical notation is a complex task. A performer varies the timing of each note and shifts the rhythm, yet the resulting score must capture not only the correct pitches but also the bar structure and how notes line up with strong beats. Traditional approaches have focused either on the note level (pitches sounded) or the frame level (beats and downbeats). Researchers Wei Zeng and Ye Wang from the National University of Singapore proposed a fundamentally different solution: a dual-encoder transformer that handles both tasks a

What are the key details on DuET's architecture?

The model is built on the following components: Dual encoding and cross-attention: separate encoders process note pitches and the rhythmic frame grid, linked by bidirectional cross-attention to exchange context. An autoregressive decoder alternates between note and frame representations, predicting score attributes sequentially. Positional encodings: TimeRoPE establishes a unified performance-time reference, while Time-Pitch Rotary Positional Encoding (TPRoPE) explicitly encodes relative time and pitch relationships. These mechanisms let the model more accurately handle the

What are the key details on Results on the datasets?

The team tested DuET on two datasets: Gangqinpu — the authors' own dataset, with more than 18,000 performance-score pairs spanning several genres and a particular focus on popular piano music. Here, DuET cut the average MUSTER metric error from 6.56% to 3.64% — an improvement of 2.92 percentage points. ASAP — a classical dataset of academic repertoire. The result here was more modest: error dropped from 11.30% to 11.22%. The difference stems from the complexity of classical repertoire, where interpretive variation is greater. Ablation studies confirmed that the gains come f

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Hands-On AI Engineering · Hamidun Academy

Build & Ship Production AI Agents Without Boilerplate Code

Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.

Start 72h Free Trial →Vibe-Coding Intensive
What do you think?
Loading comments…