arXiv:2609.04516cs.SDSep 2026

Manuscript Offprint

arXiv:2609.04516

Pitch-class Steering for Diffusion-based Music Generation via Latent-space Probes

Yushi Ye, Wilson Zheng, Yongyi Zang

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.4× over the unguided baseline (p<10−5p < 10^{-5}, Wilcoxon signed-rank test), demonstrating that musically meaningful structure is both recoverable and steerable in diffusion-based music latent spaces.

Index Terms— Controllable music generation, latent diffusion, probing, inference-time steering, pitch

1. INTRODUCTION

Text-to-music generation has advanced rapidly, with systems such as MusicGen [1], AudioLDM [2], and Stable Audio Open [3] producing audio of increasing quality and diversity. However, text prompts alone offer only coarse control over the musical content of the output. A user can request “a piano piece in C major” but cannot specify a particular melodic sequence, limiting their use in composition workflows requiring precise pitch control.

Several recent studies have begun to address this gap through inference-time intervention on model activations. Facchiano et al. [4] apply activation patching to steer binary musical attributes such as tempo and timbre in MusicGen. Singh et al. [5] and Paek et al. [6] use sparse autoencoders to discover interpretable features in autoregressive music models, while Zhao et al. [7] introduce Recursive Feature Machines for note-level control of MusicGen activations. Panda et al. [8] use linear probe weights as steering vectors for timbre and style transfer, and Jiang et al. [9] steer symbolic music generation by injecting mean activation vectors for composer style. In a complementary line of work, Koo et al. [10] probe individual attention heads in music transformers to map out what musical information different components encode.

These methods target autoregressive architectures exclusively. For diffusion-based music generation, DITTO [11] and DITTO-

2 [12] optimize auxiliary losses at inference time but require per-attribute objective functions and do not leverage the latent-space structure of the underlying variational autoencoder (VAE). Music ControlNet [13] adds conditioning networks for melody and dynamics control but requires architectural modification and retraining.

We take a different approach, first showing that the VAE latent space of Stable Audio Open encodes pitch-class information in a form that a small convolutional probe can decode at frame level. We then repurpose this frozen probe as a differentiable loss function during diffusion sampling: at each denoising step within a specified window, the gradient of a binary cross-entropy loss between the probe's pitch-class predictions and a target pitch-class sequence is computed and applied as an RMS-normalized update to the latent. The base model is never retrained; the probe, containing approximately 125k parameters, is the only learned component.

Our contributions are twofold. First, we demonstrate that frame-level pitch-class information is decodable from the Stable Audio Open VAE latent space with a micro-F1 score of 0.66, and that this decodability remains robust under diffusion noise levels encountered during the denoising process. Second, we propose probe-guided latent steering for diffusion-based music generation and show that it significantly improves melodic coherence over unguided generation across a range of guidance strengths and target melodies.

References (24)