NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

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

Introduction

Document Visual Question Answering (DocVQA) has traditionally focused on single-page analysis. However, real-world applications—such as legal reviews or technical manual searches—often involve documents spanning hundreds of pages. Researchers have recently developed a new, OCR-free method for Multi-Page Document Visual Question Answering (MP-DocVQA) designed to handle these massive scales efficiently. By utilizing a self-attention scoring mechanism to retrieve relevant pages before answering, this model achieves state-of-the-art accuracy while significantly reducing computational overhead.

The Challenge of Scale and OCR

Existing multi-page DocVQA methods face two primary hurdles: resource intensity and a heavy dependency on Optical Character Recognition (OCR). Concatenating hundreds of pages into a single sequence consumes prohibitive amounts of GPU memory. Furthermore, OCR processes are often slow, noisy, and can strip away vital visual context like layout, font styles, and diagrams. This research addresses these issues by creating a system that navigates large documents to find the specific page needed to answer a question without relying on explicit text extraction.

A Two-Stage Visual-Only Pipeline

The proposed architecture is built on the Pix2Struct framework, treating document understanding as a pixel-to-pixel problem. The model renders the question as an image and concatenates it with the document page, maintaining all visual and structural information.

The proposed two-stage pipeline for multi-page document VQA.

The system operates in two distinct stages:

  1. Retrieval: The model iterates through every page in a document. Each question-page pair is passed through a frozen pre-trained encoder and a lightweight Self-Attention Scoring Module to generate a relevance score between 0 and 1.
  2. Answering: Only the page with the highest relevance score (Top-1) is passed through the full encoder-decoder pipeline to generate the final natural language answer.

Datasets and the "Needle in a Haystack"

The study primarily utilizes the MP-DocVQA dataset, which consists of approximately 46,000 questions across 6,000 documents. A critical contribution of this work is the introduction of the MP-DocVQA Extended dataset. While the standard test set limits documents to 20 pages, the Extended version includes complete documents with up to 793 pages, providing a rigorous test for retrieval mechanisms in massive "haystacks."

Distribution of document lengths in the standard vs. extended MP-DocVQA datasets.

Key Results and Insights

  • State-of-the-Art Page Prediction: The model achieved 81.55% page prediction accuracy on the standard MP-DocVQA test set, outperforming previous leaders like Hi-VT5.
  • Competitive Answer Accuracy: The model reached an Average Normalized Levenshtein Similarity (ANLS) of 0.6199, matching state-of-the-art performance without the need for OCR or excessive parameters.
  • The "First Vector" Advantage: Ablation studies revealed that using the first vector of the encoded sequence as the matching representation (82.19% accuracy) significantly outperformed traditional [CLS] tokens (60.56%), suggesting the encoder naturally aggregates global context at the start of the sequence.
  • Scalability: By decoupling retrieval from generation, the model avoids the "memory wall," allowing it to process 800-page documents where other models would fail.

Limitations and Future Directions

While effective, the model currently assumes the answer exists on a single page, making it unsuitable for multi-hop reasoning across multiple pages. Additionally, while memory-efficient, the linear scan required to score every page in a 1,000-page document introduces retrieval latency. Future work may focus on more granular extraction mechanisms to improve answer accuracy once the correct page is identified.

Summary updated

BibTeX
@inproceedings{kang2024multi,
  author = {Lei Kang and Rubèn Tito and Ernest Valveny and Dimosthenis Karatzas},
  title = {{Multi-Page Document Visual Question Answering using Self-Attention Scoring Mechanism}},
  booktitle = {ICDAR},
  year = {2024},
  doi = {10.1007/978-3-031-70552-6\_13},
}
Figure