NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory

Santhosh Kumar Ramakrishnan, Ziad Al-Halah, Kristen Grauman · DOI

Abstract

Searching long egocentric videos with natural language queries (NLQ) has compelling applications in augmented reality and robotics. However, the structured nature of the learning problem and its "needle-in-a-haystack" nature makes it technically challenging and expensive to supervise. We introduce Narrations-as-Queries (NaQ), a data augmentation strategy that transforms standard video-text narrations into training data for a video query localization model. NaQ improves multiple top models by substantial margins, doubling their accuracy and achieving state-of-the-art results on the Ego4D NLQ challenge. We also demonstrate zero-shot capabilities and improved performance on queries about long-tail object categories.

The Challenge of Episodic Memory

Imagine wearing augmented reality (AR) glasses throughout the day. If you lose your keys, you might ask, "Where did I last see my keys?" For an AI to answer, it must search through hours of "episodic memory"—your past video data—to find a tiny sliver of video, perhaps only seconds long, where the keys are visible. This is the Natural Language Query (NLQ) task.

The Natural Language Query (NLQ) task: finding a specific temporal window in egocentric video given a natural language query.

The challenge is two-fold. First, there is the "needle-in-a-haystack" problem: finding a 5-second window in an 8-minute video is mathematically difficult. Second, there is a severe data scarcity problem. Annotating NLQ data is exhausting, requiring humans to watch long videos, formulate creative questions, and precisely mark start and end times. Consequently, while the Ego4D dataset contains millions of simple narrations, it has only a few thousand actual NLQ examples.

Methodology: Narrations-as-Queries (NaQ)

The core innovation of this work is Narrations-as-Queries (NaQ). The authors propose treating declarative narrations (e.g., "C cracks an egg into the bowl") as if they were a user's search query. This insight leverages the fact that narrations already contain the localizable information needed for episodic memory; they simply aren't formatted as questions.

Examples of video narrations in the Ego4D dataset, which NaQ repurposes as pseudo-queries for training.

Temporal Response Jittering (TRJ)

A technical mismatch exists: narrations are typically tied to a single timestamp, whereas NLQ requires a temporal window. To bridge this gap, the authors developed Temporal Response Jittering (TRJ). They first create a "seed window" around the narration timestamp based on the average time between consecutive narrations. They then randomly expand and shift this window. This jittering mimics the natural variation and uncertainty found in real human-annotated NLQ windows, which are typically much longer (around 10 seconds) than a single narration point.

Training proceeds in two stages:

  1. Joint Training: The model is trained on a massive mixture of NaQ pseudo-queries and original NLQ data.
  2. Fine-tuning: The model is refined on high-quality NLQ data to sharpen performance.

Experimental Results

The NaQ strategy was validated primarily on the Ego4D benchmark, which features 3,670 hours of egocentric video. While Ego4D contains 3.85 million narrations, it only has 19,000 NLQ samples. NaQ expands the effective training set by two orders of magnitude.

The results were transformative across multiple architectures:

  • Performance Boost: Adding NaQ to the VSLNet baseline doubled its accuracy (from 5.45% to 10.26% R@1).
  • State-of-the-Art: A model using NaQ combined with the ReLER architecture outperformed all previous winners of the Ego4D NLQ challenges at CVPR and ECCV 2022.
  • Zero-Shot Capability: Remarkably, a model trained only on NaQ data performed competitively with models trained on the full NLQ dataset, suggesting episodic memory systems can be built without expensive manual question-answering annotations.
  • Long-Tail Objects: Because narrations are dense, they cover rare objects (e.g., "brake pads") that rarely appear in the small NLQ dataset, allowing the model to learn about these categories.

Discussion and Future Work

While NaQ significantly advances the state-of-the-art, limitations remain. The authors noted that NaQ provides less benefit for spatial "Where" questions compared to "What" or "How many" questions, indicating a need for better spatial reasoning. Additionally, there is a linguistic gap between declarative narrations and interrogative queries. Future work could involve using Large Language Models (LLMs) to rewrite narrations into natural questions to further close this gap. Finally, while NaQ generalized to third-person video (TACoS), the gains were more modest, likely due to differences in narration styles.

Summary updated

BibTeX
@misc{ramakrishnan2023naq,
  author = {Santhosh Kumar Ramakrishnan and Ziad Al-Halah and Kristen Grauman},
  title = {{NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory}},
  year = {2023},
  eprint = {2301.00746},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.00746},
}
Figure