SMITIN: Self-Monitored Inference-Time INtervention for Generative Music Transformers
Junghyun Koo, Gordon Wichern, Francois G. Germain, Sameer Khurana, Jonathan Le Roux
TL;DR
SMITIN introduces a self-monitored inference-time intervention framework that steers a pre-trained music transformer by training per-head classifier probes to detect target musical traits and applying head-specific interventions. A self-monitoring loop dynamically modulates intervention strength to balance trait incorporation with musical coherence, with soft-weighting and automated head-selection to avoid manual tuning. Evaluations on audio continuation and text-to-music tasks show improved control over instrument addition while preserving audio quality and distributional realism, supported by objective metrics and subjective listening tests. Ablations demonstrate robustness to probe data size and direction choice, and visualization analyses reveal meaningful head-level representations underpinning controllability, offering practical knobs for musicians to guide generation without retraining. Overall, SMITIN provides fine-grained, real-time control of large generative music models, enabling targeted musical traits to be added or removed with minimal loss of realism.
Abstract
We introduce Self-Monitored Inference-Time INtervention (SMITIN), an approach for controlling an autoregressive generative music transformer using classifier probes. These simple logistic regression probes are trained on the output of each attention head in the transformer using a small dataset of audio examples both exhibiting and missing a specific musical trait (e.g., the presence/absence of drums, or real/synthetic music). We then steer the attention heads in the probe direction, ensuring the generative model output captures the desired musical trait. Additionally, we monitor the probe output to avoid adding an excessive amount of intervention into the autoregressive generation, which could lead to temporally incoherent music. We validate our results objectively and subjectively for both audio continuation and text-to-music applications, demonstrating the ability to add controls to large generative models for which retraining or even fine-tuning is impractical for most musicians. Audio samples of the proposed intervention approach are available on our demo page http://tinyurl.com/smitin .
