TL;DR
OmniParser V2 unifies four core visually-situated text parsing tasks—text spotting, key information extraction, table recognition, and layout analysis—into a single, task-agnostic encoder-decoder framework. By introducing a two-stage Structured-Points-of-Thought (SPOT) prompting strategy, the model decouples structural layout understanding from dense text and polygon generation. This approach achieves state-of-the-art results, reduces model complexity by 23.6% compared to its predecessor, and seamlessly scales to enhance the text-parsing capabilities of Multimodal Large Language Models (MLLMs).
What Problem Does This Paper Address?
Parsing text within rich visual contexts (like documents, receipts, tables, and signage) is highly challenging. Historically, the field of Visually-situated Text Parsing (VsTP) has been fragmented. Researchers typically rely on "specialist" models tailored to individual sub-tasks, which requires complex pipelines, task-specific heads, and heterogeneous output schemas. Conversely, existing "generalist" models often act as black boxes, struggle with spatial precision, or depend heavily on external OCR engines.
OmniParser V2 addresses this "modal isolation" by creating a unified framework capable of handling diverse text structures and spatial relationships without task-specific architectures or loss functions.
Methods
The architecture of OmniParser V2 relies on a standard vision encoder (Swin-B paired with a Feature Pyramid Network) and a novel token-router-based shared decoder. Instead of using traditional soft-routing Mixture-of-Experts (MoE) designs, this decoder uses explicit category priors embedded in the input sequence to route tokens directly to task-specialist Feed-Forward Networks (FFNs) for structure, detection, or recognition.
The core innovation is Structured-Points-of-Thought (SPOT) prompting, a two-stage generation strategy:
- Stage 1 (Get Structured Points): The model generates a Structured Points Sequence (SPS). This sequence combines task-specific structural markup tags (like
<tr>for tables or<line>for layout) with the quantized $(x, y)$ center points of text segments. - Stage 2 (Get Polygon / Content): Using the center points from Stage 1 as prompts, the shared decoder predicts the precise 16-point polygonal contours and the textual content in parallel.
To boost spatial and semantic awareness during pre-training, the authors introduce two window-prompting strategies:
- Spatial-Window Prompting: Instructs the model to only parse text within a specific coordinate bounding box.
- Prefix-Window Prompting: Instructs the model to only locate text instances that begin with a specified character prefix.
Datasets
OmniParser V2 underwent a two-stage pre-training process on a massive hybrid dataset combining:
- Text Spotting & OCR: Curved SynthText, ICDAR 2013, ICDAR 2015, MLT 2017, Total-Text, TextOCR, COCO Text, and Open Image V5.
- Layout Analysis: HierText.
For downstream task evaluation, the authors utilized:
- Text Spotting: Total-Text, CTW1500, and ICDAR 2015.
- Key Information Extraction (KIE): CORD and SROIE.
- Table Recognition: PubTabNet and FinTabNet.
- Layout Analysis: HierText, PubLayNet, DocLayNet, and M6Doc.
- MLLM Benchmarking: OCRBench and HallusionBench.
Key Insights and Ideas
- The Power of Decoupling: Standard end-to-end sequence generation models often suffer from "attention drift" and error accumulation when dealing with long sequences (e.g., parsing a massive table's HTML structure and cell text simultaneously). By separating the layout structure (center points) from the dense text/polygon generation, OmniParser V2 drastically shortens the target sequence length in each stage, simplifying the learning process.
- Parallel Execution: Because Stage 2 treats each center point independently, the polygon and text content predictions can be computed in parallel across an entire batch, significantly boosting inference speed.
- Deterministic Token Routing: Replacing learned MoE routing with deterministic, category-prior routing eliminates expert balancing overhead and mitigates conflicts between the sub-tasks of decoding coordinates vs. text characters.
Key Results
- Performance SOTA: OmniParser V2 established new state-of-the-art results for text spotting on Total-Text (+0.6%) and CTW1500 (+0.4%) under lexicon-based evaluations. It also outperformed existing unified models in table recognition (achieving a TEDS score of 90.5 on PubTabNet) and layout analysis.
- Efficiency: The token-router-based decoder yielded a 23.6% reduction in model size compared to V1 and achieved an inference speed of 8.2 FPS, outperforming most Transformer-based baselines.
- MLLM Generality: When applied to existing MLLMs (such as Qwen2-VL and InternVL2.5), SPOT prompting consistently delivered substantial performance gains across all four text-parsing tasks. Notably, it improved Qwen2.5-VL-3B's accuracy on HallusionBench from 63.8% to 68.5%, demonstrating that spatial anchoring effectively mitigates model hallucinations.
Limitations and Future Work
While OmniParser V2 excels at structural text parsing, its high-level document reasoning and comprehension capabilities remain limited. The authors note that integrating advanced reinforcement learning techniques—such as Group Relative Policy Optimization (GRPO)—is a promising future direction to enhance the model's deep reasoning and interpretability in document-oriented tasks.
Summary updated