Learning Interpretable Features in Audio Latent Spaces via Sparse Autoencoders

Nathan Paek, Yongyi Zang, Qihui Yang, Randal Leistikow

TL;DR

This paper introduces a novel framework that applies Sparse Autoencoders (SAEs) to audio latent spaces, mapping abstract neural representations to human-interpretable concepts like pitch, loudness, and timbre. By establishing linear pathways between SAE features and acoustic properties, the authors enable precise, controllable audio manipulation and reveal the step-by-step hierarchy of how music emerges inside generative models.

What Problem Does This Paper Address?

While mechanistic interpretability has made massive strides in Large Language Models (LLMs)—largely thanks to Sparse Autoencoders isolating "monosemantic" features—applying these techniques to audio generation has been a major challenge.

Unlike text, audio data is inherently dense. To process it efficiently, generative models rely on neural audio autoencoders (like EnCodec) to compress the audio into continuous or discrete latent spaces. This compression step scrambles semantic meaning, making token-level perturbation analysis nearly impossible. Furthermore, we currently lack audio-understanding models capable of automatically describing audio features the way LLMs can describe text features. This paper tackles the challenge of uncovering and controlling human-understandable concepts hidden within these complex audio latent spaces.

Methods

The authors propose a three-stage framework to bridge the gap between abstract latents and human acoustic concepts:

  1. SAE Training with a Twist: They train SAEs on the latent representations of pretrained audio encoders. To handle the unique instability of audio latents during manipulation, they introduce a modification to the standard SAE architecture: adding a Root Mean Square (RMS) normalization layer immediately after the ReLU activation.
  2. Linear Probing to Acoustic Concepts: They extract continuous physical properties from the audio—pitch (via CREPE), loudness (via windowed RMS energy), and timbre (via spectral centroid)—and discretize them into bins (e.g., Western musical notes for pitch). They then train simple linear classifiers (probes) to predict these bins from the normalized SAE features.
  3. Steering and Latent Visualization: Because the mapping is linear, the weights of the probe can be treated as "control vectors." Adding these scaled vectors directly back into the SAE features allows for targeted audio editing before decoding back to sound.
The three-stage framework for audio interpretability and control.

Datasets

The authors compiled a diverse ~31-hour composite dataset consisting of:

  • CocoChorales: 11.2 hours of four-part Bach chorales.
  • DAMP-VSEP: 11.7 hours of pop/rock singing performances.
  • Extended Groove MIDI Dataset: 7.8 hours of drum recordings.
  • GuitarSet: 24 minutes of solo guitar.
  • MAESTRO: 33 minutes of classical piano.

For evaluating the generation process, they used 500 text prompts sampled from the MusicCaps benchmark.

Key Insights and Ideas

  • The Linearity of Sound in Latent Space: The success of simple linear probes demonstrates that complex acoustic properties are already encoded in a near-linear fashion within the SAE features.
  • The Generative Hierarchy ("Coarse-to-Fine"): By tracking the progression of acoustic features across diffusion/rectified-flow sampling steps, the authors discovered a clear synthesis hierarchy. The model establishes the fundamental frequency (pitch) first, refines the textural details (timbre) second, and resolves the dynamic details (loudness) last.
  • Discrete Tokens are Naturally Disentangled: When training SAEs on discrete latent spaces like WavTokenizer, they observed exceptionally high sparsity ratios (0.993–0.999). This implies that discrete audio tokenizers inherently disentangle acoustic features better than continuous VAEs during compression.

Key Results

  • High-Accuracy Probing: Pitch proved to be the most linearly separable attribute, achieving a stable classification accuracy between 0.75 and 0.87 across all models and sparsity levels. Loudness decoding performed moderately well on EnCodec (0.56–0.63), while timbre remained the most challenging to linearly isolate (0.17–0.46).
  • Isolated Audio Manipulation: By scaling the control vectors ($\alpha$), the authors successfully manipulated specific attributes of an audio clip (e.g., forcing a chord progression to shift toward a pitch of C5 or brightening its timbre) while leaving non-targeted properties completely intact.
Spectrograms demonstrating isolated changes in pitch, loudness, and timbre as control vector strength increases.

Limitations and Future Work

While promising, the framework currently relies on simplified proxies for complex acoustic traits—specifically using spectral centroid as a stand-in for the multi-dimensional concept of timbre.

The authors outline several immediate next steps:

  • Expanding linear probes to capture richer, high-level musical features such as rhythm, harmony, and instrument identity.
  • Validating the framework on a broader set of generative architectures like RAVE, ACE-Step, and AudioLDM.
  • Moving beyond post-hoc analysis to use these interpretable features directly during inference, giving users fine-grained, real-time control over AI music generation.

Summary updated

BibTeX
@misc{paek2025learning,
  author = {Nathan Paek and Yongyi Zang and Qihui Yang and Randal Leistikow},
  title = {{Learning Interpretable Features in Audio Latent Spaces via Sparse Autoencoders}},
  year = {2025},
  eprint = {2510.23802},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.23802},
}
Figure