[Paper Review] GPT4RoI: Instruction Tuning Large Language Model on Region-of-Interest
GPT4RoI is an end-to-end vision-language model that instruction-tunes LLMs on region-text data by replacing region references with RoI features, enabling region-level understanding and interactive multi-round dialogue.
Visual instruction tuning large language model(LLM) on image-text pairs has achieved general-purpose vision-language abilities. However, the lack of region-text pairs limits their advancements to fine-grained multimodal understanding. In this paper, we propose spatial instruction tuning, which introduces the reference to the region-of-interest(RoI) in the instruction. Before sending to LLM, the reference is replaced by RoI features and interleaved with language embeddings as a sequence. Our model GPT4RoI, trained on 7 region-text pair datasets, brings an unprecedented interactive and conversational experience compared to previous image-level models. (1) Interaction beyond language: Users can interact with our model by both language and drawing bounding boxes to flexibly adjust the referring granularity. (2) Versatile multimodal abilities: A variety of attribute information within each RoI can be mined by GPT4RoI, e.g., color, shape, material, action, etc. Furthermore, it can reason about multiple RoIs based on common sense. On the Visual Commonsense Reasoning(VCR) dataset, GPT4RoI achieves a remarkable accuracy of 81.6%, surpassing all existing models by a significant margin (the second place is 75.6%) and almost reaching human-level performance of 85.0%. The code and model can be found at https://github.com/jshilong/GPT4RoI.
Motivation & Objective
- Introduce spatial instruction tuning that references region-of-interest (RoI) in natural language instructions so that LLMs can perform region-level understanding.
- Develop an end-to-end model that integrates RoI features with language embeddings for region captioning and reasoning.
- Leverage public region-text datasets to train a unified model capable of multi-round conversations about RoIs.
- Demonstrate state-of-the-art region understanding on benchmarks like VCR, Visual Genome region captioning, and Visual-7W.
Proposed method
- Define a special token <region { i } > and replace its embedding with RoI features via RoIAlign from a multi-level feature pyramid.
- Interleave region features with language embeddings to form a sequence processed by an LLM (Vicuna/LLaMA lineage).
- Use a vision encoder (ViT-H/14) with a region feature extractor and a projector to align image-level and region-level information to the language space.
- Train in two stages: Stage 1 pre-training to align region features with word embeddings using simple region-text pairs; Stage 2 end-to-end fine-tuning of region extractor, image projector, and LLM with more complex region texts.
- Incorporate LLaVA150K data and an LVIS detector to enhance multi-round conversational abilities and regional reference handling.
Experimental results
Research questions
- RQ1Can region-level understanding be achieved within an end-to-end vision-language model by spatially grounding region references in the input sequence?
- RQ2How does spatial instruction tuning affect region captioning and reasoning tasks compared to image-level instruction tuning?
- RQ3What is the impact of using region-text datasets on benchmark performance for region captioning, reasoning, and VCR-style tasks?
- RQ4Does the model retain interactive, multi-region referencing capabilities in multi-turn conversations?
Key findings
- GPT4RoI achieves state-of-the-art accuracy on VCR with 81.6% (Q→AR) for GPT4RoI-13B, nearing human performance at 85.0%.
- On Visual Genome region captioning, GPT4RoI-7B and GPT4RoI-13B outperform the previous state-of-the-art GRiT in CIDEr scores (145.2 and 146.8 respectively).
- GPT4RoI-13B significantly outperforms prior Visual-7W methods (e.g., 84.82% vs. 72.53% for some baselines).
- The model demonstrates strong region-level capabilities across region captioning and reasoning benchmarks (VG region caption, Visual-7W, VCR).
- End-to-end fine-tuning with region features is crucial; 7B and 13B variants show comparable region-caption performance, suggesting room to improve the visual module and data availability.
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.