Efficient Track Anything

Yunyang Xiong, Chong Zhou, Xiaoyu Xiang, Lemeng Wu, Chenchen Zhu, Zechun Liu, Saksham Suri, Balakrishnan Varadarajan, Ramya Akula, Forrest Iandola, Raghuraman Krishnamoorthi, Bilge Soran, Vikas Chandra

TL;DR

The paper introduces EfficientTAM, a family of lightweight models for "track anything" tasks that achieve performance comparable to the state-of-the-art SAM 2, but with significantly reduced computational cost and model size. This makes advanced video object segmentation and tracking feasible on resource-constrained devices like mobile phones.

What Problem Does This Paper Address?

The advent of powerful foundation models like Segment Anything Model 2 (SAM 2) has revolutionized image and video object segmentation. SAM 2 excels at segmenting and tracking arbitrary objects in videos, even with minimal user input. However, its impressive capabilities come at a high computational cost, primarily due to its large image encoder and complex memory mechanism. This makes SAM 2 impractical for real-time applications on devices with limited processing power, such as smartphones. The paper aims to bridge this gap by developing efficient alternatives that retain high-quality segmentation and tracking performance while being suitable for mobile deployment.

Methods

The core of EfficientTAM lies in two key innovations:

  • Lightweight Image Encoder: Instead of SAM 2's complex hierarchical encoder, EfficientTAM utilizes a vanilla, lightweight Vision Transformer (ViT) (specifically ViT-Tiny or ViT-Small). This significantly reduces the computational burden of frame feature extraction.
  • Efficient Memory Module: The paper proposes an efficient cross-attention mechanism for the memory module. This approach exploits the inherent locality of spatial memory tokens. By using average pooling to create coarser representations of memory keys and values within local windows, and then concatenating these with object pointer tokens, they achieve a good approximation of the original, more computationally expensive cross-attention. This significantly reduces the number of tokens processed in the memory module.

The overall architecture largely follows SAM 2, incorporating these efficient components to create end-to-end models for video object segmentation and track anything.

Datasets

The models were trained and evaluated on several datasets:

  • Training: SA-1B (for pre-training the image encoder) and SA-V (for full training of EfficientTAMs).
  • Evaluation:
    • Semi-supervised VOS: MOSE, DAVIS2017, LVOS, SA-V, YTVOS.
  • Promptable Video Segmentation: 9 densely annotated datasets (including EndoVis, ESD, LVOSv2, LV-VIS, UVO, VOST, PUMAVOS, Virtual KITTI, and VIPSeg).
  • Interactive Semi-Supervised VOS: 17 video datasets.
  • Segment Anything on Images: SA-23 and 14 new video datasets from the SAM 2 paper.

Key Insights and Ideas

  • Locality is Key for Memory Efficiency: The paper demonstrates that the spatial relationships within memory tokens are highly localized. This observation is crucial, as it allows for effective approximation of complex cross-attention by focusing on local regions rather than the entire token set.
  • Coarse Representations Suffice: Surprisingly, a coarser representation of memory tokens (obtained through averaging) is sufficient to maintain high performance. This suggests that not all fine-grained details in the memory are critical for accurate tracking, and significant computational savings can be achieved by simplifying them.
  • ViT's Efficiency Potential: The study highlights that even vanilla, lightweight ViT architectures can provide competitive performance for video object segmentation when integrated into a SAM-like framework, challenging the notion that only complex hierarchical encoders are necessary.
  • Mobile Deployment is Achievable: The success of EfficientTAM-Mobile on an iPhone 15 Pro Max at ~28 FPS shows that state-of-the-art video object segmentation is no longer confined to high-end GPUs, opening doors for on-device AI applications.

Key Results

  • Performance: EfficientTAM-S achieves performance comparable to SAM 2 on standard semi-supervised VOS benchmarks (e.g., 74.5% J&F on SA-V test vs. SAM 2's 74.7%), with approximately 1.6x speedup and 2.4x parameter reduction.
  • Image Segmentation: On image segmentation tasks (SA-23), EfficientTAM-S achieves 60.7% accuracy, outperforming SAM and SAM 2 in some configurations.
  • Mobile Efficiency: EfficientTAM-Mobile achieves near real-time performance on an iPhone 15 Pro Max at ~28 FPS, outperforming EdgeTAM by ~1.8x speedup while being more accurate.
  • Promptable VOS: EfficientTAM shows consistent improvement over SAM+XMem++ and SAM+Cutie, significantly reducing the performance gap with SAM 2.
  • Memory Module Efficiency: The efficient memory module provides substantial speedups, with EfficientTAM-S/2 (using the efficient memory) achieving ~450 ms per frame on iPhone 15, compared to ~1010.8 ms for EfficientTAM-S (using the original memory).

Limitations and Future Work

  • Trade-offs: While the efficient memory module offers significant speedups, the paper notes a slight performance drop compared to the original memory module. The choice between the two involves a trade-off between speed and accuracy.
  • Window Size Impact: The paper explores different window sizes for the efficient cross-attention, finding that a 2x2 window offers a good balance between accuracy and efficiency. Larger windows can lead to performance degradation, especially on videos with non-local object movements.
  • Future Work: The authors suggest that EfficientTAM has many potential applications for on-device tracking anything, implying further exploration in this direction. The success of their efficient cross-attention mechanism also opens avenues for applying similar techniques to other transformer-based models.

Summary updated

BibTeX
@inproceedings{xiong2025efficient,
  author = {Yunyang Xiong and Chong Zhou and Xiaoyu Xiang and Lemeng Wu and Chenchen Zhu and Zechun Liu and Saksham Suri and Balakrishnan Varadarajan and Ramya Akula and Forrest Iandola and Raghuraman Krishnamoorthi and Bilge Soran and Vikas Chandra},
  title = {{Efficient Track Anything}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure