Manuscript Offprint
arXiv:2609.07081SupGRPO: Enhancing GRPO with Matching-based Online SFT for Text Spotting
Xudong Xie , Yuzhe Li , Jing Shi , Zhifei Zhang , Curtis Wigington , and Zhaowen Wang
Huazhong University of Science and Technology, Wuhan, China
{xdxie,yzlii2}@hust.edu.cn
Adobe Research, San Jose, USA
{zhawang}@adobe.com
Abstract. Text spotting requires both accurate text recognition and precise spatial localization. Current specialised spotters excel at predicting tight bounding boxes in natural scenes, but falter on complex or artistic text, whereas multimodal large language models (MLLMs) possess strong recognition capabilities yet remain weak at localisation. To equip the text spotter with general and powerful recognition capabilities and to maximize its localization ability, we explore two MLLM-based fine-tuning methods: Supervised Fine-Tuning (SFT) and reinforcement learning fine-tuning based on Group Relative Policy Optimisation (GRPO). An interesting finding is that SFT is less effective than GRPO at enhancing recognition, while GRPO is less effective than SFT at enhancing detection. To compensate for each other's shortcomings, we introduce a joint training strategy, SupGRPO, which simultaneously optimizes the model using both SFT and GRPO. SupGRPO employs the specially designed reward functions and develops a matching-based online SFT applied solely to coordinate tokens. It both mitigates the reward sparsity problem of GRPO and avoids the instance order dependency problem of SFT. To evaluate particularly challenging cases, we curate ATS, a dataset for artistic text spotting. Experiments demonstrate that SupGRPO improves both text recognition and detection, and attains superior performance. Our code and dataset will be released at https://github.com/Psycho-9/SupGRPO.
Keywords: Text Spotting · Multimodal Large Language Models · OCR
1 Introduction
Text spotting is a crucial task in computer vision that involves simultaneously detecting the location and recognizing the content of text instances in images. Significant progress has been made by specialized text spotting models on natural scene images, with diverse approaches including segmentation-based methods like Mask TextSpotter [27], regression-based methods utilizing techniques such as
Equal contribution. This work was done while Xudong interned at Adobe Research.
✉ Corresponding author
X. Xie et al.

