arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.00033cs.CVcs.AI
收藏

LF-ViT:减少视觉Transformer中的空间冗余以实现高效图像识别

LF-ViT: Reducing Spatial Redundancy in Vision Transformer for Efficient Image Recognition

Harbin Institute of Technology(哈尔滨工业大学);Swiss Data Science Center(瑞士数据科学中心);Xidian University(西安电子科技大学)

Youbing Hu, Yun Cheng, Anqi Lu, Zhiqiang Cao, Dawei Wei, Jie Liu, Zhijun Li

AI总结:

针对ViT处理高分辨率图像时空间冗余导致算力开销大的问题,提出LF-ViT,通过定位+聚焦两阶段策略与NGCA机制,在同参数下大幅降低FLOPs并提升吞吐量。

摘要:

Vision Transformer(ViT)在处理高分辨率图像时精度表现优异,但面临显著的空间冗余挑战,导致计算和内存需求增加。为解决该问题,我们提出了定位与聚焦视觉Transformer(Localization and Focus Vision Transformer,LF-ViT),该模型可在不损失性能的前提下策略性地降低计算开销。在定位阶段,模型处理低分辨率图像;若无法得到确定性预测,就会触发我们首创的Neighborhood Global Class Attention(NGCA,邻域全局类别注意力)机制,基于初始结果有效识别并突出类别判别性区域。随后在聚焦阶段,使用原始图像中的该指定区域来增强识别效果。LF-ViT的独特之处在于两个阶段采用一致的参数,可实现无缝的端到端优化。实验结果证实了LF-ViT的优势:它将Deit-S的浮点运算量(FLOPs)显著降低了63%,同时将吞吐量提升了一倍。本项目代码位于https://github.com/edgeai1/LF-ViT.git。

英文摘要:

The Vision Transformer (ViT) excels in accuracy when handling high-resolution images, yet it confronts the challenge of significant spatial redundancy, leading to increased computational and memory requirements. To address this, we present the Localization and Focus Vision Transformer (LF-ViT). This model operates by strategically curtailing computational demands without impinging on performance. In the Localization phase, a reduced-resolution image is processed; if a definitive prediction remains elusive, our pioneering Neighborhood Global Class Attention (NGCA) mechanism is triggered, effectively identifying and spotlighting class-discriminative regions based on initial findings. Subsequently, in the Focus phase, this designated region is used from the original image to enhance recognition. Uniquely, LF-ViT employs consistent parameters across both phases, ensuring seamless end-to-end optimization. Our empirical tests affirm LF-ViT's prowess: it remarkably decreases Deit-S's FLOPs by 63\% and concurrently amplifies throughput twofold. Code of this project is at https://github.com/edgeai1/LF-ViT.git.

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

↑