Deep Learning for Content-Based, Cross-Modal Retrieval of Videos and Music

Sungeun Hong, Woobin Im, Hyun Seung Yang

Abstract

Up to now, only limited research has been conducted on cross-modal retrieval of suitable music for a specified video or vice versa. Moreover, much of the existing research relies on metadata such as keywords, tags, or associated description that must be individually produced and attached posterior. This paper introduces a new content-based, cross-modal retrieval method for video and music that is implemented through deep neural networks. We train the network via inter-modal ranking loss such that videos and music with similar semantics end up close together in the embedding space. However, if only the inter-modal ranking constraint is used for embedding, modality-specific characteristics can be lost. To address this problem, we propose a novel soft intra-modal structure loss that leverages the relative distance relationship between intra-modal samples before embedding. We also introduce reasonable quantitative and qualitative experimental protocols to solve the lack of standard protocols for less-mature video-music related tasks. Finally, we construct a large-scale 200K video-music pair benchmark.

Introduction

Finding the "right" music for a video (or vice versa) usually depends on metadata—keywords, genres, or mood tags. However, metadata is often sparse, manually intensive to create, and fails to capture the nuanced "feel" of the content. Cross-modal retrieval—mapping two different types of data into a single "embedding space" where similar items sit close together—is the standard solution. The challenge is that while we want a video and its soundtrack to be close together, we don't want to lose the distinct internal relationships within each modality. If you force music to look too much like video in a mathematical sense, you might lose the very features (like tempo or texture) that make them meaningful.

The VM-NET Framework

The authors propose VM-NET, a two-branch neural network architecture designed for bidirectional, content-based retrieval between video and music without relying on manual tags or metadata.

The VM-NET architecture consists of two branches for music and video streams, incorporating feature extraction and a dual-loss embedding network.

Feature Extraction

  • Video Stream: Uses a pre-trained Inception network to extract visual features, followed by dimensionality reduction (WPCA) and statistical aggregation (mean, variance, etc.).
  • Music Stream: Extracts low-level audio features (spectral centroid, MFCCs, Chroma features) and aggregates them into "music-level" vectors.

The Embedding Network and Dual Loss

Two separate branches of fully connected layers process these features into a shared embedding space. The training is guided by two primary loss functions:

  1. Inter-modal Ranking Loss: A standard triplet loss that pushes matching video-music pairs together and pulls non-matching pairs apart.
  2. Soft Intra-modal Structure Loss: This novel constraint ensures that if two pieces of music were similar before being processed by the network, they remain relatively similar after. It uses relative distance rather than a hard distance margin, allowing for greater model flexibility.

Dataset: HIMV-200K

To address the lack of high-quality data, the researchers created the HIMV-200K (Hong–Im Music–Video 200K) dataset. It contains 200,500 video-music pairs derived from the YouTube-8M dataset. Unlike previous datasets focused solely on official music videos, HIMV-200K includes parodies and user-generated content, providing a robust real-world benchmark.

Key Insights: Preserving Modality Identity

The core innovation of VM-NET is the realization that cross-modal alignment is a balancing act. If you only optimize for matching (inter-modal), you risk "collapsing" the internal structure of the individual modalities.

Visualization of the embedding space before and after learning, showing how the soft intra-modal structure loss preserves relative distances within each modality.

The soft constraint acts as a regularizer that keeps the music sounding like music and the video looking like video. By using a sign function in their loss calculation, the authors focus on the order of similarity rather than absolute distance values, which is more appropriate for subjective data like "matching" music and video.

Experimental Results

VM-NET significantly outperformed linear baselines like CCA and PCA. Adding the "soft intra-modal" constraint improved the Music-to-Video Recall@10 from 22.5% to 25.2% and Recall@25 from 32.6% to 37.9%.

In web-based human preference tests, users preferred the ground truth match over a random one ~82% of the time. When comparing ground truth to the model's search results, the preference for ground truth dropped to ~65%, suggesting the model's suggestions were often high-quality enough to be competitive with the original pairings.

Conclusion and Future Work

While VM-NET represents a significant step forward, several avenues for improvement remain. The current model uses pre-extracted features; a fully "end-to-end" architecture processing raw pixels and waveforms could further improve performance. Additionally, the current model aggregates features over the whole video/track, lacking fine-grained temporal alignment (e.g., matching a beat drop to a specific visual event). Future work could also explore more complex psychological models to better define the subjective nature of "matching" content.

Summary updated

BibTeX
@misc{hong2017deep,
  author = {Sungeun Hong and Woobin Im and Hyun Seung Yang},
  title = {{Deep Learning for Content-Based, Cross-Modal Retrieval of Videos and Music}},
  year = {2017},
  eprint = {1704.06761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.06761},
}
Figure