There is no SAMantics! Exploring SAM as a Backbone for Visual Understanding Tasks

Miguel Espinosa, Chenhongyi Yang, Linus Ericsson, Steven McDonagh, Elliot J. Crowley
11/22/2024
cs.CV

No official code found. Best implementation: miquel-espinosa/samantics (11 stars, last commit 2025-07-05).

Abstract

The Segment Anything Model (SAM) was originally designed for label-agnostic mask generation. Does this model also possess inherent semantic understanding, of value to broader visual tasks? In this work we follow a multi-staged approach towards exploring this question. We firstly quantify SAM's semantic capabilities by comparing base image encoder efficacy under classification tasks, in comparison with established models (CLIP and DINOv2). Our findings reveal a significant lack of semantic discriminability in SAM feature representations, limiting potential for tasks that require class differentiation. This initial result motivates our exploratory study that attempts to enable semantic information via in-context learning with lightweight fine-tuning where we observe that generalisability to unseen classes remains limited. Our observations culminate in the proposal of a training-free approach that leverages DINOv2 features, towards better endowing SAM with semantic understanding and achieving instance-level class differentiation through feature-based similarity. Our study suggests that incorporation of external semantic sources provides a promising direction for the enhancement of SAM's utility with respect to complex visual tasks that require semantic understanding.

View on arXivView PDF

Code Implementations(1)

Official code for "There is no SAMantics! Exploring SAM as a Backbone for Visual Understanding Tasks"

110Shell, PythonNov 22, 20241 years ago

Similar Papers

Cite this paper

@article{espinosa2024there,
  title  = {There is no SAMantics! Exploring SAM as a Backbone for Visual Understanding Tasks},
  author = {Miguel Espinosa and Chenhongyi Yang and Linus Ericsson and Steven McDonagh and Elliot J. Crowley},
  year   = {2024},
  eprint = {2411.15288},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.15288v1}
}

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

Discussion