EdgeTAM: On-Device Track Anything Model

Chong Zhou, Chenchen Zhu, Yunyang Xiong, Saksham Suri, Fanyi Xiao +6 more
2/10/2026

No official code found. Best implementation: facebookresearch/EdgeTAM (1,004 stars, Apache-2.0, last commit 2026-01-27).

Abstract

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 ${\mathcal{J}}{{\& }}{\mathcal{F}}$ on DAVIS 2017, MOSE, SA-V val, and SA-V test, while running at 16 FPS on iPhone 15 Pro Max. The code and models are available here.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[CVPR 2025] Official PyTorch implementation of "EdgeTAM: On-Device Track Anything Model"

1,00487Cuda, ShellDec 13, 20248 months agoApache-2.0
on-device-aisam2segment-anything

Similar Papers

Cite this paper

@article{zhou2026edgetam,
  title  = {EdgeTAM: On-Device Track Anything Model},
  author = {Chong Zhou and Chenchen Zhu and Yunyang Xiong and Saksham Suri and Fanyi Xiao and Lemeng Wu and Raghuraman Krishnamoorthi and Bo Dai and C. Loy and Vikas Chandra and Bilge Soran},
  year   = {2026},
  eprint = {2501.07256},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2501.07256},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.07256.svg)](https://codeofpaper.com/paper/2501.07256)

Discussion