[Paper Review] LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
LLaVAR augments visual instruction tuning with OCR-derived and GPT-4 generated data to improve text understanding in images, achieving notable gains on text-based VQA tasks while maintaining natural-image performance.
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/.
Motivation & Objective
- Motivate improved text understanding within images for visual instruction-tuned models.
- Collect and leverage OCR-based and GPT-4 generated instruction-following data to augment LLaVA.
- Evaluate the impact of higher input resolution on text-rich image understanding.
- Demonstrate end-to-end interactive capabilities on mixed text-and-image content.
Proposed method
- Use CLIP-ViT as visual encoder with a trainable projection to a language decoder.
- Two-stage training: pretraining with noisy OCR-based data plus existing multimodal data, then finetuning with GPT-4 generated QA data.
- Supplement visual features with an optional high-resolution visual encoder and cross-attention in the decoder.
- Downsample images for OCR to balance readability with encoder capabilities; merge OCR outputs into coherent text passages.
- Promote data quality via filtering clusters of text-rich images and prompting GPT-4 to generate instruction-following conversations.
Experimental results
Research questions
- RQ1How does adding OCR-derived and GPT-4 generated data affect text-reading capabilities in multimodal instruction-tuned models?
- RQ2Does higher image resolution (3362) improve text-based VQA and instruction-following performance compared to 2242?
- RQ3What is the contribution of pretraining data vs finetuning data to text-rich image understanding?
- RQ4Can the model robustly reason and interact when presented with real-world online text-image content?
Key findings
- LLaVAR yields substantial improvements over LLaVA on text-based VQA datasets, with up to 20% accuracy gains in some settings.
- 3362-resolution LLaVAR achieves best performance on 3 of 4 text-based VQA datasets compared to 2242-resolution variants.
- GPT-4-based instruction-following evaluation shows improved capability on both natural and text-rich images after augmentation.
- Ablation studies show OCR-based pretraining and GPT-4 finetuning data provide complementary gains, with OCR-pretraining offering notable improvements even without GPT-4 data.
- Qualitative analyses indicate more grounded and coherent responses with LLaVAR, especially in text-dense scenarios like posters and book covers.
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.