MoAI: Mixture of All Intelligence for Large Language and Vision Models

Yong Man Ro

TL;DR

This paper introduces MoAI, a novel Large Language and Vision Model (LLVM) that significantly enhances real-world scene understanding by integrating auxiliary visual information from specialized Computer Vision (CV) models. MoAI achieves state-of-the-art zero-shot performance on various vision-language tasks without requiring larger model sizes or additional curated datasets, demonstrating the power of combining diverse intelligence sources.

What Problem Does This Paper Address?

The current trend in developing Large Language and Vision Models (LLVMs) primarily focuses on either curating massive instruction-tuning datasets or scaling up model architectures. However, these approaches often overlook the rich, detailed scene understanding capabilities that have been developed over decades in specialized Computer Vision (CV) models for tasks like object detection, segmentation, scene graph generation, and optical character recognition (OCR). Existing LLVMs tend to rely heavily on the inherent capabilities of their large language model backbones, leading to limitations in nuanced real-world scene comprehension. MoAI aims to bridge this gap by effectively leveraging the specialized knowledge from these external CV models to improve LLVMs' understanding of object existence, positions, relations, and text within images.

Methods

MoAI introduces two key novel modules:

  • MoAI-Compressor: This module takes the outputs from external CV models (segmentation, detection, SGG, OCR), verbalizes them into natural language, and then aligns and condenses this information into a compact set of "auxiliary visual information" tokens. This compression is crucial for efficient integration without overwhelming the LLVM.
  • MoAI-Mixer: Inspired by the "Mixture of Experts" (MoE) concept, this module blends three types of intelligence:
  • Visual Features: Standard visual embeddings from the LLVM's vision encoder.
  • Auxiliary Features: The compressed information from the MoAI-Compressor.
  • Language Features: Textual embeddings from the LLM backbone.

The MoAI-Mixer uses six specialized "expert" modules (cross- and self-attention mechanisms) to harmonize these different intelligence sources. Gating networks are employed to dynamically determine the optimal combination of weights for these experts, allowing MoAI to adaptively leverage the most relevant information for a given task. The model architecture builds upon a strong vision encoder (CLIP-L/14) and a powerful LLM backbone (InternLM2-7B).

Datasets

The paper utilizes existing visual instruction tuning datasets for training and evaluation. Specific datasets mentioned include:

  • Training: LLaVA-Instruct-665K (filtered).
  • Evaluation: A suite of benchmarks for assessing vision-language capabilities, including:
  • Q-Bench
    • SQA-IMG
    • TextVQA
    • POPE
    • MME (including MME-P and MME-C)
    • MM-Bench (including MM-Bench-CN)
    • MM-Vet
    • SEED
    • HallusionBench
    • MMStar

Key Insights and Ideas

  • Leveraging Specialized CV Models is Crucial: The paper strongly advocates that simply scaling up LLVMs or curating more data isn't enough for robust real-world scene understanding. The detailed, specialized knowledge from CV models is essential.
  • Verbalization and Compression are Key: Effectively translating complex CV outputs (like segmentation masks or bounding boxes) into a language format that LLMs can understand, and then compressing this information, is a critical step for efficient integration.
  • Mixture of Experts for Multimodal Fusion: The MoE approach, adapted for multimodal fusion, allows MoAI to dynamically weigh and combine different sources of intelligence (visual, auxiliary, language) for optimal performance.
  • Focus on Scene Understanding: MoAI's success highlights that tasks requiring deep understanding of object presence, spatial relationships, and text are significantly boosted by incorporating external CV insights.

Key Results

MoAI demonstrates impressive zero-shot performance across a range of vision-language benchmarks, often outperforming both open-source and closed-source LLVMs.

  • State-of-the-Art Performance: MoAI significantly surpasses strong LLVM baselines like InstructBLIP, Qwen-VL, and LLaVA1.5 on various benchmarks, particularly those related to real-world scene understanding (e.g., MME, SEED, MM-Bench, MM-Vet).
  • Outperforms Larger Models: Even the smaller MoAI-7B model achieves competitive or superior performance compared to larger open-source and closed-source LLVMs on several tasks, as shown in Fig. 7(a).
  • Robustness on Hallucination Tasks: MoAI performs well on POPE and HallusionBench, suggesting that its ability to accurately recognize objects and their relationships helps prevent LLVMs from generating incorrect or hallucinated information.
  • Efficiency: MoAI achieves these gains without enlarging model size or requiring extra visual instruction tuning datasets. The inference speed is comparable to other LLVMs, indicating efficient integration.

Limitations and Future Work

  • Limitations:
    • External CV Model Dependency: MoAI relies on the performance of external CV models. If these models have limitations (e.g., erroneous predictions, biases), it can impact MoAI's overall performance.
  • Limited Scope of External Models: While MoAI integrates four key CV tasks, the authors acknowledge that many other CV capabilities (e.g., chart understanding, advanced math problem-solving) are not yet included.
  • No Perfect CV Models: The paper notes that no CV model is 100% accurate, and inherent limitations exist.
  • Future Work:
    • Incorporate More CV Models: Extend MoAI by integrating a wider range of external CV models to cover more complex tasks like chart analysis, diagram interpretation, and advanced mathematical reasoning.
  • Enhance Low-Level Vision Understanding: Improve understanding of fundamental visual concepts and common-sense knowledge.
  • Develop Robust and Explainable Architectures: Explore more robust, unbiased, and explainable CV models to further enhance MoAI's capabilities.
  • Build Advanced Architectures: Investigate new architectures that can better embed rich vision-language knowledge and blend diverse intelligences more effectively.

Summary updated

Abstract

The rise of large language models (LLMs) and instruction tuning has led to the current trend of instruction-tuned large language and vision models (LLVMs). This trend involves either meticulously curating numerous instruction tuning datasets tailored to specific objectives or enlarging LLVMs to manage vast amounts of vision language (VL) data. However, current LLVMs have disregarded the detailed and comprehensive real-world scene understanding available from specialized computer vision (CV) models in visual perception tasks such as segmentation, detection, scene graph generation (SGG), and optical character recognition (OCR). Instead, the existing LLVMs rely mainly on the large capacity and emergent capabilities of their LLM backbones. Therefore, we present a new LLVM, Mixture of All Intelligence (MoAI), which leverages auxiliary visual information obtained from the outputs of external segmentation, detection, SGG, and OCR models. MoAI operates through two newly introduced modules: MoAI-Compressor and MoAI-Mixer. After verbalizing the outputs of the external CV models, the MoAI-Compressor aligns and condenses them to efficiently use relevant auxiliary visual information for VL tasks. MoAI-Mixer then blends three types of intelligence (1) visual features, (2) auxiliary features from the external CV models, and (3) language features by utilizing the concept of Mixture of Experts. Through this integration, MoAI significantly outperforms both open-source and closed-source LLVMs in numerous zero-shot VL tasks, particularly those related to real-world scene understanding such as object existence, positions, relations, and OCR without enlarging the model size or curating extra visual instruction tuning datasets.
BibTeX
@inproceedings{ro2024moai,
  author = {Yong Man Ro},
  title = {{MoAI: Mixture of All Intelligence for Large Language and Vision Models}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72967-6\_16},
}
Figure