Tal Shaharabany, Aviad Dahan, Raja Giryes, Lior Wolf
The recently introduced Segment Anything Model (SAM) combines a clever architecture and large quantities of training data to obtain remarkable image segmentation capabilities. However, it fails to reproduce such results for Out-Of-Distribution (OOD) domains such as medical images. Moreover, while SAM is conditioned on either a mask or a set of points, it may be desirable to have a fully automatic solution. In this work, we replace SAM's conditioning with an encoder that operates on the same input image. By adding this encoder and without further fine-tuning SAM, we obtain state-of-the-art results on multiple medical images and video benchmarks. This new encoder is trained via gradients provided by a frozen SAM. For inspecting the knowledge within it, and providing a lightweight segmentation solution, we also learn to decode it into a mask by a shallow deconvolution network.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Medical Image Segmentation | SUN-SEG-Easy (Unseen) | Dice | 0.753 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Easy (Unseen) | S measure | 0.815 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Easy (Unseen) | Sensitivity | 0.672 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Easy (Unseen) | mean E-measure | 0.855 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Easy (Unseen) | mean F-measure | 0.774 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Easy (Unseen) | weighted F-measure | 0.716 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Hard (Unseen) | Dice | 0.759 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Hard (Unseen) | S-Measure | 0.822 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Hard (Unseen) | Sensitivity | 0.726 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Hard (Unseen) | mean E-measure | 0.866 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Hard (Unseen) | mean F-measure | 0.764 | AutoSAM |
| Medical Image Segmentation | SUN-SEG-Hard (Unseen) | weighted F-measure | 0.714 | AutoSAM |