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

基于自注意力评分机制的多页文档视觉问答

Multi-Page Document Visual Question Answering using Self-Attention Scoring Mechanism

Computer Vision Center(计算机视觉中心);Universitat Autònoma de Barcelona(巴塞罗那自治大学)

Lei Kang, Rubèn Tito, Ernest Valveny, Dimosthenis Karatzas

AI总结:

本文提出基于自注意力评分机制的多页文档视觉问答方法,利用Pix2Struct编码器检索相关页面,无需OCR即可在近800页文档上保持最先进性能,并显著降低GPU资源需求。

摘要:

文档是书面交流的二维载体,因此对其解读需要一种多模态方法,将文本信息与视觉信息高效结合。文档视觉问答(Document VQA)由于这种多模态特性,已引起文档理解与自然语言处理领域的广泛关注。最先进的单页文档视觉问答方法展现出令人瞩目的性能,但在多页场景中,这些方法面临困难。它们必须将所有页面拼接成一个大页面进行处理,即使在评估阶段也需要大量GPU资源。在本工作中,我们针对多页文档视觉问答任务提出了一种新颖的方法和高效的训练策略。具体而言,我们采用仅视觉的文档表示,利用文档理解模型Pix2Struct的编码器。我们的方法利用自注意力评分机制为每个文档页面生成相关性分数,从而能够检索相关页面。这一适配使我们能够将单页文档视觉问答模型扩展到多页场景,在评估时不受页面数量限制,同时对GPU资源的需求极小。我们的大量实验表明,不仅无需光学字符识别(OCR)即可达到最先进性能,而且在接近800页的文档场景中仍能保持性能,相比之下MP-DocVQA数据集最多只有20页。我们的代码已公开,地址为\url{https://github.com/leitro/SelfAttnScoring-MPDocVQA}。

英文摘要:

Documents are 2-dimensional carriers of written communication, and as such their interpretation requires a multi-modal approach where textual and visual information are efficiently combined. Document Visual Question Answering (Document VQA), due to this multi-modal nature, has garnered significant interest from both the document understanding and natural language processing communities. The state-of-the-art single-page Document VQA methods show impressive performance, yet in multi-page scenarios, these methods struggle. They have to concatenate all pages into one large page for processing, demanding substantial GPU resources, even for evaluation. In this work, we propose a novel method and efficient training strategy for multi-page Document VQA tasks. In particular, we employ a visual-only document representation, leveraging the encoder from a document understanding model, Pix2Struct. Our approach utilizes a self-attention scoring mechanism to generate relevance scores for each document page, enabling the retrieval of pertinent pages. This adaptation allows us to extend single-page Document VQA models to multi-page scenarios without constraints on the number of pages during evaluation, all with minimal demand for GPU resources. Our extensive experiments demonstrate not only achieving state-of-the-art performance without the need for Optical Character Recognition (OCR), but also sustained performance in scenarios extending to documents of nearly 800 pages compared to a maximum of 20 pages in the MP-DocVQA dataset. Our code is publicly available at \url{https://github.com/leitro/SelfAttnScoring-MPDocVQA}.

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

↑