Masked Contrastive Pre-Training Improves Music Audio Key Detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yonay, Ori, Hammond, Tracy, Yang, Tianbao
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914464906870784
author Yonay, Ori
Hammond, Tracy
Yang, Tianbao
author_facet Yonay, Ori
Hammond, Tracy
Yang, Tianbao
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2604_10021
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Masked Contrastive Pre-Training Improves Music Audio Key Detection
Yonay, Ori
Hammond, Tracy
Yang, Tianbao
Sound
Machine Learning
I.5.2; H.5.5
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.
title Masked Contrastive Pre-Training Improves Music Audio Key Detection
topic Sound
Machine Learning
I.5.2; H.5.5
url https://arxiv.org/abs/2604.10021