cs.SDApr 11, 2026

Masked Contrastive Pre-Training Improves Music Audio Key Detection

Authors: Ori Yonay, Tracy Hammond, Tianbao Yang

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

Explore similar work

CardsList
  1. What Makes a Good Layer? Assessing the Layer-Wise Intrinsic Properties of Music Foundation Models

    Aug 14, 2026Angelos-Nikolaos Kanatas, Yuexuan Kong, Pablo Alonso-Jiménez +2Audio Representation LearningMusic Information Retrieval

  2. Frequency-Aware Self-Supervised Music Representation Learning

    Jun 24, 2026Yicheng Gu, Junan Zhang, Jerry Li +2Audio Representation LearningFrequency-Domain Feature Learning

  3. CoJEPA: Combining Contrastive Learning and JEPA for Global-Local Music Representations

    Aug 31, 2026Gabriel Meseguer-Brocal, Yuexuan Kong, Romain HennequinContrastive LearningAudio Representation Learning