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

Lei Kang, Rubèn Tito, Ernest Valveny, Dimosthenis Karatzas
4/29/2024
cs.CV

Official code: leitro/SelfAttnScoring-MPDocVQA (6 stars, MIT, last commit 2024-08-29).

Abstract

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}.

View on arXivView PDF

Code Implementations(1)

MIT

Official Implementation for ICDAR2024 paper "Multi-Page Document Visual Question Answering using Self-Attention Scoring Mechanism"

60PythonApr 29, 20242 years agoMIT

Similar Papers

Cite this paper

@article{kang2024multipage,
  title  = {Multi-Page Document Visual Question Answering using Self-Attention Scoring Mechanism},
  author = {Lei Kang and Rubèn Tito and Ernest Valveny and Dimosthenis Karatzas},
  year   = {2024},
  eprint = {2404.19024},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.19024v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.19024.svg)](https://codeofpaper.com/paper/2404.19024)

Discussion