Sound & music · Research feature

New AI Model Generates Music Synced to Video and Text Input

The study introduces Video-Robin, a model that generates music based on both video and text inputs, using a two-stage process.

Adapted from research by Vaibhavi Lokegaonkar, Aryan Vijay Bhosale, Vishnu Raj and colleagues.

arXiv preprint revision · 2026-04-22 · Attribution & reuse
In this article
Editorial illustration of sound waves.

Editor’s introduction

The study introduces Video-Robin, a model that generates music based on both video and text inputs, using a two-stage process. First, an autoregressive module aligns visual and textual cues to produce high-level musical structures. The model evaluates generated music using standard metrics like Frechet Audio Distance and Inception Score, with alignment assessed via ImageBind and Gemini-based judgment on rhythm and thematic consistency. Findings show improved alignment and quality over models relying solely on video input.

Introduction

Human perception is inherently multimodal, enabling music and imagery to jointly shape the narrative, emotion, and memorability of a video. With the ubiquitous creation of short-form videos on social platforms, creators increasingly rely on background scores to boost impact, retention, and shareability, while turning to generative music tools to avoid manual composition and licensing overhead. Yet most current tools prioritise convenience over expressive control, producing plausible but stylistically narrow tracks with limited structural and stylistic steering. As creator-driven content grows in volume and diversity, there is an urgent need for generative systems to be avidly expressive for embedding artistic intent into music. Conditional music generation is a well-studied topic of research spanning autoregressive and diffusion-based paradigms covering various types of conditioning. Earlier models focused on text-to-music generation to produce audio with recognizable musical structure and coherence. As the field matured, the scope of generation expanded beyond instrumental backgrounds to lyrics-to-song synthesis with coordinated vocals and instrumentation. However, autoregressive models capture long-range musical structure effectively but suffer from slow inference and occasional artefacts. Diffusion-based models, on the other hand, offer faster, higher-fidelity synthesis while struggling with global coherence. This has motivated a growing trend toward hybrid, hierarchical architectures that combine the strengths of both. Collectively, these advances demonstrate that text and reference audio-based generation models can produce controllable, temporally coherent music. Despite this progress, the short-form video creator remains underserved. These models produce outputs that are stylistically appropriate but lack the dynamic responsiveness to scene changes, cuts, and pacing shifts that video-first content demands.

Building on prior work, most video-to-music models are built to answer a single question: what music fits this video? Drawing from text-to-music, they use Transformer- and diffusion-based architectures with additions like affective cues, long/short-term modeling, LLM guidance, hierarchical attention, and explicit rhythm modeling, enabling strong audio–visual alignment. But alignment does not always tell the whole story: creators also care about what music they want for a video. The same travel vlog may be intentionally scored with ambient electronics or acoustic folk-both “fit,” yet vision-only conditioning cannot express such stylistic and structural intent. Preferences in style, instrumentation, and emotional arc lie outside the current conditioning interface, making it difficult to generate music that matches both the visual narrative and the creator’s artistic goals.

Generative modeling with Language Models for Audio

Autoregressive models show exceptional performance on understanding tasks while Diffusion-based models excel at generation tasks. Recent works demonstrate how these architectures can be leveraged concurrently for conditional audio generation. ARDiT uses an autoregressive Diffusion Transformer to generate continuous audio tokens for zero-shot text-to-speech and text-based speech editing, DiTAR builds on this by combining a language model with a diffusion transformer and proposing a patch-based autoregressive framework for high quality speech synthesis. VoxCPM explored a tokenizer-free approach to the same with semi-discrete residual representations and differentiable quantization and expanded the same to voice cloning. Music generation is a nuanced task for machine learning models, especially when conditioned on multimodal inputs, and can greatly benefit from such hierarchical planning and generation.

Text-to-Music Generation Models

Over the years, we have seen multiple autoregressive and diffusion-based models for text-conditioned music generation. JukeBox. and MusicGen pioneered autoregressive music generation with VQ-VAEs and codec-based tokens respectively while AudioLDM and later, AudioLDM 2 introduced diffusion for general audio tasks, including music generation with improved musical structure and lyrical coherence. Stable Audio Open utilizes a Diffusion model in an autoencoded latent space, conditioned on T5, to produce longer, high-quality audio. Yue builds on the LLaMa 2 architecture to tackle lyrics-to-song generation through track-decoupled next token prediction and structural progressive conditioning. SongGen employs a single-stage autoregressive Transformer for text-to-song synthesis, emphasizing harmony between vocals and instruments. DiffRhythm introduces a rhythm-aware latent diffusion framework for temporally coherent and controllable full-song generation. HeartMuLa leverages a hierarchical music LM that autoregressively predicts codec tokens with a global transformer for long-range structure and a local transformer for fine acoustic detail, conditioned on lyrics, tags, and optional reference audio.

