Skip to main content
QUICK REVIEW

[Paper Review] InternLM-XComposer-2.5: A Versatile Large Vision Language Model Supporting Long-Contextual Input and Output

Pan Zhang, Xiaoyi Dong|arXiv (Cornell University)|Jul 3, 2024
Advanced Image and Video Retrieval TechniquesComputer Science3 citations
TL;DR

InternLM-XComposer-2.5 (IXC-2.5) is a 7B-parameter large vision-language model that achieves GPT-4V-level performance in vision-language understanding and composition, leveraging 24K interleaved image-text data and RoPE-based positional encoding extrapolation to support long-context inputs and outputs up to 96K tokens. It excels in ultra-high-resolution image understanding, fine-grained video analysis, multi-turn multi-image dialogue, and text-image composition tasks such as webpage generation and article creation.

ABSTRACT

We present InternLM-XComposer-2.5 (IXC-2.5), a versatile large-vision language model that supports long-contextual input and output. IXC-2.5 excels in various text-image comprehension and composition applications, achieving GPT-4V level capabilities with merely 7B LLM backend. Trained with 24K interleaved image-text contexts, it can seamlessly extend to 96K long contexts via RoPE extrapolation. This long-context capability allows IXC-2.5 to excel in tasks requiring extensive input and output contexts. Compared to its previous 2.0 version, InternLM-XComposer-2.5 features three major upgrades in vision-language comprehension: (1) Ultra-High Resolution Understanding, (2) Fine-Grained Video Understanding, and (3) Multi-Turn Multi-Image Dialogue. In addition to comprehension, IXC-2.5 extends to two compelling applications using extra LoRA parameters for text-image composition: (1) Crafting Webpages and (2) Composing High-Quality Text-Image Articles. IXC-2.5 has been evaluated on 28 benchmarks, outperforming existing open-source state-of-the-art models on 16 benchmarks. It also surpasses or competes closely with GPT-4V and Gemini Pro on 16 key tasks. The InternLM-XComposer-2.5 is publicly available at https://github.com/InternLM/InternLM-XComposer.

Motivation & Objective

  • To close the performance gap between open-source and proprietary large vision-language models (LVLMs) in versatility and long-context capabilities.
  • To enable high-quality text-image composition with long-context understanding using a lightweight 7B LLM backbone.
  • To support diverse, complex vision-language tasks including ultra-high-resolution image understanding, fine-grained video comprehension, and multi-turn dialogue across multiple images.
  • To extend LVLMs beyond comprehension to creative composition, such as generating HTML/CSS/JS code from text-image instructions and crafting high-quality articles with visual alignment.
  • To achieve state-of-the-art results on 16 out of 28 benchmarks while matching or surpassing GPT-4V and Gemini Pro on 16 key tasks.

Proposed method

  • Trained on 24K interleaved image-text contexts with a native 560×560 vision encoder for ultra-high-resolution image understanding.
  • Utilizes RoPE (Rotary Position Embedding) extrapolation to extend the context window from 24K to 96K tokens for long-context input and output.
  • Employs a dense frame sampling strategy to treat videos as ultra-high-resolution composite images, enabling fine-grained video understanding.
  • Introduces multi-turn multi-image dialogue capability through context-aware attention mechanisms and long-context memory modeling.
  • Applies LoRA fine-tuning with specialized adapters for text-image composition tasks, including webpage generation and article writing.
  • Uses Chain-of-Thought (CoT) and Direct Preference Optimization (DPO) to improve the coherence and quality of composed text-image articles.

Experimental results

Research questions

  • RQ1Can a 7B-parameter LLM backbone achieve GPT-4V-level performance in vision-language understanding and composition?
  • RQ2To what extent can RoPE-based positional encoding extrapolation enable long-context capabilities (up to 96K tokens) in vision-language models?
  • RQ3How effectively can a vision-language model handle ultra-high-resolution images and fine-grained video understanding with dense frame processing?
  • RQ4Can a single model support both complex multi-turn, multi-image dialogues and high-fidelity text-image composition tasks like webpage and article generation?
  • RQ5How does the model compare to proprietary models like GPT-4V and Gemini Pro across diverse benchmarks?

Key findings

  • IXC-2.5 achieves state-of-the-art performance on 16 out of 28 evaluated benchmarks using only a 7B LLM backbone.
  • It matches or surpasses GPT-4V and Gemini Pro on 16 key benchmarks, including video understanding, high-resolution image comprehension, and multi-image dialogue.
  • The model supports long-context inputs and outputs up to 96K tokens via RoPE extrapolation, enabling extended human-AI interaction and content creation.
  • It demonstrates superior performance in ultra-high-resolution image understanding using a native 560×560 ViT encoder and dynamic resolution adaptation.
  • The model achieves strong results in fine-grained video understanding by treating video as a dense, high-resolution image sequence with frame-level attention.
  • Through LoRA-adapted fine-tuning and CoT/DPO prompting, it generates high-quality, coherent text-image articles and executable webpages from natural language instructions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.