cs.CVNov 26, 2026

Do Segmentation Encoders Learn Diagnostic Representations? A Skin-Lesion Classification Study

Authors: Javier Guinea-Pérez, Alessandro Ceressi, Anaida Fernández García, Pablo Perdomo Quinteiro, Fedrico Alvarez

Organizations: Grupo de Aplicación de Telecomunicaciones Visuales, Information Processing and Telecommunications Center, Universidad Politécnica de Madrid, 28040 Madrid, Spain

Abstract

Promptable segmentation foundation models transfer well across segmentation tasks, but their usefulness as image-level diagnostic representations remains unclear. We evaluate whether SAM2/Hiera-based encoders can serve as frozen embeddings for skin-lesion classification. The original SAM2 encoder and a medically fine-tuned MedSAM2 encoder are compared with DINOv2 across multiple dermatology datasets using a common frozen-feature protocol and lightweight downstream classifiers. SAM2-derived embeddings transfer partially to diagnosis, and the medically fine-tuned MedSAM2 improves over the original SAM2 encoder on average. However, DINOv2 achieves the strongest average macro-F1 and obtains the highest point estimate on all evaluated datasets. These results suggest that medical segmentation fine-tuning can improve representation transfer, but segmentation-oriented pretraining does not necessarily yield the most discriminative embeddings for skin-lesion classification.

Figures & tables

Explore similar work

CardsList
  1. PEFT-MedSAM: Efficient Fine-Tuning of Medical Foundation Models for Explainable Skin Lesion Segmentation

    Jun 17, 2026Asad Channa, Abdullah Khan, Asghar Ali Chandio +4Medical Imaging Foundation ModelsMedical Image Segmentation

  2. When Adaptation Hurts: Connecting Representational Drift to OOD Failures in MedSAM Fine-Tuning

    Aug 21, 2026Marko Haralović, Sounic Akkaraju, Carlo Baretta +2Vision Foundation Model AdaptationMedical Imaging Foundation Models

  3. Beyond the Encoder: Object-Centric Representations Emerging from Segmentation Foundation Models

    Oct 13, 2026Michalis Pistos, Bartłomiej W. PapieżCancer Subtype ClassificationObject-Centric Representation Learning