Manuscript Offprint
arXiv:2611.12111GAP: Generalized Adaptation Prior for Dexterous Piano Playing
Jinyi Chen, Hongyi Li, Lei Jiang, Xianwei Liu, Yanhong Liang, Yulin Chen, Yucheng Tao, Yongbin Jin, and Hongtao Wang
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

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
Corresponding authors: Yongbin Jin and Hongtao Wang. Center for X-Mechanics, Zhejiang University, Hangzhou, China. ZJU-Hangzhou Global Scientific and Technology Innovation Center, Hangzhou, China. 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.
A. Dexterous Piano Playing
Research on dexterous piano playing has progressed from simulation benchmarks to real-world deployment and adaptation. RoboPianist [7] demonstrated piano playing through RL in simulation and introduced framewise precision, recall, and F1 metrics, which we adopt in this work. Wang et al. [15], Liang et al. [16] and Jiang et al. [17] demonstrated physical piano playing, but their reliance on accurate calibration and modeling limits adaptation for unmodeled real-world deviations. Zeulner et al. [9] use real-world data to update simulator parameters in a Sim2Real2Sim loop, but each round retrain the policy in simulation and redeloys it, which does not provide fast adaptation to a given piece. HandelBot [8] incorporates real-world data into the adaptation loop through heuristic lateral-joint correction of open-loop trajectories followed by real-world residual RL. In contrast, GAP does not use residual RL and addresses these deployment deviations without manually designed lateral-alignment rules.
B. Fast Real-World Adaptation
Residual RL reduces the difficulty of real-world learning by learning residual actions on top of a base controller [10], [18], [19]. However, rollout costs, observation noise, and temporal credit assignment in multicontact, long-horizon, and high-degree-of-freedom tasks still necessitate extensive real-world interaction and limit sample efficiency [11], [20], [21]. Rather than inferring the effect of a correction from long-horizon returns, GAP measures the local reward change induced by a correction from paired executions that differ only in that correction, and trains GGN on the measurements by supervised learning instead of trial-and-error credit assignment.
Iterative learning control (ILC) updates feedforward inputs based on previous executions, providing a framework for adapting repetitive tasks without an accurate model [22], [23].
For example, Chi et al. [24] learn incremental dynamics relating action increments to trajectory changes and use them to optimize dynamic manipulation of deformable objects. GAP similarly learns from how action corrections affect a previous execution, but it learns reward changes computed from discrete keystroke events rather than trajectory changes, and updates action corrections through gradient guidance rather than action sampling.
C. Simulation Priors for Real-World Transfer
Simulation priors differ in what they transfer to hardware. Policies trained with domain randomization can be deployed directly [25], [26] or used to initialize real-world RL [27], [28]. Dynamics and value models learned in simulation guide planning, policy updates, or exploration on hardware [12], [29], [30]. GAP instead transfers a relative prior: GGN learns a surrogate that scores action corrections by their reward change relative to an observed execution of the initial trajectory. On hardware, this execution is a real one, so deviations of the physical hand enter through the observations rather than through the prior, and the same prior is shared across pieces.
III. METHOD
As shown in Fig. 2, GAP has two stages: Stage I learns the prior from diverse simulated executions (Section III-C), and Stage II applies and refines it on hardware (Section III-D). Both stages share the same adaptation process, which takes place between repeated executions rather than within one. GGN takes observations from a completed execution and action corrections as inputs, and outputs a scalar score: the local reward change these corrections would induce relative to that execution. With the observations held fixed, the corrections are iteratively updated along the gradients of this score with respect to them. Executing the adjusted trajectory yields paired feedback for network training. Stage I outputs only the GGN parameters, which constitute the adaptation prior; Stage II adapts each piece independently, starting from this prior.
A. Gradient Guidance Network
Observation. Based on the sensors available on hardware, the observation at time step is , where is the target joint position command, are the joint positions and velocities; is the action dimension; indicate the activated and target keys of the 88-key piano at the time step, and marks the fingers assigned to the target keys by a predefined fingering ( for one hand and 10 for two).
Action Correction. We adapt the initial trajectory by adding low-frequency action corrections: the initial trajectory , where is the trajectory length, is sent at 50 Hz and tracked by joint-level control loops, whereas action corrections are specified at 10 Hz on correction nodes. The choice of correction frequency is supported by the experiments in Section IV-B. The action

