The pre-training-fine-tuning paradigm based on layout-aware multimodal pre-trained models has achieved significant progress on document image question answering. However, domain pre-training and task fine-tuning for additional visual, layout, and task modules prevent them from directly utilizing off-the-shelf instruction-tuning language foundation models, which have recently shown promising potential in zero-shot learning. Contrary to aligning language models to the domain of document image question answering, we align document image question answering to off-the-shell instruction-tuning language foundation models to utilize their zero-shot capability. Specifically, we propose layout and task aware instruction prompt called LATIN-Prompt, which consists of layout-aware document content and task-aware descriptions. The former recovers the layout information among text segments from OCR tools by appropriate spaces and line breaks. The latter ensures that the model generates answers that meet the requirements, especially format requirements, through a detailed description of task. Experimental results on three benchmarks show that LATIN-Prompt can improve the zero-shot performance of instruction-tuning language foundation models on document image question answering and help them achieve comparable levels to SOTAs based on the pre-training-fine-tuning paradigm. Quantitative analysis and qualitative analysis demonstrate the effectiveness of LATIN-Prompt. We provide the code in supplementary and will release the code to facilitate future research.
翻译:基于布局感知的多模态预训练模型的预训练-微调范式在文档图像问答中取得了显著进展。然而,额外的视觉、布局和任务模块的领域预训练和任务微调,使得这些模型无法直接利用现有的指令微调语言基础模型,而后者最近在零样本学习中展现出巨大潜力。不同于将语言模型对齐到文档图像问答领域,我们将文档图像问答对齐到现成的指令微调语言基础模型,以利用其零样本能力。具体而言,我们提出了布局与任务感知的指令提示(称为LATIN-Prompt),该提示由布局感知的文档内容和任务感知的描述组成。前者通过适当的空格和换行,从OCR工具中恢复文本片段之间的布局信息;后者通过详细的任务描述,确保模型生成的答案满足要求,特别是格式要求。在三个基准数据集上的实验结果表明,LATIN-Prompt能够提升指令微调语言基础模型在文档图像问答上的零样本性能,并帮助其达到与基于预训练-微调范式的最新方法相当的水平。定量分析和定性分析验证了LATIN-Prompt的有效性。我们在补充材料中提供了代码,并将公开发布代码以促进未来研究。