Manuscript Offprint

arXiv:2611.07423

ProCraft: Instruction-Driven Music Production from Free-Form Text

Yuan-Chiao Cheng, Yi-Hsuan Yang, Vincent K. M. Cheung

ABSTRACT

Music production typically involves multiple editing operations that each require specialized tools and expertise. Existing text-guided music editing systems support few operations or instruments, operate on short clips, or handle only one operation per instruction, unlike real workflows where several changes are requested at once. Here, we present ProCraft, a lightweight 0.5B-parameter autoregressive codec language model that edits 30s music excerpts end-to-end from free-form instructions, including compound requests. ProCraft supports seven operations across eight instruments, from tasks with a unique target (e.g., track removal) to creative ones (e.g., accompaniment generation). We align intermediate representations with pretrained music embeddings and pitch and instrument targets to preserve content outside the edit, and gated cross-attention in every decoder layer to keep generation tied to the instruction. To train on compound requests, we introduce On-the-fly Editing-pair Synthesis, which generates paired instructions and audio combining track-level operations with effect changes. ProCraft performs competitively against task-specific systems on single-task editing, and outperforms four free-text editors on compound instructions for track removal, extraction and denoising on real (MoisesDB) and synthetic (Slakh) recordings. In a user study (16 listeners), ProCraft was rated highest on removal and denoising and on-par with a 16-times larger model on extraction and instrument transfer. Ablations further show that representation alignment and cross-attention reduce leakage from unwanted tracks and raise editing success rates, especially on out-of-domain data.

1 INTRODUCTION

Editing a music recording often requires changing both what is played and how it sounds. Task-specific models have made individual operations increasingly capable, including source separation (Rouard et al., 2023; Liu et al., 2025b; Bie et al., 2025), accompaniment generation (Mariani et al., 2024; Rouard et al., 2025), instrument transfer (Tsai et al., 2024; 2025), and audio effects (Doh et al., 2026), but each is designed for a single type of edit, whereas production workflows typically request several changes at once.

Text-guided editing lets users express such requests directly in natural language, yet existing music editors remain limited in scope (Table 1): most cover only a handful of operations or instruments, do not accept free-form text, operate on clips of a few seconds, or perform one operation per instruction. For example, recent models such as Audio-Omni (Tian et al., 2026) edit full mixtures from free-form text but struggle with stem-level operations such as removing a single instrument, whilst LLM2Fx-Tools (Doh et al., 2026) handles multi-step instructions but predicts audio effect parameters rather than generating edited audio.

