PianoMime: Learning a Generalist, Dexterous Piano Player from Internet Demonstrations
Cheng Qian, Julen Urain, Kevin Zakka, Jan Peters
TL;DR
PianoMime tackles the problem of learning a dexterous, generalist piano-playing agent from Internet demonstrations. It presents a three-phase approach: data preparation to extract human fingertip trajectories and MIDI piano states from videos, policy learning to train song-specific experts with residual RL and style rewards, and policy distillation to a single generalist via behavioral cloning with representation learning and hierarchical design. The method is evaluated on a RoboPianist-like setup using 60 songs over 431 clips, with unseen clips used to assess generalization, and shows improvements over a robotic piano baseline, reporting up to $0.94$ F1 on some song-specific tests and substantial gains from distillation and architectural choices. The authors release the dataset and trained models as benchmarks, highlighting the viability of leveraging Internet data for dexterous manipulation and the potential for scalable generalist policies in musically rich tasks.
Abstract
In this work, we introduce PianoMime, a framework for training a piano-playing agent using internet demonstrations. The internet is a promising source of large-scale demonstrations for training our robot agents. In particular, for the case of piano-playing, Youtube is full of videos of professional pianists playing a wide myriad of songs. In our work, we leverage these demonstrations to learn a generalist piano-playing agent capable of playing any arbitrary song. Our framework is divided into three parts: a data preparation phase to extract the informative features from the Youtube videos, a policy learning phase to train song-specific expert policies from the demonstrations and a policy distillation phase to distil the policies into a single generalist agent. We explore different policy designs to represent the agent and evaluate the influence of the amount of training data on the generalization capability of the agent to novel songs not available in the dataset. We show that we are able to learn a policy with up to 56\% F1 score on unseen songs.
