arXiv:2610.27960cs.CVOct 2026

Manuscript Offprint

arXiv:2610.27960

Efficient SAM3 Adaptation for Multi-Class Semantic Segmentation via Dense Competitive Representations

Wenbin Liao, Hao Zhu, Yike Ma, Hao Jiang, Feng Dai

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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: ① achieves a 2.3% ~ 10.7% performance improvement over state-of-the-art methods, ② delivers a 33× inference speedup compared to the native SAM3, and ③ exhibits strong robustness across diverse scenarios. Our code is publicly available at GitHub.

1 Introduction

The evolution of Visual Foundation Models (VFMs) [10, 42, 49, 27, 46, 9] achieved a breakthrough with the Segment Anything Model 3 [9] (SAM3). As a pioneering architecture in Promptable Concept Segmentation (PCS), SAM3 [9] demonstrates exceptional capability in single-concept segmentation guided by short noun phrases (e.g., a red billboard). By incorporating deep cross-modal attention mechanisms, the model leverages textual prompts to dynamically condition visual representations, enabling precise mask generation.

While SAM3 [9] excels at single-concept segmentation, complex real-world scenarios [31, 33, 6] (e.g., autonomous driving and remote sensing) require simultaneous identification and segmentation of multiple concepts within a single scene. Conventional semantic segmentation methods [62, 11, 19, 25] achieve multi-class segmentation by assigning individual pixels to a set of predefined classes. However, these methods face limitations in complex environments. They typically rely on narrow, task-specific feature representations and lack broad semantic priors of large-scale foundation models. On the other hand, SAM3 [9] leverage robust visual-linguistic representations to achieve remarkable

∗^{*}Corresponding Author

Preprint.

Figure

Figure 1: Limitations of direct mask aggregation in SAM3. Treating multi-class segmentation as isolated binary segmentation tasks lacks inter-class competition, causing “double-high” activation for similar concepts and leading to severe semantic misclassifications in the final mask.

Figure

Figure 2: Comparison of inference latency. The inference latency of the original SAM3 increases linearly O(n)\mathcal{O}(n) with the number of categories, whereas our method achieves a 33x speedup.

performance in single-concept segmentation. However, it faces two critical challenges when extended to multi-class scenarios: ① SAM3 typically fails to simultaneously process similar concepts, leading to semantic misclassifications and redundant mask predictions. ② As the number of target concepts increases, the original SAM3 inference paradigm incurs exceptionally high inference latency.

Recent works [31, 14] achieve multi-class segmentation by aggregating the individual masks independently predicted by SAM3 for multiple categories. However, this paradigm inherently treats the multi-class segmentation as a series of independent binary segmentation tasks. Consequently, there is a complete absence of competition among categories, which leaves the model without explicit constraints to differentiate semantically similar concepts. As shown in Figure 1, the model frequently produces “double-high” activations for identical pixel regions when processing similar concepts (e.g., tree vs. plant). This unconstrained behavior inevitably leads to semantic misclassifications and overlapping masks, severely degrading the reliability of the dense prediction results.

On the other hand, the standard architecture of SAM3 requires executing independent and computationally expensive cross-attention operations for each concept to acquire concept-specific dense visual features, followed by an independent decoding process. As shown in Figure 2, our inference latency scaling analysis reveals that on the ADE20K [70] dataset with 150 categories, the inference time scales linearly ( O(n)\mathcal{O}(n)) as the number of categories increases, ultimately resulting in severe inference latency.

To address these limitations, we propose the Dense Competitive Representations SAM (DCR-SAM) framework, which adapts SAM3 into an efficient architecture for multi-class segmentation. Specifically, the proposed framework resolves the aforementioned challenges through three key designs: ① To overcome the O(n)\mathcal{O}(n) inference latency, we decouple the deep cross-modal interactions by replacing class-specific text queries with a unified learnable prompt sequence. This approach enables the extraction of a globally contextualized visual representation shared across all concepts through a single forward pass, achieving a nearly 33×33\times inference speedup compared to the native SAM3, as shown in Figure 2. ② To resolve semantic misclassifications among similar concepts, we transition from isolated decoding to a dense competitive paradigm through the introduction of the Vision-Conditioned Text Refinement (VCTR) and Vision-Guided Text Pooling (VGTP) modules, coupled with a dense competition head. VCTR explicitly aligns textual sequence with the modified visual representation by injecting image-specific visual cues, whereas VGTP dynamically compresses this aligned sequence into highly discriminative global class anchors. By enforcing explicit inter-class competition, the proposed method effectively alleviates “double-high” activations and generates high-fidelity masks. ③ Furthermore, to enhance adaptability across diverse unconstrained scenarios, we incorporate a dynamically learnable background token to absorb non-target objects adaptively.

The main contributions of our work are summarized as follows:

• We reveal how the independent inference paradigm of SAM3 induces severe semantic misclassification among conceptually similar categories and results in an O(n)\mathcal{O}(n) inference latency.

• We propose DCR-SAM, by decoupling cross-modal interactions to alleviate inference latency and dynamically aligning textual concepts with visual representation, the proposed method effectively suppresses overlapping predictions to generate high-fidelity masks.

• Extensive experimental evaluations demonstrate that our method achieves state-of-the-art (SOTA) performance across multiple domain benchmarks while exhibiting excellent inference efficiency.

References (64)