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

TinySAM 2: 极端内存压缩用于高效的跟踪任何模型

TinySAM 2: Extreme Memory Compression for Efficient Track Anything Model

Huawei Noah’s Ark Lab(华为诺亚实验室)

Zhaoyuan Ding, Yijing Yang, Han Shu, Xinghao Chen

AI总结:

本文提出TinySAM 2,一种轻量级视频分割模型,通过引入内存质量管理机制和联合空间-时间令牌压缩,有效降低了内存存储和计算成本,实现了在DAVIS和SA-V等挑战性数据集上达到SAM 2.1 90%性能,仅使用7%内存令牌和3%训练数据。

摘要:

Segment Anything Model 2 (SAM 2) 作为视频分割领域的核心基础模型,在半监督视频对象分割和跟踪任何任务中表现出色。然而,SAM 2的多阶段图像编码器和内存模块复杂的计算特性提高了模型在实际应用中的部署难度。为了解决这个问题,我们提出了TinySAM 2,一种在性能和效率之间取得平衡的轻量级视频分割模型。首先,引入了一个内存质量管理机制,用于选择并保留高信息量的历史帧作为内存。此外,提出了一种联合空间-时间令牌压缩方法,通过空间域上的平均池化压缩冗余令牌,在时间域上基于令牌级相似性测量选择信息令牌。此外,采用RepViT作为轻量级图像编码器,进一步减少模型参数。在DAVIS和SA-V等挑战性数据集上的大量实验表明,TinySAM 2在性能上达到了SAM 2.1的90%,仅使用7%的内存令牌和3%的训练数据。本研究有效缓解了SAM 2在参数数量、计算负载和部署成本方面的瓶颈,为视频分割模型在设备上的广泛应用提供了资源高效的解决方案。

英文摘要:

Segment Anything Model 2 (SAM 2) serves as a core foundation model in the field of video segmentation. Building upon the original SAM model, it introduces a memory bank mechanism and demonstrates outstanding performance in tasks such as semi-supervised video object segmentation and tracking anything. However, the complex computational characteristics of SAM 2's multi-stage image encoder and memory module have raised the barrier to the model's deployment in practical applications. To address this issue, we propose TinySAM 2, a lightweight video segmentation model that balances performance and efficiency. First, a memory quality management mechanism is introduced to select and retain high-informative historical frames as the memory. In addition, a joint-spatial-temporal token compression is proposed that reduces the memory storage and computational cost. Specifically, average pooling is employed to first compress redundancy tokens in the spatial domain. In the temporal domain, informative tokens are selected across frames in the memory bank based on token-level similarity measurement. Besides, we take RepViT as the lightweight image encoder, which further reduces the model parameters. Extensive experiments on challenging datasets such as DAVIS and SA-V demonstrate that TinySAM 2 achieves 90% of the performance of SAM 2.1, with only 7% memory tokens and 3% training data. This study effectively alleviates the bottlenecks in parameter count, computational load, and deployment costs associated with SAM 2, providing a resource-efficient solution for the widespread application of video segmentation models on devices.

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

↑