Increasingly, we see models adopting a hierarchical approaches for music synthesis. LLM-based models like Yue and SongGen excel at lyric-to-music generation but with slow inference speeds and musical artifacts whereas Diffusion-based architectures enable faster, high-quality generation but struggle with structural coherence. To tackle this, we see ACE-Step integrates DCAE-compressed mel-spectrogram latents with flow matching using a linear transformer backbone. SongBloom uses a unified autoregressive diffusion architecture with an autoregressive transformer decoder for sketch tokens, a non-autoregressive diffusion transformer for acoustic refinement, and an acoustic encoder, generating interleaved semantic and acoustic patches from lyrics and a short audio reference.

Video-to-Music Generation Models

CMT is one of the earliest works that explores video-to-music generation using a linear Transformer that autoregressively generates symbolic music using compound word representations, conditioning on video through rhythmic feature replacement at inference rather than learned cross-modal alignment. Video2Music trains an Affective Multimodal Transformer that takes concatenated video features (semantic, scene offset, motion, emotion) as input to generate music that with emotional alignment. VidMuse fuses global and local visual features using Long-Short-Term modeling and generates discrete audio tokens with a Music Token Decoder that can be decoded by an audio codec. MuMu-LLaMA uses multi-modal encoders (MERT, ViT, ViViT ) coupled via adapters to LLaMA 2 to output conditioning embeddings for AudioLDM 2 or MusicGen-decoded music generation. GVMGen, on the other hand, explores hierarchical spatial and temporal attentions on hidden features to enforce audio-visual alignment. DiffV2M utilizes explicit rhythmic modeling, emotional and semantic feature extraction from videos for conditional music generation built on a DiT-based latent diffusion model. Unlike prior models that depend predominantly on visual signals, Video-Robin explicitly incorporates textual intent through autoregressive planning and diffusion refinement enabling finer creative control.

Data Preprocessing

We employ the HarmonySet dataset for both training and evaluation. HarmonySet is a video-to-music alignment dataset consisting of short-form videos with rapid scene transitions and contemporary music tracks, reflecting the dynamic nature of social media content. Our task focuses on generating background music that aligns both temporally and semantically with such fast-changing visuals. Each video in HarmonySet is accompanied by human-reviewed deep captions covering four alignment dimensions: Rhythmic Synchronization, Thematic Coherence, Emotional Alignment, and Cultural Relevance. These captions provide fine-grained markers that guide the model to generate diverse and contextually relevant music.

We first separate audio from the visual content from each video in Harmony set and apply Demucs to separate the instrumentals and vocals. Demucs separates the audio into four stems: vocals, bass, drums and other. We obtain the instrumentals by overlaying the bass, drums and other stems. We then utilise MusicFlamingo to estimate whether the instrumental only has well-formed, high-fidelity music without any noisy artefacts. In order to obtain textual prompts with fine-grained details, for each data sample with high fidelity instrumentals, we leverage MusicFlamingo to extract detailed musical attributes in the form of a textual description from the instrumentals, including keys, genre, instruments and chord progression. We then use Qwen3-8B to paraphrase HarmonySet captions into prompts, ensuring that the prompt contains cultural, rhythmic, thematic, and emotional information. These multi-faceted prompts are then combined with the extracted music description using Qwen3-8B to produce prompts that contain a holistic description of the instrumental music and how it aligns with the video. This approach enables our model to generate music that is not only rhythmically synchronised but also semantically coherent with complex visual content. We attach all input prompts to MusicFlamingo and Qwen-3B in Appendix B.

Architecture

Motivation. The goal of this work is to generate high-fidelity music that is temporally aligned with video and consistent with detailed textual descriptions. Existing approaches rely on discrete codebooks, which limit audio fidelity and face scalability challenges as codebook size or latent dimensionality increases. Directly generating continuous latent sequences avoids these limitations but can overwhelm the model when conditioning on detailed text, risking loss of semantic alignment with video and text. To address this, we adopt an autoregressive framework over continuous latent patches, preserving both acoustic fidelity and alignment with the input modalities.

Multi-Stage Training

To ensure that the model can follow fine-grained textual prompts, it must learn strong correspondences between musical concepts (e.g., key, tempo, and chord progression) and their realizations in the latent audio space. We therefore adopt a two-stage training strategy. Stage 1: Text-to-Music Pretraining. We first train the architecture for text-conditioned music generation by removing the video encoder and projection layer. This stage learns to map structured musical descriptions into latent representations that decode into high-fidelity audio, establishing alignment between textual musical attributes and their acoustic realizations. Stage 2: Video-to-Music Finetuning. We then introduce the video encoder and a trainable projection layer that maps visual features into the multimodal conditioning space. The video encoder is kept frozen, while the projection layer is trained from scratch and the remaining model parameters are fine-tuned from the pretrained checkpoint. This initialization stabilizes optimization and enables faster convergence for video-aligned music generation.

Implementation Details

