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.
AI-processed from Hugging Face Daily Papers; edited by Hamidun News
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.
- Oct 28, 2026Wired Tested 6 AI Agents in a Day: Dots Leads, Gemini Spark Fails at Lunch
- Nov 21, 2026Anthropic Releases Claude Duet: An Agent That Reads Your Email and Slack and Finds Tasks on Its Own
- Jul 1, 2026Together AI at NVIDIA GTC 2026: Dynamo, Multi-Agent Models and Voice AI
- May 22, 2026Speech Transcription with AWS SageMaker and vLLM
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).
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.
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%.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
