Skip to main content
QUICK REVIEW

[论文解读] LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding

Yanzhe Zhang, Ruiyi Zhang|arXiv (Cornell University)|Jun 29, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 27
一句话总结

LLaVAR 在视觉指令微调中增加 OCR 派生数据和 GPT-4 生成的数据,以提升图片中的文本理解,在基于文本的 VQA 任务上取得显著提升,同时保持对自然图片的性能。

ABSTRACT

Instruction tuning unlocks the superior capability of Large Language Models (LLM) to interact with humans. Furthermore, recent instruction-following datasets include images as visual inputs, collecting responses for image-based instructions. However, visual instruction-tuned models cannot comprehend textual details within images well. This work enhances the current visual instruction tuning pipeline with text-rich images (e.g., movie posters, book covers, etc.). Specifically, we first use publicly available OCR tools to collect results on 422K text-rich images from the LAION dataset. Moreover, we prompt text-only GPT-4 with recognized texts and image captions to generate 16K conversations, each containing question-answer pairs for text-rich images. By combining our collected data with previous multi-modal instruction-following data, our model, LLaVAR, substantially improves the LLaVA model's capability on text-based VQA datasets (up to 20% accuracy improvement) while achieving an accuracy of 91.42% on ScienceQA. The GPT-4-based instruction-following evaluation also demonstrates the improvement of our model on both natural images and text-rich images. Through qualitative analysis, LLaVAR shows promising interaction (e.g., reasoning, writing, and elaboration) skills with humans based on the latest real-world online content that combines text and images. We make our code/data/models publicly available at https://llavar.github.io/.

研究动机与目标

  • 在用于视觉指令微调的模型中推动对图像内文本的改进理解。
  • 收集并利用基于 OCR 的数据和 GPT-4 生成的指令遵循数据来增强 LLaVA。
  • 评估更高输入分辨率对文本丰富图像理解的影响。
  • 展示对混合文本与图像内容的端到端交互能力。

提出的方法

  • 将 CLIP-ViT 作为视觉编码器,并对语言解码器进行可训练的投影。
  • 两阶段训练:先用带噪声的 OCR 基于数据与现有多模态数据进行预训练,再用 GPT-4 生成的问答数据进行微调。
  • 通过可选的高分辨率视觉编码器和解码器中的跨注意力来补充视觉特征。
  • 将图像下采样以平衡可读性和编码器能力;将 OCR 输出合并为连贯的文本段落。
  • 通过对文本密集型图像的簇进行过滤并让 GPT-4 生成指令遵循对话来提升数据质量。

实验结果

研究问题

  • RQ1添加 OCR 派生数据和 GPT-4 生成的数据如何影响多模态指令微调模型的文本读取能力?
  • RQ2更高的图像分辨率(3362)是否相较于 2242 提升文本为基础的 VQA 和指令遵循性能?
  • RQ3预训练数据与微调数据在文本密集图像理解中的贡献分别是多少?
  • RQ4在现实世界的在线文本-图像内容下,模型能否进行稳健的推理和交互?

主要发现

  • LLaVAR 在基于文本的 VQA 数据集上显著优于 LLaVA,在某些设置下准确率提升可达 20%。
  • 与 2242 分辨率变体相比,3362 分辨率的 LLaVAR 在 4 个文本基于 VQA 数据集中的 3 个上达到最佳表现。
  • 基于 GPT-4 的指令遵循评估在增强后对自然和文本密集图像均显示出能力提升。
  • 消融研究表明 OCR 基础预训练和 GPT-4 微调数据提供互补提升,其中 OCR 预训练在没有 GPT-4 数据的情况下也能带来显著改善。
  • 定性分析表明使用 LLaVAR 时回答更加扎实和连贯,尤其在文本密集场景如海报和书籍封面等。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。