Prism: Hierarchical Text Detection with Minimalist Design
Authors: Yuchen Su, Xuesheng Wang, Zhilong Ji, Jinfeng Bai, Shijian Lu, Zhineng Chen
Organizations: Institute of Trustworthy Embodied AI, Fudan University · Shanghai Key Laboratory of Multimodal Embodied AI · Tomorrow Advancing Life · Nanyang Technological University
Hierarchical text detection aims to localize words, text lines, and paragraphs while parsing their structural relationships. It provides essential structural cues for visual text understanding. To maximize accuracy, existing methods typically rely on complex multi-scale feature fusion necks and heavy-weight heads, resulting in bloated architectures and low inference efficiency. In this paper, we argue that a sufficiently pre-trained backbone can effectively replace these sophisticated external modules, while simple geometric inclusion suffices for hierarchical text structural parsing. Thus, we propose Prism, a minimalist framework for hierarchical text detection. Prism performs multi-granularity detection by attaching parallel lightweight heads to a single-scale backbone feature map, covering words, text lines, and paragraphs, and reconstructs the structural hierarchy via an efficient geometric inclusion algorithm. In addition, we systematically compare representative lightweight head archetypes and show that pixel-level regression offers the best accuracy-efficiency trade-off in this setting. Experiments on multiple public benchmarks show that our significantly simplified architecture achieves state-of-the-art (SOTA) performance with remarkable efficiency. Specifically, it runs 1.7× faster than LRANet on CTW1500 while achieving higher accuracy, and surpasses the current SOTA method, OmniParser V2, by over 6 PQ points on the hierarchical HierText dataset. Code will be released soon.
Figures & tables
Figure 1: Comparison between Prism and other mainstream text detection methods on Total-Text. (a) shows a breakdown of the inference time across different components for each method at a uniform input resolution of 1024 × 1024. (b) compares their F-measures, evaluated at each method’s optimal resolution. † denotes our method adopts sufficient pre-training.
Figure 2: Visualization of Prism. Like a prism refracting light, our framework decomposes a single-scale feature into a rich spectrum of hierarchical outputs, spanning words, lines, paragraphs, and their geometric layouts.
Figure 3: The overview of our Prism . It consists of only two main components: a backbone and a set of parallel, lightweight heads. “Task-specific activation” denotes selectively activating a specific expert head based on the required task configuration.
Figure 4: Detailed architectures of the four lightweight head archetypes.
Method
MSRA-TD500
ICDAR19 ArT
Total-Text
CTW1500
R
P
F
R
P
F
R
P
F
R
P
F
FPS
PCR [ 8 ]
83.5
90.8
87.0
66.1
84.0
74.0
82.0
88.5
85.2
82.3
87.2
84.7
–
FSG [ 33 ]
84.8
91.6
88.1
–
–
–
85.7
90.7
88.1
82.4
88.1
85.2
–
TextPMs [ 47 ]
87.0
91.0
88.9
–
–
–
87.7
90.0
88.8
83.8
87.8
85.7
14.4
DB++ [ 20 ]
83.3
91.5
87.2
–
–
–
83.2
88.9
86.0
82.8
87.9
85.3
38.3
TPSNet [ 38 ]
–
–
–
73.3
84.3
78.4
86.8
89.5
88.1
85.1
87.7
86.4
17.9
Table 1: Scene text detection results on typical benchmarks. All FPS values are uniformly measured using a single NVIDIA RTX 3090 GPU.
Validation Set
Test Set
Method
Word
Line
Para.
Word
Line
Para.
PQ
F
PQ
F
PQ
F
PQ
F
PQ
F
PQ
F
UniDec [ 26 ]
48.5
61.7
61.3
78.7
52.9
67.7
48.2
61.5
62.2
79.9
53.6
68.6
LayoutFormer [ 18 ]
–
–
–
–
–
–
49.2
64.9
46.2
60.7
43.0
56.4
Hi-SAM-B [ 42 ]
59.2
77.5
62.9
81.4
55.7
72.6
59.7
78.3
63.3
82.2
54.5
71.2
Hi-SAM-L [ 42 ]
62.6
81.0
65.6
84.0
58.8
75.8
63.1
81.8
66.2
84.9
57.6
74.5
Table 2: Hierarchical text detection results on the HierText dataset.
Table 7Table 8Table 9
Figure 5: Detailed architecture of the learnable relation module used for comparison against our parameter-free geometric hierarchy parsing.
Feat.
Word
Line
Para.
FPS
PQ
F
PQ
F
PQ
F
C3
75.0
89.6
69.6
83.7
62.2
74.9
8.0
C4
75.8
90.4
71.1
86.0
66.8
81.4
8.1
C5
68.0
86.1
64.8
82.0
61.1
77.3
7.4
Table 11: Backbone feature selection. Comparisons of different single-scale backbone feature maps on the HierText test set. C3 , C4 , and C5 represent features at 1/8, 1/16, and 1/32 scales, respectively.
Figure 12
Figure 8: Visualization results of Prism on scene text detection benchmarks: CTW1500, Total-Text, ICDAR19 ArT, and MSRA-TD500.
Scene Text Recognition requires modeling visual structures that evolve from coarse layouts to fine-grained character strokes. Training such models relies on large amounts of annotated data. Recent self-supervised approaches, such as Masked Image Modeling (MIM), alleviate this dependency by leveraging large-scale unlabeled data. Yet most existing MIM methods operate at a single spatial scale and fail to capture the hierarchical nature of scene text. In this work, we introduce Masked Next-Scale Prediction (MNSP), a unified self-supervised framework designed to explicitly model cross-scale structural evolution. The framework incorporates Next-Scale Prediction (NSP), which learns hierarchical representations by predicting higher-resolution features from lower-resolution contexts. Naive scale prediction, however, tends to produce spatially diffuse attention, directing the model toward background regions rather than textual structures. MNSP resolves this limitation by jointly learning cross-scale prediction and masked image reconstruction. NSP captures global layout priors across resolutions, while masked reconstruction imposes strong local constraints that guide attention toward informative text regions. A Multi-scale Linguistic Alignment module further maintains semantic consistency across different resolutions. Extensive experiments demonstrate that MNSP achieves state-of-the-art performance, reaching 86.2% average accuracy on the challenging Union14M benchmark and 96.7% across six standard datasets. Additional analyses show that our method improves robustness under extreme scale and layout variations. Code is available at https://github.com/CzhczhcHczh/MNSP
Zhuohao Chen, Zeng Li, Yifei Zhang +2
1Nankai University · Institute of Information Engineering, Chinese Academy of Sciences · Department of Automation and BNRist, Tsinghua University
Efficient teamwork typically combines global coordination with parallel execution, a principle not yet fully reflected in unified Vision-Language Model (VLM)-based document parsers. Existing unified parsers process an entire page jointly but generate its output through a single token-by-token autoregressive trajectory, creating a sequential bottleneck that grows with document length. Such full-page sequential generation overlooks a key property of document parsing: layout must be analyzed globally, whereas block content can be parsed in parallel. Based on this observation, we introduce HPD-Parsing, which replaces full-page autoregressive generation with a Hierarchical Parallel Decoding paradigm. A main layout branch organizes the overall document structure and dynamically assigns block-level content decoding to concurrent branches, while progressive multi-token prediction (P-MTP) further reduces the decoding steps within each branch. Experiments on public benchmarks show that HPD-Parsing achieves 4,752 tokens per second, delivering 2.62× the throughput of the fastest existing document parsing model and 3.06× that of the vanilla autoregressive baseline, while maintaining competitive parsing accuracy. These results establish hierarchical parallel decoding as an effective alternative to full-page autoregressive generation, opening a new direction for efficient unified document parsing.
In this paper we investigate the generalization capability of state-of-the-art object detection models (Hi-SAM, YOLO, and RT-DETR) for the automatic segmentation of text lines in historical documents. Generalization is needed because it is not practical for museums and archives to produce large amounts of labeled samples for each new collection. We also evaluate the few-shot setting by fine-tuning the networks with only a small number of training samples per target dataset. To this end, we use nine different datasets that differ significantly in visual layout and language. Additionally, we discuss why mean average precision (mAP), a classic evaluation metric for object detection, is insufficient for assessing the quality of a text line segmentation model. Depending on the dataset, our CRNN models achieve character error rates (CER) ranging from 2.48% to 7.07% per page for the segmented text lines. This is sufficient for reading comprehension and simple text searches. Finally, we quantify the resource and time requirements of training and inference in different use case settings. This forms the basis for more informed decisions about model and hardware choices based on available resources.
Gayan H. Pathirage, Stephan M. Unter, Simon Corbillé +1
Machine Learning Group, Luleå University of Technology, Luleå, Sweden · University of Rouen Normandy, Rouen, France