Moondream Segmentation: From Words to Masks
Organizations: M87 Labs, San Francisco, CA, USA.
Abstract
We present Moondream Segmentation, a referring image segmentation extension of Moondream 3, a vision-language model. Given an image and a referring expression, the model autoregressively decodes a vector path and iteratively refines the rasterized mask into a final detailed mask. We introduce a reinforcement learning stage that resolves ambiguity in the supervised signal by directly optimizing mask quality. Rollouts from this stage produce coarse-to-ground-truth targets for the refiner. To mitigate evaluation noise from polygon annotations, we release RefCOCO-M, a cleaned RefCOCO validation split with boundary-accurate masks. Moondream Segmentation achieves a cIoU of 80.2% on RefCOCO (val) and 62.6% mIoU on LVIS (val).
Figures & tables
| RefCOCO | RefCOCO+ | RefCOCOg | RefCOCO-M | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Model | val | testA | testB | val | testA | testB | val | test | val | [email protected] |
| LISA (LLaVA 7B) | 74.9 | 79.1 | 72.3 | 65.1 | 70.8 | 58.1 | 67.9 | 70.6 | 72.7 | 68.1 |
| Text4Seg (InternVL2-8B) | 74.7 | 77.4 | 71.6 | 68.5 | 63.6 | 62.9 | 70.7 | 71.6 | 70.4 | 68.9 |
| SimpleSeg (Qwen2.5-VL) | 80.9 | 77.8 | 75.2 | 72.4 | 77.3 | 66.1 | 73.3 | 74.1 | 85.2 | 68.9 |
| Gemini 2.5 Flash | 63.7 | 64.8 | 65.6 | 52.8 | 57.3 | 50.8 | 56.2 | 57.4 | 70.4 | 67.5 |
| SAM 3 Agent (Gemini 2.5 Pro) | 75.5 | 77.6 | 71.0 | 67.3 | 71.1 | 63.4 | 73.4 | 74.0 | 86.7 | 81.5 |
| Model | LVIS |
|---|---|
| Gemini 2.5 Flash | 45.5 |
| SAM 3 Agent (Gemini 2.5 Pro) | 59.3 |
| SAM 3 | 62.6 |
| Moondream Seg. | 62.6 |
| Refiner | RefCOCO-M |
|---|---|
| SAM 2 | 90.8 |
| HQ-SAM 2 | 91.7 |
| Moondream Seg. | 93.8 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Referring Image Segmentation
Referring image segmentation maps a natural-language description of an object or region to its pixels in an image.
See all 43 papers