(b) SupGRPO combines GRPO and SFT and avoids their respective problems
Fig. 1. Comparison with other models and other training strategies.
Bezier curves in ABCNet [23,25], and transformer-based models like TESTR [45] and DeepSolo [42]. However, these methods often struggle substantially when faced with more intricate scenarios such as artistic text. These scenarios frequently exhibit stylized fonts, unconventional layouts, intricate textures, and complex visual integration, demanding advanced visual understanding and reasoning capabilities that often exceed the capacity of models designed for normal scene text.
Concurrently, Multimodal Large Language Models (MLLMs) have demonstrated powerful visual understanding abilities across a wide range of tasks, including advancements in OCR-related areas such as document understanding and scene text analysis, exemplified by models like TextMonkey [26], Vary [38], InternVL3.5 [37] and Qwen2.5-VL [2]. These capabilities suggest that MLLMs hold great potential for addressing the complexities inherent in challenging text scenarios like artistic text. Nevertheless, while these MLLMs show promising performance in text recognition and understanding, their ability to precisely predict the fine-grained location coordinates required for robust text spotting remains notably limited. The text spotting results from different types of models are shown in Fig. 1 (a).
To equip the text spotter with general and powerful recognition capabilities and to maximize its localization ability, we attempt to fine-tune the MLLM using
SFT and GRPO separately. According to the exploration in Sec. 4.4, an interesting finding is that SFT is less effective than GRPO at enhancing recognition, while GRPO is less effective than SFT at enhancing detection. First, we adopt the GRPO [33] training paradigm and apply it to the text spotting task. Within this adopted paradigm, we carefully craft rule-based reward functions tailored to guide the model's optimization for text spotting. Specifically, we utilize four rewards: a format reward for structured output, a text content reward for accurate text recognition, an IoU precision reward and an IoU recall reward for accurate text detection. Using GRPO-based reinforcement learning [33,12] enables the direct optimization of non-differentiable evaluation metrics (IoU and F1-score) and encourages reasoning exploration in ambiguous artistic scenes. However, the sparse reward signal provided by GRPO lacks the fine-grained, direct supervision that is essential for achieving highly accurate position coordinate prediction.
On the other hand, SFT can provide the model with token-level, fine-grained supervision, which is highly effective for the model to acquire accurate positional coordinates. However, for the text spotting task, SFT presents the instance order dependency problem, which often imposes an arbitrary and meaningless order among independent text instances. GRPO can effectively resolve this by optimizing for the set of predictions via order-agnostic rewards. Thus, it is essential to integrate SFT and GRPO within an end-to-end framework to achieve synergistic collaboration. Fig. 1 (b) illustrates the inherent features of different training strategies.
To address the limitations of both GRPO's reward sparsity for coordinates and standard SFT's sequence dependency, we propose SupGRPO, building upon the GRPO framework. SupGRPO applies a more targeted, matching-based online SFT specifically to the coordinate tokens of the predicted text instances. Specifically, for each output sequence sampled during GRPO training, we extract the coordinate tokens based on a regularized matching process. Then, each predicted text box derived from these coordinate tokens is matched with a corresponding ground truth (GT) text box. Finally, a per-token loss is calculated based on this matching, providing direct, token-level supervision for localization accuracy. This approach effectively leverages the benefits of SFT for precise coordinate learning while avoiding the drawbacks of standard SFT. Ultimately, we jointly train an MLLM using GRPO and the matching-based online SFT.
Existing scene text spotting datasets often do not adequately represent the artistic and complex scenarios that require strong visual understanding and reasoning, limiting the evaluation of models on such challenging data. In view of this, we construct an artistic text spotting dataset named ATS with 6.5k training images and 2.5k testing images. Experiments show the superiority of SupGRPO in both text detection and recognition across multiple benchmarks.
In summary, the main contributions are threefold:
(1) We expand the capability boundaries of MLLMs specifically for the text spotting task. Furthermore, it is the first academic study focused on the challenging scenario of artistic text spotting, moving beyond standard scene text.
X. Xie et al.
(2) We introduce an end-to-end training strategy SupGRPO. This design resolves the instance order dependency of standard SFT and the reward sparsity of vanilla GRPO. We also achieve a synergy where SFT enhances detection precision while GRPO boosts recognition reasoning.
(3) We construct a standardized dataset for artistic text spotting. We perform comprehensive evaluations of both specialized models and MLLMs on this benchmark, establishing a critical reference for future research in this domain.
2.1 Text Spotting Methods
Text spotting integrates text detection and recognition for simultaneous processing, exploiting their complementarity. Early methods like SEE [3] and those utilizing varying-size RoI Pooling [20] focused on horizontal or rotated text, often employing techniques like bilinear sampling [4] or RoI-Rotate [22] for feature alignment but struggling with curved or artistic text. This led to the development of arbitrarily-shaped text spotting, with significant progress made by segmentation-based methods, such as Mask TextSpotter [27], which use mask branches for instance and character segmentation, or methods like PGNet [36] which are single-shot and avoid character-level annotations. Concurrently, regression-based approaches achieved advanced performance by focusing on more accurate shape representations and feature sampling. These methods include using differentiable RoISlide [11], parameterized Bezier curves with BezierAlign in ABCNet [23,25], and recent DETR [5,46]-based methods like TESTR [45] and DeepSolo [42], or sequence-based methods like SPTS [28] and UNITS [18]. ES-TextSpotter [16] proposes to achieve explicit synergy between text detection and recognition. Bridge [14] effectively connects the well-trained detector and recognizer. While these methods greatly advanced the handling of arbitrarily-shaped text, they often struggle with more complex and challenging scenarios, such as artistic text.
2.2 Text Spotting Datasets
For scene text spotting, there is a synthetic dataset SynthText150K [23,25] proposed by Liu et al. to enrich the arbitrarily shaped scene text for training. Total-Text [7] contains 1,255 images for training and 300 images for testing. It is an arbitrarily-shaped scene text benchmark with polygon annotation on the word level. SCUT-CTW1500 [24] includes 1,000 training images and 500 testing images. It is also an arbitrarily-shaped scene text benchmark but with text-line level annotation. It contains both English and Chinese text. ICDAR 2015 [17] provides images captured by Google Glass in the real world, so there are many instances with small sizes, low resolution, or any orientation. It consists of 1,000 training images and 500 testing images. However, these datasets cannot represent complex scenes that rely on strong visual understanding and reasoning abilities.
2.3 Multimodal Large Language Models for OCR
Recent advancements in multimodal large language models (MLLMs) have significantly enhanced optical character recognition (OCR) capabilities, particularly in document understanding and scene text analysis. Models such as TextMonkey [26] achieve promising performance on text VQA and text spotting using shifted window attention and token resampling. TextHawk2 [43] enables efficient fine-grained perception with high token compression. Vary [38] expands the vision vocabulary for improved document parsing. Ocean-OCR [6] addresses variable resolution inputs, and UniDoc [10] focuses on unified multimodal instruction tuning for simultaneous text detection, recognition, spotting and understanding. mPLUG-DocOwl 1.5 [13] introduces multi-grained text localization and a novel H-Reducer module to enhance OCR-free document understanding across diverse domains. Furthermore, PaddleOCR-VL [8] demonstrates exceptional proficiency in complex layout parsing and high-precision text extraction. Some recent general MLLMs such as InternVL3.5 [37] and Qwen3-VL [1] show better performance in complex document understanding and text detection. Although these MLLMs have shown leading performance in text recognition and document understanding, their ability to accurately predict location coordinates is still very limited.
3 Method
3.1 Preliminary
Group Relative Policy Optimization (GRPO) is an efficient reinforcement learning algorithm initially proposed in the DeepSeekMath model to enhance mathematical reasoning capabilities in large language models [33]. Unlike standard Proximal Policy Optimization (PPO) [32], GRPO does not estimate a value function. Instead, it directly computes the advantage function based on relative rewards from multiple outputs sampled from the same input, simplifying training and reducing computational overhead.
Specifically, GRPO trains the policy to maximize an expected reward . It operates by sampling a group of output sequences for a given input from the policy. The objective function involves maximizing the expected relative advantage over these sampled outputs:
where is a past policy, is a reference policy, is a coefficient, and is the advantage for token . A core aspect of GRPO is the computation of based on the relative rewards within the sampled group, avoiding a separate value function model.
X. Xie et al.
As presented in DeepSeekMath [33], various training methods like SFT and GRPO can be understood under a unified framework for training generative policies. They optimize the same policy but differ in their objectives and how gradients are derived. The gradient can be expressed as:
This highlights three components: 1) Data Source ; 2) Reward Signal Source; and 3) Gradient Coefficient . SFT uses ground truth data () with . GRPO samples from the policy () using a reward model and computes based on group relative advantages. This framework provides a common lens to view distinct policy optimization strategies. Therefore, the objective function of SFT is:
The solid theoretical foundation proves the feasibility of unifying the optimization processes of SFT and GRPO in our method.
3.2 Reward Functions for Text Spotting
To effectively guide the GRPO training towards generating accurate text spotting results, we design four task-specific reward functions. These rewards evaluate different aspects of the model's output, providing a comprehensive signal for policy optimization. The total reward for a generated output sequence y is a combination of these individual reward components.
Format Reward This reward ensures that the generated sequence y adheres to the expected structured format, which is a list of dictionaries, where each dictionary contains a "bbox" key with a list of four numerical coordinates and a "text" key with the recognized text string. If the output sequence conforms to this predefined format, the model receives a reward of 1; otherwise, the reward is 0. This encourages the model to generate outputs that can be parsed for subsequent evaluation.
Text Reward This reward evaluates the accuracy of the recognized text content. We collect all predicted text strings from the parsed output and all ground truth text strings from the annotation. We then treat these as two sets of words and compute the word-level F1 score between them. Let be the set of all words from the predicted text strings in , and be the set of all words from the ground truth text strings in . The word-level F1 score is calculated based on the intersection and union of these two collections of words:
where represents the count of words common to both sets, and represents the total count of words in both sets. Note that our implementation treats predicted and ground truth words as Multisets (Bag of Words) to handle duplicate instances. Specifically, the intersection count for a given word w is calculated as . This mechanism ensures that valid duplicates (e.g., “Sale” appearing twice in the image) must be predicted the correct number of times to achieve full recall. Conversely, if the model hallucinates duplicates (e.g., predicting “Together” twice when it appears only once), the redundant prediction contributes to the total prediction count but not the intersection, thereby correctly penalizing the precision score.
We use the word-level F1-score to strictly align with the standard evaluation protocols for text spotting benchmarks, which typically rely on exact match criteria. Besides, the advantage of reinforcement learning is its ability to directly optimize the non-differentiable evaluation metrics. Using soft rewards like ANLS or Edit Distance introduces a misalignment: it encourages the model to learn approximate spellings (e.g., “Applo” vs. “Apple”) to maximize partial rewards, whereas the test protocol penalizes any character error as a complete failure.
IoU Precision Reward This reward assesses the overall precision of the detected bounding boxes. We compute the detection precision based on an Intersection-over-Union (IoU) matching strategy between predicted bounding boxes and ground truth bounding boxes . Predicted boxes are considered True Positives ( ) if they match a ground truth box with an IoU score exceeding a predefined threshold (typically 0.5). False Positives ( ) are predicted boxes that do not match any ground truth box. The precision score is calculated as the ratio of True Positives to the total number of predicted boxes.
IoU Recall Reward This reward evaluates the model's ability to detect all text instances in the image. False Negatives ( ) are ground truth boxes that are not matched by any predicted box. The recall score is calculated as the ratio of True Positives to the total number of ground truth boxes.
X. Xie et al.