Fig. 2. Overview of GAP. Both stages share one adaptation process: gradients of the reward change modeled by GGN iteratively update the action corrections, and paired executions of the initial and adjusted trajectories supervise GGN. The execution and collection module is instantiated in parallel simulation in Stage I and on the physical hand in Stage II.
correction at each time step is obtained by interpolating the correction nodes:
where is the correction at node (time ) and is the number of nodes; denotes the number of time steps between correction nodes, with in this work; the adjusted trajectory is .
Local Reward Change. Following RoboPianist [7], we quantify playing performance using precision, recall, and their harmonic mean, F1, computed from and . Precision is the fraction of activated keys that are correct, and recall is the fraction of target keys that are activated; each is set to 1 when its denominator is zero. The whole-piece F1 score is the mean of the framewise F1 scores. The reward at each time step is . In a paired execution, the initial and adjusted trajectories are executed sequentially in the same environment (with the same perturbation configuration in simulation), giving , where and are their respective rewards. The local reward change at correction node is
The weights in (2) match the triangular interpolation kernel in (1), temporally aligning each correction node with its evaluation window. Using differences rather than absolute scores focuses GGN on the change induced by an action correction relative to an existing execution and gives samples from all pieces and perturbations a common supervision target, without modeling the full dynamics.
Network Formulation and Training. For network training and gradient-guided adaptation, we use dimensionless
correction variables , related to the physical corrections by , where the diagonal scales wrist, finger, and arm translational joints by 0.02 rad, 0.1 rad, and 0.002 m, respectively. The network input at node includes a local observation window
with radius . Because the window is taken from a completed execution, it can include steps after ; this bidirectional window outperforms a unidirectional one (Section IV-B). GGN is formulated as , where is a neural network parameterized by with scalar output . The inputs to include not only the local observation and dimensionless correction at the current correction node, but also the corrections at neighboring nodes on either side, : neighboring nodes affect the actual action at the current time through the interpolation kernel in (1), and ignoring this coupling would introduce systematic bias. We set . Paired executions yield the samples , which are used for supervised training:
Architecture. GGN is a 2-layer pre-norm Transformer [31] (128-dimensional tokens, 4 heads, feedforward dimension 256). Each time step of and each correction node in is embedded as a separate token with type and positional encodings; attention pooling and a multilayer perceptron produce the scalar output, bounded to by a scaled tanh.
Gradient-Guided Adaptation. With execution observations and network parameters fixed, the corrections are updated along the gradients of the surrogate objective
TABLE I SIMULATION PERTURBATIONS
| Perturbation | Hand (18 joints) | Arm (3 joints) |
|---|---|---|
| Per paired execution | ||
| Zero offset | — | |
| Damping scale | [0.8, 1.25] | |
| Actuator delay | [2.5, 30] ms | [5, 50] ms |
| Action perturbation | ||
| Per time step | ||
| Position delay | [0, 20] ms | |
| Velocity delay | [20, 40] ms | |
| Position noise | ||
| Velocity noise | ||
†Wrist-yaw, thumb-base and abduction joints only. All ranges are uniform; denotes . Action perturbations use 5 Hz interpolation nodes; the sampled sequence is fixed within each execution.
Here, denotes the complete sequence of dimensionless correction nodes. The coefficient penalizes correction magnitude, with in Stage I and 0.02 in Stage II. We maintain two networks with identical architectures but different initializations; each is trained independently with (4) on the same paired samples. Taking the minimum network output via is intended to reduce overestimation [32]. The gradients guide corrections toward improved execution rather than identifying an optimal trajectory under the true dynamics.
To bound the corrections, we parameterize elementwise and update . For random initialization, each component of is drawn independently from , or, in Stage II, may start from previous corrections (Section III-D). We then run Adam steps (learning rate 0.05), updating to along , where gradients from overlapping local terms accumulate at each node. The resulting is scaled by , interpolated by (1), and added to the initial trajectory, and the adjusted trajectory is executed.
B. Initial Trajectory
We train a playing policy for each piece using the same RL procedure as Jiang et al. [17]. The target position command sequence exported after training serves as the initial trajectory . The playing policies are trained separately for each piece, whereas GGN is jointly pretrained on adaptation experience from multiple pieces.
C. Stage I: Simulation Pretraining
Stage I instantiated the execution and collection module in parallel simulation, training GGN across pieces and parameter perturbations to learn a generalized adaptation prior. We divide the initial trajectory of each piece into 4 s segments and combine them into a shared sampling set. In each iteration, every parallel environment samples a segment and resamples joint zero offsets, damping, and actuator delays to produce diverse execution deviations. To improve GGN robustness, we additionally apply low-frequency perturbations to the initial action trajectories and add noise to sensor observations. Perturbation ranges are listed in Table I. Pretraining alternates between gradient-guided adaptation and supervised updates. Each sampled initial trajectory is first executed to obtain the
observation windows used by GGN-guided gradient ascent in (5). For exploration, noise drawn from is added to the dimensionless corrections produced by gradient ascent, and the noisy corrections are clipped to , the range of tanh; the resulting adjusted trajectory is executed under the same perturbation configuration. The paired results from the most recent 40 iterations are kept in a sample buffer, from which training samples are drawn according to (4). In both stages, correction nodes within 0.5 s of either segment end are excluded from training and from the network term in (5). During the first iteration, before any paired data exist, random dimensionless corrections drawn from are used for cold-start exploration. Parallel simulation supplies tens of thousands of segments for learning generalized adaptation guidance without the corresponding physical interactions.
D. Stage II: Real-World Adaptation
In Stage II, adaptation is performed on the physical robot, with each piece starting independently from the same simulation-pretrained GGN parameters. GGN gradients guide action corrections, while paired real-world executions of the current piece provide samples for fine-tuning to compensate for deviations insufficiently covered by simulation. To control interaction costs, the full piece is divided into 4 s segments with 2 s overlap between adjacent segments. Executions and paired samples are formed per segment, whereas GGN is updated on samples pooled from all segments. Before each segment execution, the hand moves to the command preceding the segment, with the arm lifted by 10 mm during the approach to avoid key contact. In each iteration, segments that have not met the performance thresholds are visited in random order, with at most 3 attempts per segment; a segment is skipped once and precision . For each attempt, a cached execution of the initial trajectory is reused with probability 0.65 (each cache entry is reused at most 3 times); otherwise, the trajectory is executed again and observations are recorded. Thus, throughout Stage II, the first execution of every pair is the same initial trajectory , and the observation windows supplied to GGN always come from executions of this trajectory; corrections are therefore always defined relative to the initial trajectory rather than accumulated across iterations. GGN-guided gradient ascent then produces action corrections using (5), and the adjusted trajectory is executed to form paired samples. Action corrections are initialized randomly with probability 0.2 and otherwise from one of the segment's previous corrections, sampled with softmax probabilities over the F1 scores those corrections achieved; in the first iteration, no previous corrections exist, so all initializations are random. At the end of each iteration, GGN is trained for 12 passes on samples from the most recent 4 iterations, with at most 64 minibatches of 1024 correction-node samples per pass. The current best corrections for individual segments are blended using linear weights in overlapping regions, and the full piece is executed to evaluate performance after the iteration. All first-iteration action corrections use the pretrained GGN without real-world fine-tuning; the subsequent whole-piece evaluation defines the few-shot adaptation result. Later iterations use GGN fine-tuned on the current piece's data for continual adaptation.
IV. EXPERIMENTS
The experiments address three questions: (i) which GGN design choices support adaptation (Section IV-B); (ii) whether the simulation prior improves adaptation efficiency and generalizes to unseen pieces, compared with the existing fast-adaptation method for dexterous piano playing and ablated variants (Section IV-C); and (iii) whether the same prior transfers to the physical hand and supports continual adaptation (Section IV-D).
A. Experimental Setup
Both simulation and hardware experiments use a right-hand platform based on a tendon-driven dexterous hand [33], which has 2 wrist joints and 16 actuated finger joints and is mounted on a UR5 arm that provides 3 translational degrees of freedom. Actual keystrokes are recorded through MIDI messages from a YAMAHA P48 digital piano. We evaluate on right-hand excerpts of approximately 30 s from Canon, Für Elise, and Beethoven's Symphony No. 5, covering broken chords, stepwise motion, chromatic alternation, leaps, and repeated keystrokes; the Beethoven excerpt additionally requires simultaneous keystrokes for octaves and multinote chords, making it the most technically varied of the three excerpts. Initial trajectories for the excerpts are obtained as described in Section III-B. Playing accuracy is evaluated using whole-piece F1.
In Stage I, GGN is jointly pretrained on simulated segments from longer right-hand excerpts of the same three pieces: approximately 90 s each of Beethoven's Symphony No. 5 and Für Elise, and approximately 120 s of Canon. In Stage II, adaptation is performed independently for each piece: starting from the same pretrained parameters, GGN is fine-tuned only on that piece's execution data. Stage II is carried out in simulation for the simulation experiments and on the physical hand for the hardware experiments. In simulation, the Stage II perturbations are more diverse than those used in Stage I and follow a different distribution from the pretraining ranges in Table I, so the prior is not evaluated on its training distribution. Interaction cost is reported as simulated environment interaction time in simulation, excluding training and scheduling, and as cumulative wall-clock time on hardware, including these overheads.
B. GGN Design
We evaluate two design choices: bidirectional local observation windows and correction frequency. The evaluation metric is the median F1 improvement after adaptation across 512 parallel simulated environments during Stage I pretraining, denoted by .
Fig. 3(a) compares bidirectional and unidirectional local observation windows. Unidirectional replaces the observation window in (3) with , which retains only information

