EdgeTAM: On-Device Track Anything Model

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

Introduction

The Segment Anything Model 2 (SAM 2) set a new benchmark for video object segmentation (VOS), enabling versatile object tracking through simple prompts. However, SAM 2 was primarily designed for server-side inference; on flagship mobile devices like the iPhone 15 Pro Max, even the smallest variants struggle to exceed 1 FPS.

EdgeTAM addresses this by identifying a critical shift in computational bottlenecks. While previous research focused on shrinking the image encoder, the authors discovered that in the transition to video, the memory attention mechanism—which handles temporal context—becomes the primary hurdle on edge hardware. EdgeTAM introduces architectural innovations to make VOS both "edge-fast" and "foundation-accurate."

Methods

To overcome the efficiency-accuracy trade-off, EdgeTAM employs two primary strategies:

  1. 2D Spatial Perceiver: Standard Perceiver architectures often lose spatial structure by compressing features into a small set of latent vectors. EdgeTAM introduces a 2D version that utilizes two types of learnable queries: Global-level queries to summarize the entire frame and Patch-level queries constrained to local windows. This preserves the 2D spatial arrangement of memory, which is vital for accurate dense mask prediction.
  2. Two-Stage Distillation Pipeline: To recover performance lost by using a lightweight backbone (RepViT-M1), the model is trained using a large SAM 2 "teacher." In the first stage, the student matches the teacher's image encoding and mask predictions. In the second stage, the student's memory modules are aligned with the teacher's video-level outputs.
The EdgeTAM architecture featuring the 2D Spatial Perceiver and memory bank integration.

Key Results

EdgeTAM demonstrates significant improvements in both speed and efficiency without sacrificing state-of-the-art accuracy:

  • Mobile Performance: It achieves 16 FPS on an iPhone 15 Pro Max using CoreML, representing a 22x speedup over the baseline SAM 2 on mobile hardware.
  • Server Performance: On an NVIDIA A100, it reaches over 150 FPS.
  • Accuracy: Despite its reduced size, EdgeTAM maintains a high $\mathcal{J}\&\mathcal{F}$ score of 72.3 on the SA-V validation set, outperforming several larger server-side models like DEVA and STCN.
Comparison of EdgeTAM against SAM 2 and other models, showing the trade-off between accuracy (J&F) and speed (FPS) on different hardware.

Key Insights and Limitations

The core takeaway from EdgeTAM is that as models move from image to video tasks, the complexity shifts from the encoder to the temporal memory system. Optimizing the encoder alone yields diminishing returns on mobile devices; instead, reducing the number of tokens before expensive cross-attention steps—while maintaining spatial structure—is the key to real-time performance.

While highly robust, EdgeTAM inherits some limitations from its teacher model, such as potential struggles with extreme motion or very thin structures. Future work will focus on NPU-specific optimizations to potentially reach 30+ FPS for mobile AR/VR applications.

Summary updated

BibTeX
@inproceedings{zhou2025edgetam,
  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 Chen Change Loy and Vikas Chandra and Bilge Soran},
  title = {{EdgeTAM: On-Device Track Anything Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01291},
}
Figure