Sound & music · Research feature

New AI Model Lets Users Control Audio by Highlighting Objects in Video

A new AI model generates audio based on specific objects in a video, offering precise control over sound generation in creative workflows.

Adapted from research by Ilpo Viertola, Vladimir Iashin, Esa Rahtu.

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

Editor’s introduction

The study introduces SAGANet, a model that generates audio by conditioning on video object segmentation masks, enabling users to control sound production at the level of individual objects. The model was evaluated using Segmented Music Solos, a dataset of videos with synchronized audio and segmentation masks.

Introduction

Multimodal audio generation focuses on synthesizing audio, given a conditional video feed, a textual description, or conditions in other modalities. These models can be utilized in Foley processing, where the goal is to produce a soundtrack for a video. For the artificial Foley models to thrive, e.g., as a video post-processing tool, the end-user has to have high control over the synthesized result. In addition to controllability, the model has to produce high-quality samples with great semantic and temporal accuracy.

Recent advances in diffusion and conditional flow matching (CFM) models have improved the audio quality of the artificial Foley models. However, existing models still lack precise user guidance and control. Although recent models introduce more modalities to guide the audio generation process, they still lack precision. In complex scenes, describing the target object using e.g., text, quickly becomes unfeasible.

To improve control in Foley generation, we propose a new audio synthesis task: video object segmentation-aware audio generation. This task focuses on nuanced control, highlighting the model’s ability to generate audio for a specific object in the video rather than for the full scene. To the best of our knowledge, we are the first to utilise visual segmentation information in the audio generation task.

Existing state-of-the-art methods focus on training the models from scratch, utilizing large uni- and multimodal datasets. It demands significant computational resources and quickly becomes infeasible in academic environments. For example, Movie Gen Audio was pretrained on 384 high-end H100 GPUs for 14 days and later fine-tuned on 64 H100s for 24 hours. MMAudio was trained on the same high-end GPU hardware, only utilizing fewer GPU hours per training run.

Artificial Foley Models

Artificial Foley models have gained considerable popularity. Many published models are built on top of autoregressive transformer architecture. Also, another transformer-based approach is to utilize Masked Generative Image Transformer (MaskGIT) schema for the audio generation task. Another popular approach is to utilize diffusion or flow-matching methods. To avoid resource- and time-exhaustive training from scratch, prior work has explored using pretrained text-to-audio models for video-to-audio generation by training lightweight feature aligners or control modules between the modalities. Although these models achieve good audio quality, they often struggle to generate temporally aligned audio. When the text modality is fixed during training, learning an aligned feature space between modalities becomes challenging.

The current Foley methods lack controllability. For artists to fulfil their needs in applications such as video post-processing, they must have fine-grained control over the model. One way to add control is to introduce conditioning signals from other modalities, e.g., text.

Although early multimodal approaches, e.g. text-and-video-to-audio models, did not meet the generation quality compared with dedicated video-to-audio models, recent work has shown that artificial Foley models can benefit from multimodality. For example, show that training a generative audio network with combined text-audio and text-video-audio data enables high generation quality while preserving temporal and semantic alignment with video and text. However, the user controllability remains limited since describing the target objects with textual prompts in complex scenes can be difficult or infeasible. To tackle this, we develop a novel model that supports audio generation conditioned with text and video, but also allows users to define the sounding object with a semantic mask. In practice, user can click an object from a video frame, and our model generates audio for that specific object.

Video Object Segmentation

Video Object Segmentation (VOS) refers to the task of segmenting and tracking objects at the pixel level across video frames while maintaining temporal consistency. It typically involves distinguishing foreground objects, such as people, animals, or vehicles, from the background.

Different types of VOS tasks include semi-supervised and unsupervised VOS. In semi-supervised VOS, a ground-truth mask is provided for the target object in the first frame, and the goal is to segment the object in the remaining frames. In unsupervised VOS, no initial mask is given. The goal is to discover and segment prominent objects automatically.

Recent advancements have introduced promptable VOS models. SAM2 is a widely adopted and powerful semi-supervised video object segmentation model capable of real-time object segmentation with images and videos. The initial mask of the segmented object can be provided manually or based on location coordinates. SAM2 facilitates applications such as video editing, mixed reality experiences, and efficient annotation of visual data for training computer vision systems.

GroundedSAM2 combines SAM2 with grounding models in a single pipeline, enabling grounding and tracking anything in videos. GroundedSAM2 enables segmenting objects based on natural language queries, making it a powerful tool, e.g., in data generation. We utilize GroundedSAM2 with Florence-2 foundation model by prompting it with text labels of target objects and SAM2 by prompting it with location coordinates in our data generation pipeline. The resulting segmentation maps of sounding objects are then used during training.

