[Paper Review] Masked Spectrogram Modeling using Masked Autoencoders for Learning General-purpose Audio Representation
This paper proposes Masked Spectrogram Modeling (MSM) using Masked Autoencoders (MAE) to learn general-purpose audio representations by reconstructing masked spectrogram patches, using the original input as supervision. The method achieves state-of-the-art performance on seven of 15 tasks in the HEAR 2021 benchmark, including 73.4% accuracy on CREMA-D and 85.8% on LibriCount, demonstrating the effectiveness of input-based self-supervision.
Recent general-purpose audio representations show state-of-the-art performance on various audio tasks. These representations are pre-trained by self-supervised learning methods that create training signals from the input. For example, typical audio contrastive learning uses temporal relationships among input sounds to create training signals, whereas some methods use a difference among input views created by data augmentations. However, these training signals do not provide information derived from the intact input sound, which we think is suboptimal for learning representation that describes the input as it is. In this paper, we seek to learn audio representations from the input itself as supervision using a pretext task of auto-encoding of masked spectrogram patches, Masked Spectrogram Modeling (MSM, a variant of Masked Image Modeling applied to audio spectrogram). To implement MSM, we use Masked Autoencoders (MAE), an image self-supervised learning method. MAE learns to efficiently encode the small number of visible patches into latent representations to carry essential information for reconstructing a large number of masked patches. While training, MAE minimizes the reconstruction error, which uses the input as training signal, consequently achieving our goal. We conducted experiments on our MSM using MAE (MSM-MAE) models under the evaluation benchmark of the HEAR 2021 NeurIPS Challenge. Our MSM-MAE models outperformed the HEAR 2021 Challenge results on seven out of 15 tasks (e.g., accuracies of 73.4% on CREMA-D and 85.8% on LibriCount), while showing top performance on other tasks where specialized models perform better. We also investigate how the design choices of MSM-MAE impact the performance and conduct qualitative analysis of visualization outcomes to gain an understanding of learned representations. We make our code available online.
Motivation & Objective
- To address the suboptimal supervision in existing self-supervised audio representation learning, which relies on contrastive signals like temporal proximity or data augmentation differences rather than the input itself.
- To investigate whether using the intact input signal as supervision—via reconstruction of masked spectrogram patches—leads to better general-purpose audio representations.
- To adapt the Masked Autoencoder (MAE) framework, originally developed for images, to audio spectrograms for self-supervised pre-training.
- To evaluate the proposed MSM-MAE framework on a diverse benchmark suite covering speech, environmental sounds, and music, and compare it with prior state-of-the-art methods.
Proposed method
- The method applies Masked Autoencoders (MAE) to audio spectrograms by splitting them into spatial-temporal patches along time and frequency axes.
- 75% of spectrogram patches are randomly masked during training, and only the visible 25% are encoded by the transformer encoder.
- A lightweight decoder reconstructs the full spectrogram from the encoded visible patches and learnable mask tokens, using the masked patches as supervision.
- The model is trained end-to-end by minimizing the mean squared error (MSE) between the reconstructed and original masked patches.
- The input spectrogram is normalized and processed with a patch embedding layer before being fed into the encoder.
- The framework supports variable patch sizes and input durations, enabling ablation studies on architectural hyperparameters.
Experimental results
Research questions
- RQ1Can reconstructing masked spectrogram patches using the original input as supervision lead to more robust and general-purpose audio representations compared to contrastive or augmentation-based methods?
- RQ2How do design choices such as input duration and patch size affect the performance of the MSM-MAE framework?
- RQ3What kind of structural information (e.g., temporal or spectral patterns) is encoded in the learned representations, as revealed by qualitative analysis?
- RQ4Does the model learn to reconstruct both local and global spectrogram patterns even when only a single visible patch is available?
- RQ5How do self-attention maps in the encoder reflect the model’s understanding of audio structures such as repetition and segmentation?
Key findings
- The MSM-MAE model outperformed the HEAR 2021 Challenge baseline on seven out of 15 evaluation tasks, including 73.4% accuracy on CREMA-D and 85.8% on LibriCount.
- Performance improved with longer input durations and smaller patch sizes, indicating that fine-grained temporal and spectral resolution enhances representation quality.
- Reconstruction quality remained high at a 75% mask ratio, but degraded significantly at higher ratios, with only local and global average patterns preserved at 99% mask ratio.
- Even with only one visible patch, the model reconstructed both local frequency patterns and global average spectrogram structures, suggesting rich inductive bias in the learned representations.
- Self-attention maps revealed that the model captures rhythmic repetition, sustained sounds, and coarse segmentation of similar audio events, such as heartbeats or vocal segments.
- Qualitative analysis showed that the model learns to reconstruct meaningful spectrogram patterns, including harmonic structures and temporal continuity, indicating effective modeling of audio structure.
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.