Introduction
Generating realistic, synchronized audio for silent videos—a process known as "Foley"—is a long-standing challenge in computer vision and graphics. While existing methods can produce simple sound effects like footsteps or splashes, generating expressive, polyphonic music remains difficult. Music is highly structured and depends on precise physical interactions, such as the specific finger placement on a piano or the bowing technique of a cellist. Traditional end-to-end approaches that map raw pixels directly to audio waveforms often fail to capture these nuances, resulting in disorganized or unmusical sounds.
Methodology: Bridging the Gap with Intermediate Representations
The core innovation of "Foley Music" is the use of structured intermediate representations to bridge the visual and auditory domains. Instead of processing high-dimensional raw data, the system focuses on the physical mechanics of music performance.
Visual and Auditory Structures
The framework utilizes two key intermediate steps:
- Visual (Body Motions): Using pose estimation (OpenPose), the system extracts 2D coordinates of the musician's body joints and fingers. This filters out irrelevant background information and focuses the model on the movements that actually produce sound.
- Audio (MIDI): Rather than predicting a complex audio waveform, the model generates Musical Instrument Digital Interface (MIDI) events. MIDI encodes discrete notes, timing, and velocity, providing a symbolic language that inherently respects musical rules.
The Graph-Transformer Architecture
To map these representations, the authors introduce a novel Graph-Transformer framework:
- Visual Encoder (ST-GCN): A Spatial-Temporal Graph Convolutional Network processes the skeleton coordinates over time, capturing the dynamics of the musician's gestures.
- MIDI Decoder (Transformer): An autoregressive Transformer decoder takes the encoded pose features and predicts a sequence of MIDI events. The self-attention mechanism is particularly effective at capturing long-term musical dependencies and polyphonic structures.
- Synthesis: Finally, the predicted MIDI is converted into a realistic audio waveform using a standard software synthesizer.
Key Insights
A critical finding of the study is the importance of fine-grained visual data. Ablation studies demonstrated that including hand and finger keypoints significantly improves the accuracy of the generated music compared to using body keypoints alone. Furthermore, because the output is MIDI, the generated music is fully editable; users can change the tempo, transpose the key, or even swap the instrument sound after generation.
Evaluation and Results
The model was evaluated on datasets including URMP, AtinPiano, and MUSIC, covering nine different instruments.
- Human Preference: In forced-choice evaluations, human listeners preferred Foley Music over state-of-the-art baselines (such as SampleRNN and WaveNet) between 56% and 72% of the time.
- Turing Test: When asked to distinguish between real and generated audio, Foley Music fooled listeners 38% of the time, a significant improvement over the 8-12% achieved by previous baselines.
- Diversity: Using the Number of Statistically-Different Bins (NDB) metric, Foley Music achieved a score of 20 (lower is better), outperforming baselines that scored between 25 and 33.
Conclusion and Future Work
Foley Music demonstrates that intermediate representations are a powerful tool for complex cross-modal generation tasks. By focusing on the physical and symbolic structures of music, the system produces highly expressive and synchronized results. Currently, the system relies on a hardcoded synthesizer for the final audio output. Future iterations could integrate a neural music synthesizer (like a MIDI-conditioned WaveNet) to enable end-to-end training and capture more nuanced, instrument-specific timbres.
Summary updated