Saved in:
Bibliographic Details
Main Authors: Xu, Longwei, Feng, Feng, Zhang, Shaojie, Chen, Xin, Li, Hang, Du, Anan, Yu, Hailong, Fu, Pei, Luo, Zhenbo, Luan, Jian
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.00161
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917424502145024
author Xu, Longwei
Feng, Feng
Zhang, Shaojie
Chen, Xin
Li, Hang
Du, Anan
Yu, Hailong
Fu, Pei
Luo, Zhenbo
Luan, Jian
author_facet Xu, Longwei
Feng, Feng
Zhang, Shaojie
Chen, Xin
Li, Hang
Du, Anan
Yu, Hailong
Fu, Pei
Luo, Zhenbo
Luan, Jian
contents Optical Character Recognition (OCR) is increasingly regarded as a foundational capability for modern vision-language models (VLMs), enabling them not only to read text in images but also to support downstream reasoning in real-world visual question answering (VQA). However, practical applications further require reliable text anchors, i.e., accurately grounding queried text to its corresponding spatial region. To systematically evaluate this capability, we introduce TextAnchor-Bench (TABench), a benchmark for fine-grained text-region grounding, which reveals that both general-purpose and OCR-specific VLMs still struggle to establish accurate and stable text anchors. To address this limitation, we propose Q-Mask, a precise OCR framework built upon a causal query-driven mask decoder (CQMD). Inspired by chain-of-thought reasoning, Q-Mask performs causal visual decoding that sequentially generates query-conditioned visual masks before producing the final OCR output. This visual CoT paradigm disentangles where the text is from what the text is, enforcing grounded evidence acquisition prior to recognition and enabling explicit text anchor construction during inference. To train CQMD, we construct TextAnchor-26M, a large-scale dataset of image-text pairs annotated with fine-grained masks corresponding to specific textual elements, encouraging stable text-region correspondences and injecting strong spatial priors into VLM training. Extensive experiments demonstrate that Q-Mask substantially improves text anchoring and understanding across diverse visual scenes.
format Preprint
id arxiv_https___arxiv_org_abs_2604_00161
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Q-Mask: Query-driven Causal Masks for Text Anchoring in OCR-Oriented Vision-Language Models
Xu, Longwei
Feng, Feng
Zhang, Shaojie
Chen, Xin
Li, Hang
Du, Anan
Yu, Hailong
Fu, Pei
Luo, Zhenbo
Luan, Jian
Computer Vision and Pattern Recognition
Optical Character Recognition (OCR) is increasingly regarded as a foundational capability for modern vision-language models (VLMs), enabling them not only to read text in images but also to support downstream reasoning in real-world visual question answering (VQA). However, practical applications further require reliable text anchors, i.e., accurately grounding queried text to its corresponding spatial region. To systematically evaluate this capability, we introduce TextAnchor-Bench (TABench), a benchmark for fine-grained text-region grounding, which reveals that both general-purpose and OCR-specific VLMs still struggle to establish accurate and stable text anchors. To address this limitation, we propose Q-Mask, a precise OCR framework built upon a causal query-driven mask decoder (CQMD). Inspired by chain-of-thought reasoning, Q-Mask performs causal visual decoding that sequentially generates query-conditioned visual masks before producing the final OCR output. This visual CoT paradigm disentangles where the text is from what the text is, enforcing grounded evidence acquisition prior to recognition and enabling explicit text anchor construction during inference. To train CQMD, we construct TextAnchor-26M, a large-scale dataset of image-text pairs annotated with fine-grained masks corresponding to specific textual elements, encouraging stable text-region correspondences and injecting strong spatial priors into VLM training. Extensive experiments demonstrate that Q-Mask substantially improves text anchoring and understanding across diverse visual scenes.
title Q-Mask: Query-driven Causal Masks for Text Anchoring in OCR-Oriented Vision-Language Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2604.00161