VDInstruct: Zero-Shot Key Information Extraction via Content-Aware Vision Tokenization

Son Nguyen, Giang Nguyen, Hung Dao, Thao Do, Daeyoung KimarXiv 2025 · OpenReview

TL;DR

This paper introduces VDInstruct, a novel multimodal LLM for Key Information Extraction (KIE) that tackles the inefficiency of current models by employing a content-aware tokenization strategy. By decoupling spatial region detection from semantic feature extraction and generating tokens based on document complexity, VDInstruct achieves state-of-the-art KIE performance while significantly reducing the number of image tokens, leading to more efficient and robust document understanding.

What Problem Does This Paper Address?

Understanding visual documents like receipts and contracts, known as Visual Document Understanding (VDU), is crucial for many applications. A core task in VDU is Key Information Extraction (KIE), which involves pinpointing and extracting specific pieces of information (e.g., vendor names, dates, amounts). Existing multimodal large language models (MLLMs) often struggle with dense documents and rely on vision tokenization methods that generate a large number of tokens proportional to image size. This leads to computational inefficiency, memory issues, and potential loss of critical spatial and semantic details, especially for unseen document layouts. The paper aims to address this by developing a more efficient and robust KIE model that can generalize well to new document formats without extensive fine-tuning.

Methods

VDInstruct introduces a dual vision encoder architecture to overcome the limitations of single-encoder approaches. This architecture comprises:

  • Spatial Encoder: This component is responsible for detecting and encoding layout-specific regions (called Multimodal Regions of Interest or RoIs) within the document. It uses a Faster R-CNN-based detector to identify both text and visual regions. Crucially, it's trained end-to-end on document parsing tasks, eliminating the need for external OCR tools and focusing solely on region localization. The detected RoIs are then projected into spatial tokens.
  • Semantic Encoder: This encoder extracts fine-grained semantic tokens from the detected RoIs. It utilizes a high-resolution backbone and specialized pooling modules (text pooling, vision pooling, and cross-modality pooling) to capture rich textual and visual features.

The core innovation is the content-aware tokenization strategy. Instead of uniformly fragmenting the entire image, VDInstruct generates tokens proportionally to the document's complexity, preserving critical structure and eliminating redundant tokens. This is achieved by the spatial encoder identifying informative regions and the semantic encoder processing them.

The model is trained using a three-stage paradigm:

  1. Layout Pretraining: Trains the spatial encoder to detect RoIs.
  2. Feature Learning: Trains the semantic encoder and spatial embedding layer to learn meaningful visual representations from detected RoIs.
  3. Instruction Tuning: Fine-tunes the entire model to understand and execute complex VDU tasks based on instructions, enabling zero-shot capabilities.

Datasets

The paper utilizes several datasets for training and evaluation:

  • VDInstruct-Parsing Dataset: A newly curated, comprehensive, instruction-based KIE benchmark created by unifying eight diverse public document datasets. Six of these are used for in-domain tuning (Deepform, DocILE, KLC, PWC, SROIE, Wildreceipt), and two are held out for zero-shot robustness testing (FUNSD, CORD).
  • InstructDoc Dataset: Used for the instruction tuning stage, this dataset incorporates samples from six KIE datasets and is formatted for unified instruction following.
  • DocOwl 1.5 and DocStruct4M datasets: Used for document parsing tasks during feature learning.

Key Insights and Ideas

  • Decoupling Spatial and Semantic Processing is Key: The dual vision encoder effectively separates the tasks of identifying where information is (spatial) from what that information is (semantic). This specialization allows each component to be optimized for its specific role, leading to better overall performance.
  • Content-Aware Tokenization is More Efficient: Generating image tokens based on the content and complexity of a document, rather than just its pixel resolution, drastically reduces redundancy. This is a significant step towards making multimodal models more scalable and efficient for document understanding.
  • Explicit Layout Modeling Matters for Zero-Shot: The emphasis on spatial encoding and layout awareness, combined with instruction tuning, allows VDInstruct to generalize better to unseen document layouts, a critical challenge in VDU.
  • Complementary Semantic Modalities: Combining cross-modality, textual, and visual semantic tokens yields the best performance, indicating that each modality contributes unique and valuable information.

Key Results

  • State-of-the-Art KIE Performance: VDInstruct achieves SOTA results on KIE benchmarks, both in-domain and out-of-domain (zero-shot).
  • Significant Token Reduction: VDInstruct uses approximately 500 image tokens per page, which is about 3.6x fewer than DocOwl 1.5 (around 1768 tokens). This efficiency is achieved without sacrificing accuracy.
  • Improved Zero-Shot Generalization: In zero-shot evaluations, VDInstruct surpasses strong baselines like DocOwl 1.5 by +5.5 F1 points, demonstrating its robustness to unseen documents.
  • High ROI Detection Accuracy: The spatial encoder achieves an mAP of 0.611 and AP@50 of 0.818, indicating strong localization capabilities.
  • Efficiency Gains: Despite token reduction, VDInstruct matches or exceeds the accuracy of leading approaches, highlighting its efficient vision encoding.

Limitations and Future Work

  • Dependence on Spatial Encoder Accuracy: The paper acknowledges that VDInstruct's performance is heavily reliant on the accuracy of its spatial encoder's predictions. Incorrect or overlapping bounding box detections can lead to redundant tokens and negatively impact performance.
  • Future Work: The authors suggest expanding the training dataset with more diverse document types and resolutions to further improve the model's robustness and address the limitations of the spatial encoder. They also imply that further exploration into optimizing the interplay between spatial and semantic tokens could yield even better results.

Summary updated

Abstract

Key Information Extraction (KIE) underpins the understanding of visual documents (e.g., receipts and contracts) by extracting precise semantic content and accurately capturing spatial structure. Yet existing multimodal large language models (MLLMs) often perform poorly on dense documents and rely on vision tokenization approaches that scale with image size, leading to redundant computation and memory inefficiency. To address these challenges, we introduce VDInstruct, an MLLM that separates spatial region detection from semantic feature extraction. Central to our model is a content-aware tokenization strategy: rather than fragmenting the entire image uniformly, it generates tokens in proportion to document complexity, preserving critical structure while eliminating wasted tokens. Leveraging a three-stage training paradigm, our model achieves state-of-the-art (SOTA) results on KIE benchmarks, matching or exceeding the accuracy of leading approaches while reducing the number of image tokens by roughly 3.6x. In zero-shot evaluations, VDInstruct surpasses strong baselines-such as DocOwl 1.5-by +5.5 F1 points, highlighting its robustness to unseen documents. These findings show that content-aware tokenization combined with explicit layout modeling offers a promising direction forward for document understanding. Data, source code, and model weights will be made publicly available.
BibTeX
@misc{nguyen2025vdinstruct,
  author = {Son Nguyen and Giang Nguyen and Hung Dao and Thao Do and Daeyoung Kim},
  title = {{VDInstruct: Zero-Shot Key Information Extraction via Content-Aware Vision Tokenization}},
  year = {2025},
  eprint = {2507.09531},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.09531},
}
Figure