Introduction
Large Vision-Language Models (VLMs) have shown remarkable performance in understanding short video clips. However, extending this capability to long-form content—such as full-length movies or TV episodes—remains a significant challenge. Most current models struggle with the "needle in a haystack" problem, where the answer to a specific query is buried within hours of irrelevant footage. Furthermore, computational constraints often limit the number of frames a transformer can process simultaneously without hitting memory limits.
To address these issues, we introduce Goldfish, a Retrieval-Augmented Generation (RAG) framework designed for arbitrarily long videos. Goldfish achieves a massive 15% accuracy improvement over previous state-of-the-art models on long-video benchmarks by efficiently identifying and processing only the most relevant segments.
The Goldfish Framework
The Goldfish architecture operates through a modular three-stage pipeline: Video Description, Retrieval, and Answering. This approach avoids the pitfalls of global video compression, which often discards critical fine-grained details in favor of a coarse overview.
1. Video Descriptor: MiniGPT4-Video
The first stage involves a specialized model, MiniGPT4-Video, which processes the video in small, manageable chunks. It extends the MiniGPT-v2 architecture by utilizing an EVA-CLIP encoder for frames and a learnable linear layer to map visual features into the language space. To maximize the temporal context within the LLM's window, visual tokens are condensed by 75% (from 256 to 64 tokens per image). Crucially, this model also incorporates aligned subtitles to enrich the description.
2. Retrieval Module
The long video is divided into clips, each described by MiniGPT4-Video. These descriptions, along with synchronized subtitles, are converted into text embeddings. When a user submits a query, the system performs a similarity search to retrieve the top-k most relevant clips. This targeted retrieval ensures that the final reasoning stage focuses only on the necessary "needles" rather than the entire "haystack."
3. Answer Module
The final response is generated by a Large Language Model (Llama2-chat). Instead of re-processing raw video data, the LLM receives the high-quality text descriptions and subtitles of the retrieved clips. This modularity prevents the "catastrophic forgetting" often seen when fine-tuning VLMs on vision tasks, preserving the model's core linguistic reasoning capabilities.
Datasets and Benchmarks
Goldfish was trained on a diverse set of data, including the Condensed Movies (CMD) dataset, a filtered version of WebVid (42k videos), and a Video Instruction Dataset containing 100k QA pairs.
To rigorously test long-video understanding, the authors introduced TVQA-long. This benchmark adapts the original TVQA by aggregating questions across entire 20-minute episodes rather than 1-minute clips, forcing models to search through significantly longer sequences to find answers.
Key Results
Goldfish sets new performance standards across both short and long video tasks:
- Long-Video Performance: On the TVQA-long benchmark, Goldfish achieved 41.78% accuracy, a massive 14.94% lead over the previous state-of-the-art, LLaMA-VID.
- Short-Video SOTA: MiniGPT4-Video alone outperformed existing methods on MSVD (by 3.23%) and the original TVQA (by 23.59%).
- Ablation Study: Removing the retrieval module caused accuracy on TVQA-long to plummet to near-random levels (~25%), confirming that efficient retrieval is the primary driver of success for long-range video understanding.
Conclusion and Future Work
Goldfish demonstrates that retrieval-based strategies are superior to simple compression for long-form video understanding. By leveraging both visual summaries and subtitles, the framework effectively navigates complex temporal data.
Future improvements will focus on reducing hallucinations caused by irrelevant clip retrieval and implementing dynamic sliding-window retrieval to better capture event boundaries. Additionally, enhancing the "describer" model remains a priority, as the final answer quality is inherently limited by the detail captured in the initial clip descriptions.
Summary updated