Pitch-class Steering for Diffusion-based Music Generation via Latent-space Probes
Organizations: Carnegie Mellon University · Independent Researcher
Abstract
Recent work on controllable music generation has focused on autoregressive models, leaving diffusion-based systems comparatively underexplored. We present a lightweight method for steering the pitch content of audio produced by Stable Audio Open, a latent diffusion model for music synthesis. A small convolutional probe containing approximately 125k parameters is trained to decode frame-level pitch-class activations from the model's variational autoencoder latent space, using paired audio and MIDI data. At inference time, the frozen probe serves as a differentiable loss function: its gradient with respect to the denoising latent is used to nudge generation toward a user-specified pitch-class sequence, requiring no retraining or architectural modification of the base model. Across 27 evaluation trials spanning 9 text prompts and 3 target melodies, probe-guided generation increases melodic coherence by 2.4x over the unguided baseline (p < 1e-5, Wilcoxon signed-rank test), demonstrating that musically meaningful structure is both recoverable and steerable in diffusion-based music latent spaces.
Figures & tables
| Noise | F1 (micro) | Positive recall |
|---|---|---|
| 0.0 | 0.663 | 0.596 |
| 0.1 | 0.662 | 0.595 |
| 0.3 | 0.657 | 0.588 |
| 0.5 | 0.642 | 0.569 |
| 0.7 | 0.621 | 0.542 |
| 1.0 | 0.579 | 0.493 |
| Method | Mean Std | Shuffled | ||
|---|---|---|---|---|
| Baseline | 0.112 0.104 | 0.081 | — | 0.14 |
| Probe ( 0.03) | 0.236 0.104 | 0.069 | ||
| Probe ( 0.05) | 0.274 0.084 | 0.066 | ||
| Probe ( 0.10) | 0.266 0.071 | 0.067 | ||
| Probe ( 0.20) | 0.273 0.064 | 0.066 |
| Melody | Baseline | Probe ( 0.05) |
|---|---|---|
| Ascending | 0.095 0.081 | 0.268 0.074 |
| Descending | 0.144 0.108 | 0.234 0.064 |
| Alternating | 0.096 0.112 | 0.320 0.090 |
Controllable Music Generation
Controllable music generation steers composition and audio synthesis through prompts, musical structure, references, and interactive controls.
See all 88 papers