Skip to main content
QUICK REVIEW

[论文解读] InternLM-XComposer2: Mastering Free-form Text-Image Composition and Comprehension in Vision-Language Large Model

Xiaoyi Dong, Pan Zhang|arXiv (Cornell University)|Jan 29, 2024
Image Retrieval and Classification TechniquesComputer Science被引用 11
一句话总结

InternLM-XComposer2 是一个在自由格式文本-图像组合与理解方面表现卓越的视觉-语言模型,使用 Partial LoRA 将图像令牌与大语言模型对齐,在多项多模态基准测试中取得强劲表现,在某些任务上与 GPT-4V 和 Gemini Pro 具备竞争力。

ABSTRACT

We introduce InternLM-XComposer2, a cutting-edge vision-language model excelling in free-form text-image composition and comprehension. This model goes beyond conventional vision-language understanding, adeptly crafting interleaved text-image content from diverse inputs like outlines, detailed textual specifications, and reference images, enabling highly customizable content creation. InternLM-XComposer2 proposes a Partial LoRA (PLoRA) approach that applies additional LoRA parameters exclusively to image tokens to preserve the integrity of pre-trained language knowledge, striking a balance between precise vision understanding and text composition with literary talent. Experimental results demonstrate the superiority of InternLM-XComposer2 based on InternLM2-7B in producing high-quality long-text multi-modal content and its exceptional vision-language understanding performance across various benchmarks, where it not only significantly outperforms existing multimodal models but also matches or even surpasses GPT-4V and Gemini Pro in certain assessments. This highlights its remarkable proficiency in the realm of multimodal understanding. The InternLM-XComposer2 model series with 7B parameters are publicly available at https://github.com/InternLM/InternLM-XComposer.

研究动机与目标

  • 通过实现来自提纲、规格与参考图像的交错文本-图像内容生成,推进自由格式文本-图像组合。
  • 通过稳健的感知、推理与知识整合提升多模态理解。
  • 在集成视觉信息的同时保留预训练语言知识,采用新型 Partial LoRA 机制。
  • 为视觉-语言预训练与有监督微调建立高质量、多样化的数据基础。

提出的方法

  • 提出 Partial LoRA(P-LoRA),仅对视觉令牌应用 LoRA 更新,而语言令牌保持不变。
  • 使用一个视觉编码器(基于 CLIP 的 ViT-Large)与 InternLM-2 作为 LLM,通过 P-LoRA 将视觉特征与语言对齐。
  • 以三大目标进行预训练:一般语义对齐、世界知识对齐、以及视觉能力提升。
  • 通过多任务训练和自由格式文本-图像组合数据进行有监督微调,联合调整视觉编码器、LLM 与 P-LoRA。
  • 采用强调多样输入、高质量写作与指令遵循以实现自由格式组合的数据收集与训练策略。
  • 在自由格式组合期间,将用户提供的或来源图像插入生成内容中,并在 SFT 阶段将输入下采样至 224x224 以提升效率。

实验结果

研究问题

  • RQ1一个视觉-语言模型在从自由格式输入(如提纲、规格和参考图像)中进行交错文本与图像的组合能力有多强?
  • RQ2Partial LoRA 是否能够在保持语言能力的前提下有效地将图像令牌与 LLM 对齐?
  • RQ3在多模态基准测试中,该模型在详细感知、推理和知识整合方面的能力如何?
  • RQ4InternLM-XComposer2 在视觉-语言任务上相较于开源的 MLLMs 和闭源 API 的表现如何?
  • RQ5哪些数据与训练策略能带来稳健的自由格式组合和多模态理解?

主要发现

  • 基于 InternLM2-7B 的 InternLM-XComposer2 在多个基准测试中显著超过开源多模态模型。
  • 在某些视觉-语言理解评估中,该模型的表现与甚至超过了 GPT-4V 和 Gemini Pro。
  • 对视觉令牌应用 Partial LoRA 能在保持语言知识的同时实现有效的模态对齐。
  • 该模型在若干多模态基准测试上实现了最先进的结果,并展现出强大的自由格式文本-图像组合能力。
  • CreationBench 结果显示在与 GPT-4 参考相比时,写作创造力与结构性表现突出。
  • 在 POPE 和 HallusionBench 的幻象评估中,该模型在开源模型中达到 SOTA,并与闭源 API 相抗衡。

阅读本论文

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

在 Nubint 中阅读本论文

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