MusRec: Zero-Shot Text-to-Music Editing via Rectified Flow and Diffusion Transformers
Ali Boudaghi, Hadi Zare
TL;DR
MusRec introduces a zero-shot text-to-music editing framework built on rectified flow and diffusion transformers to edit real-world audio without retraining. By inverting audio into a rectified-flow latent space with RF-Solver and injecting inversion-derived attention features during denoising, MusRec achieves timbre and genre edits while preserving structure and content. The approach uses a VAE-based audio encoder, KV/ V attention-injection strategies, and classifier-free guidance to balance semantic alignment with musical fidelity, evaluated on small timbre and genre datasets with both objective and subjective metrics. Results show that KV-injection offers the best overall trade-off between transferability and fidelity, demonstrating practical zero-shot editing capabilities for real recordings. This work establishes rectified-flow-based editing as a viable foundation for flexible, high-quality, real-audio music transformation without task-specific training.
Abstract
Music editing has emerged as an important and practical area of artificial intelligence, with applications ranging from video game and film music production to personalizing existing tracks according to user preferences. However, existing models face significant limitations, such as being restricted to editing synthesized music generated by their own models, requiring highly precise prompts, or necessitating task-specific retraining, thus lacking true zero-shot capability. leveraging recent advances in rectified flow and diffusion transformers, we introduce MusRec, a zero-shot text-to-music editing model capable of performing diverse editing tasks on real-world music efficiently and effectively. Experimental results demonstrate that our approach outperforms existing methods in preserving musical content, structural consistency, and editing fidelity, establishing a strong foundation for controllable music editing in real-world scenarios.
