TL;DR
FoleyGRAM introduces a novel video-to-audio generation framework that achieves state-of-the-art semantic coherence by jointly aligning video, text, and audio embeddings using the Gramian Representation Alignment Measure (GRAM). Combined with a latent diffusion model and ControlNet-based temporal conditioning, it synthesizes high-quality, professional-grade 44.1 kHz stereo audio that accurately matches both the meaning and timing of visual events.
What Problem Does This Paper Address?
The video-to-audio (V2A) generation task aims to automatically create realistic sound effects (Foley) for silent videos. To do this successfully, a model must master two things: temporal alignment (making sure the sound happens exactly when an action occurs on screen) and semantic coherence (making sure a wooden stick hitting a plastic bucket actually sounds like wood hitting plastic, not metal hitting glass).
While recent models have made strides in timing, they frequently stumble on semantics. Existing methods typically rely on separate, independently trained encoders for different modalities, or they use pairwise contrastive learning (like CLIP or ImageBind) to align everything to a single "anchor" modality. For example, text and audio might both be aligned to video, but they are never directly aligned to each other. This creates geometric misalignments in the latent space, leading to generated audio that poorly reflects the true multi-modal context of the scene.
Methods
FoleyGRAM tackles the semantic misalignment problem by introducing a unified multi-modal latent space and combining it with a powerful latent diffusion backbone.
1. GRAM Alignment
Instead of relying on traditional pairwise cosine similarities, the authors utilize the Gramian Representation Alignment Measure (GRAM). This technique treats the embedding vectors from three distinct encoders—EVAClip-ViT-G (video), BERT-B (text), and BEATs (audio)—as the edges of a high-dimensional parallelotope.
By minimizing the volume of this parallelotope during training via a specialized contrastive loss, GRAM forces all three modalities into a single, geometrically unified latent space where cross-modal concepts are perfectly aligned.
2. Audio Synthesis and ControlNet
The core generative engine is built on Stable Audio Open, a state-of-the-art latent diffusion model (LDM) that natively produces high-definition, 44.1 kHz stereo audio. FoleyGRAM introduces two conditioning pathways:
- Semantic Control: The unified, GRAM-aligned multi-modal embeddings are injected into the diffusion process via cross-attention mechanisms.
- Temporal Control: To handle timing, the model extracts the Root Mean Square (RMS) waveform envelope from the audio. This envelope acts as a coarse temporal guide and is processed through a ControlNet-inspired architecture to modulate the diffusion model's internal layers.
Datasets
The model was trained and evaluated on the Greatest Hits dataset, a widely accepted benchmark for V2A synthesis.
- It consists of 977 video clips of human hands using a drumstick to strike or rub various materials (e.g., wood, metal, plastic, cloth, water, grass).
- To provide the text modality required by GRAM, the authors generated textual prompts using metadata templates (e.g., "A person hit multiple times on metal with a wooden stick").
- The dataset was split into 732 videos for training, 49 for validation, and 196 for testing.
Key Insights and Ideas
- Pairwise Alignment Leaves Gaps: Standard contrastive learning frameworks do not guarantee that unanchored modalities align with each other. Jointly optimizing the volume of the multi-modality embedding space ensures true collective geometric alignment.
- The Power of Three: Ablation studies revealed that conditioning the model on all three modalities simultaneously (Audio-Video-Text) yields significantly better results than using any single modality or pair. The unified latent space allows the model to extract complementary semantic cues from text and video together.
- Lightweight and Efficient: Despite its high performance, FoleyGRAM is remarkably efficient. It requires only about six hours of training data and a limited number of optimization steps to achieve state-of-the-art results.
Key Results
FoleyGRAM significantly outperformed existing state-of-the-art baselines (including Diff-Foley, SyncFusion, and Video-Foley) across all major objective metrics:
- Fréchet Audio Distance (FAD-LC): FoleyGRAM achieved a score of 0.0720, vastly outperforming Diff-Foley (0.4690) and Video-Foley (0.1671), indicating superior audio quality and realism.
- CLAP Score: It achieved a score of 0.7083, demonstrating tighter semantic correlation between the generated audio and the ground truth.
- High-Definition Output: Unlike older models that generate 16 kHz mono audio, FoleyGRAM delivers production-ready 44.1 kHz stereo audio.
Limitations and Future Work
The primary limitation acknowledged by the authors is that the temporal alignment mechanism relies on an envelope extracted directly from the ground-truth audio during inference. While this design choice allowed the researchers to isolate and perfect the semantic alignment aspect of the model, a fully autonomous V2A pipeline cannot rely on ground-truth audio at test time.
Future work will focus on developing methods to automatically predict these precise temporal envelopes or onset tracks directly from visual features (like optical flow) to make the inference process entirely independent of the target audio.
Summary updated