Skip to main content
QUICK REVIEW

[Paper Review] KOSMOS-2.5: A Multimodal Literate Model

Tengchao Lv, Yupan Huang|arXiv (Cornell University)|Sep 20, 2023
Handwritten Text Recognition TechniquesComputer Science8 citations
TL;DR

Kosmos-2.5 is a decoder-only multimodal literate model pre-trained on text-intensive images to perform two transcription tasks: spatially-aware text blocks and markdown-formatted text, evaluated on end-to-end document text recognition and image-to-markdown generation.

ABSTRACT

The automatic reading of text-intensive images represents a significant advancement toward achieving Artificial General Intelligence (AGI). In this paper we present KOSMOS-2.5, a multimodal literate model for machine reading of text-intensive images. Pre-trained on a large-scale corpus of text-intensive images, KOSMOS-2.5 excels in two distinct yet complementary transcription tasks: (1) generating spatially-aware text blocks, where each block of text is assigned spatial coordinates within the image, and (2) producing structured text output that captures both style and structure in markdown format. This unified multimodal literate capability is achieved through a shared decoder-only autoregressive Transformer architecture and task-specific prompts. Building on this foundation, we fine-tune KOSMOS-2.5 for document understanding tasks, resulting in a document understanding generalist named KOSMOS-2.5-CHAT. Additionally, a large corpus of 357.4 million document pages spanning diverse domains was curated for pre-training. We evaluate KOSMOS-2.5 on two newly proposed benchmarks, OCREval and MarkdownEval, for document-level text recognition and image-to-markdown generation, demonstrating impressive literate capabilities comparable to GPT-4o. KOSMOS-2.5-CHAT achieves performance comparable to other state-of-the-art generalists that are five times larger (1.3B vs. 7B) across nine text-rich visual question answering benchmarks. Models and code have been available at \url{https://aka.ms/kosmos25}.

Motivation & Objective

  • Motivate advancing machine reading of text-intensive images beyond plain text extraction.
  • Develop a unified model that can generate spatial coordinates for text blocks and markdown-formatted text outputs.
  • Leverage a shared Transformer with task-specific prompts to enable dual transcription tasks.
  • Pre-train on diverse, large-scale text-image corpora to support general multimodal literate capabilities.
  • Demonstrate few-shot and zero-shot capabilities for real-world text-rich image understanding tasks.

Proposed method

  • Use a ViT-based vision encoder and a Transformer-based language decoder connected by a resampler.
  • Adopt a decoder-only Transformer to generate outputs conditioned on image and prompt context.
  • Train on dual transcription tasks: (1) spatially-aware text blocks with bounding boxes, (2) structured markdown text output.
  • Represent text lines with bounding boxes or markdown text, enabling layout-based or markdown-based inputs/outputs.
  • Pre-train on a large, diverse mix of layout-based and markup-based data with specialized input representations and coordinate tokens.
  • Evaluate with end-to-end document text recognition and image-to-markdown generation metrics.

Experimental results

Research questions

  • RQ1Can Kosmos-2.5 accurately recognize text and preserve layout in text-intensive images?
  • RQ2Can a single model produce both spatially aware text blocks and markdown-formatted outputs under different prompts?
  • RQ3How does Kosmos-2.5 perform on text recognition and image-to-markdown tasks compared to specialized baselines?
  • RQ4What is the impact of training data diversity on generalization to different document types?

Key findings

  • Kosmos-2.5 outperforms Google Document OCR in F1 on FUNSD, SROIE, and CORD datasets (0.33%, 2.45%, and 1.35% respectively).
  • In image-to-markdown generation, Kosmos-2.5 achieves 33.68% higher NED (95.09% vs 61.41%) and 33.38% higher NTED (90.64% vs 68.53%) over Nougat BASE on corresponding datasets.
  • Kosmos-2.5 reaches 91.59%/82.08% (General Documents/NED) and 95.09%/91.18% (README) and 85.14%/90.64% (Tables) in NTED/NED comparisons against Nougat baselines.
  • The model benefits from a broader and more diverse pre-training data mix, improving generalization across document types beyond the academic-paper domain.
  • Kosmos-2.5 does not require task-specific fine-tuning to perform the evaluated tasks, illustrating strong zero-shot/few-shot capabilities.
  • The architecture unifies layout-based and markdown-based transcription within a single decoder-only framework, simplifying downstream task interfaces.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.