Skip to main content
QUICK REVIEW

[论文解读] KOSMOS-2.5: A Multimodal Literate Model

Tengchao Lv, Yupan Huang|arXiv (Cornell University)|Sep 20, 2023
Handwritten Text Recognition TechniquesComputer Science被引用 8
一句话总结

Kosmos-2.5 是一个仅解码器的多模态 literate 模型,预训练于文本密集型图像,以执行两项转录任务:具空间感知的文本块和 Markdown 格式文本,在端到端文档文本识别和图像到 Markdown 生成上进行评估。

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}.

研究动机与目标

  • 推动让机器在文本密集型图像上的阅读能力超越简单文本提取。
  • 开发一个统一模型,能够为文本块生成空间坐标并输出 Markdown 格式文本。
  • 利用带有任务特定提示的共享 Transformer,实现双重转录任务。
  • 在多样化、大规模的文本-图像语料上进行预训练,以支持通用的多模态 literate 能力。
  • 展示在现实世界文本丰富图像理解任务中的 few-shot 和 zero-shot 能力。

提出的方法

  • 使用基于 ViT 的视觉编码器和通过重采样器连接的基于 Transformer 的语言解码器。
  • 采用仅解码器的 Transformer,在图像和提示上下文条件下生成输出。
  • 在双重转录任务上进行训练:(1) 具空间感知的文本块及边界框,(2) 结构化的 Markdown 文本输出。
  • 用带边界框的文本行或 Markdown 文本表示文本行,支持基于布局的输入/输出或基于 Markdown 的输入/输出。
  • 在大规模、异构的布局基数据和标记数据混合上进行预训练,采用专门的输入表示和坐标标记。
  • 使用端到端文档文本识别和图像到 Markdown 生成指标进行评估。

实验结果

研究问题

  • RQ1Kosmos-2.5 是否能够准确识别文本并在文本密集型图像中保留布局?
  • RQ2在不同提示下,单一模型是否能够同时输出具空间感的文本块和 Markdown 格式输出?
  • RQ3与专用基线相比,Kosmos-2.5 在文本识别和图像到 Markdown 任务上的表现如何?
  • RQ4训练数据多样性对不同文档类型的泛化能力有何影响?

主要发现

  • Kosmos-2.5 在 FUNSD、SROIE、CORD 数据集上的 F1 指标超过 Google Document OCR(分别为 0.33%、2.45%、1.35%).
  • 在图像到 Markdown 生成任务中,Kosmos-2.5 相较于 Nougat BASE 在对应数据集上实现了更高的 NED、NTED 指标,提升分别为 33.68%(95.09% vs 61.41%)和 33.38%(90.64% vs 68.53%)。
  • 在 NTED/NED 比较中,Kosmos-2.5 相对于 Nougat 基线在 General Documents/NED、README、Tables 上达到 91.59%/82.08%、95.09%/91.18%、85.14%/90.64% 的水平。
  • 模型从更广泛、更多样的预训练数据混合中受益,提升了对超出学术论文领域的文档类型的泛化能力。
  • Kosmos-2.5 不需要针对特定任务的微调即可执行所评估的任务,体现出强大的 zero-shot/few-shot 能力。
  • 该架构在一个仅解码器框架内统一了基于布局的和基于 Markdown 的转录,简化了下游任务接口。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。