Performing diverse edits from free-form text in a single generative model raises two challenges. First, the model must infer (possibly several) target stems and operations from loosely worded instructions rather than from fixed options. Second, it must preserve everything the instruction does not target. This is especially hard for creative operations such as accompaniment generation, where the model must generate new material while preserve context from the rest of the mix faithfully. One promising direction is unified audio-text codec language models. In speech, SpeechX (Wang et al.,

Table 1: Supported music editing operations per system. ● = supported, ▲ = partial or indirect, × = not supported; judgments argued in Appendix H.

ModelFree phrasingRemoveExtractAccomp.CoverInstr. transferDenoiseEffects
ProCraft (ours)●●●●●●●●
Instruct-MusicGen (Zhang et al., 2025b)×●●●××××
Audio-Omni (Tian et al., 2026)●××●●●××
AudioSep (Liu et al., 2025b)▲▲●×××▲×
SD-Codec (Bie et al., 2025)××▲×××●×
MSDM (Mariani et al., 2024)×××●××××
MusicGen-Stem (Rouard et al., 2025)▲××●××××
Pop2Piano (Choi & Lee, 2023)××××●×××
PiCoGen2 (Tan et al., 2024a)××××●×××
AP-Adapter (Tsai et al., 2024)●××▲▲▲××
MuseControlLite (Tsai et al., 2025)●××▲▲●××
ZETA / DDPM-inv. (Manor & Michaeli, 2024)●▲××▲●×▲
SteerMusic. (Niu et al., 2026)●▲××▲▲×▲
LLM2Fx-Tools (Doh et al., 2026)●××××××●
  1. reads a text query and audio as a single stream to perform tasks such as noise suppression and target-speaker extraction. Music, however, is harder: It contains several concurrent stems rather than one dominant source; its creative edits must respect harmonic and rhythmic content rather than only remove or isolate existing sounds, and its longer excerpts place the instruction and source further from later output frames.

Here, we propose ProCraft, a 0.5B-parameter autoregressive codec language model initialized from the music generation model InspireMusic (Zhang et al., 2025a). Given a 30 s mixture and a free-form instruction, ProCraft generates the edited audio in an end-to-end manner. It supports seven edit types across eight instrument families, applied alone or together: stem removal, stem extraction, accompaniment generation, single-instrument cover, instrument transfer, denoising, and audio effects. In particular, we introduce two mechanisms to address the challenges above. A persistent edit head summarizes the instruction and source audio and is attended by every decoder layer through gated cross-attention (Alayrac et al., 2022) to ensure instruction accessibility over long sequences. Intermediate-layer music alignment aligns an intermediate layer with pretrained music embeddings (MERT (Li et al., 2024), StemFX (Cheng et al., 2026)) and with pitch and instrument targets, following representation alignment (Yu et al., 2025), so that the model's representation of the mixture carries the stem-level structure needed to preserve untargeted stems. Because compound editing triplets do not exist at scale, we also introduce On-the-fly Editing-pair Synthesis, in which a tool-calling language model (Yang et al., 2025) writes each instruction and specifies audio effects as executable function calls on multitrack stems.

In summary, our contributions¹ are as follows:

  • A single model for diverse and compound music editing. We formulate diverse and compound edits from free-form instructions as one task, evaluated on both the requested change and the preservation of untargeted content, so that neither editing the wrong stem nor returning the input unchanged scores well. ProCraft remains competitive with task-specific systems on single operations and outperforms four free-text editors on compound instructions on MoisesDB and Slakh.

  • Two mechanisms for conditioning long codec sequences. A persistent edit head keeps the instruction accessible to every decoder layer, and intermediate-layer music alignment preserves stem-level structure. Ablations on real recordings show that both reduce leakage from untargeted stems and improve editing success.

  • On-the-fly Editing-pair Synthesis. A tool-calling language model generates source, instruction, and target triplets for training without manual annotation.

¹We plan to release model weights and code for the model, training, and data generation.

References (100)

  • a visual language model for few-shot learning
  • Learning source disentanglement in neural audio codec
  • StemFX: Learning mixing style representations via autoregressive fx chain prediction on source-separated stems
  • Pop2Piano: Pop audio-based piano cover generation
  • Scaling language modeling with pathways
  • Text2FX: Harnessing CLAP embeddings for text-guided audio effects
  • KAD: No more FAD! an effective and efficient evaluation metric for audio generation
  • Simple and controllable music generation
  • LLM2Fx-Tools: Tool calling for music post-production
  • Stable audio open
  • Accompaniment prompt adherence: A measure for evaluating music accompaniment systems
  • Adapting frechet audio distance for generative music evaluation
  • LoRA: Low-rank adaptation of large language models
  • An efficient acoustic discrete codec tokenizer for audio language modeling
  • FxSearcher: Gradient-free text-driven audio transformation
  • Fréchet audio distance: A reference-free metric for evaluating music enhancement algorithms
  • TokenSynth: A token-based neural synthesizer for instrument cloning and text-to-instrument
  • Efficient training of audio transformers with patchout
  • BLIP-2: Bootstrapping language-image pre-training with frozen image encoders and large language models
  • Acoustic music understanding model with large-scale self-supervised training
  • AudioLDM 2: Learning holistic audio generation with self-supervised pretraining
  • Zero-shot music editing with disentangled inversion control
  • IEEE Transactions on Audio, Speech and Language Processing, 33:458–471, 2025b
  • Cutting music source separation some Slakh: A dataset to study the impact of training data quality and quantity
  • Zero-shot unsupervised and text-based audio editing using DDPM inversion
  • Multi-source diffusion models for simultaneous music generation and separation
  • Automatic piano reduction from ensemble scores based on merged-output hidden markov model
  • Enhanced musical consistency for zero-shot text-guided and personalized music editing
  • MoisesDB: A dataset for source separation beyond 4-stems
  • Karol J. Piczak. ESC: Dataset for environmental sound classification. In Proceedings of the 23rd ACM International Conference on Multimedia, pp. 1015–1018, 2015. doi: 10.1145/2733373.2806390. (opens the publisher in a new tab)
  • mir_eval: A transparent implementation of common MIR metrics
  • MUSDB18-HQ - an uncompressed version of MUSDB18 (opens the publisher in a new tab)
  • Hybrid transformers for music source separation
  • MusicGen-Stem: Multi-stem music generation and edition through autoregressive modeling
  • MuScriptor: An open model for multi-instrument music transcription
  • ST-ITO: Controlling audio effects for style transfer with inference-time optimization
  • Picogen2: Piano cover generation with transfer learning approach and weakly aligned data
  • Picogen: Generate piano covers with a two-stage approach
  • Extending multi-modal understanding to versatile audio generation and editing (opens arXiv in a new tab)
  • Audio prompt adapter: Unleashing music editing abilities for text-to-music with lightweight fine-tuning
  • MuseControlLite: Multifunctional music generation with lightweight conditioners
  • Diff-MST: Differentiable mixing style transfer
  • Neural codec language model as a versatile speech transformer
  • Watcharasupat and Alexander Lerch
  • Large-scale contrastive language-audio pretraining with feature fusion and keyword-to-caption augmentation
  • Qwen2 Technical Report
  • Qwen3 Technical Report
  • Representation alignment for generation: Training diffusion transformers is easier than you think
  • InstructFX2FX: A multi-turn text-to-effect system for sequential audio effect refinement
  • Integrating super resolution and large language model for high-fidelity long-form music generation (opens arXiv in a new tab)
  • Unlocking text-to-music editing for music language models via instruction tuning
  • Generation stops at the first audio end-of-sequence token, with a fallback maximum equal to the source-code length: 2,250 decoding steps for a 30s clip at 75 Hz
  • The target states receive RMS normalization before supplying the attention queries
  • The MERT projector has three linear layers with widths $896 \to 2048 \to 2048 \to 1024$, with SiLU activations after the first two layers
  • At batch size 8, the amortized time is approximately 5 s per clip, or 7 s with super-resolution
  • Their row-wise shading shows the relative range of each metric; it does not make values on different metrics directly comparable
  • E=editing, P=preservation, E+P=both
  • They provide the underlying values and additional metrics for the summaries in Section 5.3
  • The optimizer is AdamW with betas 0.9 and 0.95, weight decay 0.01, and gradient clipping at 1.0
  • The notation follows Sections 2 and 4.1: $x$ denotes the source clip, $c$ the instruction, $\hat{y}$ the system output, and $y$ the target when one is available
  • We compute Audio Effects Representation (AFx-Rep) cosine similarity using the representation released with ST-ITO (Steinmetz et al., 2024)
  • We set $a_k=6$ dB for the three features in dB and $a_k=1$ octave for centroid, bandwidth, and rolloff
  • We first separate each signal into instrument stems using HTDemucs-6s (Rouard et al., 2023)
  • Remove and extract strength are respectively
  • Edit rate thresholds the corresponding quantities at the example level:
  • Lower FAD and KAD indicate distributions closer to the real-music reference pool
  • We compute frame-level pitch F1 (Frame-F1) between the output's MuScriptor transcription and the source-track Musical Instrument Digital Interface (MIDI) ground truth at 75 frames per second
  • Using the RMS stem energy $\mathcal{E}_t(\cdot)$ defined above, isolation strength applies the extract form of edit strength to the output:
  • Following the cover-generation evaluation of Tan et al. (2024b), we use melody chroma accuracy defined in mir_eval (Raffel et al., 2014) to compare the estimated melody of the output with that of the source frame by frame
  • We compute all three metrics against deterministic ground-truth targets
  • Structural distance (StructDist) compares the temporal self-similarity structure of the output and source
  • Let C be the candidate set of context-stem pairs, R a reference set of matched context-stem pairs, and $R'$ a reference set with randomly mismatched stems
  • A score of 0.5 indicates that the candidate distribution is equally distant from the matched and mismatched references, while higher values indicate stronger prompt adherence
  • Training uses eight families
  • prose a producer might say, and the audio effects settings that realize it
  • Denoise items mix one environmental sound into the music, drawn from FSD50K in training and from ESC-50 in the test sets
  • Source audio, model outputs, and baseline comparisons are available on the public demo page at
  • Denoise is partial because AudioSep targets environmental events rather than the complete editing task, and free phrasing is partial because it accepts target names rather than edit instructions
  • MSDM has no text conditioning, so its free phrasing is unable
  • AP-Adapter supports instrument transfer, cover, and accompaniment, but its timbre edit changes the whole clip rather than a named part, so the corresponding stem-level tasks are partial matches even though it accepts free-form target text
  • It's not trained on cover, instrument transfer, or denoise
  • We take the edit head $h_{edit}$, the last hidden state at the 32 query positions, and average it over those positions into one 896-dimensional vector
  • Accuracy is computed over the pooled out-of-fold predictions of 5-fold stratified cross-validation, with shuffled folds and a fixed seed
  • The set has 50 edits for each of the seven tasks: remove, extract, accompany, cover, instrument transfer, denoise, and audio effects
  • Each clip is the loudest 30,s window of its stem, searched with a 5,s hop and required to be active in at least 80% of its seconds
  • one for each of the seven pitched families and each MIDI pitch from 36 to 84 (C2 to C6)
  • Bold = highest sample mean; underline = second-highest sample mean; significance is reported in Table 11
  • $\eta_p^2$ = partial eta squared
  • Both task-specific systems output an accompaniment stem
  • We use their official weights and deterministic decoding
  • We run AP-Adapter with ap_scale 0.5, 50 steps and guidance 7.5, and MuseControlLite with its defaults
  • solo〈source〉playing
  • We use its official weights and denoise by decoding the music quantizer once at 16 kHz, then resampling the result into our pipeline
  • We use TokenSynth’s official weights and give it the ground-truth pianoroll plus a target-instrument exemplar taken from a different item
  • Both baselines use their official repositories to fit effect parameters on the source against a CLAP objective
  • Its language model reads the instruction and picks the effect chain, and its optimizer fits the parameters against a CLAP objective
  • We run these zero-shot editors over the AudioLDM2-music prior (Liu et al., 2024) in their native caption-conditioned form
  • We run the official six-source weights once per clip, dropping the requested stem for remove and keeping it for extract
  • We run the official weights with the instrument name as query, in one pass per clip at the model’s native rate
  • We run this free-form instruction editor with its official weights and default decoding on the same combined instructions as ProCraft