MiniGPT-4:利用先进大语言模型增强视觉语言理解

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

朱德耀 Deyao Zhu · KAUST · 2023-04-20 · arXiv:2304.10592 ↗ · 被引 3208

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

最近的 GPT-4 展示了非凡的多模态能力,例如从手写文本直接生成网站以及识别图像中的幽默元素。这些特征在以往的视觉语言模型中很少见。然而,GPT-4 背后的技术细节仍未公开。我们认为 GPT-4 增强的多模态生成能力源于对先进大语言模型(LLM)的利用。为了研究这一现象,我们提出了 MiniGPT-4,它使用一个投影层将冻结的视觉编码器与冻结的先进 LLM Vicuna 对齐。我们的工作首次揭示,将视觉特征与先进大语言模型适当对齐可以拥有 GPT-4 展示的许多高级多模态能力,例如生成详细的图像描述和根据手绘草稿创建网站。此外,我们还观察到 MiniGPT-4 的其他新兴能力,包括根据给定图像编写故事和诗歌,根据食物照片教用户烹饪等。在我们的实验中,我们发现仅在短图像描述对上训练的模型会产生不自然的语言输出(例如重复和碎片化)。为了解决这个问题,我们在第二阶段整理了一个详细的图像描述数据集来微调模型,从而提高了模型生成的可靠性和整体可用性。我们的代码、预训练模型和收集的数据集可在 https://minigpt-4.github.io/获取。

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

局限 · Limitations

论文章节 · Sections(共 14)

阅读逐段中英对照全文 →