[Paper Review] Composer Style Classification of Piano Sheet Music Images Using Language Model Pretraining
This paper proposes a novel approach to composer style classification of piano sheet music images by leveraging language model pretraining. It converts sheet music images into sequences of musical 'words' using the bootleg feature representation, then fine-tunes a classifier initialized with a pretrained language model (e.g., GPT-2) on a small labeled dataset, achieving a 70% accuracy on a 9-way classification task—up from 46% without pretraining.
This paper studies composer style classification of piano sheet music images. Previous approaches to the composer classification task have been limited by a scarcity of data. We address this issue in two ways: (1) we recast the problem to be based on raw sheet music images rather than a symbolic music format, and (2) we propose an approach that can be trained on unlabeled data. Our approach first converts the sheet music image into a sequence of musical "words" based on the bootleg feature representation, and then feeds the sequence into a text classifier. We show that it is possible to significantly improve classifier performance by first training a language model on a set of unlabeled data, initializing the classifier with the pretrained language model weights, and then finetuning the classifier on a small amount of labeled data. We train AWD-LSTM, GPT-2, and RoBERTa language models on all piano sheet music images in IMSLP. We find that transformer-based architectures outperform CNN and LSTM models, and pretraining boosts classification accuracy for the GPT-2 model from 46\% to 70\% on a 9-way classification task. The trained model can also be used as a feature extractor that projects piano sheet music into a feature space that characterizes compositional style.
Motivation & Objective
- Address the scarcity of labeled data in composer style classification by shifting from symbolic music formats to raw sheet music images.
- Overcome data limitations by enabling pretraining on large-scale unlabeled sheet music images from IMSLP.
- Develop a method that transfers knowledge from a language model pre-trained on musical sequences to improve downstream classification performance.
- Explore the utility of the trained model as a style-aware feature extractor for unseen composers.
- Investigate the impact of model architecture, pretraining, fragment size, and inference strategy on classification accuracy.
Proposed method
- Convert piano sheet music images into a sequence of musical 'words' using the bootleg score feature representation, which encodes staff-level musical elements.
- Train language models (AWD-LSTM, GPT-2, RoBERTa) on all unlabeled piano sheet music images from IMSLP to learn general musical patterns.
- Initialize a text classifier with the pretrained language model weights to leverage learned representations.
- Fine-tune the classifier on a small labeled dataset of composer-annotated sheet music pages.
- Apply multi-crop inference for improved performance, especially for shorter pages.
- Use the final layer activations of the model as a style-encoding feature vector for downstream analysis, such as t-SNE visualization of novel composers.
Experimental results
Research questions
- RQ1Can language model pretraining significantly improve composer style classification accuracy when training data is limited?
- RQ2Does transferring representations from a large-scale unlabeled sheet music corpus improve generalization to unseen composers?
- RQ3How does the choice of model architecture (e.g., LSTM vs. transformer) affect performance on the classification task?
- RQ4What is the impact of fragment size and inference strategy (single vs. multi-crop) on classification accuracy?
- RQ5Can the model’s learned features effectively capture and distinguish compositional style even for composers not in the training set?
Key findings
- Pretraining with a GPT-2 language model on unlabeled IMSLP sheet music images improved classification accuracy from 46% to 70% on a 9-way composer classification task.
- Transformer-based models (GPT-2, RoBERTa) outperformed CNN and LSTM models across all evaluation settings.
- The macro F1 score of the best model (GPT-2 with fragment size 64) increased from 0.41 to 0.51 to 0.67 across three pretraining conditions.
- Smaller fragment sizes (64 words) improved full-page classification performance due to reduced data distribution mismatch with real page lengths.
- Multi-crop inference improved performance for all models except CNN, indicating that feature averaging is less effective for certain architectures.
- t-SNE visualization of RoBERTa model activations showed meaningful clustering of sheet music pages from five novel composers, indicating the model learns a disentangled, style-aware feature space.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.