Music2Latent: Consistency Autoencoders for Latent Audio Compression

Marco Pasini, Stefan Lattner, George Fazekas
8/12/2024
cs.SDcs.LGeess.AS

No official code found. Best implementation: SonyCSLParis/music2latent (269 stars, last commit 2025-09-19).

Abstract

Efficient audio representations in a compressed continuous latent space are critical for generative audio modeling and Music Information Retrieval (MIR) tasks. However, some existing audio autoencoders have limitations, such as multi-stage training procedures, slow iterative sampling, or low reconstruction quality. We introduce Music2Latent, an audio autoencoder that overcomes these limitations by leveraging consistency models. Music2Latent encodes samples into a compressed continuous latent space in a single end-to-end training process while enabling high-fidelity single-step reconstruction. Key innovations include conditioning the consistency model on upsampled encoder outputs at all levels through cross connections, using frequency-wise self-attention to capture long-range frequency dependencies, and employing frequency-wise learned scaling to handle varying value distributions across frequencies at different noise levels. We demonstrate that Music2Latent outperforms existing continuous audio autoencoders in sound quality and reconstruction accuracy while achieving competitive performance on downstream MIR tasks using its latent representations. To our knowledge, this represents the first successful attempt at training an end-to-end consistency autoencoder model.

View on arXivView PDF

Code Implementations(1)

Encode and decode audio samples to/from compressed latent representations!

26928Python, Jupyter NotebookAug 8, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{pasini2024musiclatent,
  title  = {Music2Latent: Consistency Autoencoders for Latent Audio Compression},
  author = {Marco Pasini and Stefan Lattner and George Fazekas},
  year   = {2024},
  eprint = {2408.06500},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.06500v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.06500.svg)](https://codeofpaper.com/paper/2408.06500)

Discussion