arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.00908cs.CL
收藏

DocLLM:一种用于多模态文档理解的布局感知生成式语言模型

DocLLM: A layout-aware generative language model for multimodal document understanding

JPMorgan AI Research(摩根大通人工智能研究院)

Dongsheng Wang, Natraj Raman, Mathieu Sibue, Zhiqiang Ma, Petr Babkin, Simerjot Kaur, Yulong Pei, Armineh Nourbakhsh, Xiaomo Liu

AI总结:

提出轻量级模型DocLLM,通过边界框信息和解耦注意力机制融合文本语义与空间布局,在四项核心文档智能任务中表现优于现有SotA LLM并具备良好泛化能力。

摘要:

表单、发票、收据、报告、合同等企业文档,在文本和空间模态的交叉处通常承载丰富的语义。其复杂布局提供的视觉线索在有效理解这些文档中起着至关重要的作用。本文提出DocLLM,这是传统大型语言模型(LLM)的轻量级扩展,用于对视觉文档进行推理,同时考虑了文本语义和空间布局。我们的模型与现有的多模态LLM不同,它避免了昂贵的图像编码器,并专注于使用边界框信息来融入空间布局结构。具体而言,通过将经典Transformer中的注意力机制分解为一组解耦矩阵,捕捉文本与空间模态之间的交叉对齐。此外,我们设计了一个预训练目标来学习填充文本片段。该方法使我们能够处理视觉文档中常见的不规则布局和异构内容。预训练模型使用涵盖四个核心文档智能任务的大规模指令数据集进行微调。我们证明,该解决方案在所有任务的16个数据集中有14个上优于SotA LLM,并且能很好地泛化至5个未见过的数据集中的4个。

英文摘要:

Enterprise documents such as forms, invoices, receipts, reports, contracts, and other similar records, often carry rich semantics at the intersection of textual and spatial modalities. The visual cues offered by their complex layouts play a crucial role in comprehending these documents effectively. In this paper, we present DocLLM, a lightweight extension to traditional large language models (LLMs) for reasoning over visual documents, taking into account both textual semantics and spatial layout. Our model differs from existing multimodal LLMs by avoiding expensive image encoders and focuses exclusively on bounding box information to incorporate the spatial layout structure. Specifically, the cross-alignment between text and spatial modalities is captured by decomposing the attention mechanism in classical transformers to a set of disentangled matrices. Furthermore, we devise a pre-training objective that learns to infill text segments. This approach allows us to address irregular layouts and heterogeneous content frequently encountered in visual documents. The pre-trained model is fine-tuned using a large-scale instruction dataset, covering four core document intelligence tasks. We demonstrate that our solution outperforms SotA LLMs on 14 out of 16 datasets across all tasks, and generalizes well to 4 out of 5 previously unseen datasets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