Dual Encoding for Zero-Example Video Retrieval

Jianfeng Dong, Xirong Li, Chaoxi Xu, Shouling Ji, Yuan He, Gang Yang, Xun Wang

Abstract

This paper presents a concept-free dual encoding network designed for zero-example video retrieval. By mapping both videos and natural language queries into a shared dense embedding space using a symmetrical, three-level hierarchy (Global, Temporal, and Local), the model captures rich semantic and sequential information. Experimental results on benchmarks like TRECVID and MSR-VTT demonstrate state-of-the-art performance without the need for pre-defined concept classifiers.

Introduction

Zero-example video retrieval involves searching for videos using natural language queries without any visual starting point. Traditional methods often rely on "concept-based" approaches, which detect a fixed set of visual concepts (e.g., "dog", "running") and match them to keywords. However, these methods suffer from two major flaws: a vocabulary bottleneck, where the system fails on terms outside its pre-defined set, and temporal blindness, where the model struggles to understand the specific order of events.

To address these limitations, this paper proposes a concept-free approach that represents both videos and sentences as dense vectors in a common space, preserving the rich, sequential context of both modalities.

Dual Encoding Architecture

The core of the proposed system is the Dual Encoding network. Unlike previous models that treat video and text as fundamentally different data types, this architecture applies a nearly identical three-level encoding strategy to both.

The Dual Encoding architecture uses a symmetrical three-level hierarchy for both video frames and sentence queries to learn a shared embedding space.

The hierarchy consists of:

  1. Level 1: Global Encoding: Uses mean pooling to capture the overall context (Bag-of-Words for text, average frame features for video).
  2. Level 2: Temporal-Aware Encoding: Employs a Bidirectional Gated Recurrent Unit (biGRU) to model the flow of time in videos and the structural dependencies in sentences.
  3. Level 3: Local-Enhanced Encoding: Adds a 1D Convolutional Neural Network (CNN) on top of the biGRU to detect local patterns, such as short action sub-sequences or specific descriptive phrases.

The resulting vectors from these three levels are concatenated and mapped into a shared mathematical space using Common Space Learning, ensuring that semantically related video-text pairs are positioned closely together.

Key Insights and Results

The success of the model highlights the power of symmetry and hierarchy in cross-modal learning. By treating sequences of frames and words identically, the model learns more compatible representations. Ablation studies confirmed that each level of the hierarchy is essential for high-precision retrieval.

Ablation study showing how incorporating both query and video multi-level encoding significantly improves the rank of relevant items.

As shown in the figure above, using multi-level encoding for both the query and the video leads to a dramatic improvement in retrieval accuracy, bringing the rank of relevant items from 23 down to 1.

Key performance metrics include:

  • State-of-the-Art Performance: On TRECVID 2017 AVS, the model achieved an infAP of 0.208, significantly outperforming previous concept-based baselines.
  • MSR-VTT Gains: The system reached a Sum of Recalls of 148.6, a substantial jump over the previous best of 121.7.
  • Efficiency: The system is highly scalable; once videos are pre-encoded, it can search through 335,000 shots in just 0.14 seconds on a standard GPU.

Conclusion and Future Work

The Dual Encoding model demonstrates that a concept-free, hierarchical approach is superior for handling the complex, ad-hoc queries used in real-world video search. While the model currently struggles with some fine-grained spatial relationships (e.g., distinguishing if a person is inside or outside a vehicle), its flexible architecture is compatible with various loss functions and could be extended to tasks like Video Question Answering (VideoQA).

Summary updated

BibTeX
@inproceedings{dong2019dual,
  author = {Jianfeng Dong and Xirong Li and Chaoxi Xu and Shouling Ji and Yuan He and Gang Yang and Xun Wang},
  title = {{Dual Encoding for Zero-Example Video Retrieval}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00957},
}
Figure