[Paper Review] MiniVLM: A Smaller and Faster Vision-Language Model
MiniVLM is a compact, efficient vision-language model that achieves 94–97% of the accuracy of state-of-the-art models like OSCAR${}_{\text{B}}$ while reducing model size by 73% and FLOPs by 99%. It uses a Two-stage Efficient feature Extractor (TEE) for fast visual feature extraction and a MiniLM-based transformer, enhanced by pre-training with pseudo-labeled Open Images and high-quality image tags.
Recent vision-language (VL) studies have shown remarkable progress by learning generic representations from massive image-text pairs with transformer models and then fine-tuning on downstream VL tasks. While existing research has been focused on achieving high accuracy with large pre-trained models, building a lightweight model is of great value in practice but is less explored. In this paper, we propose a smaller and faster VL model, MiniVLM, which can be finetuned with good performance on various downstream tasks like its larger counterpart. MiniVLM consists of two modules, a vision feature extractor and a transformer-based vision-language fusion module. We design a Two-stage Efficient feature Extractor (TEE), inspired by the one-stage EfficientDet network, to significantly reduce the time cost of visual feature extraction by $95\%$, compared to a baseline model. We adopt the MiniLM structure to reduce the computation cost of the transformer module after comparing different compact BERT models. In addition, we improve the MiniVLM pre-training by adding $7M$ Open Images data, which are pseudo-labeled by a state-of-the-art captioning model. We also pre-train with high-quality image tags obtained from a strong tagging model to enhance cross-modality alignment. The large models are used offline without adding any overhead in fine-tuning and inference. With the above design choices, our MiniVLM reduces the model size by $73\%$ and the inference time cost by $94\%$ while being able to retain $94-97\%$ of the accuracy on multiple VL tasks. We hope that MiniVLM helps ease the use of the state-of-the-art VL research for on-the-edge applications.
Motivation & Objective
- To develop a lightweight vision-language model suitable for deployment on resource-constrained devices.
- To reduce computational cost in visual feature extraction without sacrificing downstream task performance.
- To improve small-model pre-training by leveraging large models and large-scale datasets.
- To achieve high accuracy with minimal parameters and inference cost, enabling edge deployment.
Proposed method
- Design a Two-stage Efficient feature Extractor (TEE) inspired by EfficientDet to reduce visual feature extraction cost by 99% compared to Faster R-CNN.
- Use the MiniLM architecture for the vision-language transformer to minimize computation while maintaining performance.
- Pre-train MiniVLM using 7 million pseudo-labeled Open Images data generated by a state-of-the-art captioning model.
- Incorporate high-quality image tags from a strong tagging model to enhance cross-modal alignment during pre-training.
- Decouple large models from inference and fine-tuning by using them only for pre-training data generation and distillation.
- Optimize the vision module by simplifying region head components and replacing standard convolutions with depthwise and pointwise convolutions.
Experimental results
Research questions
- RQ1Can a vision-language model be significantly smaller and faster while retaining most of the performance of large models?
- RQ2How effective is a lightweight, two-stage detector for visual feature extraction in vision-language tasks?
- RQ3To what extent can pre-training with pseudo-labeled data and high-quality tags improve small model performance?
- RQ4What is the optimal trade-off between model size, FLOPs, and accuracy in vision-language models?
Key findings
- MiniVLM achieves 97% of the CIDEr score of OSCAR${}_{\text{B}}$ on COCO image captioning (119.8 vs. 123.7), despite using only 27% of the parameters.
- The model reduces FLOPs by 99% (to 1% of OSCAR${}_{\text{B}}$) while maintaining 94–97% accuracy across multiple downstream tasks.
- Using high-quality image tags during pre-training improves performance by over 2 points in CIDEr and 1 point in VQA accuracy compared to no tags.
- TEE-0, with a backbone similar to EfficientDet-D0, is 3.7× smaller and 99× faster than R101 Faster R-CNN, with comparable detection mAP on Visual Genome.
- MiniLM-based transformers outperform other compact BERT variants in the speed-accuracy trade-off for vision-language tasks.
- Random initialization of the transformer yields comparable results to text-pretrained weights, suggesting small models can learn effectively from self-supervised pre-training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.