Controlled Generation with Pretrained Audio Networks

Adapting large pretrained networks to new conditioning inputs is a widely studied topic. In the diffusion model domain, training a ControlNet is a popular approach. ControlNet enables fine-grained control by injecting conditioning features, such as visual cues, semantic tags, or motion information, into the denoising process of a frozen diffusion model.

However, we hypothesize that training a parallel ControlNet to condition MMAudio with video object segmentation information is unnecessary. Cited researchers show that in visual captioning, combining local and global visual features from the same extractor using learnable gated cross-attention, along with object segmentation masks, improves localized captions. Their large transformer-based captioning model is kept frozen, and only the feature extraction process is modified. Motivated by their findings, we design and implement a localized visual feature extraction model in parallel to MMAudio’s Synchformer-based global feature extractor.

Introducing the segmentation information already at the feature extraction stage allows us to use the same control module across all variants of the generative model. Thus, the number of trainable parameters remains the same even though the generative network size increases. In contrast, fusing the segmentation information via a ControlNet-based approach would require training a separate control module per model variant. Our approach integrates visual segmentation masks as a new conditioning modality, without requiring full model fine-tuning or training of variant-specific control modules.

Visual Embeddings

For visual data, MMAudio combines features extracted with CLIP and with Synchformer’s AVCLIP models. The visual features extracted with CLIP act as global visual embeddings, providing the model with the semantic context of the visual feed. Synchformer features are used as synchronization cues, providing the model with accurate temporal information. We design our segmentation-aware control branch parallel to the Synchformer branch. In contrast to global visual CLIP features, Synchformer captures fine-grained visual features relevant to audio events since it is trained to capture misalignment between audio and video.

Diffusion Transformer

MMAudio introduces a novel multimodal DiT network which synthesises audio given visual and textual conditions. The blocks of the MMAudio DiT can be split into two different types, joint (i.e. multimodal) and fused (i.e. unimodal) attention blocks. Joint attention blocks aim to incorporate information across the modalities. Following, MMAudio concatenates query, key, and value representations across the different modalities (i.e., video, text, and audio) and applies a single joint attention operation. Cited researchers also introduce a conditional synchronization module. It is a token-level conditioning, fusing temporally matched Synchformer features with audio latents using AdaLN layers. We implement our segment-aware control branch into this conditional synchronization module.

Joint attention blocks are followed by fused attention blocks, which process only auditory information along with global conditioning. Global conditioning infuses global features (i.e., average-pooled visual and average-pooled textual features) through scales and biases in adaptive layer normalization layers. Auditory tokens in fused blocks capture information across all modalities by going through joint attention blocks before entering the audio-only fused blocks.

Segmented Music Solos Dataset

To facilitate the training of a video object segmentation-aware generative audio model, we propose Segmented Music Solos. We draw inspiration from audio-visual segmentation datasets, where data consists of single and multi-source videos. We hypothesize that by training our model using single-source videos, accompanied by the sounding object masks, our model learns to use the segmentation information for the audio generation. When a multi-source scene is introduced during test time, the model is capable of generating sound for the segmented object. Our data pipeline draws inspiration from VGGSound.

Data Sourcing

The training data consists of video clips of people playing a single instrument and segmentation masks of the instruments. The raw videos are gathered across multiple datasets. For the training and validation data, we combine solo performance videos from MUSIC21, AVSBench, and Solos. For testing, we use the URMP dataset. It comprises several multi-instrument musical pieces assembled from separately recorded performances of individual tracks. Meaning that the final audio is a combination of separate audio recordings. Thus, each instrument in a multi-source scenario has a separately recorded audio, which is used as the ground truth in video object segmentation-aware audio generation.

Auditory Verification

For each visually verified scene, we window the audio to match the temporal dimension of the visual verification process. For audio classification, we utilize Audio Spectrogram Transformer (AST). We follow the same procedure as in visual verification to compute the label similarities between the AST classifier and our audio classes. If the target object is present (or silence is detected) in the top 5 predictions for an audio window, we classify the object as present. We include silence to support learning of natural pauses during instrument play.

Mask Generation

For train data, we utilize the GroundedSAM2 framework and obtain the initial mask by prompting the Florence-2 foundation model with the instrument label. Florence-2 produces the initial segmentation mask based on a textual prompt, and SAM2 propagates the mask throughout the clip. Florence-2 was chosen based on its performance on a small manually verified data subset compared with GroundingDINO versions 1.5 and 1.6. For test data, we manually provide location coordinates of the target objects to prompt SAM2. Manual prompting yielded more coherent masks compared to using a grounding model, but limited resources prevented us from manually annotating target objects in the training data.