Fig. 2. The overall framework of SupGRPO.
3.3 GRPO with Matching-based Online SFT
While GRPO effectively optimizes the policy based on global reward signals, providing coarse-grained guidance for text spotting, it inherently lacks the fine-grained, token-level supervision necessary for precise coordinate prediction. Standard SFT, conversely, can provide this detailed supervision. However, applying standard SFT to the full output token sequence of text spotting results is problematic, as it imposes an arbitrary linear order on typically independent text instances and introduces irrelevant learning objectives related to sequence ordering rather than accurate spatial and content prediction for each instance.
To overcome the limitations of both paradigms, we propose SupGRPO, a novel approach that integrates matching-based online SFT specifically targeting the coordinate tokens within the GRPO framework. SupGRPO operates during the GRPO training process, performing an auxiliary supervised update based on sampled sequences. The overall framework of SupGRPO is shown in Fig. 2.
For each output sequence sampled from the current policy during the GRPO exploration step, we parse the predicted text instances, extracting their predicted bounding box coordinates and associated text. We then establish correspondences by performing a matching process between these predicted bounding boxes and the ground truth bounding boxes for the input image . The matching process is based on both text content and IoU. A match is considered successful only if the text content is identical and the IoU between the predicted and GT boxes is greater than 0. This results in a set of matched pairs .
For each predicted bounding box that is successfully matched to a ground truth box , we compute a supervised loss of Cross-Entropy on the predicted coordinate tokens. The total coordinate SFT loss for a sampled sequence and corresponding ground truth is the sum of negative log-likelihoods for the ground truth coordinate tokens of the matched instances, conditioned on the preceding generated tokens:
(8) where denotes the sequence of ground truth coordinate tokens for the -th instance, and represents the context from the sampled sequence preceding token .
The overall training objective in SupGRPO combines the GRPO objective (Equ. 1), which aims to maximize expected rewards, with minimizing the expected supervised coordinate loss . Formulating this as minimizing a loss :
where is a weighting hyperparameter balancing the two objectives and we set it as 1e-4 by default. This formulation ensures that the model is trained via policy gradients guided by task-specific rewards while simultaneously receiving direct, token-level supervision for spatial accuracy based on matching, effectively integrating the benefits of SFT for localization within the GRPO framework and mitigating the issues associated with standard sequence-based SFT.
4 Experiments
4.1 Artistic Text Spotting Dataset
To benchmark the performance of different models on the artistic text spotting task, we construct a dataset of artistic text named ATS. The samples in this dataset are derived from two existing text segmentation datasets TextSeg [41] and WAS [40], from which we manually curated the artistic text samples, as well as corrected and re-annotated erroneous OCR labels. It includes 6500 training images and 2500 testing images. We provide word-level quadrilateral bounding box annotations and corresponding text transcriptions. The qualitative presentation of the ATS dataset is shown in Fig. 3. The data statistics are presented in the appendix. Specifically, there are some special challenges compared to scene text spotting: (1) Many greeting cards and advertisements often have severe overlap between text instances, which poses great difficulties for text detection and recognition. (2) The irregular arrangement of characters makes it difficult for the model to judge which characters belong to the same word to get accurate detection results, and variations in the reading order also affect the recognition performance. (3) An artistic text image often perfectly combines multiple text instances and design patterns, which hardly exist in scene text images. This phenomenon results in complex relationships between instances and is difficult to distinguish from other elements. These challenges require models with strong visual understanding and reasoning capabilities to detect and recognize text.
4.2 Implementation Details
To verify the scalability and generalizability, we apply our SupGRPO on different architectures and scales. Specifically, we utilize the 3B and 7B variants of
X. Xie et al.

