ActiveSAM: Image-Conditional Class Pruning for Fast and Accurate Open-Vocabulary Segmentation

Tran Dinh Tien, Zhiqiang Shen
6/15/2026
cs.CVcs.AIcs.LG

Official code: VILA-Lab/ActiveSAM (21 stars, Python, MIT, last commit 2026-06-16).

Abstract

Segment Anything Model 3 (SAM 3) provides a strong frozen backbone for concept-prompted segmentation, but applying it directly to open-vocabulary semantic segmentation (OVSS) is inefficient: full-resolution decoding is typically run over the entire dataset vocabulary, whereas each image contains only a small active subset of classes. We introduce ActiveSAM, a training-free, zero-shot inference framework that turns SAM 3 into an active-vocabulary segmenter.

Show full abstract

ActiveSAM first canonicalizes and expands class prompts, then estimates an image-conditioned active set from a low-resolution presence preview. Only the retained classes are decoded at full resolution, using bucketed prompt multiplexing with the frozen SAM 3 decoder. The preview stage uses only class-presence evidence and skips unnecessary segmentation-head computation, while the final stage applies margin-aware background calibration to suppress low-confidence pixels. ActiveSAM requires no target-dataset training, no weight updates, and no oracle class-presence labels. Across eight OVSS benchmarks, ActiveSAM improves the speed-accuracy tradeoff of training-free open-vocabulary semantic segmentation, outperforming the current state-of-the-art SegEarth-OV3 by approximately +1.4 mIoU on average while running up to 5.5x faster on large-vocabulary datasets. ActiveSAM also demonstrates the strongest robustness under image corruption that simulates real-world distribution shift, making it well-suited for deployment in noisy-input domains such as autonomous driving and embodied AI. Code is available at https://github.com/VILA-Lab/ActiveSAM.

View on arXivView PDF

Code Implementations(1)

VILA-Lab/ActiveSAMOfficial100%
MIT

ActiveSAM: Image-Conditional Class Pruning for Fast and Accurate Open-Vocabulary Segmentation

211Python, ShellJun 16, 20265 months agoMIT
foundation-modelsopen-vocabulary-segmentationsam3training-freezero-shot

Similar Papers

Cite this paper

@article{tien2026activesam,
  title  = {ActiveSAM: Image-Conditional Class Pruning for Fast and Accurate Open-Vocabulary Segmentation},
  author = {Tran Dinh Tien and Zhiqiang Shen},
  year   = {2026},
  eprint = {2606.16996},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.16996v1}
}

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

Discussion