MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models

20 Apr 2023  ·  Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, Mohamed Elhoseiny ·

The recent GPT-4 has demonstrated extraordinary multi-modal abilities, such as directly generating websites from handwritten text and identifying humorous elements within images. These features are rarely observed in previous vision-language models. However, the technical details behind GPT-4 continue to remain undisclosed. We believe that the enhanced multi-modal generation capabilities of GPT-4 stem from the utilization of sophisticated large language models (LLM). To examine this phenomenon, we present MiniGPT-4, which aligns a frozen visual encoder with a frozen advanced LLM, Vicuna, using one projection layer. Our work, for the first time, uncovers that properly aligning the visual features with an advanced large language model can possess numerous advanced multi-modal abilities demonstrated by GPT-4, such as detailed image description generation and website creation from hand-drawn drafts. Furthermore, we also observe other emerging capabilities in MiniGPT-4, including writing stories and poems inspired by given images, teaching users how to cook based on food photos, and so on. In our experiment, we found that the model trained on short image caption pairs could produce unnatural language outputs (e.g., repetition and fragmentation). To address this problem, we curate a detailed image description dataset in the second stage to finetune the model, which consequently improves the model's generation reliability and overall usability. Our code, pre-trained model, and collected dataset are available at

PDF Abstract
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Visual Question Answering BenchLMM MiniGPT4-13B GPT-3.5 score 34.93 # 9
Visual Question Answering (VQA) InfiMM-Eval MiniGPT-v2 Overall score 10.43 # 13
Deductive 11.02 # 12
Abductive 13.28 # 13
Analogical 5.69 # 13
Params 8B # 1
Visual Question Answering MM-Vet MiniGPT-4-14B GPT-4 score 24.4±0.4 # 127
Params 14B # 1
Visual Question Answering MM-Vet MiniGPT-4-8B GPT-4 score 22.1±0.1 # 129
Params 8B # 1
Video Question Answering MVBench MiniGPT4 Avg. 18.8 # 15