TL;DR
Stable Audio introduces a latent diffusion model capable of generating 95 seconds of high-quality, 44.1kHz stereo audio in just 8 seconds. By combining a highly efficient fully-convolutional VAE with novel timing-based conditioning, the model gains fine-grained control over both the content and the structural length of generated music and sound effects.
The Challenge of Long-Form Audio
Generating high-fidelity audio (44.1kHz stereo) is computationally punishing. While diffusion models have revolutionized image and video generation, applying them to raw audio signals is difficult because audio is incredibly dense—one second of CD-quality audio contains 44,100 samples per channel.
Furthermore, most existing audio models are "fixed-length" generators. If a model is trained on 30-second clips, it can only output 30-second clips. This leads to a "musical phrasing" problem: if you crop a random 30-second chunk of a song for training, the model learns to start and end abruptly in the middle of a beat or melody. The authors set out to create a model that understands variable lengths and respects the natural structure of music, such as intros, developments, and outros.
Architecture and Methods
The architecture, dubbed Stable Audio, relies on three main components to achieve efficient, high-fidelity generation:
- Variational Autoencoder (VAE): To make generation efficient, the authors diffuse a compressed "latent" representation rather than raw audio. Their fully-convolutional VAE compresses 44.1kHz stereo audio by a factor of 1024x. A key innovation here is the use of Snake activations, which significantly improve reconstruction quality at high compression ratios compared to standard methods.
- Conditioning (Text + Timing):
- Text: A CLAP (Contrastive Language-Audio Pretraining) text encoder is trained from scratch on their dataset. Using features from the penultimate layer of the encoder provides a stronger conditioning signal than the final layer.
- Timing: This is the model's "secret sauce." The model is provided with two specific values:
seconds_start(where the chunk begins in the original file) andseconds_total(the total length of the original file). These are converted into learned embeddings. - Diffusion U-Net: A 907-million parameter U-Net processes the latent noise. By combining the text and timing embeddings via cross-attention layers, the model learns structural context—for example, an "intro" happens when
seconds_startis near zero, and an "outro" happens whenseconds_startapproachesseconds_total.
Datasets and Evaluation
The model was trained on a massive dataset from AudioSparx, consisting of over 800,000 audio files (roughly 19,500 hours). This corpus includes music (66%), sound effects (25%), and instrument stems (9%).
For evaluation, the researchers used the standard MusicCaps and AudioCaps benchmarks. Notably, they utilized the original YouTube source files to ensure they were testing against full-bandwidth 44.1kHz stereo data, rather than the downsampled 16kHz mono versions typically used in previous literature.
Key Results and Performance
By working in a heavily downsampled latent space, the model achieves a 12x real-time generation factor, making it highly practical for real-world creative workflows.
- Speed and Efficiency: Stable Audio renders 95 seconds of stereo audio at 44.1kHz in just 8 seconds on a single A100 GPU.
- Benchmark Superiority: The model outperformed or matched state-of-the-art models (like MusicGen and AudioLDM2) across several metrics, including FD_openl3 (plausibility) and CLAP_score (text alignment).
- Qualitative Success: In human listening tests, Stable Audio was rated significantly higher for "Audio Quality" and "Musical Structure" compared to baselines. Thanks to its timing conditioning, it was uniquely capable of generating coherent intros and outros.
Insights and Limitations
The most elegant insight from this research is that timing conditioning doesn't just control length; it teaches the model musical grammar. Because the model knows where it is in a "song," it learns to generate appropriate structural elements like build-ups or fading endings. Furthermore, treating stereo and high sample rates as first-class citizens sets a new standard for professional audio applications.
Limitations: While the timing conditioning is highly effective, the model's accuracy in hitting specific lengths wavers slightly around the 40–60 second mark, likely due to a lack of training data at those specific durations. Additionally, while the model generates stereo audio, the "stereo movement" or width can sometimes be conservative depending on the prompt. Future work may involve exploring even larger datasets and refining the timing embeddings to handle more complex multi-track musical arrangements.
Summary updated