NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Saying What You're Looking For: Linguistics Meets Video Search

Andrei Barbu, Siddharth Narayanaswamy, Jeffrey Mark Siskind

Abstract

Traditional video search engines often treat natural language queries as a "bag of words," failing to capture the complex compositional semantics that define specific events. This paper introduces a "Sentence Tracker" system that tightly couples natural language processing with computer vision. By representing words as Finite State Machines (FSMs) based on spatial predicates and solving for object tracks and semantic recognition simultaneously within a cross-product lattice, the system uses the query itself to guide and correct noisy visual tracking. Evaluated on 20 hours of unannotated Hollywood movies, the system successfully retrieves highly specific events and distinguishes between queries with identical words but different meanings, such as "The person rode the horse" versus "The horse rode the person."

Searching for specific events in unannotated video is a significant challenge for modern information retrieval. Most current systems rely on text metadata or treat natural language queries as simple keyword sets. For instance, a search for "The person hit the ball" might return results for "The ball hit the person" because the underlying system lacks an understanding of thematic roles and compositional semantics.

Furthermore, the computer vision components required for this task—object detection and tracking—are notoriously unreliable. Detectors frequently fail, and trackers often lose their targets in complex scenes. This research addresses these issues by encoding the full compositional meaning of a sentence and using it to directly bias and guide the visual tracking process, effectively allowing the "top-down" linguistic model to correct "bottom-up" visual errors.

Methodology: Coupling Language and Vision

The core of the system is the integration of linguistic structure with visual evidence through a "Sentence Tracker." Instead of running object detection, tracking, and event recognition sequentially, the system performs them simultaneously.

Predicate and Word FSMs

The authors define 18 basic spatial and motion predicates, such as closing, left-of, and stationary. These are derived from just nine underlying parameters (e.g., far, close, overlap). Words—including verbs, prepositions, and adverbs—are then constructed as regular expressions of these predicates and represented as Finite State Machines (FSMs). This approach allows for extreme parameter sharing; because the underlying parameters are shared across the entire lexicon, the system can learn the semantics of all 15 words using a minimal number of training examples.

Word definitions and Finite State Machines

Parsing and Thematic Roles

A natural language parser maps the thematic roles of a query to specific object tracks. For a complex sentence like "The tall person rode the horse quickly leftward away from the other horse," the system identifies which tracks correspond to the agent, the patient, and the source.

Mapping thematic roles from a complex query to object tracks

The Cross-Product Lattice

The system constructs a massive cross-product lattice that combines the tracker's spatial/motion probabilities with the state transitions of the word FSMs. Using the Viterbi algorithm, the system finds the optimal path through this combined lattice. This joint optimization means the language model actively biases the tracker: if a query specifies a person "running leftward," the tracker is mathematically penalized for selecting bounding boxes that move in any other direction.

Results and Evaluation

The system was evaluated on a corpus of 10 Hollywood western movies (e.g., The Good, the Bad and the Ugly), totaling approximately 20 hours of video split into 37,187 overlapping 3-second clips. To ensure generalizability, object detectors for people and horses were pre-trained on the PASCAL VOC Challenge dataset rather than the test movies.

Across 141 generated natural language queries, the system achieved an average precision of 20.6% for the top 10 clips. It significantly outperformed a baseline built from state-of-the-art independent components. For the query "The person rode the horse," the Sentence Tracker found 9 true positives in its top 10 results, while the baseline found none. Qualitatively, the system successfully distinguished between semantically distinct but lexically identical queries, accurately retrieving different clips for "The person approached the horse" and "The horse approached the person."

Discussion and Future Work

While the Sentence Tracker demonstrates the power of compositional semantics in video search, it has limitations. The current system operates within a restricted grammar and a small 15-word lexicon focused on people and horses. Additionally, the use of overlapping 3-second clips to avoid shot segmentation errors is computationally expensive. Future research will focus on scaling the lexicon, grammar, and object classes to handle open-domain queries across more diverse video genres, and further improving the robustness of the underlying object detectors.

Summary updated

BibTeX
@article{barbu2013saying,
  author = {Andrei Barbu and Siddharth Narayanaswamy and Jeffrey Mark Siskind},
  title = {{Saying What You're Looking For: Linguistics Meets Video Search}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2013},
  doi = {10.1109/tpami.2015.2505297},
}
Figure