arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.07256cs.CV
收藏

EdgeTAM:端侧跟踪一切模型

EdgeTAM: On-Device Track Anything Model

Meta Reality Labs(元宇宙实验室);Nanyang Technological University(南洋理工大学);Shanghai AI Laboratory(上海人工智能实验室)

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

AI总结:

针对SAM 2在移动设备上运行效率不足的问题,提出EdgeTAM模型,通过2D空间感知器优化记忆注意力模块并结合蒸馏策略,在保持性能的同时实现了iPhone 15 Pro Max上16 FPS的运行速度。

摘要:

在Segment Anything Model(SAM,分割一切模型)的基础上,SAM 2通过记忆库机制将其能力从图像输入扩展到视频输入,相比现有方法取得了显著性能表现,成为视频分割任务的基础模型。本文旨在大幅提升SAM 2的效率,使其能在移动设备上运行且保持相当的性能。尽管已有多项工作针对SAM优化效率,但我们发现这些方法对SAM 2并不足够——它们都聚焦于压缩图像编码器,而我们的基准测试显示,SAM 2新增的记忆注意力模块同样是延迟瓶颈。基于这一观察,我们提出EdgeTAM,它采用一种新型2D空间感知器(2D Spatial Perceiver)来降低计算开销。具体而言,该2D空间感知器使用包含固定组可学习查询的轻量Transformer,对密集存储的帧级记忆进行编码。考虑到视频分割是密集预测任务,我们发现保留记忆的空间结构至关重要,因此将查询划分为全局级和补丁级两组。我们还提出了一种蒸馏流程,可在不增加推理开销的前提下进一步提升性能。最终,EdgeTAM在DAVIS 2017、MOSE、SA-V val和SA-V test数据集上的J&F指标分别达到87.7、70.0、72.3和71.7,同时在iPhone 15 Pro Max上的运行速度可达16 FPS。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