Abstract
Self-supervised learning (SSL) methods based on masked latent prediction have demonstrated a remarkable ability to encode input data into powerful representations. However, the resulting latent space often requires further transformation to extract the high-level semantic information necessary for downstream classification. We propose MATPAC (MAsked latenT Prediction And Classification), a method trained with two joint pretext tasks: masked latent prediction and unsupervised classification. By matching probability distributions between a teacher and a student model, MATPAC ensures robust input representations while organizing the latent space into semantically meaningful clusters. Our results demonstrate state-of-the-art (SOTA) performance on major audio benchmarks, including ESC-50, GTZAN, and US8K, and even outperform supervised methods on the Magna-tag-a-tune dataset.
Introduction
In the field of audio analysis, self-supervised learning has emerged as a solution to the scarcity of labeled data. A dominant paradigm is Masked Latent Prediction, where a model is tasked with reconstructing hidden portions of an audio spectrogram based on visible context. While effective at capturing local signal textures, this approach often fails to bridge the gap to high-level semantic understanding—the ability to distinguish between categories like "musical instruments" and "environmental noise" without explicit labels.
MATPAC addresses this by introducing a dual-task objective. It combines the structural learning of masked prediction with the categorical organization of unsupervised clustering, forcing the model to not only predict what a missing audio patch looks like but also which semantic category it likely belongs to.
The MATPAC Framework
MATPAC utilizes a teacher-student architecture based on a Vision Transformer (ViT) backbone. The training process involves two simultaneous pretext tasks:
1. Masked Latent Prediction
The input log-Mel spectrogram is divided into patches, 70% of which are randomly masked. The student model processes only the visible patches, attempting to predict the latent representations of the masked segments. A teacher model—defined as an exponential moving average (EMA) of the student—processes the full spectrogram to provide the target latent representations. This ensures the model learns the underlying structure and temporal dependencies of the audio signal.
2. Unsupervised Classification
This task acts as a semantic regularizer. Both the student’s predicted representations and the teacher’s target representations are passed through a shared classification head. This head projects the data into a probability distribution over $K$ "latent classes" (clusters), where $K=2048$. The objective is to minimize the cross-entropy between the student's predicted distribution and the teacher's target distribution.
To prevent "representation collapse"—where the model assigns all inputs to a single cluster—we employ techniques from the DINO framework, specifically centering and sharpening. Centering prevents one class from dominating, while sharpening encourages the model to make confident, non-uniform predictions. This forces the model to perform an automated, unsupervised categorization of audio features.
Experimental Setup
Pre-training
The model was pre-trained on a subset of AudioSet, comprising approximately 2 million 6-second audio clips. It is important to note that due to "YouTube link rot," the actual number of available clips was slightly lower than in previous studies, providing a more challenging training environment.
Downstream Evaluation
We evaluated MATPAC across a diverse array of audio classification tasks:
- Music: NSynth (instrument classification), OpenMIC (multi-instrument recognition), GTZAN (genre classification), and Magna-tag-a-tune (auto-tagging).
- Environmental/Urban: FSD50K, ESC-50, and UrbanSound8K (US8K).
Results and Discussion
MATPAC achieved state-of-the-art results for self-supervised models across several key benchmarks:
- ESC-50: 93.5% accuracy.
- GTZAN: 85.9% accuracy.
- US8K: 89.4% accuracy.
- Magna-tag-a-tune: 41.1 mAP, notably outperforming comparable supervised methods.
Ablation studies confirmed the value of the dual-task approach. Adding the unsupervised classification head improved the average score across all tasks from 74.0 to 74.9. This suggests that predicting the cluster identity of a masked patch is more effective for downstream classification than simply predicting raw feature vectors. Furthermore, the high masking rate (70%) was confirmed as optimal for forcing the model to learn deep, non-trivial relationships within the audio data.
Conclusion and Future Work
MATPAC demonstrates that joint masked prediction and unsupervised classification significantly enhance the semantic quality of learned audio representations. While the model currently leads the SSL field on several benchmarks, a performance gap remains when compared to the largest fully supervised models (e.g., PaSST or BEATs).
Future research will explore scaling the number of latent clusters ($K$) and refining the classification head architecture. Additionally, investigating different masking strategies beyond random patch selection may further improve the model's ability to capture complex acoustic scenes.
Summary updated