M2L
Consistency autoencoder that compresses audio into continuous latents and reconstructs it in one step.
Audio and speech · 1,204 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
- 58.2M
- Operations
- 1,204
- Framework
- PyTorch
- Recurrent
- No
- Published
- ISMIR 2024
- Cited by
- 2 (as of 29 October 2026)
- Authors
- Marco Pasini, Stefan Lattner, George Fazekas
- License
- CC-BY-NC-4.0
- 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
- m18004
- Graph hash
- 706501ce997026e48d67fd98f040a75e76ea1d110b05c226cc2d445ae57ad049
- Skeleton hash
- c504d332986dc124164beb12acc661c90b67f7ed7a3fa1c793e7fa892f5fc400
- Architecture hash
- 943b4e099ebda259d5c7399b35a452f88c84cd52bb90b0c0d4b35702d0418e2a
- Diagram SHA-256
- 1dcaf5a84bfa5f92b40f7d685fa130e0ece24ec9c855c5032d406638896db108
- 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
Music2Latent is an audio autoencoder: it compresses audio into a continuous latent space and reconstructs it in a single step. It is built on consistency models, which the paper uses to get around limitations it lists for some earlier audio autoencoders: multi-stage training, slow iterative sampling or low reconstruction quality.
The architecture consists of an encoder, a decoder and a consistency model. Audio enters as a complex STFT spectrogram treated as two channels, one real and one imaginary. The encoder downsamples along the time axis, and a tanh keeps its latent vectors in the (−1, 1) range. The consistency model uses a UNet architecture. The decoder exists only to make the conditioning information from the latents available to the consistency model at every level. Self-attention is applied frequency-wise, which keeps the memory footprint linear in the time axis. A learned frequency-wise scaling adjusts the input and output of the consistency model according to the current noise level.
Training is fully end-to-end with a single consistency loss function. With 64 latent channels the paper reports a 4096x time compression ratio and a 64x total compression ratio. The paper reports about 58 million parameters. It was trained on MTG Jamendo and on the clean speech segments from DNS Challenge 4.
Key idea. The paper trains an audio autoencoder end-to-end with a single consistency loss, conditioning a consistency model on upsampled encoder outputs so that reconstruction takes one step.
- Music2Latent
- M2L
- consistency autoencoder
- audio autoencoder
- latent audio compression
- audio compression
- music representation
- consistency model
- single-step reconstruction
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{pasini2024music2latentconsistencyautoencoderslatent,
title={Music2Latent: Consistency Autoencoders for Latent Audio Compression},
author={Marco Pasini and Stefan Lattner and George Fazekas},
year={2024},
eprint={2408.06500},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/2408.06500},
}