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

大型语言模型理解布局

Large Language Models Understand Layout

Zhejiang Lab(之江实验室);China Mobile, Hangzhou Research and Development Center(中国移动杭州研发中心)

Weiming Li, Manni Duan, Dong An, Yan Shao

AI总结:

本文发现大型语言模型能处理由空间标记表示的文本布局,具备显式空间感知与推理能力,且该能力源于预训练编码数据并可通过指令微调及新型文字游戏生成的数据增强,有助于构建高效的视觉问答系统。

摘要:

大型语言模型(LLMs)在广泛的自然语言处理(NLP)任务中展现出非凡的能力。本文表明,除了文本理解能力之外,LLMs 还能够处理由空间标记表示的文本布局。它们能够回答需要显式空间感知和推理的问题,而当排除原始数据中的空间标记时,观察到性能急剧下降。我们在各种类型的布局敏感数据集上使用 GPT-3.5、Baichuan2、Llama2 和 ChatGLM3 模型进行了一系列实验以进一步分析。实验结果表明,LLMs 的布局理解能力主要由预训练阶段的编码数据引入,并在指令微调阶段得到进一步增强。此外,通过整合由一种新型文字游戏方法生成的低成本自动生成数据,可以增强布局理解能力。最后,我们表明布局理解能力有助于构建高效的视觉问答(VQA)系统。

英文摘要:

Large language models (LLMs) demonstrate extraordinary abilities in a wide range of natural language processing (NLP) tasks. In this paper, we show that, beyond text understanding capability, LLMs are capable of processing text layouts that are denoted by spatial markers. They are able to answer questions that require explicit spatial perceiving and reasoning, while a drastic performance drop is observed when the spatial markers from the original data are excluded. We perform a series of experiments with the GPT-3.5, Baichuan2, Llama2 and ChatGLM3 models on various types of layout-sensitive datasets for further analysis. The experimental results reveal that the layout understanding ability of LLMs is mainly introduced by the coding data for pretraining, which is further enhanced at the instruction-tuning stage. In addition, layout understanding can be enhanced by integrating low-cost, auto-generated data approached by a novel text game. Finally, we show that layout understanding ability is beneficial for building efficient visual question-answering (VQA) systems.

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

↑