Marten: Visual Question Answering with Mask Generation for Multi-modal Document Understanding

Zining Wang, Tongkun Guan, Pei Fu, Chen Duan, Qianyi Jiang +5 more
2/10/2026

Official code: PriNing/Marten (13 stars, last commit 2025-07-27).

Abstract

Multi-modal Large Language Models (MLLMs) have introduced a novel dimension to document understanding, i.e., they endow large language models with visual comprehension capabilities; however, how to design a suitable image-text pre-training task for bridging the visual and language modality in document-level MLLMs remains underexplored. In this study, we introduce a novel visuallanguage alignment method that casts the key issue as a Visual Question Answering with Mask generation (VQA-Mask) task, optimizing two tasks simultaneously: VQA-based text parsing and mask generation. The former allows the model to implicitly align images and text at the semantic level. The latter introduces an additional mask generator (discarded during inference) to explicitly ensure alignment between visual texts within images and their corresponding image regions at a spatially-aware level. Together, they can prevent model hallucinations when parsing visual text and effectively promote spatially-aware feature representation learning. To support the proposed VQAMask task, we construct a comprehensive image-mask generation pipeline and provide a large-scale dataset with 6M data (MTMask6M). Subsequently, we demonstrate that introducing the proposed mask generation task yields competitive document-level understanding performance. Leveraging the proposed VQAMask, we introduce Marten, a trainingefficient MLLM tailored for document-level understanding. Extensive experiments show that our Marten consistently achieves significant improvements among 8B-MLLMs in document-centric tasks. Code and datasets are available at https://github.com/PriNing/Marten.

View on arXivView PDF

Code Implementations(1)

PriNing/MartenOfficial100%

Visual Question Answering with Mask generation

133Shell, PythonMar 2, 20251 years ago

Similar Papers

Cite this paper

@article{wang2026marten,
  title  = {Marten: Visual Question Answering with Mask Generation for Multi-modal Document Understanding},
  author = {Zining Wang and Tongkun Guan and Pei Fu and Chen Duan and Qianyi Jiang and Zhentao Guo and Shan Guo and Junfeng Luo and Wei Shen and Xiaokang Yang},
  year   = {2026},
  eprint = {2503.14140},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.14140},
  journal = {CVPR 2025 2025}
}

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/2503.14140.svg)](https://codeofpaper.com/paper/2503.14140)

Discussion