arXiv:2503.18434cs.CV2025-03CVPR被引 15

用单个布局令牌提升大模型文档理解能力

A Simple yet Effective Layout Token in Large Language Models for Document Understanding

  • 将布局信息压缩为每段文本一个令牌,共享位置编码
  • 在多页文档任务中超越同类模型,提升跨模态学习效果
  • 适合需要高效处理复杂文档的场景,如合同、报表分析

近期将空间布局与文本结合用于大语言模型(LLMs)文档理解的方法已展现出良好效果。常见做法是将布局信息表示为文本令牌并与其内容交错输入模型,但该方法需额外分配位置编号,受限于最大位置编号,导致可用于文本学习的位置数减少,且长上下文推理时引入大量未训练的位置编号,影响性能。为此,本文提出LayTokenLLM:将每段文本对应的布局信息压缩为单一令牌,并采用专用位置编码方案,实现文本与布局令牌共用位置编号,无需额外位置标识。该设计保留了模型对文本的建模能力,缓解长上下文推理问题。此外,设计新型预训练目标NTLP(Next Interleaved Text and Layout Token Prediction),增强文本与布局间的跨模态学习。大量实验表明,LayTokenLLM在多页文档理解任务上优于现有布局融合的LLMs及同规模多模态模型,也优于多数单页任务基线。

原文摘要 · Abstract (English)

Recent methods that integrate spatial layouts with text for document understanding in large language models (LLMs) have shown promising results. A commonly used method is to represent layout information as text tokens and interleave them with text content as inputs to the LLMs. However, such a method still demonstrates limitations, as it requires additional position IDs for tokens that are used to represent layout information. Due to the constraint on max position IDs, assigning them to layout information reduces those available for text content, reducing the capacity for the model to learn from the text during training, while also introducing a large number of potentially untrained position IDs during long-context inference, which can hinder performance on document understanding tasks. To address these issues, we propose LayTokenLLM, a simple yet effective method for document understanding. LayTokenLLM represents layout information as a single token per text segment and uses a specialized positional encoding scheme. It shares position IDs between text and layout tokens, eliminating the need for additional position IDs. This design maintains the model's capacity to learn from text while mitigating long-context issues during inference. Furthermore, a novel pre-training objective called Next Interleaved Text and Layout Token Prediction (NTLP) is devised to enhance cross-modality learning between text and layout tokens. Extensive experiments show that LayTokenLLM outperforms existing layout-integrated LLMs and MLLMs of similar scales on multi-page document understanding tasks, as well as most single-page tasks.

文档理解布局建模大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。