RELOCATE: A Simple Training-Free Baseline for Visual Query Localization Using Region-Based Representations
Savya Khosla, Sethuraman T, Alexander Schwing, Derek Hoiem
TL;DR
The paper addresses Visual Query Localization in long, untrimmed videos by introducing Relocate, a training-free baseline that relies on region-based representations to locate the last appearance of a visual query. It employs a stage-wise pipeline—Prepare, Search, Refine, Track, and Reiterate—building object tokens from region masks, matching them to query tokens via cosine similarity, refining candidates with object-centered crops, and tracking the final occurrence, with query expansion to capture appearance variation. Relocate achieves large improvements on Ego4D VQ2D without task-specific training, underscoring the effectiveness of region-based encodings for efficient, open-world localization and enabling reuse of video encodings across multiple queries. The work also provides extensive ablations and design insights, demonstrating robustness to hyperparameters and highlighting practical considerations like computation time and potential speedups.
Abstract
We present RELOCATE, a simple training-free baseline designed to perform the challenging task of visual query localization in long videos. To eliminate the need for task-specific training and efficiently handle long videos, RELOCATE leverages a region-based representation derived from pretrained vision models. At a high level, it follows the classic object localization approach: (1) identify all objects in each video frame, (2) compare the objects with the given query and select the most similar ones, and (3) perform bidirectional tracking to get a spatio-temporal response. However, we propose some key enhancements to handle small objects, cluttered scenes, partial visibility, and varying appearances. Notably, we refine the selected objects for accurate localization and generate additional visual queries to capture visual variations. We evaluate RELOCATE on the challenging Ego4D Visual Query 2D Localization dataset, establishing a new baseline that outperforms prior task-specific methods by 49% (relative improvement) in spatio-temporal average precision.
