Skip to main content
QUICK REVIEW

[Paper Review] Single-Stage Visual Query Localization in Egocentric Videos

Hanwen Jiang, Santhosh Kumar Ramakrishnan|arXiv (Cornell University)|Jun 15, 2023
Advanced Image and Video Retrieval TechniquesComputer Science6 citations
TL;DR

VQLoC proposes a single-stage, end-to-end trainable framework for visual query localization in egocentric videos by jointly modeling query-to-frame and frame-to-frame spatio-temporal correspondences using a vision transformer backbone and cross-attention mechanisms. It achieves 20% higher accuracy and 10× faster inference than prior multi-stage methods, becoming the top entry on the Ego4D VQ2D challenge leaderboard.

ABSTRACT

Visual Query Localization on long-form egocentric videos requires spatio-temporal search and localization of visually specified objects and is vital to build episodic memory systems. Prior work develops complex multi-stage pipelines that leverage well-established object detection and tracking methods to perform VQL. However, each stage is independently trained and the complexity of the pipeline results in slow inference speeds. We propose VQLoC, a novel single-stage VQL framework that is end-to-end trainable. Our key idea is to first build a holistic understanding of the query-video relationship and then perform spatio-temporal localization in a single shot manner. Specifically, we establish the query-video relationship by jointly considering query-to-frame correspondences between the query and each video frame and frame-to-frame correspondences between nearby video frames. Our experiments demonstrate that our approach outperforms prior VQL methods by 20% accuracy while obtaining a 10x improvement in inference speed. VQLoC is also the top entry on the Ego4D VQ2D challenge leaderboard. Project page: https://hwjiang1510.github.io/VQLoC/

Motivation & Objective

  • Address the limitations of multi-stage visual query localization (VQL) pipelines that rely on independent, non-differentiable stages and suffer from slow inference.
  • Overcome the challenges of open-set object queries, variable object appearance, and long-horizon egocentric videos with complex viewpoints, lighting, and occlusions.
  • Enable accurate and efficient spatio-temporal localization of visually specified objects in long egocentric videos by building a holistic query-video relationship.
  • Develop an end-to-end trainable system that avoids error propagation from frame-level detection and reduces redundant computation from pairwise comparisons.

Proposed method

  • Use a DINO-pretrained Vision Transformer (ViT) backbone to extract image features from both the visual query and each video frame.
  • Establish query-to-frame correspondence via a cross-attention transformer module that matches regions between the query and each video frame.
  • Propagate these correspondences over time using a self-attention transformer module that exploits temporal continuity across nearby video frames.
  • Design a spatio-temporal transformer block with local temporal windows (size 5) to model short-horizon dependencies and avoid long-range modeling issues.
  • Employ a convolutional prediction head with anchor-based regression and a loss function combining BCE with hard negative mining (HNM) to handle class imbalance.
  • Train the entire model end-to-end using a multi-task loss that optimizes for both temporal and spatio-temporal localization accuracy.

Experimental results

Research questions

  • RQ1Can a single-stage, end-to-end framework outperform complex multi-stage pipelines in visual query localization for egocentric videos?
  • RQ2How effective is joint modeling of query-to-frame and frame-to-frame correspondences in improving localization accuracy and inference speed?
  • RQ3What is the optimal design for the spatio-temporal transformer module in terms of local window size and attention mechanism?
  • RQ4How does the choice of loss function and prediction head architecture affect performance in the presence of severe class imbalance?
  • RQ5Can the proposed method generalize to long-horizon egocentric videos with diverse object appearances and challenging visual conditions?

Key findings

  • VQLoC achieves a 20% relative improvement in accuracy over prior state-of-the-art methods, with a tAP@25 of 0.29 and stAP@25 of 0.19 on the Ego4D benchmark.
  • The model achieves a 10× speedup in inference compared to multi-stage baselines, due to eliminating redundant pairwise comparisons and enabling single-shot localization.
  • Using a local temporal window of size 5 (spanning 1 second at 5 FPS) yields the best performance, while global attention degrades results due to long-range dependencies in dynamic egocentric videos.
  • Hard negative mining (HNM) outperforms focal loss in the prediction head, achieving a 47.05% recall and 55.89% success rate, due to reduced noise from hard positives.
  • The ablation study confirms that the spatial transformer (X-TX) with 3 layers and ViT-S14 backbone at 448×448 resolution yields the best performance, with 38.58% recall and 53.12% success rate.
  • The model is robust to backbone size and feature resolution, with ViT-S14 at 448×448 providing the best trade-off between accuracy and computational cost.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.