(a)
(b)
Fig. 3. Comparison of GGN design choices. (a) Bidirectional versus unidirectional local observation windows. (b) Different correction frequencies. is the median F1 improvement across 512 parallel environments; bars and error bars show the mean and standard deviation over 5 seeds.
at and before the correction time, with all other training settings unchanged. The bidirectional window achieves of , compared with for the unidirectional window, indicating that execution information after the correction time provides useful context for adaptation.
Fig. 3(b) compares correction frequencies from 2 to 50 Hz, corresponding to correction-node intervals from 25 to 1 in (1). As correction frequency increases, first rises and then falls, peaking at 10 Hz (, the setting used in this work). Low frequencies may limit the expressiveness of the corrections, whereas high frequencies enlarge the correction space and make the corrections more prone to jitter.
C. Simulation Comparison Experiments
To assess how the generalized adaptation prior contributes to adaptation efficiency, we compare the full GAP method in simulation with a dexterous piano playing adaptation baseline and four GAP variants. HandelBot [8] is reimplemented within our simulation framework and serves as the baseline. GAP w/o pretraining removes Stage I pretraining and starts GGN from random initialization to evaluate the benefit of simulation pretraining. GAP (held-out piece) excludes all excerpts of the target piece from pretraining, so the target piece is unseen before adaptation; fine-tuning during adaptation is retained. GAP w/o fine-tuning uses the pretrained GGN but freezes its parameters throughout adaptation; correction generation and iterative execution are retained. GAP w/ random search retains the same low-frequency correction representation and iterative procedure but replaces gradient-guided action corrections with random sampling to assess the role of learned adaptation guidance. Fig. 4 summarizes the comparison. All methods improve playing performance, but GAP achieves larger gains early in adaptation.
Adaptation Performance. Under the same 20 min interaction budget (here and below, F1 at 20 min is linearly interpolated between adjacent whole-piece evaluations), GAP raises the mean F1 score across pieces from the common initial value of 0.761 to 0.873, whereas HandelBot reaches 0.807. The improvement achieved by GAP is thus approximately 2.4 times that of HandelBot. Even without the simulation prior, GAP w/o pretraining reaches 0.844 and still exceeds HandelBot, suggesting that part of the gain stems from the adaptation formulation itself.
Generalization to Unseen Pieces. With the target piece

