<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>TRINS: Towards Multimodal Language Models that Can Read</title></titleStmt>
			<publicationStmt>
				<publisher>Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</publisher>
				<date>07/17/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10637256</idno>
					<idno type="doi"></idno>
					
					<author>Ruiyi Zhang</author><author>Yanzhe Zhang</author><author>Jian Chen</author><author>Yufan Zhou</author><author>Jiuxiang Gu</author><author>Changyou Chen</author><author>Tong Sun</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Large multimodal language models have shown remarkable proficiency in understanding and editing images. However, a majority of these visually-tuned models struggle to comprehend the textual content embedded in images, primarily due to the limitation of training data. In this work, we introduce TRINS: a Text-Rich image 1 INStruction dataset, with the objective of enhancing the reading ability of the multimodal large language model. TRINS is built upon LAION 2 using hybrid data annotation strategies that include machine-assisted and human-assisted annotation process. It contains 39,153 text-rich images, captions, and 102,437 questions. Specifically, we show that the number of words per annotation in TRINS is significantly longer than that of related datasets, providing new challenges. Furthermore, we introduce a simple and effective architecture, called a Language-Vision Reading Assistant (LaRA), which is good at understanding textual content within images. LaRA outperforms existing state-of-the-art multimodal large language models on the TRINS dataset as well as other classical benchmarks. Lastly, we conducted a comprehensive evaluation with TRINS on various text-rich image understanding and generation tasks, demonstrating its effectiveness.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Instruction tuning <ref type="bibr">[9,</ref><ref type="bibr">38]</ref> has shown a great generalization ability on unseen tasks and has contributed to the growing popularity of large language models (LLMs), such as Chat-GPT <ref type="bibr">[37]</ref>. Recently, multimodal language models benefit from visual instruction finetuning <ref type="bibr">[1,</ref><ref type="bibr">18,</ref><ref type="bibr">19,</ref><ref type="bibr">28,</ref><ref type="bibr">63]</ref>, and has shown great success in real-world applications. These models leverage visual encoders such as CLIP-ViT <ref type="bibr">[12,</ref><ref type="bibr">39]</ref> to empower LLMs with image comprehension ability. However, challenges arise in comprehension of textual information within images, which may stem from the prevalence of natu-ral images in training datasets, such as Conceptual Captions <ref type="bibr">[5]</ref> and COCO <ref type="bibr">[26]</ref>), as highlighted by Liu et al. <ref type="bibr">[30]</ref>. Recognizing the importance of visual textual understanding for effective collaboration between agents and humans, Zhang et al. <ref type="bibr">[62]</ref> proposed enhancing end-to-end visual instructiontuned models by introducing noisy Optical Character Recognition (OCR) annotations to improve vision-language alignment. In this work, we surpass existing achievements and collect a new Text-Rich image INStruction dataset named TRINS, which contains 39,153 text-rich images, captions and 102,437 questions.</p><p>TRINS is created in a semi-automatic manner for a more controllable and faithful collection. Specifically, we exploited large-scale pre-trained models such as CLIP <ref type="bibr">[40]</ref> and GPT-4 in the annotation process. This semi-automatic process significantly reduces the time and resources required for manual annotation and surprisingly improves the overall quality of annotations. TRINS dataset is composed of three datasets for captioning, visual question answering (VQA) and image generation, respectively. Specifically, humanannotated captions for text-rich images are first collected because they can best translate text-rich images into texts. During this process, extracted OCR words and recognizeanything model tags are provided to the annotators for better and efficient annotations. With detailed image descriptions, VAQ data is built and fulfilled by large language models, such as GPT-4 <ref type="bibr">[37]</ref> and LLaMA-2 <ref type="bibr">[51]</ref>. In detailed statistics and analysis, we found that both annotated captions and collected question-answer pairs are more comprehensive and contain significantly more details than the existing dataset. Therefore, we show the superior advantage of TRINS compared to existing instruction fine-tuning datasets. As a by-product, high-quality image-caption pairs can serve as a good benchmark for text-rich image generation, which is still a very challenging task <ref type="bibr">[6]</ref>. At the same time, we propose a new simple and effective multimodal language model architecture that includes OCR as a component. We call it Language-vision Reading Assistant (LaRA) and show that LaRA fine-tuned on TRINS brings the best text-rich image understanding ability. Our contributions are as follows:</p><p>This CVPR paper is the Open Access version, provided by the Computer Vision Foundation.</p><p>Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore.</p><p>&#8226; We introduce a novel dataset (TRINS) containing <ref type="bibr">39,</ref><ref type="bibr">153</ref> captions and 102,437 high-quality text-rich image instruction pairs. TRINS is annotated with a novel semiautomantic annotation framework that is scalable and reliable. &#8226; We develop several evaluation benchmarks for text-rich image understanding and generation tasks. Various methods are evaluated on TRINS, demonstrating the effectiveness of the dataset. &#8226; The TRINS datasets are high-quality and comprehensive, which is reflected not only in the dataset statistics but also from the results of multiple baseline models. Especially, our proposed LaRA finetuned on TRINS outperforms existing state-of-the-art methods on text-rich image understanding tasks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Related Work</head><p>Multimodal Instruction Tuning Multi-modal instruction tuning, including image, video <ref type="bibr">[32,</ref><ref type="bibr">59]</ref>, and audio <ref type="bibr">[16,</ref><ref type="bibr">58]</ref> settings, has been an active research topic. MiniGPT-4 <ref type="bibr">[63]</ref> uses ChatGPT to generate high-quality instruction-following data, while LLaVA <ref type="bibr">[28]</ref> generates such data by prompting GPT-4 with captions and bounding boxes. LLaMA-Adapter <ref type="bibr">[14,</ref><ref type="bibr">60]</ref> aligns text-image features using COCO data, and mPLUG-owl <ref type="bibr">[56]</ref> combines extensive image-text pairs for pretraining and a mixture of data for finetuning. Despite this, many models, according to Liu et al. <ref type="bibr">[30]</ref>, struggle with OCR tasks. InstructBLIP <ref type="bibr">[10]</ref> addresses this by transforming 13 vision language tasks into an instruction-following format. mPLUGOwl <ref type="bibr">[55,</ref><ref type="bibr">56]</ref> apply multitask instruction funetuing using existing document datasets. A comprehensive survey is available in Li et al. <ref type="bibr">[20]</ref>. LLaVAR <ref type="bibr">[62]</ref> exploits GPT-4 to collect fine-tuning data without human annotations using OCR and captioning tools. It discovered that resolution plays a significant role in recognizing textual information and explored several options. Monkey <ref type="bibr">[24]</ref> performed a surgery between simple text labels and high input resolution, enabling remarkable performance in visually-rich document images with dense text. TRINS exploits human-machine collaboration for data annotation and can provide more accurate information, reducing the problem of hallucination.</p><p>Text-Rich Image Datasets Visual question answering or captioning datasets are widely used in task-specific finetuning and large multimodal model evaluation. TextCap <ref type="bibr">[46]</ref> is the first text-rich image captioning dataset. Compared to TextCap, TRINS-Cap provides more detailed annotations that can fulfill the requirement of instruction finetuing. Text-OCR <ref type="bibr">[48]</ref> aims comprehend text in the context of an image, which is similar to our motivation but focuses more on text recognition in images instead of understanding. ST-VQA <ref type="bibr">[13]</ref> uses spatial and textual information to answer visually grounded questions, effectively integrating visual and textual cues. OCR-VQA <ref type="bibr">[36]</ref> focuses on incorporating optical character recognition (OCR) into visual question answering (VQA), which operates primarily on text within images. TextVQA <ref type="bibr">[47]</ref> also takes advantage of the textual information present in the images to answer questions, but with an emphasis on open questions. DocVQA takes this one step further by applying VQA to document images, handling a variety of layouts and formats. InfoVQA <ref type="bibr">[35]</ref> and ChartQA <ref type="bibr">[33]</ref> focus on specific subdomains and aim to answer questions about information graphics and chart images, respectively. In summary, these related works provide datasets for leveraging spatial and textual cues. TRINS-VQA is a dataset that exploits the semi-automantic annotation process. It can be used for general domain instruction finetuning and model evaluations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Text-Rich Image Instruction Dataset</head><p>To equip multimodal language models with the ability to recognize text and relate it to its visual context, we have curated a new dataset named Text-Rich Instruction (TRINS). The ultimate goal is to enable these models to have spatial, semantic, and visual reasoning between multiple text tokens and visual entities. In this section, we present TRINS, a dataset crafted through a semi-automatic process. Specifically, we leverage large-scale pre-trained models like CLIP <ref type="bibr">[40]</ref> and GPT-4 in the annotation process, offering potential advantages: (i) Significant reduction in annotation time and resources: using these models significantly reduces the time and resources required for manual annotation. (ii) Enhancement of annotation data quality through post-processing: the involvement of large models contributes to improving the overall quality of annotation data through subsequent postprocessing. (iii) Functionality of large models as knowledge bases: large models can serve as effective knowledge bases, aiding in the annotation process by virtue of their extensive training in diverse datasets.</p><p>We first outline the document image collection process for TRINS, utilizing CLIP models. Then, we present data statistics to facilitate a comprehensive understanding. We delve into three distinct tasks derived from the TRINS dataset in detail: i) TRINS-Cap: Visual Captioning, ii) TRINS-VQA:  Visual Question Answering and iii) TRINS-Gen: Text-to-Image Generation. The overview of the TRINS data collection process is illustrated in Figure <ref type="figure">1</ref>. To provide a succinct overview, TRINS-Cap undergoes full annotation by human annotators, while TRINS-Gen and TRINS-VQA are constructed based on TRINS-Cap with the help of pre-trained models. A summary of the various TRINS datasets is presented in Table <ref type="table">7</ref> of Appendix A.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Machine-Assisted Text-rich Image Selections</head><p>Beginning with the LAION-5B dataset<ref type="foot">foot_2</ref>  <ref type="bibr">[44]</ref>, our objective is to selectively retain images that exhibit a significant presence of text. Recognizing that document images typically contain substantial textual content, we initially formed a binary classification dataset by combining natural images with document data. Subsequently, we trained an image classifier using a DiT <ref type="bibr">[21]</ref> base backbone, fine-tuned on the RVL-CDIP dataset <ref type="bibr">[15]</ref>. The purpose of this classifier was to predict whether an image contains text. Then a subset was constructed by selecting images with a predicted probability greater than 0.8, while also adhering to the criteria p(watermark) &lt; 0.8 and p(unsafe) &lt; 0.5, where both probabilities are derived from the metadata of the LAION dataset. Acknowledging the noise introduced due to the classifier's limitations, we further refined the dataset by incorporating human judgment. A random sample of 20,000 images from the filtered LAION-5B was clustered into 50 groups based on CLIP-ViT-B/32 visual features. After inspecting the clustering results, one cluster was meticulously chosen, encompassing diverse text-rich images such as posters, covers, advertisements, and educational documents. This cluster model then served as the filtering mechanism for collecting images that comprise the TRINS dataset. For reference, we present a CLIP-based categorization <ref type="bibr">[39]</ref> in Figure <ref type="figure">2</ref> to depict the distribution of images in the collected data. The major class is book cover images, further categorized on the basis of book themes and contents. To enhance our understanding of text-rich images, we employed a Recognize Anything Model (RAM) <ref type="bibr">[17,</ref><ref type="bibr">61]</ref> to extract tags from TRINS images. Figure <ref type="figure">3a</ref> displays word clouds of RAM tags, where "book" and "poster" emerge as major keywords. Additionally, we utilize the Azure Read API <ref type="foot">4</ref> and PaddleOCR to extract  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Annotation Details</head><p>Annotator Selections All annotators (with the tag 100% Job Success and Top Rated Plus) are native English speakers and have experience with document annotations. We first asked all annotators to annotate a 200-image set and provide them with detailed annotation guidelines with multiple examples. In addition, we use Labelbox as an annotation tool and set quality control questions. Heuristic Filters We first use EasyOCR to extract texts from images and retain text phrases with more than three characters, a height greater than 5% of the canvas height, and a confidence score greater than 0.1. For each phrase retrieved, we employ an edit distance-based string matching algorithm (due to potentially erroneous OCR results) to search for its optimal matching substrings within the human-generated caption. The average score for all extracted phrases serves as a metric.</p><p>Manual Reviews We accept annotations with high metric scores and reject the lowest for rework. We manually review other annotations.</p><p>Sensitive Images We combined neural models with human efforts to filter the images. The first step involves an initial data filtering by 2-3 individuals to filter out sensitive images for training. The second step involves hiring additional people to perform a further screening on the data. We engaged annotators from various countries to check the selected images.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">TRINS-Cap: Text-Rich Image Captioning</head><p>Annotation Process TRINS-Cap is a dataset fully annotated by human annotators. We hired 20 native English speakers with experience in document annotation through Upwork. The annotation process, conducted in LabelBox, involved a total of 2,079 hours to annotate 40,576 text-rich images, with an additional 159 hours allocated for result review. After filtering low-quality annotations and addressing missing images, we obtained a final set of 39,153 image-annotation pairs. The dataset is partitioned into train, validation, and test splits with sizes of 29,153, 5,000, and 5,000, respectively. All annotations undergo an initial automated review that involves matching the OCR words with the annotations. Subsequently, human evaluators conduct a thorough review, rejecting annotations with errors, and prompting annotators to rework them for enhancement. We provide comprehensive annotation instructions to all annotators to ensure that each annotation includes: (i) detailed descriptions of visual components. (ii) describe texts' location, attributes, and put texts into annotations. (iii) optional insights or abstract descriptions.</p><p>Statistics and Analysis The primary objective of the annotation process is to facilitate a human or machine's full comprehension of the information conveyed in the image without direct viewing. Consequently, the average annotation length for TRINS is 65.1 words, significantly exceeding that of COCO (10.6 words) and TextCaps (12.4 words).</p><p>Figure <ref type="figure">4b</ref> shows the caption length distributions for TRINS-Cap, COCO, and TextCap, demonstrating the comprehensive nature of the TRINS-Cap annotations. TRINS with more contexts can generally provide a better description of complex images, where short captions are insufficient. Hence, LLMs finetund on TRINS can better understand images with complex texts and layouts, which has been further verified in Section 5.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4.">TRINS-VQA: Multimodal Question Answering</head><p>The annotation process for question answering is inherently complex, primarily due to the necessity for annotators to generate high-quality questions. Creating an effective question is more challenging than providing an answer. As a result, annotators frequently gravitate toward formulating concrete and extractive questions (e.g., "Who is the author of this book?") rather than abstract ones (e.g., "How does the design of the book cover reflect the content of the book?"). We introduce semi-automatic annotation methods to generate high-quality visual question-answering data for TRINS-VQA. This dataset is designed to train general vision language assistants through instruction fine-tuning, and its benefits on model performance are evaluated in Section 5.1. TRINS-Cap, on the other hand, serves as human-assisted annotations, offering a comprehensive but non-instructive dataset for fine-tuning. To utilize the wealth of high-quality annotations available, we incorporated semi-automatic annotation by using large language models (LLMs) such as OpenAI's GPT-4 <ref type="bibr">[37]</ref> and Llama-70B <ref type="bibr">[50,</ref><ref type="bibr">51]</ref> to enhance our data annotation pipeline. OCR results and detailed descriptions of each image are provided to LLMs. Furthermore, high-quality human-crafted demonstrations and detailed annotation rules are provided to LLMs. One demonstration focused on extract questions, while the other emphasized abstract questions, creating a more balanced dataset.</p><p>Human Annotations To facilitate a robust evaluation of model performance, we hired 10 Upwork annotators, whose native language is English, to annotate the test dataset, following a methodology similar to previous work <ref type="bibr">[13,</ref><ref type="bibr">34,</ref><ref type="bibr">47]</ref>. The test dataset comprises 5,000 images with 18,764 question-answer pairs. These data collected are used exclusively for evaluation purposes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Statistics and Analysis</head><p>Building upon prior research <ref type="bibr">[28,</ref><ref type="bibr">49,</ref><ref type="bibr">53]</ref>, we provide visualizations of instructions in Figure <ref type="figure">5</ref> based on question keywords. The inner cycle illustrates the distribution of the first word in the questions, while the outer cycle presents extracted keywords determined by carefully designed heuristics. Types of questions are categorized according to keywords found in questions.</p><p>In Figure <ref type="figure">4c</ref> and <ref type="figure">4d</ref>, we present statistics on the number of words per question-answer pair, comparing them with previous work. Generally, the average length of questions for TRINS-VQA is 10.5, surpassing that of DocVQA (8.3), OCR-VQA (6.5), and TextVQA (7.1). Surprisingly, the average answer length for TRINS is 23.9, significantly longer than related datasets (all less than 4). This discrepancy arises from TRINS containing more abstract questions that typically have longer answers. Similarly, the dataset is divided into train, validation, and test splits. For extract questions, the accuracy of the answers is calculated similarly to Liu et al. <ref type="bibr">[28]</ref>, while for abstract questions, generation metrics  such as BLEU scores are used to assess the quality of the answers.</p><p>The question-answering and instruction data we obtain are extensive, encompassing a balanced mix of extract and abstract questions. This includes detailed descriptions, summaries, question-answer pairs, tasks that promote creativity and the generation of novel thoughts, and conversational tasks. The dataset spans a diverse range of concepts, ranging from visual presentation and visual language relations to intricate reasoning tasks. Compared to previous methods <ref type="bibr">[28]</ref>, captions generated by models such as BLIP-2 <ref type="bibr">[22]</ref> exhibit less informativeness than detailed human annotations, as demonstrated in Section 5.2. Additionally, captioning models may be susceptible to hallucinations <ref type="bibr">[42]</ref>, a concern mitigated in TRINS, which provides more comprehensive and reliable visual descriptions. Although OCR tools are robust, they can introduce noisy information. To address this, we utilize both the Azure Read API and PaddleOCR to extract text information. We added the potential unreliability in our system prompts to LLMs, instructing them to generate questions with assured answers. Ultimately, we directly leverage the responses from large language models (LLMs) to construct TRINS-VQA. The quality of the instruction data can be further enhanced through self-alignment <ref type="bibr">[23]</ref> or by seeking verification from human annotators. Although this has not been explored in this work, we leave it as a potential direction for future research.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">The Language-vision Reading Assistant (LaRA) Model</head><p>To verify our data, we adopt a simple architecture based on LLaVA <ref type="bibr">[28]</ref> for language-vision reading assistant, as illustrated in Figure <ref type="figure">6</ref>. A low-resolution visual encoder is a significant bottleneck for extracting textual information from images <ref type="bibr">[62]</ref>. On the contrary, a high-resolution visual encoder generates an excessive number of patches, drastically impacting model efficiency. Our conviction is that a low-resolution visual encoder is designed to capture visual information more effectively, including layouts. In contrast, a considerably smaller OCR tool is employed to extract text from high-resolution images. Instruction-tuning on TRINS could serve as an effective method of training LLMs to better align OCR texts and extracted visual features. In addition, LLMs can autonomously rectify errors generated by OCR tools. For the visual encoder V , we employ CLIP-ViT-L/14-336 at a resolution of 336 &#8594; 336.</p><p>The grid features before the last transformer layer are then mapped into the word embedding space of the language decoder using a trainable projection matrix W . Regarding the language decoder D, we utilize Vicuna-1.5-13B <ref type="bibr">[8]</ref>, a language model tuned for instructions through LLaMA 2 <ref type="bibr">[50]</ref>.</p><p>We follow the two-stage training design of LLaVA but adopt the pre-trained projection layer of LLaVAR <ref type="bibr">[62]</ref>. Training targets remain similar: generating output responses (&lt;res&gt;) for the input instructions (&lt;ins&gt;), alongside OCR results (&lt;ocr&gt;). The transformed image tokens (&lt;img&gt;) are introduced before or after the first input instruction randomly when building the instruction finetuning data. During the finetuning stage, both the projection matrix W and the language decoder D are trained. We consolidate our nearly 90K visual question-answering data with the 158K instruction-following data from LLaVA to form the training set. It should be noted that the visual encoder remains frozen throughout the training period. Compared with previous approaches, LaRA incorporates OCR words as part of the input, a simple way to enhance visual text understanding.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Experiments</head><p>In this section, we present three downstream tasks based on the TRINS dataset and outline their evaluation metrics. The proposed method LaRA is used in both the text-rich image summarization and visual question-answer tasks. All experiments were conducted on NVIDIA A100 80GB GPUs.</p><p>In fine-tuning, we use a cosine annealing schedule with an initial learning rate of 2e &#8594;5 and a batch size of 32.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">TRINS-VQA: Text-Rich Image Visual Question Answering</head><p>We first performed experiments to evaluate the zero-shot performance of LaRA on classical benchmarks <ref type="bibr">[28,</ref><ref type="bibr">54]</ref>. The results are reported in Table <ref type="table">2</ref> and Table <ref type="table">10</ref>. The proposed LaRA model exhibits significant performance improvement across all the datasets compared to other models. Even without OCR, LaRA outperforms other models in most cases, highlighting its robustness and effectiveness in handling visual question-answering tasks. The inclusion of OCR in LaRA further enhances performance, suggesting that Large Language Models (LLMs) can proficiently utilize textual information. However, the ability to directly extract text from images remains limited. LaRA, with its simple structure, significantly boosts model performance on text-rich images, offering an alternative solution to overcome the limitations of pre-trained image encoders. We further evaluate different  methods on the TRINS-VQA dataset, as shown in Table <ref type="table">3</ref>.</p><p>For extraction questions, we use the same metric as Wu et al. <ref type="bibr">[54]</ref>. For abstract questions, where the answer is typically a longer sentence, we evaluate them based on text similarity metrics such as BLEU <ref type="bibr">[25]</ref>, ROUGE <ref type="bibr">[25]</ref>, and CIDEr <ref type="bibr">[52]</ref>.</p><p>In zero-shot inference, LLaVAR with OCR exhibits the best performance, reinforcing the importance of extracting textual information. Furthermore, mPLUG-Owl2 and Qwen-VL perform well and represent the best methods in extract question evaluations, showing that a high-resolution encoder can significantly improve model performance. Instruct-BLIP demonstrates good performance on extract questions, but did not fare as well on abstract questions, given that the answers provided are usually short and concise. Figure <ref type="figure">7</ref> shows an example of the responses of different methods on the abstract TRINS-VQA dataset, and more examples can be found in the Appendix D. Qwen-VL includes all details but does not provide high-level insights, such as the ground-truth annotation. Both mPLUG-Owl2 and GPT-4V suffer from hallucination issues.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">TRINS-Cap: Text-rich image Captioning</head><p>In our experiments on TRINS-Cap, we ask large multimodal models to generate summaries based on text-rich images. The data set was divided into train, validation, and test sets. We compared LaRA with popular baselines, including InstructBLIP <ref type="bibr">[11]</ref>, Mini-GPT4 <ref type="bibr">[63]</ref>, LLaVA <ref type="bibr">[28]</ref>,</p><p>LLaVAR <ref type="bibr">[62]</ref>, mPLUG-Owl2 <ref type="bibr">[56]</ref> and Qwen-VL <ref type="bibr">[3]</ref>. Given that BLIP-2 faced challenges in generating comprehensive and meaningful results for text-rich images, we considered InstructBLIP as an alternative. For all methods, we randomly selected three prompts from ten as instructions for the model (details provided in the Appendix C.1).</p><p>Table <ref type="table">4</ref> presents the results of different methods in terms of classical captioning metrics. Models with enhanced visual text understanding generally outperform general multimodal models, such as LLaVA, Mini-GPT4, and Instruct-BLIP. LaRA (zero-shot) refers to the LaRA model fine-tuned on the TRINS-QA dataset and demonstrates improved performance. Comparison of fine-tuned LaRA variants indicates that text recognition ability is still limited for OCR-free methods, suggesting that the CLIP encoder or feature projection process may cause visual information loss. Addressing this limitation may involve employing a better trained encoder on text-rich images or designing a more carefully crafted architecture, a direction we leave for future exploration. When fine-tuned with TRINS-Cap, LaRA exhibits much better performance, underscoring the importance of high-quality human-annotated data. Figure <ref type="figure">8</ref> shows examples of different models on the TRINS-Cap benchmark. It shows the great capability of LaRA in recognizing text and relating it to its visual contexts, demonstrating the effectiveness of the TRINS dataset. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.">Additional Experiments</head><p>Performance on general visual tasks after TRINS finetuning. We adopted the evaluation protocols of MiniGPT-v2 <ref type="bibr">[7]</ref> and compared LaRA with LLaVA <ref type="bibr">[28]</ref> on traditional visual question answering benchmarks in table <ref type="table">5</ref>.</p><p>LaRA shows a comparable performance on knowledgeability and better performance on reasoning and spatial awareness. This further verifies the effectiveness of the TRINS dataset, demonstrating that fine-tuning on text-rich images does not degrade performance on natural images, but instead enhances the results. Table 6. Empirical Results on TRINS-Gen (easy) benchmark.</p><p>Text-to-document generation Diffusion-based text-toimage generation has shown great success, while precise textual renderings remain a big challenge. TextDiffuser introduced the MARIO-Eval benchmark, drawing from works such as DrawBench <ref type="bibr">[43]</ref> and DrawTextCreative <ref type="bibr">[29]</ref>. However, most text prompts in MARIO-Eval are short and cannot serve as a good evaluation dataset to handle complex realworld human instructions. We take advantage of human annotations from TRINS-Cap and build the TRINS-Gen benchmark. It is still difficult to render too many words in a single image <ref type="bibr">[6]</ref>. In response to this, we filter out images with more than 20 OCR words, resulting in a curated set of 2,104 images. We divide these images into two sets (easy and difficult) based on the number of OCR words and the length of the longest OCR string per annotation, where all text prompts in the easy set have less than 9 OCR words. We evaluated existing methods using their public checkpoints and reported the results in Table <ref type="table">6</ref> and detailed results in Table <ref type="table">9</ref> (Appendix C.3). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Conclusions</head><p>Despite the challenges posed by the prevalence of natural images in training data, the significance of visual textual understanding cannot be understated. In this paper, we introduce TRINS, a Text-Rich Image INStruction dataset, comprising a diverse collection of text-rich images, captions, and questions. This dataset, created through a semi-automatic process leveraging large-scale pre-trained models, not only significantly reduces annotation time but also elevates annotation quality. Furthermore, we propose a novel multimodal language model architecture, LaRA, which incorporates OCR as a pivotal enhancement for text-rich image understanding. We anticipate that continued progress in multimodal language model architectures, fine-tuning techniques, and the expansion of diverse, text-rich datasets like TRINS will push the boundaries of visual textual understanding. This, in turn, will facilitate more efficient collaboration between humans and agents, potentially revolutionizing numerous real-world applications.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>In this work, we use the phrase "text-rich images" to describe images with rich textual information, such as posters and book covers.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>Work done during Q3 2023.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>https : / / huggingface . co / datasets / laion / laionhigh-resolution (a) (b)</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3"><p>https : / / azure . microsoft . com / en -us / updates / computer-vision-v3-preview-6/</p></note>
		</body>
		</text>
</TEI>
