Goldfish: Vision-Language Understanding of Arbitrarily Long Videos

Kirolos Ataallah, Xiaoqian Shen, Eslam Abdelrahman, Essam Sleiman, Mingchen Zhuge, Jian Ding, Deyao Zhu, Jürgen Schmidhuber, Mohamed Elhoseiny

Abstract

While Large Language Models (LLMs) have shown remarkable proficiency in understanding short video clips, their performance degrades significantly when applied to long-form content such as full-length movies or TV episodes. This paper introduces Goldfish, a novel framework designed to overcome the computational and noise-related constraints of long-video analysis. Goldfish employs a retrieval-augmented strategy, identifying and extracting only the most relevant segments of a video to answer specific queries. This approach bypasses the memory limitations of standard context windows and avoids the information loss associated with heavy feature compression. Experimental results demonstrate that Goldfish sets new state-of-the-art benchmarks, particularly on the newly introduced TVQA-long dataset.

Introduction: The Challenge of Long-Form Video

Current video-centric LLMs excel at tasks involving short clips (e.g., 30-second social media videos) but struggle with hours-long footage. This failure is primarily due to two factors:

  1. Computational Complexity: Long videos generate a vast number of visual tokens that exceed the context window of most LLMs.
  2. Signal-to-Noise Ratio: In a two-hour movie, the "needle" (the relevant information) is buried in a "haystack" of irrelevant frames.
Figure 1: Goldfish addresses the 'needle in a haystack' problem by retrieving relevant clips from long video sequences to answer specific questions.

Previous solutions often relied on aggressive feature compression, which frequently discards the fine-grained spatial and temporal details necessary for accurate question answering.

The Goldfish Framework

Goldfish addresses these challenges through a modular, three-part architecture designed for efficiency and scalability.

Figure 2: The Goldfish architecture consists of a Video Descriptor (MiniGPT4-Video), a Retrieval Module for selecting relevant clips, and an Answer Module for final response generation.

1. Video Descriptor (MiniGPT4-Video)

The first stage involves a specialized short-video model, MiniGPT4-Video, which segments the long video into smaller, manageable clips. For each clip, the model generates a detailed text description. It utilizes an EVA-CLIP backbone for visual feature extraction and employs a token-merging strategy (condensing four visual tokens into one) to maintain computational efficiency without sacrificing critical detail.

2. Retrieval Module

Rather than processing the entire video at once, Goldfish acts as an intelligent retrieval system. When a user submits a query, the system converts it into a mathematical embedding. This embedding is compared against the embeddings of the generated clip descriptions and associated subtitles. The module then retrieves the top-k most relevant clips, filtering out the "noise" of the rest of the video.

3. Answer Module

The final response is generated by a Llama-2-based LLM. This module receives only the retrieved clip summaries and subtitles as input. By focusing the LLM's attention on a concise set of relevant data, Goldfish ensures high accuracy and avoids the pitfalls of long-context processing.

Datasets and TVQA-long Benchmark

The system was trained on a diverse array of datasets, including Condensed Movies Video Captions (CMD), WebVid, and a Video Instruction Dataset containing 100k QA pairs.

To rigorously test long-form understanding, the authors introduced TVQA-long. Unlike the original TVQA, which provides models with specific 1-minute segments, TVQA-long requires models to search through entire 20-45 minute TV episodes to find the correct answer. This benchmark more accurately reflects real-world challenges in video retrieval and comprehension.

Key Results and Insights

Goldfish demonstrates significant performance gains across both short and long video tasks:

  • Long-Video Performance: On the TVQA-long benchmark, Goldfish achieved 41.78% accuracy, outperforming previous state-of-the-art methods by 14.94%.
  • Short-Video Benchmarks: MiniGPT4-Video set new records on several standard benchmarks, including a +23.59% improvement on the original TVQA and +16.5% on TGIF.
  • Scalability: Ablation studies confirmed that while non-retrieval models suffer sharp declines in accuracy as video length increases, Goldfish maintains consistent performance.

The research highlights that for long-form content, retrieval is often superior to compression. Furthermore, the integration of subtitles as a primary data stream proved crucial for accuracy in dialogue-heavy media.

Limitations and Future Work

Despite its success, Goldfish is bottlenecked by its retrieval module; if the initial search fails to identify the correct clip, the final answer will likely be incorrect. Additionally, the current reliance on text descriptions for retrieval may overlook subtle visual cues not captured in the initial summary. Future work will focus on making the retrieval process more iterative and enhancing the Video Descriptor's ability to capture nuanced visual details.

Summary updated

BibTeX
@inproceedings{ataallah2024goldfish,
  author = {Kirolos Ataallah and Xiaoqian Shen and Eslam Abdelrahman and Essam Sleiman and Mingchen Zhuge and Jian Ding and Deyao Zhu and Jürgen Schmidhuber and Mohamed Elhoseiny},
  title = {{Goldfish: Vision-Language Understanding of Arbitrarily Long Videos}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73397-0\_15},
}
Figure