TextHawk: Exploring Efficient Fine-Grained Perception of Multimodal Large Language Models

Ya-Qi Yu, Minghui Liao, Jihao Wu, Yongxin Liao, Xiaoyu Zheng +1 more
4/14/2024
cs.CVcs.AI

No official code found. Best implementation: yuyq96/TextHawk (68 stars, last commit 2024-11-01).

Abstract

Multimodal Large Language Models (MLLMs) have shown impressive results on various multimodal tasks. However, most existing MLLMs are not well suited for document-oriented tasks, which require fine-grained image perception and information compression. In this paper, we present TextHawk, a MLLM that is specifically designed for document-oriented tasks, while preserving the general capabilities of MLLMs. TextHawk is aimed to explore efficient fine-grained perception by designing four dedicated components. Firstly, a ReSampling and ReArrangement (ReSA) module is proposed to reduce the redundancy in the document texts and lower the computational cost of the MLLM. We explore encoding the positions of each local feature by presenting Scalable Positional Embeddings (SPEs), which can preserve the scalability of various image sizes. A Query Proposal Network (QPN) is then adopted to initialize the queries dynamically among different sub-images. To further enhance the fine-grained visual perceptual ability of the MLLM, we design a Multi-Level Cross-Attention (MLCA) mechanism that captures the hierarchical structure and semantic relations of document images. Furthermore, we create a new instruction-tuning dataset for document-oriented tasks by enriching the multimodal document data with Gemini Pro. We conduct extensive experiments on both general and document-oriented MLLM benchmarks, and show that TextHawk outperforms the state-of-the-art methods, demonstrating its effectiveness and superiority in fine-grained document perception and general abilities.

View on arXivView PDF

Code Implementations(1)

yuyq96/TextHawkCommunity100%

Exploring Efficient Fine-Grained Perception of Multimodal Large Language Models

683PythonApr 14, 20241 years ago

Similar Papers

Cite this paper

@article{yu2024texthawk,
  title  = {TextHawk: Exploring Efficient Fine-Grained Perception of Multimodal Large Language Models},
  author = {Ya-Qi Yu and Minghui Liao and Jihao Wu and Yongxin Liao and Xiaoyu Zheng and Wei Zeng},
  year   = {2024},
  eprint = {2404.09204},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.09204v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.09204.svg)](https://codeofpaper.com/paper/2404.09204)

Discussion