Content-Based Video-Music Retrieval Using Soft Intra-Modal Structure Constraint

Sungeun Hong, Woobin Im, Hyun Suk Yang · DOI

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 perfect soundtrack for a video is a subjective and time-consuming task. Traditionally, retrieval systems rely on metadata—tags like "happy," "fast-paced," or "jazz." However, metadata is expensive to produce, often missing for niche content, and limited by the vocabulary of the person tagging it.

The challenge of "content-based" retrieval is two-fold: the Semantic Gap (mathematically comparing the "rhythm" of a song to the "color" of a video) and Modality Collapse. Standard machine learning techniques often force different types of data into a single embedding space so aggressively that the distinct features making music sound like music and video look like video are lost.

Overview of content-based video-music retrieval, where semantic similarities drive the matching process between visual and auditory streams.

Methodology: The VM-NET Framework

The authors propose VM-NET, a two-branch neural network architecture designed to bridge these gaps without losing modality-specific information.

Architecture

  • Video Branch: Uses a pre-trained Inception network to extract visual features, followed by dimensionality reduction (WPCA) and fully connected layers.
  • Music Branch: Extracts low-level audio features (like Mel-scale spectrograms, Chroma features, and spectral centroid) and passes them through a deeper set of fully connected layers to compensate for the relative simplicity of audio features compared to high-level visual ones.
The VM-NET architecture, illustrating the two-branch processing pipeline and the integration of soft intra-modal structure loss during training.

The "Soft" Innovation

The core contribution is the Soft Intra-Modal Structure Loss. Standard models use an inter-modal ranking loss (triplet loss) to bring matching video-music pairs closer together. VM-NET adds a second constraint: it looks at the relationships within a single modality. If Video A was visually similar to Video B before being processed by the network, the model tries to ensure they remain relatively similar in the final embedding space.

Crucially, this is a "soft" constraint. Unlike image-to-text tasks where one image might have exact captions, the link between music and video is fluid. The authors use a sign function to preserve the relative distance between samples without forcing them into rigid, predefined clusters.

Datasets

Because no large-scale datasets existed for this specific task, the authors created the HIMV-200K (Hong–Im Music–Video 200K) benchmark. It contains 200,500 video-music pairs derived from the YouTube-8M dataset, including official music videos, parodies, and user-generated content. The authors assume that in a music video, the professional producer has already ensured the audio and visuals "match," providing a reliable ground truth for training.

Key Results

The authors evaluated the model using Recall@K (how often the correct match appears in the top K results) and human subjective tests.

  • Quantitative Performance: VM-NET significantly outperformed linear baselines (like PCA or CCA). Using the "soft intra-modal" constraint improved performance over models using only standard ranking loss. For example, in music-to-video retrieval, the full model achieved a Recall@10 of 25.2%, compared to 22.5% without the soft constraint.
  • Qualitative Success: The model successfully matched K-pop videos with K-pop music and "Acoustic" videos with "Acoustic" tracks, even when specific genre labels weren't used during retrieval.
  • Human Preference: In a web-based study, humans preferred the model’s top search results over random matches 73% of the time, approaching the level of preference for the original "ground truth" pairs (81%).

Conclusion

VM-NET demonstrates that content-based retrieval can move beyond manual tags by leveraging raw pixels and waveforms. By preserving modality "flavor" through soft constraints, the system provides a strong semantic baseline for bidirectional retrieval. Future work may explore fully trainable architectures and fine-grained temporal alignment to further bridge the gap between AI and human subjective taste.

Summary updated

BibTeX
@misc{hong2017content,
  author = {Sungeun Hong and Woobin Im and Hyun Suk Yang},
  title = {{Content-Based Video-Music Retrieval Using Soft Intra-Modal Structure Constraint}},
  year = {2017},
  eprint = {1704.06761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.06761},
}
Figure