RMP-SAM: Towards Real-Time Multi-Purpose Segment Anything

Shilin Xu, Haobo Yuan, Qingyu Shi, Lu Qi, Jingbo Wang +7 more
2/12/2026

No official code found. Best implementation: xushilin1/RMP-SAM (268 stars, MIT, last commit 2025-04-11).

Abstract

Recent segmentation methods, which adopt large-scale data training and transformer architecture, aim to create one foundation model that can perform multiple tasks. However, most of these methods rely on heavy encoder and decoder frameworks, hindering their performance in real-time scenarios. To explore real-time segmentation, recent advancements primarily focus on semantic segmentation within specific environments, such as autonomous driving. However, they often overlook the generalization ability of these models across diverse scenarios. Therefore, to fill this gap, this work explores a novel real-time segmentation setting called real-time multi-purpose segmentation. It contains three fundamental sub-tasks: interactive segmentation, panoptic segmentation, and video instance segmentation. Unlike previous methods, which use a specific design for each task, we aim to use only a single end-to-end model to accomplish all these tasks in real-time. To meet real-time requirements and balance multi-task learning, we present a novel dynamic convolution-based method, Real-Time Multi-Purpose SAM (RMP-SAM). It contains an efficient encoder and an efficient decoupled adapter to perform prompt-driven decoding. Moreover, we further explore different training strategies and one new adapter design to boost co-training performance further. We benchmark several strong baselines by extending existing works to support our multi-purpose segmentation. Extensive experiments demonstrate that RMP-SAM is effective and generalizes well on proposed benchmarks and other specific semantic tasks. Our implementation of RMP-SAM achieves the optimal balance between accuracy and speed for these tasks.Our code and model are available at https://github.com/xushilin1/RAP-SAM/.

View on arXivView PDF

Code Implementations(1)

xushilin1/RMP-SAMCommunity63%
MIT

[ICLR 2025 oral] RMP-SAM: Towards Real-Time Multi-Purpose Segment Anything

26811Shell, PythonJan 9, 20241 years agoMIT

Similar Papers

Cite this paper

@article{xu2026rmpsam,
  title  = {RMP-SAM: Towards Real-Time Multi-Purpose Segment Anything},
  author = {Shilin Xu and Haobo Yuan and Qingyu Shi and Lu Qi and Jingbo Wang and Yibo Yang and Yining Li and Kai Chen and Yunhai Tong and Bernard Ghanem and Xiangtai Li and Ming-Hsuan Yang},
  year   = {2026},
  eprint = {2401.10228},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.10228},
  journal = {ICLR 2024 2024}
}

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/2401.10228.svg)](https://codeofpaper.com/paper/2401.10228)

Discussion