Manuscript Offprint

arXiv:2609.07081

SupGRPO: Enhancing GRPO with Matching-based Online SFT for Text Spotting

Xudong Xie, Yuzhe Li, Jing Shi, Zhifei Zhang, Curtis Wigington, Zhaowen Wang

Xudong Xie 1∗^{1*}, Yuzhe Li 1∗^{1*}, Jing Shi 2^{2}, Zhifei Zhang 2^{2}, Curtis Wigington 2^{2}, and Zhaowen Wang 2✉^{2✉}

1^{1} Huazhong University of Science and Technology, Wuhan, China

{xdxie,yzlii2}@hust.edu.cn

2^{2} 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.

Figure

(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.

References (46)