Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

EdgeTAM: On-Device Track Anything Model

About

On top of Segment Anything Model (SAM), SAM 2 further extends its capability from image to video inputs through a memory bank mechanism and obtains a remarkable performance compared with previous methods, making it a foundation model for video segmentation task. In this paper, we aim at making SAM 2 much more efficient so that it even runs on mobile devices while maintaining a comparable performance. Despite several works optimizing SAM for better efficiency, we find they are not sufficient for SAM 2 because they all focus on compressing the image encoder, while our benchmark shows that the newly introduced memory attention blocks are also the latency bottleneck. Given this observation, we propose EdgeTAM, which leverages a novel 2D Spatial Perceiver to reduce the computational cost. In particular, the proposed 2D Spatial Perceiver encodes the densely stored frame-level memories with a lightweight Transformer that contains a fixed set of learnable queries. Given that video segmentation is a dense prediction task, we find preserving the spatial structure of the memories is essential so that the queries are split into global-level and patch-level groups. We also propose a distillation pipeline that further improves the performance without inference overhead. As a result, EdgeTAM achieves 87.7, 70.0, 72.3, and 71.7 J&F on DAVIS 2017, MOSE, SA-V val, and SA-V test, while running at 16 FPS on iPhone 15 Pro Max.

Chong Zhou, Chenchen Zhu, Yunyang Xiong, Saksham Suri, Fanyi Xiao, Lemeng Wu, Raghuraman Krishnamoorthi, Bo Dai, Chen Change Loy, Vikas Chandra, Bilge Soran• 2025

Related benchmarks

TaskDatasetResultRank
Video Object SegmentationDAVIS 2017 (val)--
1130
Video Object SegmentationYouTube-VOS 2019 (val)--
231
Video Object SegmentationSA-V (val)
J&F Score72.3
74
Video Object SegmentationSA-V (test)
J&F71.7
70
Video Object SegmentationMOSE (val)
J&F Score70
45
Video Object Segmentation17 video datasets (EndoVis 2018, ESD, LVOSv2, LV-VIS, UVO, VOST, PUMaVOS, Virtual KITTI 2, VIPSeg, Wildfires, VISOR, FBMS, Ego-Exo4D, Cityscapes, Lindenthal Camera, HT1080WT Cells, and Drosophila Heart) zero-shot
Zero-shot J&F Accuracy77
25
Video Object SegmentationSA-V SAM2.1-B+ (val)
J&F Score73.4
22
Video Object SegmentationMOSE SAM2.1-B+ (val)
J&F Score69.9
22
Video Object SegmentationSA-V SAM2.1-B+ (test)
J&F73
22
Video Object SegmentationDAVIS 2017 SAM2.1-B+ (val)
J&F Score86.4
22
Showing 10 of 14 rows

Other info

Code

Follow for update