Harmonic Canvas: Inversion-Free Editing for Visually-Guided Music Style Transfer

Yue Lei, Siqi Yang, Ting Zhong, Fan ZhouCVPR 2026

TL;DR

Harmonic Canvas introduces an inversion-free, flow-based framework for music style transfer that allows users to transform the style of a song using both text prompts and visual images. By combining a dual-encoder cross-adapter with a differentiable normalized chroma constraint, the model successfully captures non-verbal visual aesthetics (like color and mood) while strictly preserving the original melody.

What Problem Does This Paper Address?

Music Style Transfer (MST) aims to change the stylistic attributes of a piece of music (e.g., turning a classical piano piece into a rock anthem) while keeping the underlying melody recognizable.

Current state-of-the-art MST systems rely almost exclusively on text prompts or reference audio. However, the authors argue that musical style is inherently multimodal. Visual elements—such as the color palette, lighting, and composition of an album cover or music video—convey emotional textures and atmospheric moods that language struggles to capture. Text acts as a "lossy surrogate" for these visual nuances.

Furthermore, when models attempt drastic stylistic transformations, they often distort the original pitch and rhythm. The core challenge is twofold: how to effectively inject non-verbal visual semantics into music generation, and how to prevent pitch drift during intense style modifications.

Methods

The authors build their framework on top of the Make-An-Audio 3 (MAA3) backbone, a transformer-based flow/diffusion architecture. To overcome the limitations of traditional MST, they introduce three key components:

  1. Cross-Adapter for Visual-Textual Conditioning: Instead of converting images into text captions, the model directly processes visual features. It uses a dual-encoder setup: CLIP to capture high-level semantic correspondences between vision and language, and a Vision Transformer (ViT) to capture global visual features (like color tone and lighting). These embeddings are fused and injected into the transformer blocks via a cross-attention mechanism.
  2. Inversion-Free Flow Editing: Traditional diffusion editing relies on stochastic inversion to reconstruct noise trajectories, which is slow and prone to error accumulation. Harmonic Canvas uses an inversion-free flow matching paradigm, establishing deterministic transport paths directly between the source and target distributions for cleaner, faster editing.
  3. Melody Preservation via Melodic Guidance: To stop the melody from breaking down during style transfer, the authors introduce a differentiable normalized chroma constraint. During the generative flow, the model extracts the chroma features (a representation of the 12 pitch classes) of the intermediate audio and calculates an $L_1$ loss against the source audio. The gradient of this loss is used in a proximal update step to nudge the audio back toward the correct pitch structure.
Overview of the proposed multimodal music style transfer framework showing the Make-An-Audio 3 backbone, visual-textual conditioning, and melodic guidance modules.

Datasets

To train and evaluate their model, the authors created a new genre-structured multimodal dataset by merging and extending two existing corpora:

  • MeLBench
  • MusicCaps

They normalized these collections into aligned triplets: <Image, Text, Music>. Vocals were stripped using the Demucs separation model to ensure a focus on instrumental style transfer. An LLM-assisted pipeline was used to classify the clips into 16 distinct musical genres (e.g., jazz-fusion, metalcore, ambient) and standardize the text captions for stylistic consistency.

Key Insights and Ideas

  • The Information-Theoretic Argument for Images: The authors prove mathematically (via the data-processing inequality) that routing an image through a text captioning model ($I \rightarrow C \rightarrow Z$) inherently discards stylistic information. Direct visual embedding preserves fine-grained aesthetic cues that text captions miss.
  • Chroma Over Raw Pitch ($F_0$): Using raw fundamental frequency ($F_0$) curves to guide melody preservation is too rigid because different instruments (e.g., a violin vs. a distorted electric guitar) naturally produce different $F_0$ profiles. Normalized chroma is amplitude-invariant and timbre-robust, making it the perfect invariant feature for style transfer.
  • Deterministic Flow is Safer for Music: By avoiding the stochastic noise injection typical of standard diffusion inversion, the inversion-free flow approach maintains global structural coherence, which is vital for keeping the rhythm of the source music intact.

Key Results

Harmonic Canvas was evaluated against top-tier text-to-music and style transfer baselines, including MusicGen, TANGO, and MeLFusion.

  • Objective Metrics: The model achieved a state-of-the-art Fréchet Audio Distance (FAD) score of 2.43 (outperforming MeLFusion's 3.24), indicating superior audio quality and style alignment. It also scored highest in pitch and harmony preservation metrics (F0-PCC: 0.416, CCS: 0.878).
  • Subjective Evaluation: In user studies evaluating overall quality (OVL), prompt relevance (REL), and melodic consistency ($\text{MOS}_{\text{con}}$), human listeners consistently rated Harmonic Canvas higher than all baseline models.
  • Counterfactual Verification: The authors proved the efficacy of the visual conditioning by running a test where the text prompt remained identical but the input image was swapped. The model generated distinctly different musical styles, proving that the visual cues independently guide the audio output.
Figure 3. (Left) Visualization of music style transfer results across three multimodal prompts. For each prompt, source/target images are shown on the left, followed by Mel-spectrograms of the Source, MeLFusion, and Ours outputs. (Right) Counterfactual test: changing only the image while keeping text fixed leads to different outputs, demonstrating the influence of visual cues on generated musical style.

Limitations and Future Work

The primary limitation identified in the paper is the inherent trade-off between melody preservation and stylistic flexibility. If the melodic guidance rate ($\lambda_{\text{chr}}$) is set too high, it anchors the pitch so rigidly that the model struggles to adopt the target style's unique playing techniques or textures.

For future work, the authors plan to explore lighter flow architectures to reduce computational overhead and investigate broader multimodal pretraining strategies to enable more interactive, real-time creative applications.

Summary updated

BibTeX
@inproceedings{lei2026harmonic,
  author = {Yue Lei and Siqi Yang and Ting Zhong and Fan Zhou},
  title = {{Harmonic Canvas: Inversion-Free Editing for Visually-Guided Music Style Transfer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=GTxQedmPVD},
}
Figure