Video-ChatGPT: Towards Detailed Video Understanding via Large Vision and Language Models

Muhammad Maaz, Hanoona Abdul Rasheed, Salman H. Khan, Fahad Shahbaz KhanarXiv 2023 · DOI

Introduction

While Large Language Models (LLMs) have revolutionized text interaction and made significant strides in image-based conversation (e.g., LLaVA, MiniGPT-4), video remains a challenging frontier. Unlike static images, video requires a model to understand both spatial details (what is in the frame) and temporal dynamics (how things change over time). Existing video models often focus on narrow tasks like action recognition or simple captioning, lacking the ability to hold open-ended, coherent dialogues. Video-ChatGPT aims to bridge this gap by creating a unified human-understandable interface for video tasks, moving beyond simple labels toward true contextual comprehension.

Methods

The architecture of Video-ChatGPT is designed for efficiency and representational power by integrating a pretrained CLIP (ViT-L/14) visual encoder with the Vicuna-v1.1 (7B) language model.

Architecture of Video-ChatGPT, showing the flow from video frames through the CLIP encoder and spatiotemporal pooling to the Vicuna LLM.

To handle video, the authors modify the visual encoder's output through dual-stream pooling:

  1. Spatial Pooling: Average-pooling across the spatial dimension to capture a "video-level temporal representation."
  2. Temporal Pooling: Average-pooling across the temporal dimension to capture a "video-level spatial representation."

These representations are concatenated and projected into the LLM’s input space via a simple trainable linear layer. During instruction tuning, the weights of the CLIP encoder and the Vicuna LLM remain frozen; only the linear adapter is trained to align video features with the LLM’s word embeddings.

Datasets and Evaluation

A major contribution of this work is the Video-Instruction Dataset, a collection of 100,000 video-instruction pairs. This was built using a hybrid approach:

  • Human-assisted: Expert annotators enriched existing ActivityNet-200 captions with deep contextual and temporal details.
  • Semi-automatic: A scalable pipeline using specialized models (BLIP-2 for captions, GRiT for dense object descriptions, and Tag2Text for semantic tags) combined with GPT-3.5 to synthesize high-quality, noise-robust Q&A pairs.
Example video frame sequence used for instruction tuning, demonstrating the temporal variety in the training data.

The model was tested zero-shot on four standard datasets: MSVD-QA, MSRVTT-QA, TGIF-QA, and ActivityNet-QA. Additionally, a new evaluation framework using GPT-3.5 was introduced to score model responses on five dimensions: Correctness, Detail, Context, Temporal Understanding, and Consistency.

Key Insights

  • The Power of Synthesis: The paper demonstrates that descriptive training sets can be generated at scale by using an ensemble of "expert" vision models to feed an LLM, reducing reliance on 100% human-labeled data.
  • Simple Adapters Suffice: A simple linear layer is effective for aligning complex spatiotemporal video features with a language model when supported by rich instruction-tuning data.
  • Dual-Stream Pooling: By separately pooling for space and time, the model maintains a balance between spatial recognition and temporal dynamics without the computational cost of 3D convolutions or full video transformers.

Results

Video-ChatGPT consistently outperformed concurrent models like Video Chat and Video-LLaMA. On MSVD-QA, Video-ChatGPT achieved 64.9% accuracy, significantly higher than Video Chat (56.3%) and Video-LLaMA (51.6%). In the authors' new quantitative benchmark, Video-ChatGPT scored higher across almost all metrics, particularly in Contextual Understanding (2.62/5) and Consistency (2.37/5). Ablation studies confirmed that combining human-annotated data with semi-automatically generated data yielded the best results.

Limitations and Future Work

Despite its strengths, the authors acknowledge several hurdles. The model struggles with videos longer than 2 minutes, where temporal dependencies become too complex for the current pooling strategy. It also occasionally misses fine-grained details or subtle temporal relationships. Future work will likely involve moving toward more sophisticated temporal modeling and expanding the dataset to include even longer sequences.

Summary updated

BibTeX
@misc{maaz2023video,
  author = {Muhammad Maaz and Hanoona Abdul Rasheed and Salman H. Khan and Fahad Shahbaz Khan},
  title = {{Video-ChatGPT: Towards Detailed Video Understanding via Large Vision and Language Models}},
  year = {2023},
  eprint = {2306.05424},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.05424},
}
Figure