Video-LLaVA: Learning United Visual Representation by Alignment Before Projection

Bin Lin, Yang Ye, Bin Zhu, Jiaxi Cui, Munan Ning, Peng Jin, Li Yuan

Abstract

The Large Vision-Language Model (LVLM) has enhanced the performance of various downstream tasks in visual-language understanding. Most existing approaches encode images and videos into separate feature spaces, which are then fed as inputs to large language models. However, due to the lack of unified tokenization for images and videos, namely misalignment before projection, it becomes challenging for a Large Language Model (LLM) to learn multi-modal interactions from several poor projection layers. In this work, we unify visual representation into the language feature space to advance the foundational LLM towards a unified LVLM. As a result, we establish a simple but robust LVLM baseline, Video-LLaVA, which learns from a mixed dataset of images and videos, mutually enhancing each other. Video-LLaVA achieves superior performances on a broad range of 9 image benchmarks across 5 image question-answering datasets and 4 image benchmark toolkits. Additionally, our Video-LLaVA also outperforms Video-ChatGPT by 5.8%, 9.9%, 18.6%, and 10.1% on MSRVTT, MSVD, TGIF, and ActivityNet, respectively. Notably, extensive experiments demonstrate that Video-LLaVA mutually benefits images and videos within a unified visual representation, outperforming models designed specifically for images or videos.

Introduction

Most current Large Vision-Language Models (LVLMs) treat images and videos as distinct entities, often utilizing separate encoders or projection layers to map visual features into the language space of a Large Language Model (LLM). This architectural choice leads to "misalignment before projection," where the LLM struggles to learn complex multi-modal interactions through simple linear projection layers receiving disparate visual spaces. Video-LLaVA addresses this by creating a unified visual vocabulary, treating images and videos as part of a single, cohesive concept.

Methods: Alignment Before Projection

The core innovation of Video-LLaVA is the unification of visual representations before they reach the projection layer.

Architectural comparison of Video-LLaVA against existing LVLMs.
  1. Unified Encoding: The model utilizes LanguageBind, a suite of encoders pretrained to map various modalities (video, image, infrared, depth, etc.) into a shared language-aligned feature space.
  2. Shared Projection: Because the image and video features are already aligned by the encoder, Video-LLaVA uses a single, shared projection layer (a 2-layer MLP with GeLU activation) to feed these features into the LLM (Vicuna-7B v1.5).
  3. Joint Training: The model undergoes a two-stage training process (Visual Understanding and Instruction Tuning) using mixed batches containing both images and videos simultaneously. This joint training allows images and videos to mutually enhance each other's representations.

Key Results and Performance

Video-LLaVA establishes a new state-of-the-art for 7B-parameter models by demonstrating that training on images improves video understanding and vice versa.

Illustration of Video-LLaVA and its performance across various benchmarks.
  • Video Dominance: Video-LLaVA outperforms Video-ChatGPT by significant margins: +5.8% on MSRVTT, +9.9% on MSVD, +18.6% on TGIF, and +10.1% on ActivityNet.
  • Image Excellence: Despite its video capabilities, it surpasses specialized image models. It beat InstructBLIP-7B by 24.9% on MMBench and even outperformed the much larger IDEFICS-80B by 6.4% on the same benchmark.
  • Mutual Enhancement: One of the most striking findings is that training on images helps the model understand videos better, and vice versa. For example, adding image data during training improved video question-answering accuracy by up to 5.9% on MSVD. Additionally, joint training significantly reduced object hallucinations in image tasks.

Conclusion

Video-LLaVA demonstrates that "alignment before projection" is a powerful paradigm for multi-modal learning. By unifying visual representations, the model achieves superior performance across both image and video benchmarks with a simpler architecture. Future work will explore extending this framework to other modalities like depth and thermal data, as well as improving temporal resolution for longer video sequences.

Summary updated

BibTeX
@inproceedings{lin2024video,
  author = {Bin Lin and Yang Ye and Bin Zhu and Jiaxi Cui and Munan Ning and Peng Jin and Li Yuan},
  title = {{Video-LLaVA: Learning United Visual Representation by Alignment Before Projection}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.342},
}
Figure