Dual Encoding for Zero-Example Video Retrieval.

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

TL;DR

This paper introduces a dual deep encoding network that achieves state-of-the-art results in zero-example video retrieval by mapping both videos and text queries into a shared semantic space. Unlike traditional methods that rely on a fixed bank of pre-defined visual concepts (like "dog" or "car"), this approach uses a multi-level hierarchy—capturing global, temporal, and local patterns—to represent the rich, sequential nature of both modalities.

What Problem Does This Paper Address?

Imagine searching for a video using a specific sentence: "Someone is making a special fruit punch by adding different types of fruits in a glass bowl."

In zero-example video retrieval, you have no "query video" to show the system; you only have text. The traditional way to solve this is "concept-based" retrieval: the system detects objects (fruits, bowl) and actions (adding) in the video and tries to match them to the words in your query.

However, this approach has a "vocabulary problem." If your query uses a word the system wasn't trained to recognize, or if the temporal order of actions matters (e.g., "putting a bowl in a box" vs. "putting a box in a bowl"), concept-based systems often fail. The authors aim to move toward a concept-free paradigm that learns dense, powerful representations of videos and sentences directly, without needing an intermediate "dictionary" of labels.

Methods

The core innovation is the Dual Encoding Network. The authors argue that to match a video to a sentence, you must first encode each into a representation that captures information at multiple scales. They apply a nearly identical three-level encoding process to both the video frames and the query words:

  1. Level 1: Global Encoding (Mean Pooling): This captures the "gist" of the content. For videos, it averages frame features; for text, it averages word embeddings (essentially a Bag-of-Words approach).
  2. Level 2: Temporal-Aware Encoding (biGRU): Videos and sentences are sequences. The authors use a Bidirectional Gated Recurrent Unit (biGRU) to model how the content evolves over time (or across a sentence), capturing the "storyline."
  3. Level 3: Local-Enhanced Encoding (biGRU-CNN): To catch subtle, local patterns that distinguish similar videos, they apply 1D convolutional filters on top of the biGRU output. This helps the model focus on short-term transitions and specific local interactions.

Finally, these multi-level features are concatenated and projected into a Common Space using an improved marginal ranking loss (VSE++). This ensures that a video and its corresponding description are pulled together in the mathematical space, while unrelated pairs are pushed apart.

Datasets

The authors evaluated their model on several heavy-hitting benchmarks:

  • MSR-VTT: 10,000 web video clips with 200,000 natural language descriptions.
  • TRECVID 2016 & 2017 (Ad-hoc Video Search): The "gold standard" for this field, featuring thousands of hours of Internet Archive videos.
  • MSVD & MPII-MD: Used to test how well the model generalizes across different types of video (e.g., YouTube clips vs. movie snippets).
  • Flickr30k & MS-COCO: Used to show that their text-side encoding also improves standard image-text retrieval.

Key Insights and Ideas

  • Symmetry is Powerful: By treating video and text with the same hierarchical architecture, the model learns to align "global video gist" with "global sentence gist," "temporal flow" with "sentence structure," and so on.
  • The "Aha!" Moment for Multi-Leveling: The ablation studies showed that each level adds unique value. Mean pooling is great for simple queries, but the biGRU-CNN is what allows the model to answer complex, specific queries where the order of events matters.
  • Concept-Free > Concept-Based: The model outperformed the top finishers of the TRECVID challenges, most of whom used massive banks of 50,000+ pre-trained concept classifiers. This suggests that direct semantic embedding is more flexible and scalable than trying to label everything in the world.
  • Efficiency: Because the video encoding can be done offline, the system is incredibly fast at query time. It can search through 335,000 video shots in just 0.14 seconds on a single GPU.

Key Results

  • MSR-VTT: The Dual Encoding model achieved a "Sum of Recalls" of 148.6, significantly higher than the previous best of 121.7.
  • TRECVID 2017: It reached an inferred Average Precision (infAP) of 0.208, outperforming the best single-model concept-based systems (0.150) and even ensembles of ten different models (0.206).
  • Cross-Dataset Generalization: The model trained on MSR-VTT performed remarkably well on MSVD and MPII-MD without any fine-tuning, proving it isn't just "memorizing" one specific dataset.

Limitations and Future Work

While the paper describes the method as "concept-free," the video side still relies on frame-level features extracted by a CNN pre-trained on ImageNet. Thus, it still inherits some "knowledge" of concepts from that pre-training.

The authors suggest that this dual encoding architecture isn't just for retrieval; it could be a foundational building block for Video Question Answering (VideoQA), where the system must understand the nuances of a video to answer specific natural language questions. Future work could also involve replacing the 2D CNN frame features with 3D CNNs (like C3D or I3D) to better capture motion-based features directly from the start.

Summary updated

Abstract

This paper attacks the challenging problem of zero-example video retrieval. In such a retrieval paradigm, an end user searches for unlabeled videos by ad-hoc queries described in natural language text with no visual example provided. Given videos as sequences of frames and queries as sequences of words, an effective sequence-to-sequence cross-modal matching is required. The majority of existing methods are concept based, extracting relevant concepts from queries and videos and accordingly establishing associations between the two modalities. In contrast, this paper takes a concept-free approach, proposing a dual deep encoding network that encodes videos and queries into powerful dense representations of their own. Dual encoding is conceptually simple, practically effective and end-to-end. As experiments on three benchmarks, i.e. MSR-VTT, TRECVID 2016 and 2017 Ad-hoc Video Search show, the proposed solution establishes a new state-of-the-art for zero-example video retrieval.
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