atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

TinySAM: Pushing the Envelope for Efficient Segment Anything Model

AAAI 2025 · Architectures and efficiency › Pruning and efficient tuning · approach: Low-rank compression and merging · 39 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.

Distills a tiny SAM (TinyViT-5M student from SAM-H teacher) using full-stage distillation with hard prompt sampling and hard mask weighting, adds W8A8 post-training quantization for prompt-based segmentation, and a hierarchical everything-mode inference strategy.

Problem

Segment Anything Model (SAM) is too computationally heavy for deployment on edge devices, and prior efficient variants (MobileSAM, FastSAM) lose zero-shot segmentation accuracy.

Approach

Multi-stage distillation from SAM-H to a TinyViT student (embedding, decoder-token, and output losses) with online hard prompt sampling and hard mask weighting, combined with PTQ adapted to prompt-based segmentation via Hessian-guided scale search and a coarse-to-fine everything-mode grid.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add full-stage knowledge distillation loss (ablation)TinySAM student · COCO val zero-shot instance segmentationAP (%): 40.7 -> 41.4Helped
Add hard prompt sampling (ablation)TinySAM student with full-stage distillation · COCO val zero-shot instance segmentationAP (%): 41.4 -> 41.9Helped
Add hard mask weighting (ablation)TinySAM student with full-stage distillation and hard prompt sampling · COCO val zero-shot instance segmentationAP (%): 41.9 -> 42.3Helped
Add post-training quantization (ablation)TinySAM · COCO val zero-shot instance segmentationAP (%): 42.3 -> 41.4Hurt
Add embedding distillation loss to output loss (ablation)TinySAM student · COCO val zero-shot instance segmentationAP (%): 41.6 -> 41.7Helped
Add token distillation loss to embedding and output losses (ablation)TinySAM student · COCO val zero-shot instance segmentationAP (%): 41.7 -> 41.9Helped
Add hard mask weighting to output distillation loss (ablation)TinySAM student with three distillation losses · COCO val zero-shot instance segmentationAP (%): 41.9 -> 42.3Helped
Apply W8A8 quantization (ablation)TinySAM · COCO val zero-shot instance segmentationAP (%): 42.3 -> 41.4Hurt
Apply W6A6 quantization (ablation)TinySAM · COCO val zero-shot instance segmentationAP (%): 42.3 -> 39.0Hurt
Use hierarchical point grid strategyTinySAM · COCO val2017 first 100 imagesTime (s): 1.7790 -> 0.9303Helped
Use hierarchical point grid strategyTinySAM · COCO val2017 first 100 imagesmIoU: 0.6137 -> 0.6061Hurt
Increase first/second point density from 8/32 to 10/32 (ablation)TinySAM hierarchical strategy · COCO valmIoU: 0.6061 -> 0.6078Helped

Surprising findings

Limitations

Experimental setup

Datasets: SA-1B

Benchmarks: COCO LVIS v1 BBBC038v1 DOORS TimberSeg

Metrics: AP mIoU MACs latency

Baselines: SAM-H SAM-L SAM-B FastSAM EfficientSAM-Ti SlimSAM-77 MobileSAM

Builds on: Segment Anything Model MobileSAM TinyViT ViTDet

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