Masked Contrastive Pre-Training Improves Music Audio Key Detection
Organizations: Department of Computer Science and Engineering, Texas A&M University
Abstract
Self-supervised music foundation models underperform on key detection, which requires pitch-sensitive representations. In this work, we present the first systematic study showing that the design of self-supervised pretraining directly impacts pitch sensitivity, and demonstrate that masked contrastive embeddings uniquely enable state-of-the-art (SOTA) performance in key detection in the supervised setting. First, we discover that linear evaluation after masking-based contrastive pretraining on Mel spectrograms leads to competitive performance on music key detection out of the box. This leads us to train shallow but wide multi-layer perceptrons (MLPs) on features extracted from our base model, leading to SOTA performance without the need for sophisticated data augmentation policies. We further analyze robustness and show empirically that the learned representations naturally encode common augmentations. Our study establishes self-supervised pretraining as an effective approach for pitch-sensitive MIR tasks and provides insights for designing and probing music foundation models.
Figures & tables
| Train Dataset | Model | Weighted | Correct | Fifth | Relative | Parallel | Other |
|---|---|---|---|---|---|---|---|
| GiantSteps | |||||||
| Audioset | KeyMyna-GS (ours) | 75.91 | 72.02 | 3.48 | 3.64 | 5.30 | 15.56 |
| Audioset | KeyMyna-GS-Lin (ours) | 73.01 | 67.88 | 4.97 | 5.63 | 4.80 | 16.72 |
| Combined a | InceptionKeyNet [ 2 ] | 75.68 | — | — | — | — | — |
| Combined b | MERT-95M-Public [ 11 ] | 72.95 | 67.72 | 4.97 | 5.96 | 4.80 | 16.56 |
| GiantSteps | AllConv [ 10 ] | 74.60 | 67.90 | 7.00 | 8.10 | 4.10 | 12.90 |
Music Information Retrieval
Music Information Retrieval develops computational methods for finding, classifying, describing, and analyzing music from audio, scores, and metadata.
See all 153 papers