SAM-R1: Leveraging SAM for Reward Feedback in Multimodal Segmentation via Reinforcement Learning
Jiaqi Huang, Zunnan Xu, Jun Zhou, Ting Liu, Yicheng Xiao, Mingwen Ou, Bowen Ji, Xiu Li, Kehong Yuan
TL;DR
SAM-R1 tackles fine-grained reasoning segmentation in multimodal settings by embedding SAM within a reinforcement-learning loop as a reward provider. It introduces task-specific, fine-grained rewards and an enhanced GRPO-based optimization (with asymmetric clipping and token-level loss normalization) to align reasoning with pixel-precise segmentation, achieving strong zero-shot results using only 3k training samples. Empirically, SAM-R1 outperforms prior methods on ReasonSeg and demonstrates robust generalization to referring expression grounding (REC) tasks, indicating effective cross-domain transfer without REC supervision. The work highlights that reward-guided learning can instill perceptual reasoning in multimodal models while reducing data requirements, with potential for broader applications beyond segmentation.
Abstract
Leveraging multimodal large models for image segmentation has become a prominent research direction. However, existing approaches typically rely heavily on manually annotated datasets that include explicit reasoning processes, which are costly and time-consuming to produce. Recent advances suggest that reinforcement learning (RL) can endow large models with reasoning capabilities without requiring such reasoning-annotated data. In this paper, we propose SAM-R1, a novel framework that enables multimodal large models to perform fine-grained reasoning in image understanding tasks. Our approach is the first to incorporate fine-grained segmentation settings during the training of multimodal reasoning models. By integrating task-specific, fine-grained rewards with a tailored optimization objective, we further enhance the model's reasoning and segmentation alignment. We also leverage the Segment Anything Model (SAM) as a strong and flexible reward provider to guide the learning process. With only 3k training samples, SAM-R1 achieves strong performance across multiple benchmarks, demonstrating the effectiveness of reinforcement learning in equipping multimodal models with segmentation-oriented reasoning capabilities.
