Masked Autoencoders that Listen

Po-Yao Huang, Hu Xu, Juncheng Li, Alexei Baevski, Michael Auli, Wojciech Galuba, Florian Metze, Christoph Feichtenhofer · DOI

Abstract

Masked Autoencoders (MAE) have demonstrated remarkable success in computer vision by learning powerful representations from unlabelled data. This paper introduces Audio-MAE, an extension of the MAE framework specifically optimized for audio spectrograms. By masking a significant portion (80%) of the input audio patches and utilizing a Transformer-based encoder-decoder architecture with local window attention, Audio-MAE establishes a new state-of-the-art in self-supervised audio representation learning. Crucially, the model achieves these results without the traditional reliance on image-based pre-training, proving that audio-native self-supervision is both viable and superior for acoustic tasks.

1. Introduction

In recent years, the Masked Autoencoder (MAE) has emerged as a dominant paradigm in visual representation learning. By tasking a model with reconstructing missing pixels from a heavily masked image, researchers have unlocked the ability to train massive models on unlabelled data. However, the application of this logic to the auditory domain has historically been mediated through computer vision. Researchers typically convert audio into 2D spectrograms and initialize models using weights from ImageNet-trained vision models.

In "Masked Autoencoders that Listen," researchers from Meta AI and Carnegie Mellon University challenge this "heterogeneous transfer" approach. They propose Audio-MAE, a simple yet effective framework that learns directly from audio spectrograms, outperforming previous models that relied on massive external image datasets.

2. The Problem: The ImageNet Dependency

For years, the "secret sauce" for high-performing audio models was borrowing from computer vision. While converting audio to a 2D spectrogram (frequency over time) allows the use of vision architectures, spectrograms are fundamentally different from natural images. They possess unique local correlations—such as harmonics in music or phonemes in speech—that do not exist in photographs of natural scenes.

Furthermore, relying on ImageNet introduces label bias and limits the model's potential to what can be learned from pixels. The goal of Audio-MAE is to create a scalable, audio-native way to learn representations directly from raw sound without the need for human-labeled image data.

3. Methodology

Audio-MAE adapts the Transformer encoder-decoder recipe with several audio-centric modifications designed to handle the specific structure of sound.

3.1 Patching and Masking

An input audio recording is first converted into a Mel-spectrogram and divided into non-overlapping patches. The model then masks out a staggering 80% of these patches. This high masking ratio is critical; it forces the model to learn the underlying structural patterns of sound rather than simply interpolating between adjacent pixels.

3.2 The Encoder

A standard Vision Transformer (ViT-Base) processes only the remaining 20% of visible patches. This design makes the encoder extremely efficient, as it ignores the vast majority of the input data during the pre-training phase.

3.3 The Decoder with Local Attention

The paper’s primary technical innovation lies in the decoder. Unlike natural images, where a pixel on one side of a photo might relate to one on the far side, audio features are highly local. The researchers found that using local window attention (and shifted windows) in the decoder helped the model better reconstruct the fine-grained details of time and frequency. This provides a better inductive bias for the reconstruction of spectrograms compared to global self-attention.

3.4 Reconstruction and Fine-tuning

The model is trained to minimize the Mean Squared Error (MSE) between the original spectrogram and the reconstructed version. During the supervised fine-tuning stage, the authors discovered that maintaining a lower masking ratio (approximately 30%) acted as a powerful regularizer, further improving final classification accuracy.

4. Experimental Results

Audio-MAE was pre-trained on AudioSet-2M, a collection of 2 million 10-second YouTube clips, and evaluated across several major benchmarks.

  • AudioSet-2M: The model reached 47.3 mAP, becoming the first audio-only self-supervised model to reach this level, surpassing models that utilized supervised ImageNet pre-training.
  • ESC-50: In environmental sound classification, the model achieved 94.1% accuracy (rising to 97.4% with additional supervised rounds).
  • Speech and Speaker Tasks: The model set new records on Speech Commands (98.3%) and VoxCeleb (94.8% for speaker identification).

Qualitative analysis showed that the model could successfully reconstruct missing words in speech and complex textures in music, demonstrating a deep "understanding" of acoustic structures.

5. Key Insights

  1. Audio is Highly Redundant: The ability to reconstruct a coherent soundscape from only 20% of the data confirms that audio, like images and text, contains significant redundancy.
  2. Locality is Essential: The success of local window attention suggests that the physical proximity of features in a spectrogram (like vertical stacks of harmonics) is a vital cue for representation learning.
  3. Independence from Vision: Audio-MAE proves that we no longer need to "see" images to "hear" sound effectively. Audio-native self-supervision is sufficient for state-of-the-art performance.

6. Limitations and Future Work

While Audio-MAE represents a significant leap forward, challenges remain. The current data scale (2 million clips) is still smaller than the datasets used for Large Language Models. Additionally, 10-second clips may be too short to capture very long-term temporal dependencies.

The authors suggest that the next logical step is the development of multimodal audio-visual MAE, leveraging the natural correspondence between sight and sound in video to create even more robust representations.

Summary updated

BibTeX
@inproceedings{huang2022masked,
  author = {Po-Yao Huang and Hu Xu and Juncheng Li and Alexei Baevski and Michael Auli and Wojciech Galuba and Florian Metze and Christoph Feichtenhofer},
  title = {{Masked Autoencoders that Listen}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=LUf86Dyv4L},
}
Figure