AutoSAM: Adapting SAM to Medical Images by Overloading the Prompt Encoder
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Polyp Segmentation | ETIS | Dice Score79.7 | 138 | |
| Medical Image Segmentation | GLAS | Dice92.82 | 134 | |
| Polyp Segmentation | ColonDB | mDice83 | 96 | |
| Medical Image Segmentation | MMWHS | Dice Score88.71 | 53 | |
| Medical Image Segmentation | BTCV | Dice Coefficient75.77 | 39 | |
| Medical Image Segmentation | ACDC | DSC72.05 | 33 | |
| Left Atrium Segmentation | LA database (test) | Dice57.99 | 31 | |
| Image Forgery Localization | Columbia Unseen Domain | mIoU18.9 | 30 | |
| Video Polyp Segmentation | SUN-SEG Hard (test) | Dice0.759 | 28 | |
| Video Polyp Segmentation | SUN-SEG Easy (test) | Dice75.3 | 28 |