Finally, Segmented Music Solos consists of 5 395 training, 665 validation, and 745 test 5-second samples spanning over 25 different musical instruments. Every video is accompanied by segmentation masks that have the same number of frames as the video and the label of the segmented object. The frame rate of all samples is 25 FPS, and the audio sample rate is 44.1 kHz.

Semantic Alignment

We utilize ImageBind to calculate a similarity score (IB-score) between the video and generated audio. ImageBind can embed data from multiple modalities into the same semantically meaningful embedding space. IB-score is a cosine distance between the audio and video embeddings, and it measures the semantic similarity of the condition (i.e. video) and the generated audio. The ground truth video is cropped to primarily show the segmented instrument and its player.

Temporal Alignment

We use Synchformer to compute the average of absolute offset predictions between audio and video (DeSync). Synchformer is able to detect and classify the temporal offset between video and audio streams. In other words, Synchformer can be used to determine the temporal synchronization between corresponding input streams. For human viewers, the temporal synchronization of audio and video is vital for high-quality perception. The ground truth videos are processed similarly as when calculating the IB-score.

Results

SAGANet shows the benefit of video object segmentation-aware control compared to the base model. Added control is crucial in the scenes where the target object is presented among other sounding instruments. Note that the evaluation data consists of multi-source videos containing multiple instruments. Despite being trained solely on single-source samples, our model demonstrates strong generalization to multi-source scenarios, effectively focusing on the target regardless of multiple instruments in the visual input. Textually describing the target object, accompanied by visual feed, does not provide strong enough guidance for the base model to generate temporally and semantically aligned audio.

Ablation Study

Using only the global visual stream (V) consistently yields the weakest performance in terms of semantic alignment (IB) and temporal synchronization (DeSync) across both LoRA and non-LoRA settings, despite achieving competitive inception scores (IS). This indicates that while the generated audio may be of reasonable perceptual quality, it lacks relevance to the target object. Notably, LoRA fine-tuning improves most metrics compared to the non-LoRA counterpart, suggesting more efficient adaptation to the task.

Incorporating segmentation information (V+M) leads to clear improvements compared using only global visual stream, particularly in temporal synchronization and distribution matching in the non-LoRA setting. However, with LoRA, this configuration results in noticeably higher DeSync. We attribute this to the adaptation capacity of LoRA: the model can minimize the training objective by refining the general audio generation model (e.g., biasing towards the dominant musical instrument distribution) without sufficiently leveraging the segmentation cues. As a result, it fails to properly attend to the segmented object, leading to weaker temporal alignment despite the additional spatial information.

Using only local information (V’, V’+M’) further improves temporal and semantic alignment with the ground truth. This effect is consistent across both LoRA and non-LoRA configurations, confirming the importance of detailed spatial cues. However, this comes with a trade-off: while local information significantly boosts semantic alignment (IB) and synchronization (DeSync), tighter localization can harm the overall quality.

Fusing local and global features (F. Prompt) provides the best overall balance. Under LoRA, this configuration achieves the strongest semantic alignment and temporal synchronization, as well as competitive audio quality, outperforming all other variants in IB-score and DeSync. In contrast, the non-LoRA variant achieves the highest inception score, but falls short in alignment and synchronization compared to its LoRA counterpart. This highlights the importance of the fine-tuning for better cross-modal alignment.

Conclusion

Current generative audio models lack precise controllability, which limits their introduction e.g., in video post-production. To address the gap, we introduced a novel audio synthesis task: Video Object Segmentation-Aware Audio Generation. It enables precise control over audio synthesis by conditioning the audio synthesis on visual segmentation masks. For the task, we proposed SAGANet, a generative audio model conditioned on text, video, and video object segmentation masks. Our method incorporates both global and localized visual information using a dedicated control module, allowing the model to focus on specific objects within a video. Our approach significantly improves semantic relevance and temporal alignment, particularly in complex, multi-source scenes where textual or global visual cues fall short.

Furthermore, we presented Segmented Music Solos, a benchmark dataset that supports the development and evaluation of VOS-aware audio generation models. We show that by training our model with single-source videos, our method can generalize to multi-source samples during test time. This work lays the foundation for the development of more controllable and user-friendly Foley models.

Future Work

Future work should address the limitations of the proposed method. This work addresses only audio generation for musical instruments. Future work will therefore focus on building more diverse datasets, and training and evaluating the proposed method on them. Additionally, the current approach focuses on generating audio for a single instrument at a time. Adapting the model to generate audio for multiple selected objects at a time could further clarify its applicability in real-world Foley tasks.