Our model is built upon the VoxCPM framework and operates in the latent space of a pretrained SongBloom audio VAE at 48 kHz, which remains frozen during all stages of the training process. The SemanticLM backbone is initialised from MiniCPM (0.5B) and comprises 24 transformer layers with a hidden dimension of 1024 and 16 attention heads. The autoregressive planning head consists of a finite scalar quantization (FSQ) bottleneck with latent dimension 256, followed by RITE, an 8-layer transformer for discrete semantic token modeling. The refinement head, architecturally analogous to LocDiT, is implemented as an 8-layer Diffusion Transformer trained with conditional flow matching using log-normal timestep sampling. We use the CLIP-ViT-Base model with a patch size of 32 as the vision encoder.

Evaluation Metrics

We quantitatively evaluate the effectiveness of our model using previously adopted metrics for music generation. These metrics evaluate the quality, fidelity and diversity of the generated music. We use Frechet Audio Distance (FAD), Frechet Distance (FD), KL Divergence (KL), Inception Score (IS), ImageBind Score (IB), Density, and Coverage. The quality of the generated music is measured by FAD, FD, and KL, while its alignment with the video is measured by the ImageBind Score. Since ImageBind is not specifically trained on music data, we also employ Gemini as an Omni-Judge to evaluate the video-to-music alignment based on 7 broad axes: rhythmic sync, theme coherence, emotion alignment, cultural relevance, temporal dynamics, instrumention fit and overall alignment. We attach the prompt administered to Gemini for the evaluation in Appendix A.

Comparison Models

Prior approaches to video-conditioned music generation rarely incorporate fine-grained textual conditioning for controllable synthesis. Since our framework explicitly supports structured text controls, we evaluate performance under two settings: (i) video-conditioned music generation with fine-grained prompts and (ii) video-only conditioning without textual inputs. We compare against CMT, Video2Music, and M2UGen as primary baselines in the text-conditioned setting, as these methods incorporate auxiliary textual signals. In the video-only setting, we compare against VidMuse and GVMGen, which perform music generation conditioned solely on visual features. For fair comparison, we additionally report our model’s performance without textual inputs to align with these baselines.

Quantitative Comparison against baselines

Across the quality-focused metrics (FAD, FD, and KL), Video-Robin consistently achieves the lowest or near-lowest scores, reflecting superior audio fidelity and distributional alignment with ground-truth music. On ReelBench, Video-Robin attains the best FAD, FD, and Coverage alongside the highest Inception Score, demonstrating that our model generates music of exceptional perceptual quality and diversity. On the LORIS dataset, Video-Robin again leads on FAD, IS, Density, and Coverage, indicating that our generations are not only realistic but also diverse and well-distributed relative to the reference set. On V2MBench, while VidMuse achieves the best scores on IB, Density, and Coverage, Video-Robin remains highly competitive with a strong IS and notably low KL divergence, suggesting that our model generalizes well across diverse video domains. Taken together, these results demonstrate that Video-Robin strikes a favorable balance across audio quality, semantic alignment, and generative diversity, outperforming all baselines on the majority of metrics across benchmarks.

Conclusion, Limitations and Future Work

We introduce Video-Robin, a text and video-conditioned video-to-music generation framework that explicitly models creator intent while preserving audiovisual alignment. The key idea is to factor generation into (i) autoregressive multimodal planning over continuous latent patches (via a SemanticLM + FSQ bottleneck + residual integration) and (ii) diffusion-based refinement that converts each planned patch into high-fidelity music latents, which are finally decoded by a pretrained VAE. This hybrid design addresses the long-standing trade-off between global musical structure and local acoustic fidelity, enabling controllable synthesis without sacrificing realism. Empirically, Video-Robin achieves strong audio quality, diversity, and alignment across both in-domain and out-of-domain benchmarks, while also delivering substantially faster inference. Video-Robin currently targets a constrained setting–our experiments use 10-second clips and instrumental/background music only–which does not yet capture long-form scoring needs like multi-minute narrative arcs, motif recurrence, or seamless transitions across scene cuts; extending the planner–refiner hierarchy to longer videos with cut/beat-aware planning and timestamped “hit-point” controls is an immediate next step. Evaluation is also imperfect: while we report standard audio quality/diversity metrics and an ImageBind-based alignment proxy, music–video fit and creator intent-following remain hard to measure reliably, motivating music-centric alignment metrics (e.g., rhythmic hit accuracy, pacing/structure match) and human-preference supervision for controllability. Finally, the system depends on frozen representation components (e.g., VAE latent space / pretrained encoders) and a relatively small intent-annotated set (ReelBench), which may cap expressivity in niche genres and limit coverage of real creator workflows; scaling intent-rich data, adding interactive editing (inpainting/partial re-scoring), and exploring more adaptive or learned latents/encoders are concrete directions to broaden applicability and improve fidelity–control trade-offs.