M2D-audio
A self-supervised audio encoder that learns by predicting the representations of masked spectrogram patches.
Audio and speech · 371 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Audio and speech
- Parameters
- 85.4M
- Operations
- 371
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICASSP 2023
- Cited by
- 33 (as of 26 October 2026)
- Authors
- Daisuke Niizumi, Daiki Takeuchi, Yasunori Ohishi and others
- Source
- GitHub: nttcslab/m2d
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18001
- Graph hash
- 03b3f89d7603eb35ca59d210e5ed1c29892f771d8abcaf2ba1dcb21b3e3e1f93
- Skeleton hash
- c890b456ecee8d2811edbc42da21ef483018be8c2796d4e405bf7add731fd748
- Architecture hash
- 0599282e2b6dc8f3491336d814a209bc25ee31c20df81920768d16d2d18b8d36
- Diagram SHA-256
- 990ae66aca4f2bfa5b6d20d3546139e54cb2100ad48a3cbce62cec60f075cea9
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
M2D, short for Masked Modeling Duo, is a self-supervised method that the paper validates by learning general-purpose audio representations. It starts from a limitation of Masked Autoencoders: they learn representations indirectly, by reconstructing masked input patches.
M2D instead learns representations directly while taking its training signals from the masked patches alone. An online network encodes the visible patches and predicts the representations of the masked ones, while a target network, a momentum encoder, encodes the masked patches. The authors argue that using all patches to encode the training signal, as several earlier direct methods do, is suboptimal.
The paper reports that M2D set new best results at the time on tasks such as UrbanSound8K, VoxCeleb1, AudioSet20K, GTZAN, and SpeechCommandsV2. It also validates M2D for images, using ImageNet-1K, in the appendix. The code is based on the MAE PyTorch/GPU re-implementation and uses nnAudio to convert raw audio into log-mel spectrograms. Its pre-training command uses the m2d_vit_base model with an 80x608 input and 16x16 patches. The repository names MSM-MAE as the model that M2D builds upon.
Key idea. M2D trains an online network to predict masked-patch representations from visible patches while a momentum-encoder target network encodes only the masked patches.
- M2D
- Masked Modeling Duo
- M2D-audio
- masked modeling
- self-supervised audio
- audio representation learning
- general-purpose audio representation
- audio encoder
- momentum encoder
- masked spectrogram modeling
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{niizumi2023maskedmodelingduolearning,
title={Masked Modeling Duo: Learning Representations by Encouraging Both Networks to Model the Input},
author={Daisuke Niizumi and Daiki Takeuchi and Yasunori Ohishi and Noboru Harada and Kunio Kashino},
year={2023},
eprint={2210.14648},
archivePrefix={arXiv},
primaryClass={eess.AS},
url={https://arxiv.org/abs/2210.14648},
}