All models

AutoencoderOobleck

Stability AI's convolutional waveform VAE that compresses stereo audio into 21.5Hz latents for Stable Audio Open.

Audio and speech · 976 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (23 KB)

Open in a new tab

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

Parameters
156.1M
Operations
976
Framework
PyTorch
Recurrent
No
Published
ICASSP (arXiv 2024)
Cited by
72 (as of 20 October 2026)
Authors
Zach Evans, Julian D. Parker, CJ Carr and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m157
Graph hash
5ac742909830c3705c830c5f02fc9e927a1639cc2ca431cfaa4a344a91a99cee
Skeleton hash
c50434af354466e8c70768cebb06afbae44ce8a6b025f4a680a501b0c55112d5
Architecture hash
a228bcd58dd0e159539fb83a8997294399a12720d7ddf2d07ae39f1f6cadf4df
Diagram SHA-256
1f2e25c02f1a0a7486ee35c0117c5c25275c18f5621c91ccdcaf77b7492dd7b1
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

How this diagram was made

diffusers.models.autoencoders.autoencoder_oobleck.AutoencoderOobleck()

What it is

The Oobleck autoencoder is the waveform compressor inside Stable Audio Open, the open-weights text-to-audio model from Stability AI. Its job is to encode audio waveforms into latents and decode those latents back into waveforms, so that a diffusion model can work on a much shorter sequence than raw audio. In the full system it is the 156M-parameter piece that compresses waveforms into a manageable sequence length for a 1057M-parameter diffusion transformer. The member traced here is the diffusers class AutoencoderOobleck, a model the paper itself refers to simply as the autoencoder and notes can also be used alone.

The encoder works directly on raw waveforms, passing them through 5 convolutional blocks that each downsample in time and widen the channels with strided convolutions. Before each downsampling block come ResNet-like layers using dilated convolutions and Snake activation functions. The bottleneck is variational, with a latent size of 64, and the decoder mirrors the encoder with transposed strided convolutions for upsampling. One quirk worth noticing in the graph: all convolutions are weight-normalised, and the decoder deliberately has no tanh on its output, because the authors found it introduced harmonic distortion. The default diffusers configuration uses downsampling ratios of [2, 4, 4, 8, 8] in the encoder, applied in reverse order for upsampling in the decoder.

Training used a reconstruction loss based on a perceptually weighted multi-resolution STFT that handles stereo through both mid-side and left-right representations. On top of that sit an adversarial loss with feature matching from 5 convolutional discriminators, as in Encodec, and a down-weighted KL divergence term. The autoencoder trained for 183 h on 32 A100s with a batch size of 4, after which the encoder was frozen and the decoder trained for another 273 h with a batch size of 8. The result is a continuous autoencoder running at a low latent rate of 21.5Hz that the authors say can work for both music and audio. Against Stable Audio 2.0, the only baseline with the same continuous latent rate, it shows nearly similar reconstruction performance despite being trained only with Creative Commons data. Decoding is the memory-hungry half: rendering waveforms from latents raises usage to 14.5 GB, against 5.9 GB for the diffusion transformer, which is why the paper explores chunked decoding with a 16-latent overlap on each side.

Key idea. A convolutional variational autoencoder on raw waveforms that compresses audio to continuous latents at a low 21.5Hz latent rate, trained from scratch on Creative Commons data and released with Stable Audio Open.

  • Oobleck
  • AutoencoderOobleck
  • Oobleck autoencoder
  • Stable Audio Open
  • Stable Audio Open VAE
  • Stable Audio
  • stable-audio-tools
  • audio autoencoder
  • audio VAE
  • waveform autoencoder
  • neural audio codec
  • latent audio diffusion
  • Stability AI

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{evans2024stableaudioopen,
      title={Stable Audio Open}, 
      author={Zach Evans and Julian D. Parker and CJ Carr and Zack Zukowski and Josiah Taylor and Jordi Pons},
      year={2024},
      eprint={2407.14358},
      archivePrefix={arXiv},
      primaryClass={cs.SD},
      url={https://arxiv.org/abs/2407.14358}, 
}