GroundNLQ @ Ego4D Natural Language Queries Challenge 2023

Zhijian Hou, Lei Ji, Difei Gao, Wanjun Zhong, Kun Yan, Chao Li, Wing-Kwong Chan, Chong-Wah Ngo, Nan Duan, Mike Zheng ShouarXiv 2023

Abstract

In this report, we present our champion solution for the Ego4D Natural Language Queries (NLQ) Challenge at CVPR 2023. To accurately ground queries in video, an effective egocentric feature extractor and a powerful grounding model are required. Motivated by this, we leverage a two-stage pre-training strategy to train egocentric feature extractors and the grounding model on video narrations, followed by fine-tuning on annotated data. Additionally, we introduce GroundNLQ, a novel grounding model employing a multi-modal multi-scale grounding module for effective video-text fusion across various temporal intervals, specifically optimized for long videos. On the blind test set, GroundNLQ achieves 25.67 and 18.18 for R1@IoU=0.3 and R1@IoU=0.5, respectively, surpassing all other teams by a noticeable margin.

Introduction

The Natural Language Queries (NLQ) task in the Ego4D dataset presents a significant challenge for computer vision: searching through hours of egocentric (first-person) video to pinpoint the exact moment an event occurs based on a natural language query (e.g., "Where did I leave my keys?").

This task is notoriously difficult due to three primary factors: the extreme length of egocentric videos, which often leads to loss of context or detail in standard models; the scarcity of manually labeled temporal data; and the complexity of cross-modal alignment between shaky, first-person visual feeds and nuanced text queries. The GroundNLQ team secured first place in the 2023 challenge by addressing these issues through a combination of massive two-stage pre-training and a novel multi-scale transformer architecture, achieving an 81% relative performance boost over the previous year's winner.

Methodology

GroundNLQ is designed to process long-form video without sacrificing global context or local detail. The approach is built upon two main pillars: a specialized architecture and a robust pre-training pipeline.

The GroundNLQ Architecture

Unlike traditional models that employ late-stage fusion, GroundNLQ utilizes early-stage multi-modal fusion.

  • Multi-modal Transformer Encoder: This component integrates the textual query directly into the video feature extraction process using cross-modal attention, allowing the model to learn query-relevant visual features.
  • Window-based Local Self-Attention: To manage the computational load of long videos, the model uses a sliding window attention mechanism.
  • Multi-scale Feature Pyramid: The model generates a seven-layer feature pyramid, ranging from high-resolution features for short actions to low-resolution features for long-duration events.
Overview of the GroundNLQ training pipeline and model architecture.

Two-Stage Pre-training

To overcome data scarcity, the team implemented a two-stage strategy:

  1. Feature Extractor Pre-training: Utilizing InternVideo and EgoVLP backbones pre-trained on millions of egocentric video-narration pairs.
  2. Grounding Model Pre-training (NaQ): Using the NaQ technique, raw video narrations are converted into "pseudo-queries," creating a massive synthetic training set for the grounding logic before fine-tuning on official challenge data.

Key Insights

  • Early Fusion is Essential: Forcing the model to look at the video through the lens of the text query early in the pipeline is more effective for egocentric video than late-stage combination.
  • Pre-training the Grounder: While most research focuses on pre-training visual backbones, this work demonstrates that pre-training the grounding logic itself on noisy narrated data provides a massive performance jump (e.g., from 16.74% to 26.98% [email protected]).
  • Scaling the Pyramid: A 7-level feature pyramid allows the model to remain flexible, identifying both 2-second clips and 2-minute sequences with equal efficacy.

Experimental Results

GroundNLQ dominated the CVPR 2023 challenge, setting new benchmarks for the NLQ task. On the blind test set, it achieved an accuracy of 18.18% R1@IoU=0.5, representing an 81% relative improvement over the 2022 winner's score of 10.06%.

Comparison of GroundNLQ with other state-of-the-art methods on the Ego4D NLQ challenge.

Ablation studies highlighted that the combination of high-quality visual backbones (InternVideo + EgoVLP) and the NaQ pre-training were critical to this success. The model's ability to process full video sequences rather than sparse samples or windowed slices further contributed to its superior performance.

Conclusion and Future Work

While GroundNLQ represents a significant leap forward, challenges remain. The model occasionally produces imprecise temporal boundaries, capturing the correct event but including unnecessary "buffer" time. Additionally, fine-grained attribute confusion—such as struggling to distinguish between specific object colors or spatial relationships—remains a hurdle. Future research will focus on boundary refinement and improving the model's sensitivity to specific object attributes and spatial common sense. The code for GroundNLQ is available at https://github.com/houzhijian/GroundNLQ.

Summary updated

BibTeX
@misc{hou2023groundnlq,
  author = {Zhijian Hou and Lei Ji and Difei Gao and Wanjun Zhong and Kun Yan and Chao Li and Wing-Kwong Chan and Chong-Wah Ngo and Nan Duan and Mike Zheng Shou},
  title = {{GroundNLQ @ Ego4D Natural Language Queries Challenge 2023}},
  year = {2023},
  eprint = {2306.15255},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.15255},
}
Figure