DocPrune: Efficient Document Question Answering via Background, Question, and Comprehension-aware Token Pruning

Joonmyung Choi, Sanghyeok Lee, Jongha Kim, Sehyung Kim, Dohwan Ko, Jihyung Kil, Hyunwoo J. Kim

TL;DR

DocPrune is a training-free, progressive token pruning framework that drastically accelerates document visual question answering (QA) in multimodal LLMs. By systematically eliminating blank background spaces and question-irrelevant content, and adaptively timing the pruning based on the model's internal comprehension level, it slashes computational overhead by over 57% while actually improving answer accuracy.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) are highly capable of understanding visually rich documents containing text, tables, and charts. However, running inference on multi-page documents is computationally crushing.

Unlike natural images, document images are inherently sparse: they feature massive blank backgrounds (margins, line spacing), and the actual evidence needed to answer a specific question is typically confined to a tiny, localized region. Standard token reduction methods designed for natural photos or videos fail here; they rely on local visual redundancy, meaning blindly dropping or merging patches easily breaks text continuity and destroys crucial layout cues. Furthermore, existing pruning methods rely on rigid, fixed heuristics to decide at which layer to drop tokens, completely ignoring how a model's understanding of a document evolves dynamically across layers.

Methods

DocPrune introduces a three-stage, training-free progressive pruning pipeline that targets different types of redundancy at different points in the model architecture:

  1. Background Token Pruning (BTP): Before the document image even enters the vision encoder, BTP analyzes pixel intensity to identify and discard uniform background patches (like margins). This safely discards uninformative tokens without touching any semantic content.
  2. Question-aware Token Pruning (QTP): To filter out content that is informative but irrelevant to the specific user query, QTP calculates the cosine similarity between document tokens and question tokens using pre-computed embeddings from the document retrieval stage. It applies a Gaussian smoothing kernel to handle resolution gaps between different encoders and reduce localized noise.
  3. Comprehension-aware Token Pruning (CTP): During the LLM decoding phase, DocPrune avoids hardcoded layer heuristics. Instead, it monitors the $L_2$ norm of the decoder's last token representation as a proxy for the model's "comprehension" or confidence. Once this metric crosses a specific threshold, it triggers a one-time pruning step based on attention weights.
Figure 7. Overview of DocPrune. DocPrune consists of two stages for document visual question answering. During the retrieval stage, Background Token Pruning (BTP) removes background tokens while keeping visual and textual content. During the question an- swering stage, BTP and Question-aware Token Pruning (QTP) remove question-irrelevant tokens before the vision encoder input, and Comprehension-aware Token Pruning (CTP) further prunes tokens in the LLM decoder based on comprehension level for efficient infer- ence.

Datasets

The authors evaluated DocPrune across several diverse and challenging document understanding benchmarks:

  • M3DocRAG: A multi-page, multi-document retrieval-augmented generation benchmark used as the primary baseline.
  • MMLongBench-Doc: A benchmark specifically targeting long-context document understanding.
  • VDocRAG Ecosystem: To prove cross-domain generalization, the authors tested on ChartQA, SlideVQA, InfoVQA, and DUDE (Document Understanding Dataset and Evaluation).

No new datasets were introduced in this work.

Key Insights and Ideas

  • The Background is Dead Weight: On average, 36% of document image patches consist entirely of uniform background. Eliminating them early saves massive encoder computation without losing any semantic data.
  • Attention is Hyper-Concentrated: The authors observed that the top 10% most-attended tokens account for 50%–80% of the total attention weight during QA.
  • $L_2$ Norm as a Confidence Meter: A key "aha" moment was discovering that the $L_2$ norm of the hidden state of the last token reliably tracks the model's evolving comprehension. Easier questions cause this value to spike in earlier layers, while harder questions require deeper processing before triggering pruning. This allows for an adaptive pruning layer choice based on sample difficulty.
Figure 8. Illustration of proposed components. Background token pruning (BTP, Sec.3.2) removes background tokens while preserving content tokens. Question-aware token pruning (QTP, Sec.3.3) further eliminates content tokens that are highly irrelevant to the question based on retrieval scores. Finally, Comprehension-aware token pruning (CTP, Sec. 3.4) retains only a small subset of crucial tokens by considering both the model’s level of comprehension about the question and the attention based importance of each token.

Key Results

  • Massive Speedups: On the M3DocRAG benchmark, DocPrune achieved a 3.0× throughput increase in the vision encoder and a 3.3× increase in the LLM decoder, reducing total FLOPs by 57.3%.
  • Accuracy Boost: Remarkably, instead of degrading performance like prior methods, DocPrune boosted the F1 score by +1.0 (and Exact Match by +1.5) on M3DocRAG. Removing irrelevant tokens acts as a denoising mechanism, helping the LLM focus purely on the core evidence.
F1 Score vs TFLOPs comparison against other token reduction methods

Limitations and Future Work

While DocPrune is training-free and highly effective, its Question-aware Token Pruning (QTP) stage relies on the availability of high-quality token embeddings from the initial retrieval stage. If the retrieval model uses an entirely incompatible embedding space or fails to capture semantic alignment, QTP's filtering performance could degrade.

The authors suggest that future work could explore tighter integration with a wider variety of MLLM architectures and extend the comprehension-aware metric to handle multi-turn interactive document conversations.

Summary updated

BibTeX
@inproceedings{choi2026docprune,
  author = {Joonmyung Choi and Sanghyeok Lee and Jongha Kim and Sehyung Kim and Dohwan Ko and Jihyung Kil and Hyunwoo J. Kim},
  title = {{DocPrune: Efficient Document Question Answering via Background, Question, and Comprehension-aware Token Pruning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=yFlarODSDo},
}
Figure