Paper commentary
MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models
One projection layer aligns vision with a frozen LLM
- Problem GPT-4's vision-language abilities are rarely seen in earlier models, and its methods are undisclosed. The authors suspect the underlying language model is the source of these skills.
- Method MiniGPT-4 trains only one linear projection layer that maps frozen visual features from BLIP-2 into the input space of a frozen Vicuna model. A second stage finetunes it on 3,500 curated detailed descriptions.
- Results Human evaluators judged 65 of 100 MiniGPT-4 responses as meeting the request, against 5 of 100 for BLIP-2. ChatGPT judged 66.2% of its COCO captions as covering the ground-truth content, against 27.5% for BLIP-2.
GPT-4 abilities as the open question
GPT-4 can write detailed image descriptions, explain unusual visual scenes and build websites from handwritten instructions, but the methods behind these skills have not been disclosed. The authors suspect the skills come from the language model underneath GPT-4, since emergent behaviour of large language models is rarely seen in smaller ones and may carry over to multimodal models.
MiniGPT-4 tests this suspicion by using Vicuna, which is built on LLaMA, as the language decoder while keeping that model frozen. The visual side reuses the BLIP-2 components, a ViT-G/14 from EVA-CLIP and a Q-Former, so the only new question is whether a bridge alone is enough to carry image content into the language model.
A projection layer between frozen parts
The visual pathway runs from a ViT backbone through the pretrained Q-Former, and its output is a set of visual features for each image. A single linear projection layer maps these features into the input space of Vicuna, so the language model receives them as extra input tokens.
The authors keep the vision components and the language model frozen and add only the projection, so the bridge is the one piece that adapts to the pairing. During the first stage, the projected features are treated as a soft prompt, and the frozen language model is trained to produce the ground-truth text that follows.
First-stage pretraining and what it leaves undone
The first stage draws on a combined pool of Conceptual Captions, SBU and LAION image-text pairs, and the model runs 20,000 training steps at batch size 256 over approximately 5 million image-text pairs. The stage takes about 10 hours on 4 A100 (80GB) GPUs, and only the linear projection is updated throughout.
The model gives reasonable answers to questions after this stage, but its outputs sometimes repeat words or sentences, break off mid-sentence or drift to unrelated content. The authors compare this with GPT-3, which needed instruction fine-tuning and human-feedback reinforcement learning before its outputs matched user intent, and they treat the first-stage behaviour as a similar gap.
Curating detailed descriptions
The authors note that instruction and conversation data are easy to find for natural language processing, but no comparable dataset exists for vision-language models, so they built one.
If an output did not exceed 80 tokens, a continuation prompt was added and the two outputs were concatenated into one description. Because the raw descriptions still contained repetition, fragments and off-topic text, ChatGPT was asked to repair them and to return an unchanged input when it was already correct.
Hard-coded rules removed repeated apology phrases, and the authors manually removed redundant text that ChatGPT left in place. About 3,500 of the 5,000 image-text pairs passed these checks and form the second-stage dataset.
Second-stage finetuning
Each training example uses the conversational template with the image features, followed by an instruction sampled from a predefined set of phrasings such as asking for a detailed description of the image. The regression loss is not computed on this image-and-instruction prompt, so the update is driven by the response part of each example.
The stage runs 400 training steps at batch size 12 and takes about 7 minutes on a single A100 GPU. The authors report that this short finetuning changes the output form from fragmented text to complete and fluent descriptions, which the later experiments test.
Advanced task results against BLIP-2
The evaluation uses 100 diverse images with 25 per task, covering meme interpretation, recipe generation, advertisement drafting and poem composition, each with its own request text. Human evaluators decided whether each response satisfied its request, and the only comparison model is BLIP-2 with Flan-T5 XXL as its language model.
MiniGPT-4 satisfied 65 of 100 requests against 5 of 100 for BLIP-2. Per task, MiniGPT-4 scored 8/25 on meme interpretation, 18/25 on recipes, 19/25 on advertisements and 20/25 on poems, while BLIP-2 scored 0/25, 4/25, 1/25 and 0/25.
The qualitative figures add examples of detailed description and advertisement drafting, but they are selected examples and do not replace the counts.
COCO caption coverage
The authors argue that detailed MiniGPT-4 captions contain much visual content that similarity metrics would not reward, so they score coverage instead.
Coverage was 3310/5000 (66.2%) for MiniGPT-4 and 1376/5000 (27.5%) for BLIP-2. Because the judge is ChatGPT, the score reflects that judge's decisions and is not a human-rated accuracy.
Failure rates before and after the second stage
The comparison uses 100 randomly sampled COCO test images, with detailed description and poem prompts run on the model before and after the second stage. Failures were counted manually for each stage, not by a score.
The failure rate for detailed captions fell from 35% to 2%, and for poems from 32% to 1%. Before the second stage the captions were often cut off or incomplete, which is the pattern the second stage is meant to remove.
BLIP-2 FT and Localized Narratives
BLIP-2 was finetuned on the same curated data in the same way, with Flan-T5 XXL as its language model, and the result is called BLIP-2 FT. BLIP-2 FT still produces short responses and does not generalize to meme explanation or website coding.
The authors attribute this to Flan-T5 XXL benefiting less from a dataset of this size than Vicuna does, which they see as evidence that a stronger language model matters.
The Localized Narratives variant, MiniGPT-4 LocNa, replaces the curated data with Localized Narratives in the second stage. It produces long descriptions, but their quality is lower and the wording is monotonous, and it generalizes less well than the original MiniGPT-4 to meme explanation. The authors attribute this gap to the monotonous and repeated descriptions in Localized Narratives.
Architecture ablation
The benchmarks are AOK-VQA and GQA.
The original model scores 58.2 on AOK-VQA and 32.2 on GQA, and the variant without the Q-Former scores 56.9 and 33.4. The authors read this as the Q-Former not being critical for these skills, since the variant without it stays close to the original.
With three linear layers the scores are 49.7 on AOK-VQA and 31.0 on GQA, and with a finetuned Q-Former they are 52.1 and 28.0. Both variants score lower than the original on both benchmarks, which the authors take as support for a single projection layer under this limited training data.
Why language style matters
The authors frame many GPT-4 abilities as combinations of image understanding and language generation, so a model that understands images could in principle reach tasks such as image-based poem writing without seeing image-poem pairs. Image caption datasets use a different language style from modern LLM outputs, so the first stage can teach image understanding while distorting generation.
The second stage is meant to restore generation, and the authors take the later success on website coding and meme interpretation as support for this assumption. The mechanism of compositional generalization is left for future work.
Limitations
MiniGPT-4 inherits hallucination from the language model, as in the example where it describes white tablecloths that are absent from the image. The CHAIRi score is 9.6 for the long prompt and 7.2 for the short prompt, against 1.3 for BLIP-2. Average caption length is 175 words for the long prompt, 28.8 for the short prompt and 6.5 for BLIP-2, so longer captions show more hallucination in this comparison.
The authors state that hallucination in detailed descriptions remains unresolved and suggest reinforcement learning with AI feedback and hallucination detection modules as a possible remedy.
Spatial localization is weak: the model fails to identify where the windows are in a single example. The authors attribute this to a lack of aligned image-text data for spatial information and suggest RefCOCO or Visual Genome as possible training sources.
The advanced-task comparison uses 100 images with human judgement and the coverage comparison relies on ChatGPT as judge, and both are compared with BLIP-2 only. The second-stage LocNa variant and the BLIP-2 FT comparison are reported mainly as qualitative results.
Paper info
- Authors
- Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, Mohamed Elhoseiny
- Venue
- arXiv · Preprint
- First published
- 2023-4-20
- Added
- 2026-11-12
- Updated
- 2023-10-2
- Version
- v2
- arXiv
- 2304.10592
- Category
- cs.CV
- Original paper terms
- CC BY 4.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, Mohamed Elhoseiny (2023). MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models. arXiv:2304.10592v2. https://arxiv.org/abs/2304.10592v2
BibTeX
@misc{zhu2023minigpt,
title = {{MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models}},
author = {Deyao Zhu and Jun Chen and Xiaoqian Shen and Xiang Li and Mohamed Elhoseiny},
year = {2023},
eprint = {2304.10592},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2304.10592v2}
}