(a) Overlapping text instances
(b) Irregular character arrangement
(c) Complex scenes
Fig. 3. Examples of different types for artistic text spotting from our ATS dataset
Qwen2.5-VL [2], along with Qwen3-VL-8B [1], as base models for LoRA fine-tuning. We designate the fine-tuned models as TS-VL (Text Spotting Vision-Language model). Our training is performed based on the open-source framework Open-R1 [9] and its multimodal application, VLM-R1 [34]. We conduct LoRA fine-tuning for one epoch utilizing 4 NVIDIA A100 GPUs, with a batch size of two samples per device. We configure the number of sampled output sequences for GRPO to 8 and set the maximum output length to 1024 tokens. The initial learning rate is set to 1e-6, and the ratio for the KL divergence regularization term is set to 0.04. For the training data, we combine the training sets of five datasets: our proposed ATS, Total-Text [7], ICDAR 2015 [17], CTW1500 [24], and ReCTS [44]. To facilitate training, we reorganized the format of this data and added a task description to each entry, resulting in a total of approximately 30,000 training samples.
4.3 Results of Text Spotting
We evaluate the performance of our proposed method on four text spotting benchmarks: Total-Text [7], ICDAR 2015 [17], CTW1500 [24], and our newly constructed ATS dataset. We assess both end-to-end text recognition and text detection performance. Comparisons are made against two main categories of models: specialized text spotters and other MLLMs. All the specialized models we compared against are fine-tuned on the corresponding datasets, including the ATS dataset. Besides, we independently fine-tuned the vanilla Qwen2.5-VL-7B using SFT and GRPO, employing the identical training dataset used for TS-VL. Experimental results demonstrate the effectiveness of our SupGRPO method.
Different method families naturally produce outputs that are evaluated by different protocols, and we therefore avoid mixing these metrics in a single com-
Table 1. Standard end-to-end text spotting results.
| Method | Total-Text | ICDAR 2015 | CTW1500 | ATS | ||||
|---|---|---|---|---|---|---|---|---|
| None | Full | S | W | G | None | Full | None | |
| Mask TextSpotter v3 [21] | 71.2 | 78.4 | 83.3 | 78.1 | 74.2 | - | - | 56.9 |
| ABCNet v2 [25] | 70.4 | 78.1 | 82.7 | 78.5 | 73.0 | 57.5 | 77.2 | 53.4 |
| GLASS [31] | 79.9 | 86.2 | 84.7 | 80.1 | 76.3 | - | - | - |
| TESTR [45] | 73.3 | 83.9 | 85.2 | 79.4 | 73.6 | 56.0 | 81.5 | 55.0 |
| SwinTextSpotter [15] | 74.3 | 84.1 | 77.3 | 70.5 | - | 51.8 | 77.0 | 55.4 |
| SPTS [28] | 74.2 | 82.4 | 77.5 | 70.2 | 65.8 | 63.6 | 83.8 | 65.3 |
| TTS [19] | 78.2 | 86.3 | 85.2 | 81.7 | 77.4 | - | - | - |
| DeepSolo [42] | 79.7 | 87.0 | 86.8 | 81.9 | 76.9 | 64.2 | 81.4 | 64.8 |
| Bridge [14] | 83.3 | 88.3 | 89.1 | 84.2 | 80.4 | 69.8 | 83.9 | 67.2 |
| TS-VL-8B (E2E protocol) | 85.6 | 88.7 | 89.8 | 85.6 | 82.1 | 72.6 | 84.9 | 83.7 |
Table 2. Recognition-only word-level F1 results of MLMM-based methods.
| Method | Total-Text | ICDAR 2015 | CTW1500 | ATS | ||||
|---|---|---|---|---|---|---|---|---|
| None | Full | S | W | G | None | Full | None | |
| Qwen2.5-VL-7B [2] | 78.1 | 87.0 | 89.0 | 83.5 | 79.2 | 73.2 | 80.4 | 72.7 |
| InternVL3.5-8B [37] | 81.7 | 86.7 | 87.8 | 84.7 | 81.5 | 71.5 | 78.5 | 72.1 |
| Gemini 3.1-Pro [30] | 84.0 | 90.0 | 91.2 | 86.6 | 83.2 | 78.4 | 85.1 | 81.6 |
| TextMonkey [26] | 67.4 | 76.9 | 72.9 | 66.7 | 60.6 | 55.2 | 76.5 | 50.9 |
| GOT-OCR [39] | 70.3 | 79.2 | 78.9 | 73.2 | 69.8 | 59.5 | 80.2 | 56.7 |
| Ocean-OCR [6] | 60.9 | 70.4 | 68.2 | 61.7 | 56.9 | 42.5 | 68.4 | 40.2 |
| HunyuanOCR [35] | 83.8 | 89.5 | 91.6 | 85.8 | 82.6 | 79.0 | 84.3 | 80.8 |
| Qwen2.5-VL-7B (SFT) | 82.6 | 86.4 | 86.8 | 83.6 | 81.4 | 79.2 | 85.6 | 86.2 |
| Qwen2.5-VL-7B (GRPO) | 84.2 | 88.3 | 86.9 | 85.5 | 84.4 | 82.4 | 87.7 | 87.9 |
| Two-Stage (SFT → GRPO) | 84.5 | 86.2 | 87.1 | 85.9 | 82.5 | 83.0 | 85.7 | 87.2 |
| TS-VL-3B (Qwen2.5-VL-3B) | 86.0 | 90.3 | 93.2 | 87.6 | 84.7 | 81.8 | 88.2 | 84.4 |
| TS-VL-7B (Qwen2.5-VL-7B) | 88.2 | 92.3 | 94.4 | 89.9 | 86.7 | 86.2 | 91.7 | 89.6 |
| TS-VL-8B (Qwen3-VL-8B) | 91.0 | 93.4 | 95.1 | 90.2 | 89.1 | 89.9 | 92.5 | 92.4 |
parison column. For the conventional spotting comparison, we use the standard protocol where a prediction is counted as correct only when its localization matches the ground-truth region and its transcript is correct. Tab. 1 reports specialized text spotters and TS-VL-8B under this protocol. For MLMM-based methods, several baselines output text strings directly from the full image and do not provide reliable word-level boxes under the conventional text-spotting protocol. For these models, we report recognition-only word F1 based on the predicted text strings. The recognition-only results are shown in Tab. 2. For text detection evaluation, we strictly follow existing standard evaluation protocols. The results for text detection are presented in Tab. 3 and Tab. 4, respectively. Note that GOT-OCR [39] and Ocean-OCR [6] lack inherent text detection capabilities, and TextMonkey [26] possesses only preliminary detection abilities.
X. Xie et al.
Table 3. Detection results on ATS.
| Method | Det. |
|---|---|
| ABCNet v2 [25] | 87.5 |
| ABINet++ [45] | 88.2 |
| TESTR [45] | 86.4 |
| SwinTextSpotter [15] | 85.9 |
| DeepSolo [42] | 86.7 |
| Qwen2.5-VL-7B [2] | 27.4 |
| InternVL3.5-8B [37] | 21.2 |
| Gemini 1.5-Pro [30] | 26.8 |
| TextMonkey [26] | 17.5 |
| Qwen2.5-VL-7B (SFT) | 72.5 |
| Qwen2.5-VL-7B (GRPO) | 69.6 |
| Two-Stage (SFT → GRPO) | 70.6 |
| TS-VL-3B (Qwen2.5-VL-3B) | 71.6 |
| TS-VL-7B (Qwen2.5-VL-7B) | 77.1 |
| TS-VL-8B (Qwen3-VL-8B) | 88.8 |
Table 4. Detection results on Total-Text and ICDAR 2015.
| Method | Total | IC15 |
|---|---|---|
| TextPerceptron [29] | 85.2 | 87.1 |
| PGNet [36] | 86.1 | 88.2 |
| ABCNet v2 [25] | 87.0 | 88.1 |
| DeepSolo [42] | 87.3 | 90.0 |
| Bridge [14] | 89.2 | 90.5 |
| Qwen2.5-VL-7B [2] | 23.2 | 19.2 |
| InternVL3.5-8B [37] | 17.8 | 16.5 |
| Gemini 1.5-Pro [30] | 21.7 | 18.7 |
| TextMonkey [26] | 11.7 | 10.2 |
| Qwen2.5-VL-7B (SFT) | 65.2 | 68.6 |
| Qwen2.5-VL-7B (GRPO) | 60.5 | 63.6 |
| Two-Stage (SFT → GRPO) | 66.1 | 67.3 |
| TS-VL-3B (Qwen2.5-VL-3B) | 68.4 | 71.6 |
| TS-VL-7B (Qwen2.5-VL-7B) | 70.1 | 73.8 |
| TS-VL-8B (Qwen3-VL-8B) | 90.1 | 90.5 |
The results of our TS-VL with SupGRPO significantly outperform those achieved by using SFT or GRPO alone. Notably, for complex scenes such as ATS, the performance improvement is particularly significant. Using a two-stage training approach (SFT followed by GRPO) is also inferior to our end-to-end joint training. It causes the model to optimize specific capabilities in isolation rather than achieving mutual promotion, and it fails to resolve the instance order dependency faced by SFT and the reward sparsity issue associated with GRPO.
Regarding text detection, our method shows a substantial improvement compared to the baseline generic MLMMs (as evidenced in Tab. 3 and Tab. 4). However, most MLMMs still exhibit a performance gap compared to specialized models explicitly optimized for detection accuracy. To further enhance detection performance, we fine-tuned an advanced MLMM, Qwen3-VL-8B, and the results achieve state-of-the-art performance, outperforming previous specialized models.
4.4 Ablation Study
In this section, we conduct ablation studies on the artistic text spotting dataset ATS to validate the effectiveness of our proposed designs. For faster validation of the effectiveness of our various designs, we chose Qwen2.5-VL-3B [2] as the baseline for the ablation experiments.
ATS dataset. To specifically quantify the impact of incorporating the ATS dataset into the training mix, Tab. 5 compares the performance on various text spotting benchmarks with and without the inclusion of ATS training data. This validates that the ATS dataset provides high-quality, diverse training samples that enhance the model's overall generalization capability.
Table 5. Ablation study on introducing the ATS dataset during training.
| Training Data | Total (Det./Rec.) | IC15 (Det./Rec.) | ATS (Det./Rec.) | CTW (Rec.) |
|---|---|---|---|---|
| Without ATS | 65.8/83.9 | 67.2/82.8 | 65.3/75.7 | 77.9 |
| With ATS (Ours) | 68.4/86.0 | 71.6/84.7 | 71.6/84.4 | 81.8 |
Table 6. Training strategy ablation.
| Det. | Rec. | |
|---|---|---|
| SFT | 63.3 | 77.1 |
| SFT + Aug | 65.1 | 77.4 |
| GRPO | 62.0 | 80.0 |
| SupGRPO | 71.6 | 84.4 |
Table 8. Different matching mechanisms for online SFT location tokens.
| Det. | Rec. | |
|---|---|---|
| All Tokens SFT | 64.0 | 81.2 |
| IoU-based | 66.5 | 81.7 |
| Text-based | 68.6 | 82.8 |
| IoU & Text | 71.6 | 84.4 |
Table 7. SupGRPO for different tokens.
| Det. | Rec. | |
|---|---|---|
| GRPO | 62.0 | 80.0 |
| + All Tokens SFT | 64.0 | 81.2 |
| + Text Tokens SFT | 60.8 | 84.1 |
| + Location Tokens SFT | 71.6 | 84.4 |
Table 9. Effect of different reward function designs.
| Det. | Rec. | |
|---|---|---|
| Baseline | 26.3 | 70.2 |
| Text | 61.1 | 83.2 |
| Text & F | 69.3 | 83.5 |
| Text & P & R | 71.6 | 84.4 |
Training strategy. We train the baseline independently using SFT and GRPO with the same dataset. The results in Tab. 6 reveal that SFT yields more significant improvements in text detection performance compared to GRPO, whereas GRPO provides a more substantial boost to text recognition performance than SFT. This observation directly motivated our approach of jointly training with both SFT and GRPO. Besides, we applied data augmentation for SFT. While it yields minor gains, it still significantly underperforms SupGRPO.
Tokens for SFT. Furthermore, when jointly applying online SFT with GRPO, optimizing different types of tokens for SFT significantly affects the detection and recognition results, as shown in Tab. 7. Applying SFT to the entire sequence of all tokens yields some improvement in overall performance. However, the fixed and unique order in which text instances are arranged within the GT creates an order prior that interferes with word-level detection and recognition. Alternatively, applying a mask to the token sequence to supervise only the text content tokens can improve text recognition performance but weaken text detection performance. Conversely, supervising only the location tokens and performing matching on them avoids the interference of word order, leading to comprehensive improvements in both detection and recognition performance.
Matching mechanism. For text box matching, we explore three distinct approaches. The first is an IoU-based method: for each predicted box, it is matched to the GT box with the largest IoU, provided that IoU is greater than 0.3. If a predicted box's IoU with all GT boxes is less than 0.3, its loss is not calculated.
14 X. Xie et al.
This method can easily miss many valid predicted boxes or incorrectly match them to boxes of other text instances. The second is a text-based method, which matches predicted boxes to their corresponding GT boxes solely based on identical text content. Leveraging MLMM's powerful text recognition capability, this text-based approach can achieve a high match rate for predicted boxes. However, this method struggles to distinguish between multiple text instances with the same content within a single image, potentially leading to incorrect GT box matches. Our proposed method, in contrast, performs matching based on both text content and IoU. A match is considered successful only if the text content is identical and the IoU between the predicted and GT boxes is greater than 0. Tab. 8 demonstrates the effectiveness of this approach.
Reward functions. Finally, we conduct ablation studies on the design of the rule-based reward function for GRPO. Tab. 9 shows the results. Rewarding solely based on text recognition content (Row 2) leads to a decrease in text detection performance against the combined reward settings (Rows 3 and 4). While designing a single reward for detection that uses the harmonic mean (F1-score) to combine precision and recall substantially increases the complexity of the reward function. As a result, it led to poorer model convergence and lower sample efficiency. Therefore, treating precision and recall as two independent rewards allows us to improve overall performance further.
4.5 Further Analysis
We conduct a comparative analysis of the vanilla GRPO and our proposed Sup-GRPO methods during the training process. As can be clearly observed in Fig. 4, SupGRPO demonstrates superior stability and efficiency throughout training. Specifically, for each of the individual reward functions as well as the Total Reward, the curve for SupGRPO (red) is consistently and stably higher than that of the vanilla GRPO (blue), indicating that it learns more effectively. Furthermore, in the Total Loss graph, the loss curve for SupGRPO not only converges to a lower value but also exhibits significantly less fluctuation compared to the vanilla GRPO, which serves as evidence of a more stable training process for our method. Collectively, these curves show that by incorporating matching-based online SFT, SupGRPO effectively mitigates the issues present when using GRPO alone, leading to more stable and efficient model optimization.
4.6 Limitation
First, although our matching-based online SFT effectively mitigates the instance order dependency, the heuristic matching mechanism, relying simultaneously on IoU and exact text content, may still encounter difficulties in extremely dense scenarios where multiple overlapping instances share the exact same text. Second, the effectiveness of our matching-based online SFT is intrinsically tied to the base model's pre-existing spatial grounding capabilities. If applied to a naive architecture with zero spatial awareness, the scarcity of valid matches could stall the coordinate optimization, creating a "cold-start" problem.

