arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.09841cs.CLcs.CVcs.LG
收藏

LAPDoc:面向文档的布局感知提示

LAPDoc: Layout-Aware Prompting for Documents

RheinMain University of Applied Sciences(莱茵美茵应用科学大学);Insiders Technologies GmbH(Insiders科技有限公司);National University of Sciences and Technology(国家科技大学)

Marcel Lamott, Yves-Noel Weweler, Adrian Ulges, Faisal Shafait, Dirk Krechel, Darko Obradovic

AI总结:

本文提出LAPDoc,通过直接插入式修改和基于规则的方法将布局信息融入纯文本LLM提示,在标准文档基准上性能提升高达15%,为文档理解任务提供了模型选择依据。

摘要:

近期在使用海量纯文本数据训练大型语言模型(LLMs)方面的进展,使其在包括文档特定任务在内的许多领域和任务中展现出强大的泛化能力。与此相反,目前存在一种训练专为文档理解定制的多模态Transformer架构的趋势,这些架构专门设计用于将文本输入与相应的文档布局相融合。这需要一个单独的微调步骤,且需要额外的训练数据。目前,尚无具有与LLMs相当泛化能力的文档Transformer可用。这引发了一个问题:对于文档理解任务,应优先选择哪种类型的模型。在本文中,我们研究了通过使用布局增强,将纯文本LLMs用于文档特定任务的可能性。我们探索了直接插入式修改和基于规则的方法,用布局信息增强纯文本LLM提示。在我们的实验中,我们研究了对商业ChatGPT模型和开源LLM Solar的影响。我们证明,使用我们的方法,两种LLMs在各种标准文档基准测试上均表现出性能提升。此外,我们研究了噪声OCR和布局错误的影响,以及LLMs在利用文档布局时的局限性。我们的结果表明,与仅使用纯文档文本相比,布局增强可将纯文本LLMs在文档理解上的性能提升高达15%。总之,在基于文本的LLMs或多模态文档Transformer之间选择最佳模型时,应考虑这种方法。

英文摘要:

Recent advances in training large language models (LLMs) using massive amounts of solely textual data lead to strong generalization across many domains and tasks, including document-specific tasks. Opposed to that there is a trend to train multi-modal transformer architectures tailored for document understanding that are designed specifically to fuse textual inputs with the corresponding document layout. This involves a separate fine-tuning step for which additional training data is required. At present, no document transformers with comparable generalization to LLMs are available That raises the question which type of model is to be preferred for document understanding tasks. In this paper we investigate the possibility to use purely text-based LLMs for document-specific tasks by using layout enrichment. We explore drop-in modifications and rule-based methods to enrich purely textual LLM prompts with layout information. In our experiments we investigate the effects on the commercial ChatGPT model and the open-source LLM Solar. We demonstrate that using our approach both LLMs show improved performance on various standard document benchmarks. In addition, we study the impact of noisy OCR and layout errors, as well as the limitations of LLMs when it comes to utilizing document layout. Our results indicate that layout enrichment can improve the performance of purely text-based LLMs for document understanding by up to 15% compared to just using plain document text. In conclusion, this approach should be considered for the best model choice between text-based LLM or multi-modal document transformers.

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

↑