Efficient SAM3 Adaptation for Multi-Class Semantic Segmentation via Dense Competitive Representations
Organizations: Institute of Computing Technology, Chinese Academy of Science · School of Computer Science and Technology, University of Chinese Academy of Sciences
Abstract
The Segment Anything Model 3 (SAM3) has achieved significant progress in Promptable Concept Segmentation (PCS) by processing short noun phrases to generate segmentation masks with unique instance identifiers. While SAM3 excels at single-concept segmentation, it falls short in complex, real-world environments where multiple concepts must be segmented simultaneously. In particular, SAM3 typically fails to simultaneously process concepts with semantic overlap, leading to semantic misclassifications and redundant mask predictions. Moreover, as the number of concepts increases, the independent inference paradigm introduces prohibitive inference latency. To address these limitations, we propose the Dense Competitive Representations SAM (DCR-SAM) framework. By decoupling cross-modal interactions, the proposed method alleviates the inference latency. To resolve semantic misclassifications, DCR-SAM dynamically aligns textual concepts with visual representations and incorporates a dense competition head to enforce explicit inter-class competition. Furthermore, a learnable background token is applied to absorb non-target objects dynamically. These mechanisms effectively suppress overlapping predictions and generate high-fidelity masks. Extensive experimental evaluations across multiple benchmarks demonstrate that the proposed framework: (1) achieves a 2.3% 10.7% performance improvement over state-of-the-art methods, (2) delivers a 33 inference speedup compared to the native SAM3, and (3) exhibits strong robustness across diverse scenarios.
Figures & tables
| Methods | Pub. & Year | Backbone | Train on Natural Scene | |||
|---|---|---|---|---|---|---|
| ADE20K | Cityscapes | COCO-Stuff | Context59 | |||
| DeepLabV3 [ 11 ] | ECCV’18 | ResNet-101 | 42.6 | 77.1 | 37.9 | 52.0 |
| DeepLabV3+ [ 12 ] | ECCV’18 | ResNet-101 | 44.5 | 73.6 | – | 53.2 |
| HiPoSeg [ 32 ] | ICLR’26 | ResNet-101 | 49.0 | 84.0 | – | – |
| HRNet [ 51 ] | arXiv’19 | HRNetV2-W48 | 41.9 | 78.5 | 36.0 | 51.9 |
| OCRNet [ 62 ] | ECCV’20 | HRNetV2-W48 | 41.5 | 80.0 | 39.0 | 54.4 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Target Category Count | Semantic Space Composition | Time. | Overall mIoU (%) | Base-30 mIoU (%) |
|---|---|---|---|---|
| Top-30 frequent classes only | 236 | 79.4 | 79.4 | |
| Base-30 + Next 30 frequent classes | 238 | 75.6 3.8 | 77.5 1.9 | |
| Base-30 + Next 60 frequent classes | 241 | 71.5 7.9 | 73.9 5.5 | |
| Full concept space | 244 | 68.7 10.7 | 70.3 9.1 |
| Pooling Strategy | ADE20K | Cityscapes | LoveDA | Potsdam | ||||
|---|---|---|---|---|---|---|---|---|
| Time. | mIoU | Time. | mIoU | Time. | mIoU | Time. | mIoU | |
| SPA (Spatial-Preserving) | 248 | 63.9 | 184 | 81.5 | 187 | 59.6 | 185 | 85.8 |
| VGTP (GAP-based) | 244 | 68.7 | 183 | 89.1 | 183 | 66.5 | 183 | 90.2 |
| Inference Strategy | Backbone Passes | Time (ms) | Memory (MB) |
|---|---|---|---|
| SAM 3 (Sequential, bs=1) | 150 | 8038 | 9010 |
| SAM 3 (Batched, bs=15) | 10 | 6392 | 12960 |
| SAM 3 (Batched, bs=25) | 6 | 6067 | 17488 |
| SAM 3 (Batched, bs=30) | 5 | 5966 | 19816 |
| SAM 3 (Batched, bs=50) | 3 | 5687 | 29080 |
| DCR-SAM (Ours) | 1 | 244 | 6318 |
Promptable Image Segmentation
Promptable image segmentation uses points, boxes, text, or masks to specify objects and generate pixel-level regions.
See all 152 papers