Seg-R1: Segmentation Can Be Surprisingly Simple with Reinforcement Learning

Zuyao You, Zuxuan Wu
6/27/2025
cs.CV

No official code found. Best implementation: geshang777/Seg-R1 (70 stars, Apache-2.0, last commit 2025-07-01).

Abstract

We present Seg-R1, a preliminary exploration of using reinforcement learning (RL) to enhance the pixel-level understanding and reasoning capabilities of large multimodal models (LMMs). Starting with foreground segmentation tasks, specifically camouflaged object detection (COD) and salient object detection (SOD), our approach enables the LMM to generate point and bounding box prompts in the next-token fashion, which are then used to guide SAM2 in producing segmentation masks. We introduce Group Relative Policy Optimization (GRPO) into the segmentation domain, equipping the LMM with pixel-level comprehension through a carefully designed training strategy. Notably, Seg-R1 achieves remarkable performance with purely RL-based training, achieving .873 S-measure on COD10K without complex model modification. Moreover, we found that pure RL training demonstrates strong open-world generalization. Despite being trained solely on foreground segmentation image-mask pairs without text supervision, Seg-R1 achieves impressive zero-shot performance on referring segmentation and reasoning segmentation tasks, with 71.4 cIoU on RefCOCOg test and 56.7 gIoU on ReasonSeg test, outperforming models fully supervised on these datasets.

View on arXivView PDF

Code Implementations(1)

geshang777/Seg-R1Community100%
Apache-2.0

[NeurIPS-W 2025] Official Implementation of "Seg-R1: Segmentation Can Be Surprisingly Simple with Reinforcement Learning"

702Shell, PythonJul 1, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{you2025segr,
  title  = {Seg-R1: Segmentation Can Be Surprisingly Simple with Reinforcement Learning},
  author = {Zuyao You and Zuxuan Wu},
  year   = {2025},
  eprint = {2506.22624},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.22624v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.22624.svg)](https://codeofpaper.com/paper/2506.22624)

Discussion