[Paper Review] InternLM-XComposer2: Mastering Free-form Text-Image Composition and Comprehension in Vision-Language Large Model
InternLM-XComposer2 is a vision-language model that excels at free-form text-image composition and comprehension using Partial LoRA to align image tokens with an LLM, achieving strong performance across many multimodal benchmarks and competitive results with GPT-4V and Gemini Pro in some tasks.
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.
Motivation & Objective
- Advance free-form text-image composition by enabling interleaved text-image content generation from outlines, specifications, and reference images.
- Enhance multimodal understanding through robust perception, reasoning, and knowledge integration.
- Preserve pre-trained language knowledge while integrating visual information via a novel Partial LoRA mechanism.
- Build a high-quality, diverse data foundation for both vision-language pretraining and supervised fine-tuning.
Proposed method
- Propose Partial LoRA (P-LoRA) that applies LoRA updates exclusively to visual tokens while language tokens remain fixed.
- Use a vision encoder (CLIP-based ViT-Large) and InternLM-2 as the LLM, linked via P-LoRA to align visual features with language.
- Pre-train with three objectives: general semantic alignment, world knowledge alignment, and vision capability enhancement.
- Perform supervised fine-tuning with multi-task training and free-form text-image composition data to jointly adjust vision encoder, LLM, and P-LoRA.
- Adopt a data collection and training strategy emphasizing diverse inputs, high-quality writing, and instruction-following for free-form composition.
- During free-form composition, insert user-provided or source images into generated content and down-sample inputs to 224x224 during SFT to optimize efficiency.
Experimental results
Research questions
- RQ1How well can a vision-language model compose interleaved text and images from free-form inputs like outlines, specifications, and reference images?
- RQ2Can Partial LoRA effectively align image tokens with an LLM while preserving language capabilities?
- RQ3What are the model's capabilities in detailed perception, reasoning, and knowledge integration across multimodal benchmarks?
- RQ4How does InternLM-XComposer2 perform against open-source MLLMs and closed-source APIs on vision-language tasks?
- RQ5What data and training strategies yield robust free-form composition and multimodal comprehension?
Key findings
- InternLM-XComposer2 based on InternLM2-7B significantly surpasses open-source multimodal models on multiple benchmarks.
- The model matches or surpasses GPT-4V and Gemini Pro on certain assessments for vision-language comprehension.
- Partial LoRA applied to visual tokens enables effective modality alignment while preserving language knowledge.
- The model achieves state-of-the-art results on several multimodal benchmarks and exhibits strong free-form text-image composition capabilities.
- CreationBench results indicate strong writing creativity and structure when compared to GPT-4 references.
- Hallucination evaluation (POPE and HallusionBench) shows the model achieving SOTA performance among open-source models and competitive results with closed-source APIs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.