Fig. 4. Simulation comparison of GAP. Curves show mean whole-piece F1 over 5 random seeds; shading spans the middle three seeds after removing the best and worst. Time denotes simulated environment interaction time, excluding training and scheduling, with 0 denoting the initial trajectory. Dashed lines mark the GAP few-shot F1 and the interaction required by GAP and GAP w/o pretraining to reach it.
held out from pretraining, GAP (held-out piece) still raises the mean few-shot F1 across pieces from 0.761 to 0.843, close to the 0.855 obtained by GAP, whose pretraining includes the target piece. Because these gains precede any fine-tuning, they show that experience from other pieces can guide adaptation to a new piece. With subsequent fine-tuning, its mean F1 across pieces reaches 0.869 at 20 min, close to GAP's 0.873. Thus, holding out the target piece from pretraining has little effect on performance at this budget in the evaluated cases. Together, these results support GAP's ability to learn adaptation guidance shared across pieces.
Ablation Analysis. The ablations in Fig. 4 distinguish the roles of pretraining, continual fine-tuning, and gradient guidance. Without pretraining, reaching the F1 level attained by GAP after few-shot adaptation requires 23.2 min of interaction on average across the pieces, compared with 5.3 min for GAP, approximately 4.4 times as much interaction. With further interaction, GAP w/o pretraining approaches GAP's F1 on all pieces. These results indicate that pretraining primarily improves early adaptation efficiency, while adaptation prior knowledge can also be learned from execution data without a pretrained prior. GAP w/o fine-tuning matches GAP after the first iteration, since both generate corrections using the same pretrained GGN before any Stage II network update. Its F1 subsequently remains close to the few-shot level, whereas GAP continues to improve. This contrast supports the role of continual fine-tuning in refining the pretrained prior using new execution feedback when the prior alone provides limited further improvement. The two stages therefore serve complementary roles: pretraining enables rapid initial adaptation, and fine-tuning supports subsequent gains. Replacing GGN gradient guidance with random search yields the lowest mean F1 among the evaluated methods under the same 20 min interaction budget (0.785). Although random search improves on the initial trajectories, its smaller gains show that the low-frequency correction representation and repeated executions alone do not provide comparable adaptation. The comparison supports the contribution of GGN gradients to guiding corrections toward improved execution.

