TL;DR
SAM3-I (Segment Anything with Instructions) evolves the SAM family from simple "point-and-click" or "noun-phrase" prompts to following complex, natural language instructions. By introducing an instruction-aware cascaded adapter and a specialized data engine, the model can now ground specific instances based on attributes, actions, and spatial relations (e.g., "the player in the blue jersey sliding to tackle the ball") in a single inference pass, significantly outperforming previous agent-based workarounds.
What Problem Does This Paper Address?
While the original Segment Anything Model (SAM) revolutionized interactive segmentation and SAM3 introduced "Promptable Concept Segmentation" (segmenting all instances of a "soccer player"), they both struggle with specificity. Real-world interactions are rarely just single words; we describe the world through context: "the white bowl with yellow custard" or "the object designed for sitting near the railing."
Currently, to handle such complex queries, SAM3 relies on external "agentic" pipelines—using a Large Multimodal Model (LMM) to simplify a long instruction into a short noun phrase and then filtering the results. This approach is computationally expensive, prone to "semantic collapse" (losing the nuance of the original instruction), and separates linguistic reasoning from the actual segmentation process. SAM3-I aims to unify these steps into a single, instruction-aware framework.
Methods
The authors propose three primary innovations to bridge the gap between language reasoning and visual segmentation:
- Instruction-Aware Cascaded Adapter: Instead of fine-tuning the entire SAM3 backbone (which would risk "catastrophic forgetting" of its base capabilities), they insert lightweight, hierarchical adapters into the text encoder.
- S-Adapter: Focuses on "Simple" instructions (attributes, color, position) where the target noun is explicit.
- C-Adapter: Builds on the S-Adapter to handle "Complex" reasoning where the noun might be missing, requiring the model to infer the target from functions or actions.
- Instruct-Mask Distribution Alignment Loss: To ensure the model stays consistent across different levels of instruction complexity, the authors use a Kullback-Leibler (KL) divergence loss. This forces the "simple" and "complex" branches of the model to agree on the same target mask. They also use an Uncertainty-Aware mechanism to make the model focus harder on semantically difficult regions like occlusions.
- Multi-Stage Curriculum Training: The model is trained in three stages: first learning simple grounding, then complex reasoning, and finally a joint refinement stage to harmonize all capabilities.
Datasets
To train a model to follow instructions, you need a massive amount of instruction-mask pairs. The authors developed a semi-automatic Scalable Data Engine:
- PACO-LVIS-Instruct: A newly constructed benchmark based on the PACO and LVIS datasets. It contains 45,308 images and over 843,000 positive instructions.
- The Pipeline: They used an LMM (Qwen3-VL) to generate candidate instructions (positive, negative, and concept-level), followed by an "agentic inspection" stage where a second LMM verifies the quality. Finally, human correctors fixed the most challenging cases to ensure high-quality grounding.
Key Insights and Ideas
- Direct Alignment vs. Agentic Loops: The core "aha moment" is that instruction-following is better handled as an internal alignment problem rather than an external pre-processing task. By teaching the text encoder to "understand" instructions in the context of SAM’s visual features, the model becomes more precise and much faster.
- The Hierarchy of Difficulty: The paper recognizes that "red car" (perceptual) is fundamentally easier than "the vehicle used for transporting goods" (functional). The cascaded adapter architecture mirrors this linguistic hierarchy.
- Preserving the Foundation: A major success of this work is that it adds instruction-following without degrading SAM3’s original ability to segment broad concepts. It achieves "specificity" without losing "generality."
Key Results
SAM3-I demonstrates a significant leap in performance over "SAM3 + Agent" baselines:
- Simple Instructions: Achieved 54.0 gIoU, a +12.4 improvement over the agentic baseline.
- Complex Instructions: Achieved 51.0 gIoU, a +2.8 improvement.
- Efficiency: Because it operates in a single pass, it avoids the multi-step overhead and potential failures of calling an external LLM to "rewrite" prompts.
- Qualitative Superiority: In head-to-head comparisons (see Figure 5 in the paper), SAM3-I correctly identifies specific objects (like a black pipe with a chrome tip) that agent-based systems often miss or misidentify.
Limitations and Future Work
- N-to-1 Bias: The current model is primarily trained on "N-to-1" scenarios (multiple instructions for one instance). The authors note that real-world use often requires "1-to-N" (one instruction referring to a group of objects), which is a target for future versions.
- Architecture Scaling: While the adapters are efficient, the authors suggest that moving toward a Mixture-of-Experts (MoE) router could allow the model to dynamically choose the best reasoning path for even more diverse instructions.
- Zero-Shot Generalization: While the results on PACO-LVIS-Instruct are strong, more extensive testing on completely unseen, out-of-distribution datasets is needed to fully realize a "foundation model" for instruction-based segmentation.
Summary updated