OpenWorldSAM: Extending SAM2 for Universal Image Segmentation with Language Prompts

Shi-Ting Xiao, Rishabh Kabra, Yu-Hang Li, Donghyun Lee, Joao Carreira +1 more
7/1/2025
20 citations

No official code found. Best implementation: GinnyXiao/OpenWorldSAM (57 stars).

Abstract

The ability to segment objects based on open-ended language prompts remains a critical challenge, requiring models to ground textual semantics into precise spatial masks while handling diverse and unseen categories. We present OpenWorldSAM, a framework that extends the prompt-driven Segment Anything Model v2 (SAM2) to open-vocabulary scenarios by integrating multi-modal embeddings extracted from a lightweight vision-language model (VLM).

Show full abstract

Our approach is guided by four key principles: i) Unified prompting: OpenWorldSAM supports a diverse range of prompts, including category-level and sentence-level language descriptions, providing a flexible interface for various segmentation tasks. ii) Efficiency: By freezing the pre-trained components of SAM2 and the VLM, we train only 4.5 million parameters on the COCO-stuff dataset, achieving remarkable resource efficiency. iii) Instance Awareness: We enhance the model's spatial understanding through novel positional tie-breaker embeddings and cross-attention layers, enabling effective segmentation of multiple instances. iv) Generalization: OpenWorldSAM exhibits strong zero-shot capabilities, generalizing well on unseen categories and an open vocabulary of concepts without additional training. Extensive experiments demonstrate that OpenWorldSAM achieves state-of-the-art performance in open-vocabulary semantic, instance, and panoptic segmentation across multiple benchmarks. Code is available at https://github.com/GinnyXiao/OpenWorldSAM.

View on arXivView PDF

Code Implementations(1)

[Neurips 2025 Spotlight] Official repository for the paper: OpenWorldSAM: Extending SAM2 for Universal Image Segmentation with Language Prompts

577

Similar Papers

Cite this paper

@article{xiao2025openworldsam,
  title  = {OpenWorldSAM: Extending SAM2 for Universal Image Segmentation with Language Prompts},
  author = {Shi-Ting Xiao and Rishabh Kabra and Yu-Hang Li and Donghyun Lee and Joao Carreira and Priyadarshini Panda},
  year   = {2025},
  eprint = {2507.05427},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2507.05427},
  url    = {https://doi.org/10.48550/arXiv.2507.05427},
  journal = {Neural Information Processing Systems}
}

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

Discussion