Fig. 5. F1 scores at each whole-piece evaluation during real-world adaptation of three representative pieces. Evaluations 0 and 1 denote the initial and few-shot trajectories, respectively. Time includes execution, training, and scheduling. Dashed lines show direct-deployment F1 without added offsets or adaptation.
D. Real-World Results
The hardware experiments further examine whether GAP can guide adaptation on the physical system and whether continued collection of execution data supports subsequent adaptation. When directly deployed on hardware, the initial trajectories for Canon and Für Elise already achieve F1 scores of approximately 0.975 (their nominal unadapted baselines), leaving limited room for improvement. To simulate biases arising from mounting misalignment and systematic errors in real-world settings, we deliberately apply a global translational offset to the arm (approximately 11 mm to the right for Canon and 9 mm to the left for Für Elise), which lies outside the pretraining perturbation ranges (Table I), reducing their initial F1 scores to 0.827 and 0.759, respectively. Beethoven's Symphony No. 5 achieves an F1 score of 0.751 upon direct deployment without an artificial offset; this value is also its nominal unadapted baseline. Adaptation curves for the three pieces are shown in Fig. 5, and framewise keystrokes at the initial, few-shot, and converged evaluations are shown in Fig. 6.
Few-Shot Transfer to Hardware. After the first iteration (approximately 7 min, before any GGN update with real-world data), the F1 scores for Canon, Für Elise, and Beethoven's Symphony No. 5 improve by approximately 16%, 23%, and 3.6%, respectively, relative to their initial values. All three pieces start from the same simulation-pretrained GGN parameters but obtain piece-specific action corrections from their execution observations, supporting transfer of the learned adaptation guidance to hardware. The larger first-iteration gains for Canon and Für Elise indicate that the generalized

