Mipha: A Comprehensive Overhaul of Multimodal Assistant with Small Language Models

Minjie Zhu, Yichen Zhu, Xin Liu, Ning Liu, Zhiyuan Xu, Chaomin Shen, Yaxin Peng, Zhicai Ou, Feifei Feng, Jian TangarXiv 2024

Abstract

Multimodal Large Language Models (MLLMs) have showcased impressive skills in tasks related to visual understanding and reasoning. Yet, their widespread application faces obstacles due to the high computational demands during both the training and inference phases, restricting their use to a limited audience within the research and user communities. In this paper, we investigate the design aspects of Multimodal Small Language Models (MSLMs) and propose an efficient multimodal assistant named Mipha, which is designed to create synergy among various aspects: visual representation, language models, and optimization strategies. We show that without increasing the volume of training data, our Mipha-3B outperforms the state-of-the-art large MLLMs, especially LLaVA-1.5-13B, on multiple benchmarks. Through detailed discussion, we provide insights and guidelines for developing strong MSLMs that rival the capabilities of MLLMs.

Introduction

Multimodal intelligence has traditionally been the domain of massive models. Systems like GPT-4V and LLaVA-1.5 rely on language backbones ranging from 7B to 65B parameters. While powerful, this "computational tax" makes them difficult to deploy on consumer hardware or edge devices. The emergence of Small Language Models (SLMs) like Microsoft’s Phi series offers a potential solution, but simply replacing a large language model with a smaller one often leads to a significant performance drop.

Mipha addresses this gap by reimagining the Multimodal Small Language Model (MSLM) not as a collection of swapped parts, but as a co-optimized system. By carefully balancing visual backbones, language models, and training strategies, Mipha-3B achieves performance that rivals or exceeds models four times its size.

Architecture and Design Space

The Mipha framework explores the synergy between three core components: visual representation, the language model, and the optimization strategy.

The Mipha design space exploring the synergy between visual representation, language models, and optimization.

1. Visual Representation

The researchers evaluated several visual backbones, including CLIP, SigLIP, and DINOv2. They found that SigLIP-384px provided the best balance of efficiency and performance for small-scale language models.

2. Language Models

Mipha is designed to be flexible with its language backbone. The study evaluated several SLMs, including Phi-1.5 (1.3B), Gemma (2B), and Phi-2 (2.7B), to determine how different architectures and pretraining scales affect multimodal reasoning.

3. Optimization Strategy

A key finding in the development of Mipha is the necessity of joint optimization. While larger models can often function well with a frozen vision encoder, MSLMs benefit significantly from simultaneously finetuning both the visual backbone and the language model. This allows the smaller language model to "specialize" the visual features it receives, compensating for its lower parameter count.

The training process consists of two stages:

  • Stage 1 (Pretraining): Aligning visual features to the language space using a 2-layer MLP projector.
  • Stage 2 (Instruction Tuning): Full-parameter finetuning (or LoRA) of the entire system on instruction-following data.

Experimental Setup

To ensure a fair comparison with state-of-the-art (SOTA) models, Mipha was trained using the same data regime as LLaVA-1.5:

  • Training Data: Pretrained on the LCS-558K dataset and instruction-tuned on a 665K mixture dataset.
  • Evaluation: The models were tested across 11 benchmarks, covering academic tasks (VQAv2, GQA, TextVQA, ScienceQA) and instruction-following/hallucination probes (POPE, MME, MMBench, MM-Vet).

Results and Analysis

Mipha-3B (utilizing Phi-2) demonstrates that smaller models can indeed punch above their weight class.

Performance comparison of various MSLMs across benchmarks and a qualitative example of visual reasoning.

Outperforming the Giants

Mipha-3B outperformed LLaVA-1.5-13B on 8 out of 11 benchmarks. Notably, on MMBench, Mipha-3B achieved a score of 69.7, surpassing LLaVA-1.5-13B’s 67.7. This is achieved with only 23% of the parameters of the 13B model, representing a massive leap in efficiency.

Key Insights

  • The Resolution Paradox: Contrary to the trend of ever-increasing resolutions, the authors found that 224px images sometimes outperformed 448px images. This suggests that for MSLMs, compute might be better spent on model depth or alignment rather than raw pixel count.
  • Base vs. Instruct Models: The study found that starting from an "instruct-tuned" language model is not strictly necessary. While RLHF improves conversational flow, the core perception and reasoning capabilities are often just as strong when starting from a "base" SLM.
  • Active Neurons: Because small models have fewer "spare" neurons than their larger counterparts, the visual representation must be highly expressive. Finetuning the vision backbone is critical for this "active" adaptation.

Conclusion and Future Work

Mipha proves that through careful co-optimization, small multimodal models can achieve state-of-the-art performance. However, challenges remain. Mipha still struggles with high-density OCR and complex mathematical reasoning. Future work will focus on these specific domains and explore the integration of even newer, more capable SLMs as they become available to the research community.

Summary updated

BibTeX
@misc{zhu2024mipha,
  author = {Minjie Zhu and Yichen Zhu and Xin Liu and Ning Liu and Zhiyuan Xu and Chaomin Shen and Yaxin Peng and Zhicai Ou and Feifei Feng and Jian Tang},
  title = {{Mipha: A Comprehensive Overhaul of Multimodal Assistant with Small Language Models}},
  year = {2024},
  eprint = {2403.06199},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.06199},
}
Figure