Query-aware Long Video Localization and Relation Discrimination for Deep Video Understanding

Yuanxing Xu, Yuting Wei, Bin Wu

Introduction

While computer vision has made significant strides in short-form video understanding—often referred to as "sprints" involving single scenes or simple actions—long-form content like movies and television series remains a "marathon" challenge. These long videos feature complex plots, hundreds of distinct scenes, and intricate character relationships that evolve over hours of footage. Traditional approaches to Deep Video Understanding (DVU) often rely on building exhaustive, computationally expensive knowledge graphs of every entity and action, a process that is frequently prone to noise and inefficiency.

Researchers from BUPT have proposed a novel query-aware framework designed to navigate this complexity. By focusing on a "needle in a haystack" approach, the framework identifies relevant frames and discriminates character relations without the need for a global, movie-level knowledge graph. This method was specifically developed for the Deep Video Understanding (DVU) Challenge 2023, focusing on efficient knowledge extraction and complex query answering.

Methodology

The proposed pipeline mimics human information retrieval: first locating a character, then analyzing their specific actions and interactions within those moments. The framework consists of four primary stages:

1. Entity Detection and Representation

The system performs uniform frame sampling across the video. It utilizes GLIP (Grounded Language-Image Pre-training) to identify characters and objects based on provided names and reference images. Visual features from these identified regions are then extracted using a Vision Transformer (ViT) to create robust embeddings for downstream tasks.

2. Query-Aware Frame Selection

Rather than analyzing the entire movie for every query, the model employs a "Frame Selector" based on BLIP-2. This component uses a learnable "Q-former" to extract semantic features, which are then processed by Flan-T5. The model is prompted to determine if a specific frame contains the entity mentioned in the query, allowing it to rank and select the top $K$ most relevant frames.

3. Relation Discrimination

Once the most relevant frames are isolated, the model incorporates subtitles from the corresponding time segments. Using Flan-T5, the system calculates a "relation score" between entities. By asking the model to determine if entities in a frame share a specific relation (e.g., "Is Entity A the apprentice of Entity B?"), the framework effectively transforms a complex vision problem into a reading comprehension and discrimination task.

4. Query Decomposition

To handle complex, multi-part queries (e.g., "Who is the person who lives at home and is an apprentice of Earl?"), the system breaks them down into simpler sub-queries. The scores from these individual components are aggregated to predict the final answer, ensuring that multi-faceted relationships are captured accurately.

Experimental Setup and Datasets

The study was evaluated using the DVU Challenge 2023 dataset, which consists of:

  • Training Set: 19 movies (approximately 25 hours of content) annotated with ontologies of relations, entities, and scene-level ground truth.
  • Test/Validation Set: 5 movies, including titles such as Archipelago and Bonneville.

The evaluation focused on two primary tasks: Fill-in-the-graph-space (identifying missing entities in a relationship) and Question Answering (QA).

Key Insights and Results

Performance Highlights

The proposed method demonstrated strong performance and high efficiency during the challenge:

  • Fill-in-the-graph Task: The framework achieved 1st place in the challenge with a 60% Acc@1 across the test set. In specific cases, such as the movie Heart Machine, the Acc@3 reached 100%.
  • QA Task: The model ranked 4th place with an accuracy of 37.75%.

Query Bootstrapping and Semantic Resilience

A core finding of this research is "query bootstrapping." By starting with the query and ignoring approximately 99% of irrelevant video data, the model achieves high efficiency. Furthermore, the researchers found that subtitles act as a critical semantic bridge, providing context that visual frames might miss. Robustness tests showed that even when visual noise was introduced, performance only dropped slightly (from 60% to 50% in the graph task), suggesting that the model’s reliance on textual and semantic features makes it highly resilient to poor video quality.

Conclusion and Future Work

The BUPT framework demonstrates that Large Language Models (LLMs) like Flan-T5, when prompted with visual features, are exceptionally adept at discriminating relations in long-form video. However, limitations remain. The model's lower performance on general QA suggests that it still struggles with complex temporal and causal reasoning (answering "why" and "how" versus "who" and "what").

Future iterations of this work could involve the integration of audio data, which contains rich emotional and environmental cues currently ignored by the framework. Additionally, developing stronger reasoning modules will be essential for handling the non-relational, common-sense questions that define the most difficult tracks of video understanding.

Summary updated

BibTeX
@inproceedings{xu2023query,
  author = {Yuanxing Xu and Yuting Wei and Bin Wu},
  title = {{Query-aware Long Video Localization and Relation Discrimination for Deep Video Understanding}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3612871},
}
Figure