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

Large Vision-Language Models (LVLMs) typically treat images and videos as distinct modalities, often employing separate encoders or projection layers. This separation can lead to a "misalignment before projection" problem, where the Large Language Model (LLM) must reconcile disparate feature spaces. Video-LLaVA addresses this by unifying image and video features into a single representation space before they reach the LLM. By aligning these modalities early through a shared projection layer and training on them jointly, Video-LLaVA achieves state-of-the-art performance on both image and video benchmarks. Our results demonstrate that images and videos can mutually enhance each other’s learning process, leading to a more robust visual "world model."

Introduction

The rapid advancement of Large Vision-Language Models (LVLMs) has enabled sophisticated interactions between textual and visual data. However, most existing models are specialized, performing exceptionally well on static images but struggling with temporal video data, or vice versa. This discrepancy often stems from architectural choices that treat images and videos as fundamentally different inputs, requiring independent processing pipelines.

Video-LLaVA (Video Large Language-and-Vision Assistant) proposes a paradigm shift: treating images and videos as part of a unified visual vocabulary. Since a video is essentially a sequence of images, the authors argue that they should share a common representation space to facilitate better cross-modal reasoning within the LLM.

The Challenge of Modality Separation

Current LVLMs often face a "misalignment before projection" issue. When separate encoders or projection layers are used for different visual modalities, the LLM is forced to map these independent feature spaces to its internal text-based tokens. This often results in models that fail to leverage the inherent similarities between static scenes and dynamic sequences.

Comparison of various LVLM architectures highlighting the unique "Alignment Before Projection" approach of Video-LLaVA.

Methods: Alignment Before Projection

The core innovation of Video-LLaVA is the unification of visual features prior to the projection into the LLM's input space.

1. Unified Encoding with LanguageBind

Instead of standard CLIP encoders, Video-LLaVA utilizes LanguageBind encoders. LanguageBind is specifically designed to map multiple modalities—including video and audio—into a shared feature space that is inherently aligned with language. This provides a stronger foundation for multimodal integration.

2. Shared Projection Layer

Unlike models that use separate "pipes" for different visual inputs, Video-LLaVA employs a single, shared Multi-Layer Perceptron (MLP). This shared projection layer ensures that both image and video features are transformed into the LLM’s token space using the same learned parameters, enforcing a unified visual vocabulary.

3. Joint Training and Architecture

The model uses Vicuna-7B v1.5 as the foundational LLM. For video processing, the system uniformly samples 8 frames to represent temporal content. The training process involves simultaneous exposure to both image-text and video-text data, allowing the model to learn visual concepts that transcend specific formats.

Experimental Setup

The training of Video-LLaVA is conducted in two distinct stages:

  • Stage 1: Visual Resource Alignment: The model is trained on 558k image-text pairs (LAION-CC-SBU) and 702k video-text pairs (Valley dataset). This stage focuses on teaching the model basic visual recognition and alignment with language.
  • Stage 2: Visual Instruction Tuning: The model is fine-tuned using 665k image-based instructions (LLaVA 1.5) and 100k video-based instructions (Video-ChatGPT) to improve its ability to follow complex human queries.

Evaluation was performed across 4 major video benchmarks (MSRVTT, MSVD, TGIF, ActivityNet) and 9 image benchmarks (including VQA-v2, GQA, and ScienceQA).

Key Results and Insights

Video-LLaVA demonstrates significant performance gains over existing open-source multimodal models.

Mutual Benefit Effect

A key finding of this research is the "mutual benefit" effect: training on images improves video performance, and vice versa. By unifying the representation, the model builds a more comprehensive internal model of the world. Ablation studies confirmed that a "United" representation significantly outperforms "Separated" architectures, even with a similar parameter count.

Performance Benchmarks

  • Video Performance: Video-LLaVA outperformed Video-ChatGPT by 5.8% on MSRVTT, 9.9% on MSVD, 18.6% on TGIF, and 10.1% on ActivityNet.
  • Image Performance: Despite its focus on video, the model achieved superior results on image benchmarks, even surpassing much larger models like the 80-billion parameter IDEFICS on the MMBench toolkit.
  • Reduced Hallucination: Joint training led to a measurable reduction in "object hallucination," as verified by the POPE benchmark.

Limitations and Future Work

While Video-LLaVA sets a new standard, it has limitations. The sampling of only 8 frames per video can lead to the loss of fine-grained temporal details in long-form content. Additionally, the computational requirements for training are substantial, requiring several days on high-end GPU clusters.

Future research will focus on more efficient token compression to support higher frame counts and extending the unified approach to other modalities such as depth or infrared imagery. The team also plans to incorporate timestamp embeddings to improve temporal grounding.

Conclusion

Video-LLaVA proves that early alignment of visual modalities is a powerful strategy for multimodal learning. By bridging the gap between pixels and frames before they reach the LLM, the model achieves a more cohesive and capable understanding of the visual world.

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