Fig. 4. Training curve comparison between the vanilla GRPO and our SupGRPO.
5 Conclusion
This paper addressed the challenge of text spotting in complex artistic images, where existing MLMMs often lack precise localization. We explored applying the GRPO training paradigm to text spotting, designing specific rewards. To overcome GRPO's lack of fine-grained coordinate supervision and standard SFT's sequence issues, we proposed SupGRPO, which combines GRPO with a matching-based online SFT specifically targeting coordinate tokens. We also contributed the ATS dataset for evaluating performance on artistic text. Our experiments demonstrated SupGRPO's superior performance in both text detection and end-to-end recognition, effectively integrating policy optimization and targeted coordinate learning to advance text spotting. Finally, we believe that our joint training strategy may offer valuable new insights and a potential training paradigm for the broader MLMM research community.
References
-
Bai, S., Cai, Y., Chen, R., Chen, K., Chen, X., Cheng, Z., Deng, L., Ding, W., Gao, C., Ge, C., et al.: Qwen3-vl technical report. arXiv preprint arXiv:2511.21631 (2025)
-
Bai, S., Chen, K., Liu, X., Wang, J., Ge, W., Song, S., Dang, K., Wang, P., Wang, S., Tang, J., Zhong, H., Zhu, Y., Yang, M., Li, Z., Wan, J., Wang, P., Ding, W., Fu, Z., Xu, Y., Ye, J., Zhang, X., Xie, T., Cheng, Z., Zhang, H., Yang, Z., Xu, H., Lin, J.: Qwen2.5-vl technical report. arXiv preprint arXiv:2502.13923 (2025)
-
Bartz, C., Yang, H., Meinel, C.: See: towards semi-supervised end-to-end scene text recognition. In: Proceedings of the AAAI conference on artificial intelligence. vol. 32 (2018)
-
Busta, M., Neumann, L., Matas, J.: Deep textspotter: An end-to-end trainable scene text localization and recognition framework. In: Proceedings of the IEEE international conference on computer vision. pp. 2204–2212 (2017)
X. Xie et al.
-
Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., Zagoruyko, S.: End-to-end object detection with transformers. In: European conference on computer vision. pp. 213–229. Springer (2020)
-
Chen, S., Guo, X., Li, Y., Zhang, T., Lin, M., Kuang, D., Zhang, Y., Ming, L., Zhang, F., Wang, Y., et al.: Ocean-ocr: Towards general OCR application via a vision-language model. arXiv preprint arXiv:2501.15558 (2025)
-
Ch'ng, C.K., Chan, C.S., Liu, C.L.: Total-text: toward orientation robustness in scene text detection. International Journal on Document Analysis and Recognition (IJDAR) 23(1), 31–52 (2020)
-
Cui, C., Sun, T., Liang, S., Gao, T., Zhang, Z., Liu, J., Wang, X., Zhou, C., Liu, H., Lin, M., et al.: Paddleocr-vl: Boosting multilingual document parsing via a 0.9 b ultra-compact vision-language model. arXiv preprint arXiv:2510.14528 (2025)
-
Face, H.: Open r1: A fully open reproduction of deepseek-r1 (January 2025), https://github.com/huggingface/open-r1
-
Feng, H., Wang, Z., Tang, J., Lu, J., Zhou, W., Li, H., Huang, C.: Unidoc: A universal large multimodal model for simultaneous text detection, recognition, spotting and understanding (2023), https://arxiv.org/abs/2308.11592
-
Feng, W., He, W., Yin, F., Zhang, X.Y., Liu, C.L.: Textdragon: An end-to-end framework for arbitrary shaped text spotting. In: Proceedings of the IEEE/CVF international conference on computer vision. pp. 9076–9085 (2019)
-
Guo, D., Yang, D., Zhang, H., Song, J., Zhang, R., Xu, R., Zhu, Q., Ma, S., Wang, P., Bi, X., et al.: Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948 (2025)
-
Hu, A., Xu, H., Ye, J., Yan, M., Zhang, L., Zhang, B., Li, C., Zhang, J., Jin, Q., Huang, F., et al.: mplug-docowl 1.5: Unified structure learning for OCR-free document understanding. arXiv preprint arXiv:2403.12895 (2024)
-
Huang, M., Li, H., Liu, Y., Bai, X., Jin, L.: Bridging the gap between end-to-end and two-step text spotting. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 15608–15618 (2024)
-
Huang, M., Liu, Y., Peng, Z., Liu, C., Lin, D., Zhu, S., Yuan, N., Ding, K., Jin, L.: Swintextspotter: Scene text spotting via better synergy between text detection and text recognition. In: proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 4593–4603 (2022)
-
Huang, M., Zhang, J., Peng, D., Lu, H., Huang, C., Liu, Y., Bai, X., Jin, L.: Estextspotter: Towards better scene text spotting with explicit synergy in transformer. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 19495–19505 (2023)
-
Karatzas, D., Gomez-Bigorda, L., Nicolaou, A., Ghosh, S., Bagdanov, A., Iwamura, M., Matas, J., Neumann, L., Chandrasekhar, V.R., Lu, S., et al.: Icdar 2015 competition on robust reading. In: 2015 13th international conference on document analysis and recognition (ICDAR). pp. 1156–1160. IEEE (2015)
-
Kil, T., Kim, S., Seo, S., Kim, Y., Kim, D.: Towards unified scene text spotting based on sequence generation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 15223–15232 (2023)
-
Kittenplon, Y., Lavi, I., Fogel, S., Bar, Y., Manmatha, R., Perona, P.: Towards weakly-supervised text spotting using a multi-task transformer. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 4604–4613 (2022)
-
Li, H., Wang, P., Shen, C.: Towards end-to-end text spotting with convolutional recurrent neural networks. In: Proceedings of the IEEE international conference on computer vision. pp. 5238–5246 (2017)
-
Liao, M., Pang, G., Huang, J., Hassner, T., Bai, X.: Mask textspotter v3: Segmentation proposal network for robust scene text spotting. In: Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part XI 16. pp. 706–722. Springer (2020)
-
Liu, X., Liang, D., Yan, S., Chen, D., Qiao, Y., Yan, J.: Fots: Fast oriented text spotting with a unified network. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 5676–5685 (2018)
-
Liu, Y., Chen, H., Shen, C., He, T., Jin, L., Wang, L.: Abcnet: Real-time scene text spotting with adaptive bezier-curve network. In: proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 9809–9818 (2020)
-
Liu, Y., Jin, L., Zhang, S., Luo, C., Zhang, S.: Curved scene text detection via transverse and longitudinal sequence connection. Pattern Recognition 90, 337–345 (2019)
-
Liu, Y., Shen, C., Jin, L., He, T., Chen, P., Liu, C., Chen, H.: Abcnet v2: Adaptive bezier-curve network for real-time end-to-end text spotting. IEEE Transactions on Pattern Analysis and Machine Intelligence 44(11), 8048–8064 (2021)
-
Liu, Y., Yang, B., Liu, Q., Li, Z., Ma, Z., Zhang, S., Bai, X.: Textmonkey: An ocr-free large multimodal model for understanding document. arXiv preprint arXiv:2403.04473 (2024)
-
Lyu, P., Liao, M., Yao, C., Wu, W., Bai, X.: Mask textspotter: An end-to-end trainable neural network for spotting text with arbitrary shapes. In: Proceedings of the European conference on computer vision (ECCV). pp. 67–83 (2018)
-
Peng, D., Wang, X., Liu, Y., Zhang, J., Huang, M., Lai, S., Li, J., Zhu, S., Lin, D., Shen, C., et al.: Spts: single-point text spotting. In: Proceedings of the 30th ACM International Conference on Multimedia. pp. 4272–4281 (2022)
-
Qiao, L., Tang, S., Cheng, Z., Xu, Y., Niu, Y., Pu, S., Wu, F.: Text perceptron: Towards end-to-end arbitrary-shaped text spotting. In: Proceedings of the AAAI conference on artificial intelligence. vol. 34, pp. 11899–11907 (2020)
-
Reid, M., Savinov, N., Teplyashin, D., Lepikhin, D., Lillicrap, T., Alayrac, J.b., Soricut, R., Lazaridou, A., Firat, O., Schrittwieser, J., et al.: Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. arXiv preprint arXiv:2403.05530 (2024)
-
Ronen, R., Tsiper, S., Anschel, O., Lavi, I., Markovitz, A., Manmatha, R.: Glass: Global to local attention for scene-text spotting. In: European Conference on Computer Vision. pp. 249–266. Springer (2022)
-
Schulman, J., Wolski, F., Dhariwal, P., Radford, A., Klimov, O.: Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347 (2017)
-
Shao, Z., Wang, P., Zhu, Q., Xu, R., Song, J., Bi, X., Zhang, H., Zhang, M., Li, Y., Wu, Y., et al.: Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300 (2024)
-
Shen, H., Liu, P., Li, J., Fang, C., Ma, Y., Liao, J., Shen, Q., Zhang, Z., Zhao, K., Zhang, Q., et al.: Vlm-r1: A stable and generalizable r1-style large vision-language model. arXiv preprint arXiv:2504.07615 (2025)
-
Team, H.V., Lyu, P., Wan, X., Li, G., Peng, S., Wang, W., Wu, L., Shen, H., Zhou, Y., Tang, C., et al.: Hunyuanocr technical report. arXiv preprint arXiv:2511.19575 (2025)
-
Wang, P., Zhang, C., Qi, F., Liu, S., Zhang, X., Lyu, P., Han, J., Liu, J., Ding, E., Shi, G.: Pgnet: Real-time arbitrarily-shaped text spotting with point gathering network. In: Proceedings of the AAAI Conference on Artificial Intelligence. vol. 35, pp. 2782–2790 (2021)
X. Xie et al.
-
Wang, W., Gao, Z., Gu, L., Pu, H., Cui, L., Wei, X., Liu, Z., Jing, L., Ye, S., Shao, J., et al.: Internvl3.5: Advancing open-source multimodal models in versatility, reasoning, and efficiency. arXiv preprint arXiv:2508.18265 (2025)
-
Wei, H., Kong, L., Chen, J., Zhao, L., Ge, Z., Yang, J., Sun, J., Han, C., Zhang, X.: Vary: Scaling up the vision vocabulary for large vision-language model. In: European Conference on Computer Vision. pp. 408–424. Springer (2024)
-
Wei, H., Liu, C., Chen, J., Wang, J., Kong, L., Xu, Y., Ge, Z., Zhao, L., Sun, J., Peng, Y., et al.: General ocr theory: Towards ocr-2.0 via a unified end-to-end model. arXiv preprint arXiv:2409.01704 (2024)
-
Xie, X., Li, Y., Liu, Y., Zhang, Z., Wang, Z., Xiong, W., Bai, X.: Was: Dataset and methods for artistic text segmentation. In: European Conference on Computer Vision. pp. 237–254. Springer (2024)
-
Xu, X., Zhang, Z., Wang, Z., Price, B., Wang, Z., Shi, H.: Rethinking text segmentation: A novel dataset and a text-specific refinement approach. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 12045–12055 (2021)
-
Ye, M., Zhang, J., Zhao, S., Liu, J., Liu, T., Du, B., Tao, D.: Deepsolo: Let transformer decoder with explicit points solo for text spotting. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 19348–19357 (2023)
-
Yu, Y.Q., Liao, M., Zhang, J., Wu, J.: Texthawk2: A large vision-language model excels in bilingual ocr and grounding with 16x fewer tokens. arXiv preprint arXiv:2410.05261 (2024)
-
Zhang, R., Zhou, Y., Jiang, Q., Song, Q., Li, N., Zhou, K., Wang, L., Wang, D., Liao, M., Yang, M., et al.: Icdar 2019 robust reading challenge on reading chinese text on signboard. In: 2019 international conference on document analysis and recognition (ICDAR). pp. 1577–1581. IEEE (2019)
-
Zhang, X., Su, Y., Tripathi, S., Tu, Z.: Text spotting transformers. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 9519–9528 (2022)
-
Zhu, X., Su, W., Lu, L., Li, B., Wang, X., Dai, J.: Deformable detr: Deformable transformers for end-to-end object detection. arXiv preprint arXiv:2010.04159 (2020)