Efficient Multimodal Learning from Data-centric Perspective

Muyang He, Yexin Liu, Boya Wu, Jianhao Yuan, Yueze Wang, Tiejun Huang, Bo ZhaoarXiv 2024

Abstract

Multimodal Large Language Models (MLLMs) have demonstrated notable capabilities in general visual understanding and reasoning tasks. However, their deployment is hindered by substantial computational costs in both training and inference, limiting accessibility to the broader research and user communities. A straightforward solution is to leverage smaller pre-trained vision and language models, which inevitably cause significant performance drops. In this paper, we demonstrate the possibility of training a smaller but better MLLM with high-quality training data. Specifically, we introduce Bunny, a family of lightweight MLLMs with flexible vision and language backbones for efficient multimodal learning from selected training data. Experiments show that our Bunny-4B/8B outperforms the state-of-the-art large MLLMs on multiple benchmarks. We expect that this work can provide the community with a clean and flexible open-source tool for further research and development.

Introduction

The prevailing trend in Multimodal Large Language Models (MLLMs) has been to increase model scale to achieve better performance. However, massive models like GPT-4V and LLaVA-1.5 come with significant computational overhead, restricting their use in resource-constrained environments. Previous attempts to create lightweight MLLMs often resulted in a substantial performance gap compared to their larger counterparts.

The Bunny project challenges this "bigger is better" paradigm by focusing on a data-centric approach. The researchers argue that the primary bottleneck for small models is not necessarily the parameter count, but the quality and information density of the training data. By meticulously curating and condensing datasets, the authors demonstrate that smaller models (3B to 8B parameters) can achieve state-of-the-art results.

Methodology: The Bunny Framework

Bunny is designed as a flexible, "plug-and-play" framework that supports various combinations of vision encoders and language backbones.

The Bunny architecture overview, highlighting the flexible vision and language backbones and the use of LoRA for efficient tuning.

Flexible Architecture

As shown in the architecture diagram, Bunny connects a vision encoder (such as SigLIP or EVA-CLIP) to a lightweight LLM backbone (such as Phi-3-Mini or Llama-3-8B) via a simple two-layer MLP projector. This modularity allows researchers to easily swap components based on specific needs.

Data Condensation and Instruction Tuning

The core innovation lies in the data strategy:

  1. Pre-training Data Condensation: Instead of training on the massive and noisy LAION-2B dataset, the authors developed a three-step coreset selection scheme (clustering, semantic filtering, and diversity sampling) to create Bunny-pretrain-LAION-2M, a high-quality 2-million-sample subset.
  2. Instruction Tuning: The model is fine-tuned on Bunny-695K, a curated mix of visual instructions (SVIT) and evolved text-only instructions (WizardLM). Including text-only data is crucial for preserving the model's core linguistic reasoning capabilities.
  3. Efficient Tuning with LoRA: For these smaller models, the authors found that Low-Rank Adaptation (LoRA) outperforms full fine-tuning. LoRA acts as a safeguard against "catastrophic forgetting," helping the model retain the extensive knowledge of the pre-trained LLM while adapting to multimodal tasks.

Experimental Results

Bunny was evaluated across 11 diverse benchmarks, including MME, MMBench, MMMU, and SEED-Bench-1.

Comprehensive comparison of Bunny-4B and Bunny-8B against state-of-the-art MLLMs across various benchmarks and model sizes.

Benchmark Performance

As detailed in the results table, Bunny-8B (based on Llama-3-8B) achieves a score of 1644.1 on MME Perception, surpassing LLaVA-NeXT-Llama-3-8B. Similarly, Bunny-4B (based on Phi-3-Mini) demonstrates exceptional efficiency, showing a 7.5-point improvement over MM1-3B-Chat on the MMMU validation split.

Key Insights

  • Data Quality Over Model Quantity: A 4B or 8B model trained on highly curated data can outperform models twice its size trained on standard datasets.
  • Resolution Scaling: Implementing the S$^2$-Wrapper for multi-scale feature extraction allowed the model to handle high-resolution images (up to 1152x1152) more effectively than simple positional embedding interpolation.
  • Multimodal Reasoning: Despite its compact size, Bunny shows strong capabilities in complex tasks like OCR, mathematical problem solving, and zero-shot Chinese instruction following.

Discussion and Conclusion

While Bunny demonstrates state-of-the-art performance for its size, there are avenues for future work. The model's zero-shot Chinese capabilities, while present, could be further enhanced with more diverse linguistic training data. Additionally, the current data condensation method relies on CLIP embeddings; exploring more sophisticated measures of data informativeness could yield even higher-quality coresets.

In summary, the Bunny family of models demonstrates that a data-centric approach is a powerful alternative to simply scaling up model parameters. By focusing on high-quality data condensation and balanced instruction tuning, Bunny provides a high-performance, lightweight solution for multimodal tasks. The project is fully open-sourced, offering the community a flexible tool for further research in efficient multimodal learning.

The code, models, and curated datasets are available at https://github.com/BAAI-DCAI/Bunny.

Summary updated

BibTeX
@misc{he2024efficient,
  author = {Muyang He and Yexin Liu and Boya Wu and Jianhao Yuan and Yueze Wang and Tiejun Huang and Bo Zhao},
  title = {{Efficient Multimodal Learning from Data-centric Perspective}},
  year = {2024},
  eprint = {2402.11530},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.11530},
}
Figure