atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

SlimSAM: 0.1% Data Makes Segment Anything Slim

NeurIPS 2024 · Architectures and efficiency › Pruning and efficient tuning · approach: Joint pruning and quantization · 11 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.

Compresses SAM-B's image encoder by 50-77% with alternate embedding/bottleneck pruning and distillation plus disturbed Taylor importance, using only 10k SA-1B images on one GPU.

Problem

Compressing the Segment Anything Model normally requires training a new lightweight encoder from scratch with large data; naive pruning plus fine-tuning degrades sharply at high pruning ratios when data is scarce.

Approach

Alternately prune and distill decoupled sub-structures (embedding dimensions, then bottleneck dimensions) so that intermediate features keep consistent dimensionality for distillation, and estimate label-free importance via Taylor gradients computed on noise-perturbed image embeddings (disturbed Taylor importance) so pruning criteria match the distillation objective.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SlimSAM-50 instead of EdgeSAMSAM-B compression on SA-1B · SA-1BMIoU: 65.96% -> 72.33%Helped
Use SlimSAM-77 instead of EdgeSAMSAM-B compression on SA-1B · SA-1BMIoU: 65.96% -> 67.40%Helped
Replace Taylor importance with disturbed Taylor importance (ablation)one-step pruning on SAM-B · SA-1B, 77% pruningMIoU: 62.04% -> 62.31%Helped
Replace Taylor importance with disturbed Taylor importance (ablation)SlimSAM-77 · SA-1B, 77% pruningMIoU: 63.63% -> 64.48%Helped
Add bottleneck feature alignment to final-image-embedding distillation (ablation)SlimSAM-77 step 1 · SA-1BMIoU: 65.10% -> 66.32%Helped
Add embedding feature alignment to final-image-embedding distillation (ablation)SlimSAM-77 step 2 · SA-1BMIoU: 63.91% -> 64.48%Helped
Use global bottleneck pruning with Gaussian normalization rather than local pruning (ablation)SlimSAM-77 · SA-1B, 77% pruningMIoU: 64.38% -> 64.48%Helped
Reduce training data from 10k to 5k images (ablation)SlimSAM-50 · SA-1B, 50% pruningMIoU: 72.33% -> 71.89%Hurt
Reduce training data from 10k to 2k images (ablation)SlimSAM-50 · SA-1B, 50% pruningMIoU: 72.33% -> 69.79%Hurt
Reduce training data from 10k to 5k images (ablation)SlimSAM-77 · SA-1B, 77% pruningMIoU: 67.40% -> 64.47%Hurt
Increase training iterations from 50k to 100k (ablation)SlimSAM-50 · SA-1B, 50% pruningMIoU: 70.83% -> 72.33%Helped
Increase training iterations from 100k to 200k (ablation)SlimSAM-77 · SA-1B, 77% pruningMIoU: 64.43% -> 67.40%Helped

Surprising findings

Limitations

Experimental setup

Datasets: SA-1B (10k-image subset)

Benchmarks: SA-1B

Metrics: MIoU parameter count MACs inference speedup

Baselines: SAM-H SAM-L SAM-B FastSAM MobileSAM EfficientSAM EdgeSAM Random Pruning Magnitude Pruning Hessian Pruning Taylor Pruning Scratch Distillation

Builds on: Taylor pruning knowledge distillation Segment Anything Model

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