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

SparseSAM: Segment Anything模型中激活的结构稀疏化

SparseSAM: Structured Sparsification of Activations in Segment Anything Models

University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);College of Engineering & Computer Science, VinUniversity(Vin大学工程与计算机科学学院);VinUni-Illinois Smart Health Center, VinUniversity(Vin大学-伊利诺伊智能健康中心);DFKI;Max Planck Research School for Intelligent Systems (IMPRS-IS)(马克斯·普朗克智能系统研究学校);University of Stuttgart(斯图加特大学)

Hoai-Chau Tran, Chi H. Nguyen, Duy M. H. Nguyen, Mathias Niepert, Fan Lai, Khoa D. Doan

AI总结:

本文提出SparseSAM,一种无需训练的结构稀疏化框架,通过联合加速注意力和MLP层并保持token身份,从而在保持高质量的同时提高推理速度和减少内存使用。

摘要:

Segment Anything Model (SAM) 实现了强大的开放词汇分割,但其基于ViT的图像编码器在推理延迟和内存方面占主导地位。现有的激活压缩方法,如标记合并,通过减少标记长度来处理,但引入了非平凡的运行时开销,并在高压缩下导致灾难性质量下降。其他应用稀疏注意力的方法仅关注注意力本身,使MLP完全密集,并限制了可达到的速度提升。我们提出了SparseSAM,一种(i)无需训练的结构稀疏化框架,该框架在加速注意力和MLP层的同时保持token身份。SparseSAM引入了(ii)Stripe-Sort Attention,它使用确定性的Z序排列将密集注意力转换为静态的硬件友好的稀疏模式,消除了动态掩码的开销。SparseSAM进一步引入了(iii)残差一致性MLP,只将信息性token路由通过MLP,同时通过残差路径传播剩余token。在四个分割基准测试中,SparseSAM在0.4密度下仅损失0.004 mIoU,在0.3密度下损失0.021 mIoU,相较于标记合并方法的改进,准确率损失减少了2.10倍,同时实现了2倍更快的推理速度和2.8倍的内存减少。

英文摘要:

The Segment Anything Model (SAM) achieves strong open-vocabulary segmentation, but its ViT-based image encoders dominate inference latency and memory. Existing activation compression methods, such as token merging, reduce the token length to process, yet introduce non-trivial runtime overhead and encounter catastrophic quality drop under high compression. Other methods applying Sparse Attention focus on attention alone, leaving the MLP fully dense and capping achievable speedup. We propose SparseSAM, a (i) training-free structured sparsification framework that jointly accelerates attention and MLP layers while preserving token identity. SparseSAM introduces (ii) Stripe-Sort Attention, which uses a deterministic Z-order permutation to transform dense attention into static hardware-friendly sparse patterns, eliminating dynamic masking overhead. SparseSAM further introduces a (iii) Residual-Consistency MLP that routes only informative tokens through the MLP while propagating remaining tokens through the residual pathway. Across four segmentation benchmarks, SparseSAM loses only 0.004 mIoU at a 0.4 density and 0.021 mIoU at 0.3, a 2.10x reduction in accuracy loss versus token merging advances, while achieving 2x faster inference and 2.8x memory reduction.

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

↑