Fine-Grained control over Music Generation with Activation Steering

Dipanshu Panda, Jayden Koshy Joe, Harshith M R, Swathi Narashiman, Pranay Mathur +3 more
6/11/2025
cs.SDcs.AIeess.AS

No official code found. Best implementation: Jayden3316/AI-Rahman (0 stars, last commit 2025-08-30).

Abstract

We present a method for fine-grained control over music generation through inference-time interventions on an autoregressive generative music transformer called MusicGen. Our approach enables timbre transfer, style transfer, and genre fusion by steering the residual stream using weights of linear probes trained on it, or by steering the attention layer activations in a similar manner. We observe that modelling this as a regression task provides improved performance, hypothesizing that the mean-squared-error better preserve meaningful directional information in the activation space. Combined with the global conditioning offered by text prompts in MusicGen, our method provides both global and local control over music generation. Audio samples illustrating our method are available at our demo page.

View on arXivView PDF

Code Implementations(1)

Fine-Grained control over Music Generation with Activation Steering

01Python, Jupyter NotebookAug 2, 20251 years ago

Similar Papers

Cite this paper

@article{panda2025finegrained,
  title  = {Fine-Grained control over Music Generation with Activation Steering},
  author = {Dipanshu Panda and Jayden Koshy Joe and Harshith M R and Swathi Narashiman and Pranay Mathur and Anish Veerakumar and Aniruddh Krishna and Keerthiharan A},
  year   = {2025},
  eprint = {2506.10225},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.10225v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.10225.svg)](https://codeofpaper.com/paper/2506.10225)

Discussion