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

一种基于问答的类表单文档图像键值对提取方法

A Question-Answering Approach to Key Value Pair Extraction from Form-like Document Images

University of Science and Technology of China(中国科学技术大学);Peking University Shenzhen Graduate School(北京大学深圳研究生院);Microsoft Research Asia(微软亚洲研究院)

Kai Hu, Zhuoyuan Wu, Zhuoyao Zhong, Weihong Lin, Lei Sun, Qiang Huo

AI总结:

本文提出基于问答的KVPFormer模型,通过Transformer编码器识别键实体、解码器并行预测值实体,并结合由粗到细的答案预测和空间兼容性注意力偏置,在FUNSD和XFUND数据集上显著提升了键值对提取性能。

摘要:

本文提出了一种新的基于问答(QA)的键值对提取方法,称为KVPFormer,用于从类表单文档图像中稳健地提取实体之间的键值关系。具体来说,KVPFormer首先利用Transformer编码器从图像中的所有实体中识别出键实体,然后将这些键实体作为“问题”输入到Transformer解码器中,以并行方式预测其对应的“答案”(即值实体)。为了实现更高的答案预测准确率,我们进一步提出了一种由粗到细的答案预测方法,该方法首先在粗阶段为每个识别出的问题提取多个候选答案,然后在细阶段从这些候选中选择最可能的一个。通过这种方式,可以有效降低答案预测的学习难度,从而提高预测准确率。此外,我们在KVPFormer的自注意力/交叉注意力机制中引入了空间兼容性注意力偏置,以更好地建模实体之间的空间交互。借助这些新技术,我们提出的KVPFormer在FUNSD和XFUND数据集上取得了最先进的结果,在F1分数上分别比之前的最佳方法高出7.2%和13.2%。

英文摘要:

In this paper, we present a new question-answering (QA) based key-value pair extraction approach, called KVPFormer, to robustly extracting key-value relationships between entities from form-like document images. Specifically, KVPFormer first identifies key entities from all entities in an image with a Transformer encoder, then takes these key entities as \textbf{questions} and feeds them into a Transformer decoder to predict their corresponding \textbf{answers} (i.e., value entities) in parallel. To achieve higher answer prediction accuracy, we propose a coarse-to-fine answer prediction approach further, which first extracts multiple answer candidates for each identified question in the coarse stage and then selects the most likely one among these candidates in the fine stage. In this way, the learning difficulty of answer prediction can be effectively reduced so that the prediction accuracy can be improved. Moreover, we introduce a spatial compatibility attention bias into the self-attention/cross-attention mechanism for \Ours{} to better model the spatial interactions between entities. With these new techniques, our proposed \Ours{} achieves state-of-the-art results on FUNSD and XFUND datasets, outperforming the previous best-performing method by 7.2\% and 13.2\% in F1 score, respectively.

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

↑