Fast Automatic Video Retrieval using Web Images

Xintong Han, Bharat Singh, Vlad I. Morariu, Larry S. DavisarXiv 2015

Abstract

VRFP is a real-time video retrieval framework based on short text input queries, which obtains weakly labeled training images from the web after the query is known. The retrieved web images representing the query and each database video are treated as unordered collections of images, and each collection is represented using a single Fisher Vector built on CNN features. Our experiments show that a Fisher Vector is robust to noise present in web images and compares favorably in terms of accuracy to other standard representations. While a Fisher Vector can be constructed efficiently for a new query, matching against the test set is slow due to its high dimensionality. To perform matching in real-time, we present a lossless algorithm that accelerates the inner product computation between high dimensional Fisher Vectors. We prove that the expected number of multiplications required decreases quadratically with the sparsity of Fisher Vectors. We are not only able to construct and apply query models in real-time, but with the help of a simple re-ranking scheme, we also outperform state-of-the-art automatic retrieval methods by a significant margin on TRECVID MED13 (3.5%), MED14 (1.3%) and CCV datasets (5.2%).

Introduction

As personal media libraries grow into the thousands of videos, searching for specific content becomes a "needle in a haystack" problem because most videos lack labels. Existing solutions generally fall into two camps: zero-shot learning, which relies on pre-defined concept banks, and on-the-fly retrieval, which collects training data after a query is known. While on-the-fly retrieval is more flexible, it is traditionally too slow for real-time use. VRFP (Video Retrieval via Fast Fisher Vector Products) bridges this gap, enabling real-time video searching using arbitrary text queries without pre-defined concepts.

System Architecture

The VRFP pipeline is divided into online retrieval and offline feature extraction stages. When a user enters a query (e.g., "getting a vehicle unstuck"), the system automatically downloads approximately 700 images from the web. These images, along with database video frames, are processed through a CNN to extract features, which are then encoded into a single, high-dimensional Fisher Vector (FV).

The VRFP pipeline showing online retrieval from text queries and offline feature extraction from database videos.

The core algorithmic contribution is the Fast Fisher Vector Products (FFP) algorithm. High-dimensional FVs are typically slow to match, but the authors observed that these vectors are naturally sparse (often 90% zeros). FFP is a lossless algorithm where the number of multiplications required for an inner product decreases quadratically with the sparsity of the vectors, enabling matching in milliseconds.

Robustness to Web Noise

A significant challenge in on-the-fly retrieval is the "noise" or irrelevant images returned by web searches. A key insight of this work is that Fisher Vectors are remarkably robust to this noise compared to other standard representations like VLAD or SVMs.

Comparison of mAP across different representations as the percentage of web images used increases.

As shown in the evaluation, while SVM performance may drop or plateau as more potentially noisy web images are added, the Fisher Vector representation continues to improve, effectively capturing the characteristics of the entire collection even with imperfect training data.

Experimental Results

The framework was evaluated on three major benchmarks for unconstrained internet video retrieval: TRECVID MED13, TRECVID MED14, and Columbia Consumer Videos (CCV).

  • Accuracy: VRFP outperformed state-of-the-art automatic retrieval methods on all three datasets, achieving a Mean Average Precision (mAP) of 16.4% on MED13, 9.7% on MED14, and 40.8% on CCV.
  • Speed: The FFP algorithm provides a 66x speedup over naive matrix multiplication and a 6x speedup over standard sparse matrix multiplication.
  • Real-time Performance: The entire process—from downloading web images to ranking 100,000 videos—takes less than one second on a single-core CPU.

Conclusion

VRFP demonstrates that high-dimensional Fisher Vectors, combined with an efficient matching algorithm, can provide a flexible and real-time solution for unconstrained video retrieval. While performance is currently tied to web search quality, the system's robustness to noise and quadratic speedup in matching represent a significant step forward for on-the-fly search engines.

Summary updated

BibTeX
@misc{han2015fast,
  author = {Xintong Han and Bharat Singh and Vlad I. Morariu and Larry S. Davis},
  title = {{Fast Automatic Video Retrieval using Web Images}},
  year = {2015},
  eprint = {1512.03384},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.03384},
}
Figure