Video-to-Audio Generation with Hidden Alignment

Manjie Xu, Chenxing Li, Yong Ren, Rilin Chen, Yu Gu, Wei Liang, Dong Yu · DOI

Introduction

The recent explosion in text-to-video generation has transformed content creation, yet the auditory component of these videos is often overlooked. Generating realistic audio from silent video—a task known as Video-to-Audio (VTA)—remains a significant challenge. Success in VTA requires solving two distinct alignment problems: semantic alignment, ensuring the sound matches the visual object (e.g., a guitar sounds like a guitar), and temporal alignment, ensuring the sound occurs precisely when the visual action happens.

Existing models frequently struggle with complex scenes containing multiple objects or fail to pinpoint the exact onset and offset of sound-producing events. To address these issues, we present VTA-LDM, a latent diffusion-based framework designed for high-fidelity, synchronized audio synthesis.

The VTA-LDM Framework

VTA-LDM utilizes the Latent Diffusion Model (LDM) architecture to bridge the gap between visual cues and audio generation. The system operates through several key stages:

  1. Vision Encoding: A pre-trained vision encoder (such as CLIP4Clip) extracts semantic features from the input video frames.
  2. Conditioning: These features are projected into a latent space to serve as guidance for the diffusion process.
  3. Latent Diffusion: A Denoising U-Net iteratively refines a latent representation of an audio mel-spectrogram, conditioned on the visual features.
  4. Audio Synthesis: A Variational Auto-Encoder (VAE) decodes the final latent representation into a mel-spectrogram, which is then converted into audible waveforms using a Hifi-GAN vocoder.
Overview of the VTA-LDM architecture, showing the flow from complex video input to generated audio spectrogram via a latent diffusion process.

The researchers conducted extensive ablation studies, exploring various vision encoders and the impact of auxiliary embeddings, such as textual descriptions and positional encoding, to optimize the model's performance.

Data Strategy and Training

The model was primarily trained on the VGGSound dataset, which includes over 550 hours of video. To enhance its capabilities, the team utilized massive pre-training corpora, including a 10,000-hour video-audio set from YouTube and 150,000 hours of audio from WavCaps.

A critical innovation was the use of "Concat" datasets. By randomly combining different video segments, the researchers forced the model to learn how to handle rapid scene transitions and overlapping audio events. Furthermore, data quality was prioritized by filtering training pairs using alignment scores (e.g., CLAP) to remove noisy or poorly synchronized samples.

Key Insight: Hidden Alignment

One of the most compelling findings of this research is the concept of "Hidden Alignment." Even when the vision encoder remains frozen during training, the diffusion model naturally learns to attend to specific sound-producing regions within the video frames.

Visualization of 'Hidden Alignment' through saliency maps, comparing VTA-LDM (after training) with CLIP-V (before training) across different audio events.

As shown in the saliency maps, the model focuses its "attention" on objects like drum kits or guitar strings at the exact moment they are played. This suggests that semantic features from CLIP-based models are often sufficient for temporal alignment if the generative process is robustly conditioned. Additionally, the inclusion of text prompts acts as a powerful semantic filter, helping the model ignore irrelevant visual movements (like a person talking) to focus on the primary sound source (like an instrument).

Results and Performance

VTA-LDM achieves state-of-the-art results across multiple benchmarks. Quantitatively, it reached a Frechet Audio Distance (FAD) of 2.05, a dramatic improvement over previous baselines like IM2WAV (6.32) and Diff-Foley (7.32). Temporal synchronization, measured via the AV-Align metric, also showed significant gains.

In human subjective evaluations, the "VTA-LDM + Text + Concat" configuration received high marks for both audio quality (86.46) and temporal alignment (79.32), occasionally outperforming ground-truth recordings in specific test scenarios.

Conclusion

VTA-LDM represents a significant step forward in synchronized video-to-audio generation. By combining latent diffusion with strategic data augmentation and semantic conditioning, the model overcomes traditional hurdles in temporal and semantic alignment. While challenges remain—such as the "silent object" problem where the model generates sound for visible but inactive objects—the success of VTA-LDM paves the way for more immersive and automated multimedia content creation.

Summary updated

BibTeX
@misc{xu2024video,
  author = {Manjie Xu and Chenxing Li and Yong Ren and Rilin Chen and Yu Gu and Wei Liang and Dong Yu},
  title = {{Video-to-Audio Generation with Hidden Alignment}},
  year = {2024},
  eprint = {2407.07464},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.07464},
}
Figure