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 https://minigpt-4.github.io/.
核心贡献 · Key contributions
提出 MiniGPT-4,通过一个投影层将冻结的视觉编码器与 Vicuna 对齐。 Proposes MiniGPT-4, aligning a frozen visual encoder with Vicuna via one projection layer.
揭示适当的视觉-LLM 对齐可产生类似 GPT-4 的能力,如详细图像描述和网站创建。 Reveals that proper visual-LLM alignment yields GPT-4-like abilities like detailed image description and website creation.
发现短标题预训练导致不自然输出;第二阶段使用详细描述微调提高了可靠性。 Identifies that short caption pretraining causes unnatural outputs; second-stage finetuning with detailed descriptions improves reliability.
展示 MiniGPT-4 的新兴能力,包括写诗、生成食谱和解读梗图。 Demonstrates emergent abilities in MiniGPT-4, including poem writing, recipe generation, and meme interpretation.
表明在有限数据设置下,单层线性投影足以实现视觉-语言对齐。 Shows that a single linear projection layer suffices for vision-language alignment in limited data settings.
提供开源代码、预训练模型和精选数据集以促进可复现性。 Provides open-source code, pretrained model, and curated dataset for reproducibility.