MDSGen: Fast and Efficient Masked Diffusion Temporal-Aware Transformers for Open-Domain Sound Generation

Trung X. Pham, Tri Ton, Chang D. Yoo · DOI

Introduction

Generating realistic, synchronized audio for silent video—a task known as Video-to-Audio (V2A) generation—presents a dual challenge: semantic alignment and temporal synchronization. The generated sound must not only match the visual context (e.g., a dog barking rather than a car honking) but must also align precisely with visual events (e.g., the bark occurring exactly as the dog's mouth opens).

Current state-of-the-art (SOTA) models, such as Diff-Foley, typically rely on massive U-Net architectures and heavy pre-trained diffusion backbones. While effective, these models are computationally expensive and slow. A primary inefficiency identified by the authors is the high redundancy in video frames—often exceeding 90% similarity—which leads to wasted computation and potential overfitting when fed directly into large models. MDSGen addresses these issues by introducing a lightweight, transformer-based framework that shrinks model size by up to 172x while simultaneously improving accuracy.

Methodology: The MDSGen Framework

MDSGen departs from traditional U-Net structures, employing a Denoising Masked Diffusion Transformer (MDT). The architecture is built around two core innovations designed to handle visual redundancy and improve temporal coherence.

The MDSGen architecture, featuring the Reducer module for visual feature condensation and the Masked Temporal-Aware Network.

The Reducer Module

To combat the "redundancy trap" of video data, MDSGen utilizes a Reducer module. Instead of processing every individual frame feature through the diffusion backbone, this learnable module (comprising an MLP and 1x1 Convolution) condenses 32 video frame features into a single, high-fidelity representation. This bottleneck effectively distills essential visual information while filtering out temporal noise, leading to a more efficient signal for the diffusion process.

Temporal-Aware Masking (TAM)

While standard masked transformers often use random spatial masking (hiding patches of an image), audio is inherently a time-series signal. MDSGen introduces Temporal-Aware Masking (TAM), which masks entire sets of tokens along the temporal dimension during the training phase. This strategy forces the model to develop a robust "temporal sense," significantly enhancing its ability to synchronize generated sounds with visual cues.

The framework also incorporates Classifier-Free Guidance (CFG) optimized for audio and leverages the 'G' (Green) channel of standard image-based VAEs, which the authors found provides the most suitable statistical distribution for reconstructing high-quality mel-spectrograms.

Experimental Results

The models were rigorously evaluated on the VGGSound benchmark (~175k training pairs) and the Flickr-SoundNet dataset to test generalization.

Comparison of Alignment Accuracy vs. Model Size. MDSGen (Ours) achieves superior performance with significantly fewer parameters.

Performance and Efficiency

The results demonstrate that efficiency does not require a compromise in quality. The smallest variant, MDSGen-T (5M parameters), achieved an alignment accuracy of 97.9%, outperforming the 860M parameter Diff-Foley (93.9%). The larger MDSGen-B (131M parameters) reached nearly 99% alignment accuracy.

Key metrics include:

  • Speed: MDSGen-T is 36x faster at inference than previous SOTA models, requiring only 0.01s per sample on an A100 GPU.
  • Resource Footprint: The model uses 172x fewer parameters and 371% less memory than Diff-Foley.
  • Human Evaluation: Subjective tests confirmed that human listeners prefer MDSGen's output for both its audio fidelity and its precise synchronization with the video.

Discussion and Future Work

The success of MDSGen suggests that for V2A tasks, architectural efficiency and strategic data bottlenecking are more critical than raw parameter count. By treating audio as a temporal-first signal and stripping away visual redundancy, MDSGen achieves professional-grade results on consumer-grade hardware.

However, limitations remain. The model currently uses a multi-step diffusion process, which is slower than single-step methods like GANs, and is restricted to a fixed video length of 8.2 seconds. Future research will explore integrating single-step diffusion techniques, utilizing 1D VAEs for more efficient audio representation, and adapting the framework for variable-length videos and complex multi-source environments.

Summary updated

BibTeX
@inproceedings{pham2025mdsgen,
  author = {Trung X. Pham and Tri Ton and Chang D. Yoo},
  title = {{MDSGen: Fast and Efficient Masked Diffusion Temporal-Aware Transformers for Open-Domain Sound Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=yFEqYwgttJ},
}
Figure