atlas

Research map / Detection and segmentation / Open-set and few-shot detection

EfficientSAM: Leveraged Masked Image Pretraining for Efficient Segment Anything

CVPR 2024 · Detection and segmentation › Open-set and few-shot detection · approach: Prompted SAM segmentation · 240 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SAMI, a masked image pretraining method that reconstructs SAM ViT-H encoder features, and uses the resulting lightweight ViT encoders to build EfficientSAM models that are finetuned on SA-1B.

Problem

SAM's huge ViT-H image encoder (632M parameters) makes it too computationally expensive for real-time and wider practical deployment.

Approach

Use SAM's ViT-H image encoder features as reconstruction targets for an MAE-style masked image pretraining (with a cross-attention decoder and linear projection head) on ImageNet, then plug the pretrained lightweight ViT encoders into SAM's prompt decoder and finetune on SA-1B.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
pretrain ViT-Tiny with SAMI instead of MAEViT-Tiny · ImageNet-1Ktop-1 accuracy: 75.2 -> 76.8Helped
pretrain ViT-Small with SAMI instead of iBOTViT-Small · ImageNet-1Ktop-1 accuracy: 82.3 -> 82.7Helped
use SAMI pretraining instead of MAE pretrainingViT backbones with Mask2former · ADE20KmIOU: 39.0 -> 42.7; 44.1 -> 48.8; 49.3 -> 51.8Helped
use EfficientSAM-S instead of SAMSAM · COCO box promptmIoU: 78.4 -> 76.9Hurt
use EfficientSAM-S instead of FastSAMFastSAM · COCO zero-shot instance segmentationAP: 37.9 -> 44.4Helped
replace MSE reconstruction loss with cosine similarity loss (ablation)SAMI-Ti · ImageNet-1Ktop-1 accuracy: 76.8 -> 76.1Hurt
replace MSE reconstruction loss with cosine similarity loss (ablation)SAMI-S · ImageNet-1Ktop-1 accuracy: 82.7 -> 82.3Hurt
replace the MAE decoder with the SAMI cross-attention decoder (ablation)SAMI-B · ImageNet-1Ktop-1 accuracy: 84.4% to 84.8%Helped
use a high mask ratio of 75% (ablation)SAMI · ImageNet-1Ktop-1 accuracyHelped
use CLIP features instead of SAM features as the reconstruction target (ablation)SAMI with ViT-Tiny · ImageNet-1Ktop-1 accuracy: +0.8%Helped
increase EfficientSAM finetuning from 0.1 epoch to 1 epoch (ablation)EfficientSAM-Ti and EfficientSAM-S · COCOmIoU: larger than 2.5 mIoUHelped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K SA-1B COCO LVIS ADE20K

Benchmarks: ImageNet-1K COCO LVIS ADE20K

Metrics: top-1 accuracy AP APbox APmask mIoU throughput parameters

Baselines: SAM MobileSAM FastSAM MAE DeiT SSTA DMAE BEiT CAE DINO iBOT BootMAE

Builds on: Masked Autoencoders (MAE) Segment Anything Model (SAM) ViTDet Mask2Former

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy