MaVEn: An Effective Multi-granularity Hybrid Visual Encoding Framework for Multimodal Large Language Model

Chaoya Jiang, Hongrui Jia, Haiyang Xu, Wei Ye, Mengfan Dong, Ming Yan, Ji Zhang, Fei Huang, Shikun Zhang · DOI

Introduction

Current Multimodal Large Language Models (MLLMs) primarily excel as "single-image specialists." When tasked with reasoning across multiple images or video sequences, these models often encounter a fundamental encoding dilemma. Continuous encoders, such as Vision Transformers (ViT), provide rich detail but result in excessively long sequences that can overwhelm the LLM's context window. Conversely, discrete encoders provide compact "visual words" but often sacrifice the fine-grained details necessary for complex comparative reasoning.

Qualitative comparison of MaVEn and LLaVA-1.5 across multi-image reasoning tasks.

MaVEn (Multi-granularity Visual Encoding) addresses this by introducing a hybrid framework that combines high-level discrete visual symbols with fine-grained continuous features, optimized through a dynamic reduction mechanism. This approach effectively mitigates "visual confusion" and allows for robust reasoning across multiple visual inputs.

Methodology

The MaVEn framework is built upon three core pillars: Multi-Granularity Hybrid Encoding, a Unified Multimodal Vocabulary, and a Dynamic Continuous Token Reduction mechanism.

The MaVEn architecture, featuring (a) Multi-Granularity Hybrid Encoding and (b) the Continuous Visual Feature Reduction Mechanism.

Multi-Granularity Hybrid Encoding

Every input image undergoes a dual encoding process. A discrete tokenizer (SEED) generates high-level "visual symbols" (e.g., identifying a "snowman" or "dog"), while a ViT encoder captures detailed continuous representations. This hybrid approach acts like a "Table of Contents," where discrete tokens provide a semantic map that guides the LLM's attention toward relevant fine-grained continuous features.

Unified Multimodal Vocabulary

To bridge the gap between vision and language, MaVEn integrates visual tokens directly into the LLM's own vocabulary. This allows the model to process visual concepts with the same ease as textual tokens, establishing stronger attention associations between images during multi-image tasks.

Dynamic Continuous Token Reduction

To maintain computational efficiency, MaVEn employs a Patch Selector. This module utilizes semantic guidance from discrete tokens to identify and retain only the most relevant continuous patches. By maintaining a "Keeping Ratio" of 0.25, MaVEn reduces the visual sequence length per image from 576 to just 176 tokens (144 continuous + 32 discrete) without sacrificing reasoning performance.

Training Strategy

The model is trained in four distinct stages: (1) Patch Selector training using pseudo-labels from Grounding SAM; (2) Discrete visual vocabulary alignment; (3) Continuous feature alignment via a linear projector; and (4) Final instruction fine-tuning of the entire system.

Experimental Results

MaVEn was evaluated on several benchmarks, including the DEMON Benchmark for multi-image reasoning and SEED-Bench for video tasks.

  • Multi-Image Reasoning: MaVEn achieved a score of 54.38 on the DEMON Benchmark, significantly outperforming LLaVA-1.5 (44.58).
  • Visual Relation Inference: The model demonstrated a nearly threefold improvement over LLaVA-1.5 in understanding inter-image relationships (30.24 vs. 11.62).
  • Video Understanding: On SEED-Bench, MaVEn showed a 12-point improvement in video tasks compared to the Otter model, proving its logic translates well to temporal sequences.
  • General Performance: Crucially, MaVEn maintains or improves upon state-of-the-art performance in single-image benchmarks like VQAv2 and MME, proving its versatility.

Conclusion

MaVEn introduces an effective solution to the multi-image encoding dilemma by leveraging the synergy between discrete and continuous visual representations. By significantly reducing token redundancy while enhancing semantic clarity, MaVEn sets a new standard for multi-image and video reasoning in MLLMs. Future work will explore dynamic keeping ratios and reducing the dependency on external segmentation models for training.

Summary updated

BibTeX
@inproceedings{jiang2024maven,
  author = {Chaoya Jiang and Hongrui Jia and Haiyang Xu and Wei Ye and Mengfan Dong and Ming Yan and Ji Zhang and Fei Huang and Shikun Zhang},
  title = {{MaVEn: An Effective Multi-granularity Hybrid Visual Encoding Framework for Multimodal Large Language Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=fHxmoekQBh},
}
Figure