DiffAVA: Personalized Text-to-Audio Generation with Visual Alignment

Shentong Mo, Jing Shi, Yapeng TianarXiv 2023 · DOI

Abstract

Recent advancements in Text-to-Audio (TTA) generation have enabled the creation of high-fidelity soundscapes from textual descriptions. However, existing models often fail to synchronize generated audio with corresponding visual content, leading to temporal inconsistencies. We present DiffAVA, a framework that achieves personalized TTA generation by aligning text embeddings with temporal visual features. By utilizing a lightweight fusion module and a two-stage alignment process, DiffAVA produces audio that is both contextually relevant and temporally synchronized with video frames.

Introduction

Text-to-Audio (TTA) models, such as AudioLDM, have demonstrated remarkable capabilities in synthesizing realistic audio from simple text prompts. Despite these successes, a significant limitation remains: these models are typically "visually blind." When tasked with generating audio for a video, they often ignore the temporal dynamics of the visual scene. For instance, a prompt like "a train horn blows" might result in a continuous sound even if the train is only visible for a brief moment. This lack of temporal synchronization creates a disjointed user experience.

DiffAVA addresses this by capturing "visual-aligned semantics," ensuring that text prompts are interpreted through the lens of the actual visual events. The core insight is that text prompts are often underspecified; visual context provides the necessary cues for timing and duration.

Methodology

DiffAVA builds upon Latent Diffusion Models (LDMs) and introduces a two-stage approach to integrate visual information without the need for retraining massive foundation models.

1. Visual-aligned CLAP

The first stage involves updating standard text embeddings with temporal visual features. This is achieved through a specialized module consisting of:

  • Multi-head Attention Transformer: This component aggregates information across the video's timeline, identifying key temporal events.
  • Dual Multi-modal Residual Network: This network fuses the aggregated visual features with the original text embeddings.
  • Contrastive Learning: The module is trained using a contrastive objective to ensure the "visual-aligned" text embeddings correspond closely with the actual audio features.

2. Visual-aligned Latent Diffusion

In the second stage, these refined embeddings serve as the conditioning input for a latent diffusion model. To maintain efficiency, DiffAVA keeps the heavy modality-specific encoders (such as X-CLIP for video and CLAP for audio/text) frozen. Only the lightweight alignment modules are fine-tuned, allowing the model to adapt to the visual context with minimal computational overhead.

The architecture of DiffAVA, illustrating the Visual-aligned CLAP and Latent Diffusion stages.

Experiments and Results

The model was evaluated on the AudioCaps dataset, which contains approximately 45,000 audio-text pairs from YouTube.

Quantitative Performance

DiffAVA achieved state-of-the-art results on several key metrics:

  • Inception Score (IS): DiffAVA reached 7.37, significantly outperforming AudioLDM's 6.90, indicating superior audio quality and diversity.
  • KL Divergence: A low score of 1.69 was achieved, suggesting high fidelity relative to ground truth audio.

Qualitative Analysis

Qualitative comparisons highlight DiffAVA's ability to avoid the "constant sound" trap common in baseline models. As shown in the comparison below, for a video of a passing train, DiffAVA correctly modulates the audio volume and timing as the train enters and leaves the frame, whereas standard TTA models often generate a static, continuous sound regardless of the visual movement.

Qualitative comparison between raw audio, AudioLDM, and DiffAVA across different visual contexts.

Conclusion and Future Work

DiffAVA demonstrates that visual alignment is crucial for realistic TTA generation in video contexts. By freezing large encoders and focusing on lightweight alignment, the framework achieves high performance efficiently. Future research will focus on improving the Frechet Audio Distance (FAD) scores and extending the model's capability to handle complex scenes with multiple overlapping auditory and visual events.

Summary updated

BibTeX
@misc{mo2023diffava,
  author = {Shentong Mo and Jing Shi and Yapeng Tian},
  title = {{DiffAVA: Personalized Text-to-Audio Generation with Visual Alignment}},
  year = {2023},
  eprint = {2305.12903},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12903},
}
Figure