arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.17092cs.CLcs.AI
收藏

SAIL:面向文档信息抽取的以样本为中心的上下文学习

SAIL: Sample-Centric In-Context Learning for Document Information Extraction

Shanghai Jiao Tong University(上海交通大学);The Chinese University of Hong Kong(香港中文大学)

Jinyu Zhang, Zhiyuan You, Jize Wang, Xinyi Le

AI总结:

针对文档信息抽取中免训练方法在理解视觉富文档布局与文本关系及模型指导上的挑战,提出SAIL方法,通过引入实体级文本与布局相似度及统一ICL提示模板提供精确指导,在多个基准上优于免训练基线并接近全量训练方法。

摘要:

文档信息抽取(DIE)旨在从视觉富文档(VRDs)中提取结构化信息。先前的全量训练方法展现了强劲性能,但在泛化到未见数据时可能表现不佳。相比之下,免训练方法利用大型语言模型(LLMs)等强大的预训练模型,仅需少量样本即可处理各种下游任务。然而,针对DIE的免训练方法面临两大主要挑战:(1)理解VRDs中布局与文本元素间的复杂关系,以及(2)为预训练模型提供准确指导。为应对这些挑战,我们提出了用于DIE的以样本为中心的上下文学习(SAIL)。SAIL引入细粒度的实体级文本相似度,以促进LLMs进行深入文本分析,并融入布局相似度以增强对VRDs中布局的分析。此外,SAIL为各种以样本为中心的示例制定了统一的上下文学习(ICL)提示模板,从而能够定制提示,为预训练模型在每个样本上提供精确指导。在FUNSD、CORD和SROIE基准上使用各种基础模型(如LLMs)进行的大量实验表明,我们的方法优于免训练基线,甚至接近全量训练方法。结果证明了本方法的优越性和泛化能力。

英文摘要:

Document Information Extraction (DIE) aims to extract structured information from Visually Rich Documents (VRDs). Previous full-training approaches have demonstrated strong performance but may struggle with generalization to unseen data. In contrast, training-free methods leverage powerful pre-trained models like Large Language Models (LLMs) to address various downstream tasks with only a few examples. Nonetheless, training-free methods for DIE encounter two primary challenges: (1) understanding the complex relationship between layout and textual elements in VRDs, and (2) providing accurate guidance to pre-trained models. To address these challenges, we propose Sample-centric In-context Learning (SAIL) for DIE. SAIL introduces a fine-grained entity-level textual similarity to facilitate in-depth text analysis by LLMs and incorporates layout similarity to enhance the analysis of layouts in VRDs. Additionally, SAIL formulates a unified In-Context Learning (ICL) prompt template for various sample-centric examples, enabling tailored prompts that deliver precise guidance to pre-trained models for each sample. Extensive experiments on FUNSD, CORD, and SROIE benchmarks with various base models (e.g., LLMs) indicate that our method outperforms training-free baselines, even closer to the full-training methods. The results show the superiority and generalization of our method.

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

↑