Fig. 6. Framewise keystroke results for the three pieces at three stages of real-world adaptation. Columns show the initial, few-shot, and converged trajectories, with F1 and cumulative wall-clock time in each panel title. Green, red, and orange denote correct, incorrect, and missed keystrokes; gray bands denote black keys.

Fig. 7. Real-world adaptation by GAP at 5 instants in Beethoven's Symphony No. 5. Each column compares the initial (top) and adapted (bottom) keystrokes at one instant. Green, red, and orange denote correct, incorrect, and missed keystrokes; examples include off-center, overly light, and mistimed strikes.
adaptation prior can rapidly compensate for the applied global positional offsets. Subsequently, both pieces exceed their nominal unadapted baselines and stabilize near an F1 score of 0.98, indicating that adapted playing accuracy can also surpass that of the initial trajectories without added offsets.
Continual Adaptation with Real-World Data. Beethoven's Symphony No. 5 exhibits smaller early gains, but continual GGN fine-tuning and gradient-guided adaptation raise its F1 score to 0.871 by iteration 8 (approximately 50 min). The pretrained prior alone is insufficient to eliminate its playing errors; subsequent adaptation provides further gains. This is consistent with real-world deviations not being fully covered by simulation.
Qualitative Analysis of Real-World Adaptation. Fig. 6 shows framewise playing accuracy for the three pieces. Incorrect and missed keystrokes in Canon and Für Elise are already substantially reduced during few-shot adaptation, with further reductions afterward. Beethoven's Symphony No. 5 shows smaller early improvements, with more errors corrected through continual adaptation, consistent with the trend in whole-piece F1. Fig. 7 compares keystrokes before and after adaptation at 5 instants in the excerpt from Beethoven's
Symphony No. 5. A common error shown is an off-center strike, in which a finger fails to land at the center of a key and may activate an adjacent key. An off-center finger may even miss the intended black key and become caught on it ( s). Other errors include keystrokes that are too light to activate a key ( s) and reduced accuracy caused by releasing or pressing a key too early or too late ( s). All errors in these examples are corrected after adaptation, indicating that GAP can address playing errors involving position, key-depression depth, and timing and is robust to different types of real-world deviations.
V. CONCLUSION
This letter presented GAP, a sample-efficient adaptation framework that learns a generalized adaptation prior from diverse simulated executions and transfers it to a tendon-driven dexterous hand for piano playing. In simulation, GAP improved F1 approximately 2.4 times as much as the existing fast-adaptation method for dexterous piano playing under the same 20 min budget. Without pretraining, reaching GAP's few-shot F1 required approximately 4.4 times as much interaction. With the target piece excluded from pretraining, the few-shot F1 remained close to that obtained with the target piece included. On the physical hand, the same simulation-pretrained prior improved F1 by 3.6%–23% across three representative pieces after approximately 7 min each, before any real-world network update, and continual fine-tuning yielded further gains. These results indicate that how action corrections change performance relative to an observed execution can be learned in simulation and reused across pieces and on hardware.
This work has several limitations. GAP refines a given initial trajectory, so it benefits from an initial trajectory that already plays most target keys, and its corrections are updated between repeated executions rather than during playing. The evaluation covers right-hand excerpts of three pieces and measures performance by keystroke accuracy alone. Future work will extend GAP to two-handed and longer pieces, incorporate musical dynamics and timbre into the reward to improve expressiveness, and explore online correction updates. Because GAP relies on repeated executions and their feedback rather than on hand-designed correction rules, it can also serve as a sample-efficient adaptation framework for other repetitive real-world manipulation tasks.
REFERENCES
[1] K. Shaw, A. Agarwal, and D. Pathak, "LEAP Hand: Low-cost, efficient, and anthropomorphic hand for robot learning," in Proc. Robot. Sci. Syst. (RSS), Daegu, Republic of Korea, Jul. 2023.
[2] N. Zhang et al., “Biomimetic rigid-soft finger design for highly dexterous and adaptive robotic hands,” Sci. Adv., vol. 11, no. 17, 2025, Art. no. eadu2018.
[3] S. Zhao et al., “DexCtrl: Sim-to-real dexterity with adaptive controller learning,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), Jun. 2026, pp. 9663–9670.
[4] J. Yuan, H. Zhu, J. Dai, and S. Yi, “Development of the bioinspired tendon-driven DexHand 021 with proprioceptive compliance control,” IEEE Robot. Autom. Lett., vol. 11, no. 1, pp. 706–713, Jan. 2026.
[5] J. Gao, M. Y. Michelis, A. Spielberg, and R. K. Katzschmann, “Sim-to-real of soft robots with learned residual physics,” IEEE Robot. Autom. Lett., vol. 9, no. 10, pp. 8523–8530, Oct. 2024.
[6] E. Aljalbout et al., “The reality gap in robotics: Challenges, solutions, and best practices,” Annu. Rev. Control Robot. Auton. Syst., vol. 9, no. 1, pp. 403–432, 2026.
[7] K. Zakka et al., “RoboPianist: Dexterous piano playing with deep reinforcement learning,” in Proc. Conf. Robot. Learn. (CoRL), vol. 229, Nov. 2023, pp. 2975–2994.
[8] A. Xie, H. Qi, and D. Sadigh, “HandelBot: Real-world piano playing via fast adaptation of dexterous robot policies,” May 2026, arXiv:2603.12243.
[9] Y.-S. Zeulner, S. Crämer, S. Selvaraj, and R. Calandra, “Learning to play piano in the real world,” Apr. 2026, arXiv:2503.15481v3.
[10] T. Johannink et al., “Residual reinforcement learning for robot control,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), Montreal, QC, Canada, 2019, pp. 6023–6029.
[11] C. Tang, B. Abbatematteo, J. Hu, R. Chandra, R. Martín-Martín, and P. Stone, “Deep reinforcement learning for robotics: A survey of real-world successes,” in Proc. AAAI Conf. Artif. Intell., vol. 39, no. 27, 2025, pp. 28 694–28 698.
[12] J. Levy et al., “Simulation distillation: Pretraining world models in simulation for rapid real-world adaptation,” in Proc. Robot. Sci. Syst. (RSS), Sydney, Australia, Jul. 2026.
[13] E. Hsieh et al., “Learning dexterous manipulation skills from imperfect simulations,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), Jun. 2026, pp. 22 269–22 276.
[14] Y. Jiang, C. Wang, R. Zhang, J. Wu, and L. Fei-Fei, “TRANSIC: Sim-to-real policy transfer by learning from online correction,” in Proc. Conf. Robot. Learn. (CoRL), vol. 270, 2025, pp. 1691–1729.
[15] H. Wang, X. Zhang, and F. Iida, “Human–robot cooperative piano playing with learning-based real-time music accompaniment,” IEEE Trans. Robot., vol. 40, pp. 4650–4669, 2024.
[16] Y. Liang et al., “Expressive robotic pianist: Mastering complex piano repertoire with Graph-Mimic and musical dynamics,” Sep. 2026, arXiv:2609.10844.
[17] L. Jiang, J. Chen, K. Lan, X. Liu, Y. Jin, and H. Wang, “Biomimetic dexterous hand control for robotic piano playing using a two-stage reinforcement learning curriculum,” Biomimetics, vol. 11, no. 9, Sep. 2026, Art. no. 610.
[18] Y. Li, Q. Lyu, J. Yang, Y. Salam, and W. Wang, “A hybrid framework using diffusion policy and residual RL for force-sensitive robotic manipulation,” IEEE Robot. Autom. Lett., vol. 10, no. 10, pp. 10266–10273, Oct. 2025.
[19] Z. Lin, C. Wang, S. Wu, and L. Xie, “Multimodal task attention residual reinforcement learning: Advancing robotic assembly in unstructured environment,” IEEE Robot. Autom. Lett., vol. 10, no. 4, pp. 3900–3907, Apr. 2025.
[20] X. Zhang, C. Wang, L. Sun, Z. Wu, X. Zhu, and M. Tomizuka, “Efficient sim-to-real transfer of contact-rich manipulation skills with online admittance residual learning,” in Proc. Conf. Robot. Learn. (CoRL), vol. 229, Nov. 2023, pp. 1621–1639.
[21] Í. Elguea-Aguinaco, A. Serrano-Muñoz, D. Chrysostomou, I. Izniarte-Hidalgo, S. Bøgh, and N. Arana-Arexolaleiba, “A review on reinforcement learning for contact-rich robotic manipulation tasks,” Robot. Comput.-Integr. Manuf., vol. 81, Jun. 2023, Art. no. 102517.
[22] S. Arimoto, S. Kawamura, and F. Miyazaki, “Bettering operation of robots by learning,” J. Robot. Syst., vol. 1, no. 2, pp. 123–140, 1984.
[23] D. Zhang, Z. Wang, and M. Tomizuka, “Neural-network-based iterative learning control for multiple tasks,” IEEE Trans. Neural Netw. Learn. Syst., vol. 32, no. 9, pp. 4178–4190, Sep. 2021.
[24] C. Chi, B. Burchfiel, E. Cousineau, S. Feng, and S. Song, “Iterative residual policy: For goal-conditioned dynamic manipulation of deformable objects,” Int. J. Robot. Res., vol. 43, no. 4, pp. 389–404, Apr. 2024.
[25] M. Bauza et al., “DemoStart: Demonstration-led auto-curriculum applied to sim-to-real with multi-fingered robots,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2025, pp. 6756–6763.
[26] K. Kedia, T. G. W. Lum, J. Bohg, and K. Liu, “SimToolReal: An object-centric policy for zero-shot dexterous tool manipulation,” in Proc. Robot. Sci. Syst. (RSS), Sydney, Australia, Jul. 2026.
[27] M. Wu et al., “SimLauncher: Launching sample-efficient real-world robotic reinforcement learning via simulation pre-training,” in Proc. IEEE/RSJ Int. Conf. Intell. Robots Syst. (IROS), 2025, pp. 7933–7940.
[28] J. Hu, P. Stone, and R. Martín-Martín, “SLAC: Simulation-pretrained latent action space for whole-body real-world RL,” in Proc. Conf. Robot. Learn. (CoRL), vol. 305, 2025, pp. 2966–2982.
[29] J. B. Lanier et al., “Adapting world models with latent-state dynamics residuals,” 2025, arXiv:2504.02252.
[30] P. Yin et al., “Rapidly adapting policies to the real world via simulation-guided fine-tuning,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2025.
[31] A. Vaswani et al., “Attention is all you need,” in Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 30, Long Beach, CA, USA, 2017, pp. 5998–6008.
[32] S. Fujimoto, H. van Hoof, and D. Meger, “Addressing function approximation error in actor-critic methods,” in Proc. Int. Conf. Mach. Learn. (ICML), vol. 80, Stockholm, Sweden, 2018, pp. 1587–1596.
[33] L. Jiang, K. Lan, X. Liu, C. Fu, Y. Jin, and H. Wang, “Data-driven inverse design enables a dexterous hand with human-comparable dynamic performance in structured tasks,” Biomimetics, vol. 11, no. 6, Jun. 2026, Art. no. 434.