Negative Frames Matter in Egocentric Visual Query 2D Localization

Mengmeng Xu, Cheng-Yang Fu, Yanghao Li, Bernard Ghanem, Juan-Manuel Pérez-Rúa, Tao XiangarXiv 2022 · DOI

TL;DR

This paper tackles the challenge of finding past instances of an object in egocentric videos using a visual query. They significantly speed up training and evaluation by optimizing the process and, crucially, improve accuracy by training the object detector with "negative frames" (frames without the target object), which reduces false positives and leads to a top-ranked performance.

What Problem Does This Paper Address?

The task of Visual Queries 2D Localization (VQ2D) in egocentric videos is about retrieving objects from episodic memory. Imagine you're wearing a camera and want to find your keys. You show the system a picture of your keys (the "query crop"), and it needs to find where and when you last saw them in the video footage. This is challenging because egocentric videos are often noisy, blurry, and contain many background frames that don't have the target object. The existing baseline methods struggled with two main issues: inefficient training due to redundant computations on repetitive data, and a high rate of false positives on background frames, which is a significant problem for localization accuracy.

Methods

The authors build upon a three-stage baseline that involves detecting similar objects across frames and then tracking the most confident detection. Their improvements focus on two key areas:

  1. Accelerated Training and Evaluation: They refactored the training and evaluation code to enable parallel computing, drastically reducing the time needed. They also explored new training parameters and learning rate schedules to optimize the training process for the object detector.
  2. Training with Negative Frames: This is the core novelty. They identified a "distribution gap" where the detector was trained on clean, labeled frames but evaluated on noisy, unlabeled egocentric video frames. To bridge this gap, they introduced "negative frames" into the training process. These are frames that do not contain the query object. By training the detector to correctly ignore these negative frames, they significantly reduce false positives, which is crucial for accurate localization. They also incorporated hard-negative mining to select the most challenging negative examples.

Datasets

The primary dataset used is Ego4D, a large-scale dataset for first-person visual perception. The task specifically is the Visual Queries 2D Localization (VQ2D) challenge within Ego4D.

Key Insights and Ideas

  • Negative frames are critical: The most significant insight is that simply training on frames containing the target object isn't enough. The model needs to learn to reject frames that don't contain the object, especially in the noisy context of egocentric videos.
  • Training efficiency matters: The dramatic reduction in training and evaluation time (from days to hours) is not just a practical improvement; it enables faster iteration and experimentation for researchers.
  • Distribution gap is a major hurdle: The difference between clean training data and real-world egocentric video data is a key reason for performance limitations. Addressing this gap through methods like negative frame training is essential.
  • False positives are the main enemy: While the model might not miss many objects (low false negatives), a high rate of false positives on background frames leads to incorrect localization and a poor overall score.

Key Results

  • Speedup: Training time reduced from approximately 15 days to less than 24 hours. Evaluation time reduced to around 12 hours.
  • Accuracy Improvement: Achieved 0.17% spatial-temporal AP (stAP), which is a 31% improvement over the baseline.
  • Top Ranking: Their solution achieved the first ranking on the public leaderboard for the VQ2D challenge.
  • Backbone Optimization: Optimizing the visual backbone detector with egocentric data also contributed to improved performance.

Limitations and Future Work

  • False Positives on Similar Appearances: The paper acknowledges that the detector still struggles with objects that have visually similar appearances but different semantics, leading to false positives.
  • Ambiguous Queries and Blurry Frames: The model can still be fooled by ambiguous queries (when the object is missing) or blurry frames, indicating room for improvement in robustness.
  • Further Technical Exploration: The authors suggest that more technical work can be explored to better tackle the problem of false positives, particularly in challenging scenarios. They also highlight the need for further investigation into the nature of false positives on negative frames.

Summary updated

BibTeX
@misc{xu2022negative,
  author = {Mengmeng Xu and Cheng-Yang Fu and Yanghao Li and Bernard Ghanem and Juan-Manuel Pérez-Rúa and Tao Xiang},
  title = {{Negative Frames Matter in Egocentric Visual Query 2D Localization}},
  year = {2022},
  eprint = {2208.01949},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.01949},
}
Figure