TextMonkey: An OCR-Free Large Multimodal Model for Understanding Document

TL;DR

TextMonkey: OCR-free large model, improves document understanding, scores 561 on OCRBench.

cs.CV 🔴 Advanced 2024-03-07 5 views
Yuliang Liu Biao Yang Qiang Liu Zhang Li Zhiyin Ma Shuo Zhang Xiang Bai
multimodal document analysis text recognition machine learning OCR alternative

Key Findings

Methodology

TextMonkey employs Shifted Window Attention with zero initialization to enhance cross-window connectivity and stabilize training. It filters redundant tokens using similarity, improving performance. It extends to text spotting and grounding, enhancing interpretability.

Key Results

  • Improved by 5.2% in scene text tasks, 6.9% in document tasks, and 2.8% in key information extraction tasks.
  • Scored 561 on OCRBench, surpassing existing open-source large models.
  • Increased text spotting performance by 10.9%.

Significance

TextMonkey significantly impacts academia and industry by addressing the complexity and error accumulation of traditional OCR models, enhancing automation in document and scene text workflows.

Technical Contribution

TextMonkey reduces reliance on external systems with OCR-free methods, using innovative Shifted Window Attention and token compression techniques, offering new engineering possibilities.

Novelty

TextMonkey is the first to implement OCR-free text understanding in large multimodal models, significantly improving high-resolution document processing capabilities.

Limitations

  • May struggle with extremely small text, especially in dense text scenarios.
  • Requires substantial computational resources for training.

Future Work

Future research could explore further optimization of token compression algorithms and extend to more text-intensive tasks.

AI Executive Summary

TextMonkey is an OCR-free large multimodal model designed for text-centric tasks. It uses Shifted Window Attention and zero initialization to address the complexity and error accumulation of traditional OCR methods.

In experiments, TextMonkey excelled across multiple benchmarks, notably scoring 561 on OCRBench, surpassing existing open-source large models. Its performance in text spotting and grounding tasks also saw significant improvements.

However, TextMonkey still faces challenges in handling extremely small text and dense text scenarios. Future research could further optimize token compression algorithms and extend to more text-intensive tasks.

Deep Analysis

Background

In recent years, multimodal models have made significant progress in handling diverse data types. However, traditional OCR models face complexity and error accumulation issues in text recognition. TextMonkey aims to address these issues with an OCR-free approach.

Core Problem

Traditional OCR models rely on external systems for text recognition, leading to increased complexity and error accumulation. TextMonkey aims to reduce these issues with an OCR-free method.

Innovation

TextMonkey's core innovation lies in using Shifted Window Attention and zero initialization to enhance cross-window connectivity and stabilize training. Additionally, it reduces redundant tokens using similarity filtering, improving model performance.

Methodology

  • �� Uses Shifted Window Attention to enhance cross-window connectivity.
  • �� Reduces redundant tokens using similarity filtering.
  • �� Extends to text spotting and grounding tasks.

Experiments

TextMonkey excelled in 12 benchmarks, notably scoring 561 on OCRBench. Experiments used various datasets, including STVQA and DocVQA.

Results

TextMonkey improved by 5.2% in scene text tasks, 6.9% in document tasks, and 2.8% in key information extraction tasks.

Applications

TextMonkey can be used in document analysis and scene text recognition, enhancing automation capabilities.

Limitations & Outlook

TextMonkey may struggle with extremely small text and dense text scenarios. Future research could optimize token compression algorithms.

Plain Language Accessible to non-experts

Imagine you're in a huge library looking for a book. Traditional methods involve finding all the book titles first, then locating the book. TextMonkey acts like a smart assistant that directly tells you the book's location without needing to find the title first. This method saves time and reduces errors.

ELI14 Explained like you're 14

Imagine playing a game where you need to find hidden letters in a picture. Traditional methods use a magnifying glass to find all the letters and then compare them one by one. But TextMonkey is like a super helper that directly points out the letter's location, helping you finish the task faster! Isn't that cool?

Glossary

Shifted Window Attention

A technique to enhance cross-window connectivity, improving the model's ability to process high-resolution images.

Used in TextMonkey's visual processing module.

Token Resampler

Reduces redundant tokens using similarity filtering, improving model performance.

Used to reduce input token count.

OCRBench

A comprehensive benchmark evaluating large multimodal models' OCR capabilities.

TextMonkey excelled in this benchmark.

Zero Initialization

An initialization technique to prevent drastic changes in early training stages.

Used in Shifted Window Attention initialization.

Text Spotting

Identifying and locating text within images.

One of the tasks TextMonkey extends to.

Open Questions Unanswered questions from this research

  • 1 How to further optimize token compression algorithms to enhance performance?
  • 2 How to improve model accuracy in extremely small text scenarios?

Applications

Immediate Applications

Document Analysis

TextMonkey can be used for automated document analysis, improving processing efficiency.

Long-term Vision

Intelligent Text Recognition

In the future, TextMonkey could be used for more complex text recognition tasks, driving intelligent development.

Abstract

We present TextMonkey, a large multimodal model (LMM) tailored for text-centric tasks. Our approach introduces enhancement across several dimensions: By adopting Shifted Window Attention with zero-initialization, we achieve cross-window connectivity at higher input resolutions and stabilize early training; We hypothesize that images may contain redundant tokens, and by using similarity to filter out significant tokens, we can not only streamline the token length but also enhance the model's performance. Moreover, by expanding our model's capabilities to encompass text spotting and grounding, and incorporating positional information into responses, we enhance interpretability. It also learns to perform screenshot tasks through finetuning. Evaluation on 12 benchmarks shows notable improvements: 5.2% in Scene Text-Centric tasks (including STVQA, TextVQA, and OCRVQA), 6.9% in Document-Oriented tasks (such as DocVQA, InfoVQA, ChartVQA, DeepForm, Kleister Charity, and WikiTableQuestions), and 2.8% in Key Information Extraction tasks (comprising FUNSD, SROIE, and POIE). It outperforms in scene text spotting with a 10.9\% increase and sets a new standard on OCRBench, a comprehensive benchmark consisting of 29 OCR-related assessments, with a score of 561, surpassing previous open-sourced large multimodal models for document understanding. Code will be released at https://github.com/Yuliang-Liu/Monkey.

cs.CV cs.AI