Proceedings

Pay Attention to the Keys: Visual Piano Transcription Using Transformers

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. AI, Arts & Creativity. Pages 10243-10251.

https://doi.org/10.24963/ijcai.2025/1138

Abstract

Visual piano transcription (VPT) is the task of obtaining a symbolic representation of a piano performance from visual information alone (e.g., from a top-down video of the piano keyboard). In this work we propose a VPT system based on the vision transformer (ViT), which surpasses previous methods based on convolutional neural networks (CNNs). Our system is trained on the newly introduced R3 dataset, consisting of ca.~31 hours of synchronized video and MIDI recordings of piano performances. We additionally introduce an approach to predict note offsets, which has not been previously explored in this context. We show that our system outperforms the state-of-the-art on the PianoYT dataset for onset prediction and on the R3 dataset for both onsets and offsets.

  1. [Akbari et al., 2021] Hassan Akbari, Liangzhe Yuan, Rui Qian, Wei-Hong Chuang, Shih-Fu Chang, Yin Cui, and Boqing Gong. VATT: transformers for multimodal self- supervised learning from raw video, audio and text. In Marc'Aurelio Ranzato, Alina Beygelzimer, Yann N. Dauphin, Percy Liang, and Jennifer Wortman Vaughan, editors, Advances in Neural Information Processing Sys- tems 34: Annual Conference on Neural Information Pro- cessing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pages 24206-24221, 2021.
  2. [Arnab et al., 2021] Anurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun, Mario Lucic, and Cordelia Schmid. Vivit: A video vision transformer. In 2021 IEEE/CVF International Conference on Computer Vision, ICCV 2021, Montreal, QC, Canada, October 10-17, 2021, pages 6816-6826. IEEE, 2021.
  3. [Benetos et al., 2019] Emmanouil Benetos, Simon Dixon, Zhiyao Duan, and Sebastian Ewert. Automatic music tran- scription: An overview. IEEE Signal Processing Maga- zine, 36(1):20-30, 2019.
  4. [Bertasius et al., 2021] Gedas Bertasius, Heng Wang, and Lorenzo Torresani. Is space-time attention all you need for video understanding? In Marina Meila and Tong Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Vir- tual Event, volume 139 of Proceedings of Machine Learn- ing Research, pages 813-824. PMLR, 2021.
  5. [Cancino-Chacón and Pilkov, 2024] Carlos Eduardo Cancino-Chacón and Ivan Pilkov. The rach3 dataset: Towards data-driven analysis of piano performance rehearsal. In Stevan Rudinac, Alan Hanjalic, Cynthia C. S. Liem, Marcel Worring, Björnthór Jónsson, Bei Liu, and Yoko Yamakata, editors, MultiMedia Modeling -30th International Conference, MMM 2024, Amsterdam, The Netherlands, January 29 -February 2, 2024, Proceedings, Part V, volume 14565 of Lecture Notes in Computer Science, pages 28-41. Springer, 2024.
  6. [Deng et al., 2009] Jia Deng, Wei Dong, Richard Socher, Li- Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248-255, 2009.
  7. [Dosovitskiy et al., 2021] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Min- derer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Trans- formers for image recognition at scale. In 9th Inter- national Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenRe- view.net, 2021.
  8. [Edwards et al., 2024] Drew Edwards, Simon Dixon, Em- manouil Benetos, Akira Maezawa, and Yuta Kusaka. A data-driven analysis of robust automatic piano transcrip- tion. IEEE Signal Processing Letters, 31:681-685, 2024.
  9. [Gardner et al., 2022] Josh Gardner, Ian Simon, Ethan Manilow, Curtis Glenn-Macway Hawthorne, and Jesse En- gel. Mt3: Multi-task multitrack music transcription. In ICLR 2022, 2022.
  10. [Hawthorne et al., 2018] Curtis Hawthorne, Erich Elsen, Jialin Song, Adam Roberts, Ian Simon, Colin Raffel, Jesse H. Engel, Sageev Oore, and Douglas Eck. Onsets and frames: Dual-objective piano transcription. In Emilia Gómez, Xiao Hu, Eric Humphrey, and Emmanouil Bene- tos, editors, Proceedings of the 19th International Society for Music Information Retrieval Conference, ISMIR 2018, Paris, France, September 23-27, 2018, pages 50-57, 2018.
  11. [Hawthorne et al., 2019] Curtis Hawthorne, Andriy Stasyuk, Adam Roberts, Ian Simon, Cheng-Zhi Anna Huang, Sander Dieleman, Erich Elsen, Jesse Engel, and Douglas Eck. Enabling factorized piano music modeling and gen- eration with the MAESTRO dataset. In International Con- ference on Learning Representations, 2019.
  12. [Hawthorne et al., 2021] Curtis Hawthorne, Ian Simon, Rigel Swavely, Ethan Manilow, and Jesse H. Engel. Sequence-to-sequence piano transcription with transform- ers. In Jin Ha Lee, Alexander Lerch, Zhiyao Duan, Juhan Nam, Preeti Rao, Peter van Kranenburg, and Ajay Srini- vasamurthy, editors, Proceedings of the 22nd International Society for Music Information Retrieval Conference, IS- MIR 2021, Online, November 7-12, 2021, pages 246-253, 2021.
  13. [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-778, 2016.
  14. [Hu et al., 2024] Patricia Hu, Lukáš Samuel Marták, Carlos Cancino-Chacón, and Gerhard Widmer. Towards Musi- cally Informed Evaluation of Piano Transcription Models. In Proceedings of the International Society for Music In- formation Retrieval Conference (ISMIR), 2024.
  15. [Huang et al., 2016] Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q. Weinberger. Deep net- works with stochastic depth. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling, editors, Computer Vision - ECCV 2016 -14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part IV, volume 9908 of Lecture Notes in Computer Science, pages 646-661. Springer, 2016.
  16. [ITU-R, 1998] ITU-R. Relative timing of sound and vision for broadcasting. Recommendation BT.1359, International Telecommunication Union, Radiocommunication Sector (ITU-R), 1998.
  17. [Kelz et al., 2016] Rainer Kelz, Matthias Dorfer, Filip Ko- rzeniowski, Sebastian Böck, Andreas Arzt, and Gerhard Widmer. On the potential of simple framewise approaches to piano transcription. In Michael I. Mandel, Johanna De- vaney, Douglas Turnbull, and George Tzanetakis, editors, Proceedings of the 17th International Society for Music Information Retrieval Conference, ISMIR 2016, New York City, United States, August 7-11, 2016, pages 475-481, 2016.
  18. [Koepke et al., 2020] A. Sophia Koepke, Olivia Wiles, Yael Moses, and Andrew Zisserman. Sight to sound: An end- to-end approach for visual piano transcription. In ICASSP 2020 -2020 IEEE International Conference on Acous- tics, Speech and Signal Processing (ICASSP), pages 1838- 1842, 2020.
  19. [Kong et al., 2022] Qiuqiang Kong, Bochen Li, Jitong Chen, and Yuxuan Wang. Giantmidi-piano: A large-scale midi dataset for classical piano music. Transactions of the In- ternational Society for Music Information Retrieval, May 2022.
  20. [Lin et al., 2022] Kevin Lin, Linjie Li, Chung-Ching Lin, Faisal Ahmed, Zhe Gan, Zicheng Liu, Yumao Lu, and Lijuan Wang. Swinbert: End-to-end transformers with sparse attention for video captioning. In IEEE/CVF Con- ference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pages 17928-17937. IEEE, 2022.
  21. [Liu et al., 2021] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In 2021 IEEE/CVF International Con- ference on Computer Vision, ICCV 2021, Montreal, QC, Canada, October 10-17, 2021, pages 9992-10002. IEEE, 2021.
  22. [Loshchilov and Hutter, 2017] Ilya Loshchilov and Frank Hutter. Fixing weight decay regularization in adam. CoRR, abs/1711.05101, 2017.
  23. [Marták et al., 2024] Lukáš Samuel Marták, Patricia Hu, and Gerhard Widmer. Quantifying the corpus bias problem in automatic music transcription systems. In 1st Interna- tional Workshop on Sound Signal Processing Applications (IWSSPA) 2024, 2024.
  24. [Raffel et al., 2014] Colin Raffel, Brian McFee, Eric J. Humphrey, Justin Salamon, Oriol Nieto, Dawen Liang, and Daniel P. W. Ellis. Mir eval: A transparent imple- mentation of common MIR metrics. In Hsin-Min Wang, Yi-Hsuan Yang, and Jin Ha Lee, editors, Proceedings of the 15th International Society for Music Information Re- trieval Conference, ISMIR 2014, Taipei, Taiwan, October 27-31, 2014, pages 367-372, 2014.
  25. [Russakovsky et al., 2015] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael S. Bernstein, Alexander C. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. Int. J. Comput. Vis., 115(3):211-252, 2015.
  26. [Schedl et al., 2014] Markus Schedl, Emilia Gómez, and Julián Urbano. Music information retrieval: Recent de- velopments and applications. Found. Trends Inf. Retr., 8(23):127261, sep 2014.
  27. [Su et al., 2020] Kun Su, Xiulong Liu, and Eli Shlizerman. Audeo: Audio generation for a silent performance video. In Hugo Larochelle, Marc'Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Ad- vances in Neural Information Processing Systems 33: An- nual Conference on Neural Information Processing Sys- tems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
  28. [Suteparuk, 2014] Potcharapol Suteparuk. Detection of pi- ano keys pressed in video. Dept. of Comput. Sci., Stanford Univ., Stanford, CA, USA, Tech. Rep, 2014.
  29. [Tong et al., 2022] Zhan Tong, Yibing Song, Jue Wang, and Limin Wang. Videomae: Masked autoencoders are data- efficient learners for self-supervised video pre-training. In
  30. Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Bel- grave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 -December 9, 2022, 2022.
  31. [Wan et al., 2015] Yulong Wan, Xianliang Wang, Ruohua Zhou, and Yonghong Yan. Automatic piano music tran- scription using audio-visual features. Chinese Journal of Electronics, 24(3):596-603, 2015.
  32. [Wang et al., 2021] Xianke Wang, Wei Xu, Juanting Liu, Weiming Yang, and Wenqing Cheng. An audio-visual fu- sion piano transcription approach based on strategy. In 2021 24th International Conference on Digital Audio Ef- fects (DAFx), pages 308-315, 2021.
  33. [Wang et al., 2023] Limin Wang, Bingkun Huang, Zhiyu Zhao, Zhan Tong, Yinan He, Yi Wang, Yali Wang, and Yu Qiao. Videomae V2: scaling video masked autoen- coders with dual masking. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2023, Vancouver, BC, Canada, June 17-24, 2023, pages 14549- 14560. IEEE, 2023.
  34. [Ycart et al., 2020] Adrien Ycart, Lele Liu, Emmanouil Benetos, and Marcus T. Pearce. Investigating the percep- tual validity of evaluation metrics for automatic piano mu- sic transcription. Transactions of the International Society for Music Information Retrieval, Jun 2020.
  35. [Zhang et al., 2022] Huan Zhang, Jingjing Tang, Syed Ri- fat Mahmud Rafee, and Simon Dixon György Fazekas. Atepp: A dataset of automatically transcribed expressive piano performance. In ISMIR 2022 Hybrid Conference, 2022.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards