arXiv:2611.12111cs.RONov 2026

Manuscript Offprint

arXiv:2611.12111

GAP: Generalized Adaptation Prior for Dexterous Piano Playing

Jinyi Chen, Hongyi Li, Lei Jiang, Xianwei Liu, Yanhong Liang, Yulin Chen, Yucheng Tao, Yongbin Jin, Hongtao Wang

Jinyi Chen1^{1}, Hongyi Li1^{1}, Lei Jiang1^{1}, Xianwei Liu3^{3}, Yanhong Liang1^{1}, Yulin Chen1^{1}, Yucheng Tao1^{1}, Yongbin Jin2,3†^{2,3\dagger}, and Hongtao Wang1,2†^{1,2\dagger}

Abstract—Dexterous hands enable versatile manipulation, but policies trained in simulation often degrade on hardware owing to non-idealities, and the high-dimensional action space makes real-world adaptation costly. Piano playing, which requires precise and coordinated multifinger motion, offers a representative testbed. We propose GAP (Generalized Adaptation Prior for Dexterous Piano Playing), a sample-efficient adaptation framework that learns how to adapt, rather than how to act, during simulation pretraining and transfers this adaptation prior to hardware. Between repeated executions, GAP uses feedback to adjust the actions of the next one: a gradient guidance network learns from paired executions how adjusting actions affects playing performance, and its gradients guide these adjustments. In simulation, GAP yields approximately 2.4 times the F1 scores improvement of the existing fast-adaptation baseline for dexterous piano playing under the same interaction budget. The learned prior also generalizes to musical pieces held out from pretraining. On a physical dexterous hand, the same simulation-pretrained prior improves F1 scores by 3.6%–23% across three pieces of varying difficulty after approximately 7 min of adaptation each. These results suggest a practical route to reduce the real-world interaction needed to deploy dexterous hands.

I. INTRODUCTION

Dexterous hands are expected to bring human-like versatility to robots, from tool use, assembly to handling deformable objects and playing musical instruments. The hardware has advanced rapidly, with greater force output, faster motion, and higher precision [1], [2]. Turning this capability into reliable behavior, however, depends on how well a skill matches the physical hand [3]. Friction, hysteresis, transmission compliance, and actuator delay are captured only approximately by nominal models and simulators, and the resulting deviations degrade real-world performance [4]–[6]. The practical value of dexterous hands therefore depends increasingly on how efficiently their skills can be adapted to the physical system.

Piano playing exposes this need clearly [7]. Every keystroke must reach the correct key, with sufficient depth, at the right time, while several fingers move in coordination; deviations of a few millimeters can produce wrong or missed notes [8], [9]. Systems that rely on accurate calibration and modeling can play physical pianos, but they cannot account for deviations that remain unmodeled. Real-world feedback reveals these errors, but correcting them is difficult: the actions are high-dimensional, the outcome consists of discrete keystroke events

Figure

Fig. 1. GAP pre trains a generalized adaptation prior in simulation on multiple pieces under different perturbations, including joint zero offsets, damping, actuator delays, and sensor noise (top), and uses it for fast adaptation on the physical hand (bottom). Green, red, and orange keys denote correct, incorrect, and missed keystrokes.

whose dependence on the actions is hard to model, and every trial occupies the hardware. Residual reinforcement learning (RL) [8], [10] learns such corrections from real-world returns, which still requires extensive real-world interaction [11], [12].

Simulation is the natural source of inexpensive experience, but the question is what to transfer. Policies and dynamics models learned in simulation are fitted to the simulated dynamics, which is precisely what differs on hardware [12], [13]. What may remain valid despite this mismatch is how an adjustment changes performance relative to an observed execution: when a fingertip lands off center, shifting it toward the key center improves the keystroke, whichever piece is played and whatever caused the offset [8], [14]. This raises the question addressed in this letter: can such a generalized adaptation prior, learned from diverse simulated executions, substantially reduce the real-world interaction required for adaptation?

Building on this idea, we propose GAP (Generalized Adaptation Prior), a sample-efficient adaptation framework for dexterous piano playing (Fig. 1). Rather than learning how to act, GAP learns how to adapt: a Gradient Guidance Network (GGN) scores a correction to a given initial trajectory by how it would change keystroke accuracy within a short time

†^{\dagger}Corresponding authors: Yongbin Jin and Hongtao Wang. 1^{1}Center for X-Mechanics, Zhejiang University, Hangzhou, China. 2^{2}ZJU-Hangzhou Global Scientific and Technology Innovation Center, Hangzhou, China. 3^{3}Mirrorme Technology Co., Ltd., Shanghai, China.

window relative to an observed execution of that trajectory. GGN is pretrained on simulated executions of multiple pieces under diverse perturbations and then refined on hardware with executions of each piece. In simulation, GAP improves the F1 score approximately 2.4 times as much as the existing fast-adaptation method for dexterous piano playing under the same interaction budget, pretraining cuts the needed interaction by about 4.4 times, and the prior generalizes to unseen pieces. On hardware, the same prior raises F1 by 3.6%-23% in about 7 min per piece, and continual fine-tuning yields further gains.

The main contributions of this work are as follows:

  • We propose GAP, a framework that learns a generalized adaptation prior from inexpensive simulated executions and transfers it to hardware to reduce real-world interaction.

  • We develop the GGN, which turns discrete keystroke feedback from a completed execution into gradients that adjust the actions of the next one.

  • We demonstrate in simulation and real-world experiments that GAP adapts sample-efficiently and generalizes across musical pieces and execution deviations.

References (33)