Long-Term Rhythmic Video Soundtracker

Jiashuo Yu, Yaohui Wang, Xinyuan Chen, Xiao Sun, Yu Qiao

Abstract

Generating high-quality, rhythmically synchronized musical soundtracks for long-form videos is a complex cross-modal task. We present the Long-Term Rhythmic Video Soundtracker (LORIS), a framework that leverages a latent conditional diffusion model combined with context-aware encoders. LORIS is designed to handle long-form segments (up to 50 seconds) across diverse rhythmic activities, including dance and sports. By treating rhythm as a point process and employing hierarchical conditioning, LORIS significantly outperforms existing symbolic and waveform-based methods in both musical quality and temporal alignment.

Introduction

The task of generating a soundtrack that matches the rhythm of human movement has traditionally been approached through symbolic methods (e.g., MIDI) or raw waveform generation. Symbolic methods, while easy to align, often lack expressive complexity and diverse textures. Conversely, existing waveform methods are typically limited to short clips (2–6 seconds) and struggle with long-term coherence and rhythmic stability over extended durations.

LORIS addresses these limitations by enabling long-term generation for diverse rhythmic activities like figure skating, gymnastics, and dance. It introduces a new large-scale benchmark and a novel diffusion-based architecture to bridge the gap between audio quality and temporal synchronization.

Methodology

LORIS is built upon a Latent Conditional Diffusion Probabilistic Model. By operating in a compressed latent space rather than on raw audio samples, the framework achieves computational efficiency while maintaining high-fidelity output.

Context-Aware Conditioning Encoders

The model utilizes three distinct encoders to capture the "vibe" and "beat" of the input video:

  • Visual Encoder: Employs a pre-trained I3D network followed by a Bi-LSTM to capture long-range temporal dependencies. Ablation studies indicate that the Bi-LSTM is crucial for rhythmic coverage, as global video features alone are insufficient for coherent long-term generation.
  • Rhythm Encoder: Uses a rule-based "Directogram" method to extract motion velocity and direction. A Hawkes Process is applied to these rhythm points to model the temporal influence and decay of rhythmic events. This allows the model to learn the "anticipation" and "after-effect" of movements, leading to superior synchronization.
  • Genre Encoder: A simple linear projection for categorical labels (e.g., "figure skating", "dance").

Hierarchical Conditional Diffusion

Rather than a single fusion step, LORIS uses a serial attention mechanism. It sequentially attends to visual, rhythm, and genre embeddings within the diffusion process. This hierarchical approach allows the model to efficiently handle different temporal resolutions across modalities with lower computational cost than parallel fusion blocks.

The LORIS framework architecture, highlighting the latent diffusion process and hierarchical conditioning blocks.

The LORIS Benchmark

To evaluate long-term rhythmic generation, the authors established the LORIS Dataset, a curated collection of 86.43 hours of paired video and audio. This dataset expands beyond standard dance datasets (like AIST++) to include sports such as floor exercise (FineGym) and figure skating (FisV, FS1000). Crucially, LORIS provides 25-second and 50-second segments, posing a significantly greater challenge for generative stability compared to previous 2-second snippet datasets.

Results and Discussion

LORIS was evaluated against several baselines, including MIDI-based (Foley, CMT) and waveform-based (D2M-GAN, CDCD) models.

Quantitative Performance

On the dancing subset, LORIS achieved a Beats Coverage Score (BCS) of 98.6% and a Beats Hit Score (BHS) of 90.8%, significantly outperforming the next best waveform model, CDCD (89.3% BHS). In user studies, LORIS received a Mean Opinion Score (MOS) of 3.7/5.0, surpassing all baselines in musical quality.

Rhythmic Alignment and Visual Sync

Qualitative analysis demonstrates that LORIS effectively tracks visual rhythm. The generated audio rhythm closely follows the visual rhythm peaks extracted from the video, even in complex sports scenarios where the ground truth music might be slightly offset. Spectrogram analysis further confirms that the model generates diverse and high-quality audio textures appropriate for the specific genre.

Visualization of rhythmic alignment and spectrogram quality across different genres. The generated rhythm (yellow) tracks the visual rhythm (green), and the spectrograms show high-fidelity audio generation.

Conclusion

LORIS represents a significant step forward in long-form rhythmic video soundtracking. By treating rhythm as a point process and utilizing hierarchical latent diffusion, it achieves superior synchronization and audio quality. While currently trained on fixed-length clips, future work will focus on enabling unconstrained, variable-length generation and improving performance on "smooth" videos where rhythmic peaks are less distinct.

Summary updated

BibTeX
@inproceedings{yu2023long,
  author = {Jiashuo Yu and Yaohui Wang and Xinyuan Chen and Xiao Sun and Yu Qiao},
  title = {{Long-Term Rhythmic Video Soundtracker}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=es2ykIhttu},
}
Figure