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

Token Cropr:面向多种任务的更快视觉Transformer

Token Cropr: Faster ViTs for Quite a Few Tasks

Hasso Plattner Institute for Digital Health at the Icahn School of Medicine at Mount Sinai(西奈山伊坎医学院哈索·普拉特纳数字健康研究所);Hasso Plattner Institute for Digital Engineering, University of Potsdam(波茨坦大学哈索·普拉特纳数字工程研究所);Google DeepMind(谷歌DeepMind)

Benjamin Bergner, Christoph Lippert, Aravindh Mahendran

AI总结:

针对资源受限场景下ViTs推理效率问题,提出带可移除辅助预测头的Token Cropr剪枝器,基于任务相关性端到端选token,在多视觉任务上实现1.5-4倍加速且性能下降小,ADE20k上2倍加速仅损失0.1中位mIoU。

摘要:

资源受限应用中视觉Transformer(ViTs)的部署需要提升推理吞吐量。为此,已有多种通过逐步减少token数量来提高效率的token剪枝与合并方法被提出,但设计一种快速、高性能且适用于各类视觉任务的token缩减方法仍是未解决的问题。本研究提出一种token剪枝器,它使用辅助预测头,基于任务相关性端到端学习token选择;训练后可移除辅助头,使吞吐量接近随机剪枝器。我们在图像分类、语义分割、目标检测和实例分割任务上评估该方法,结果显示实现1.5至4倍的加速,性能下降很小;最佳案例中,在ADE20k语义分割基准上,相比无剪枝基线实现2倍加速,5次随机种子的中位mIoU仅下降可忽略的0.1。

英文摘要:

The adoption of Vision Transformers (ViTs) in resource-constrained applications necessitates improvements in inference throughput. To this end several token pruning and merging approaches have been proposed that improve efficiency by successively reducing the number of tokens. However, it remains an open problem to design a token reduction method that is fast, maintains high performance, and is applicable to various vision tasks. In this work, we present a token pruner that uses auxiliary prediction heads that learn to select tokens end-to-end based on task relevance. These auxiliary heads can be removed after training, leading to throughput close to that of a random pruner. We evaluate our method on image classification, semantic segmentation, object detection, and instance segmentation, and show speedups of 1.5 to 4x with small drops in performance. As a best case, on the ADE20k semantic segmentation benchmark, we observe a 2x speedup relative to the no-pruning baseline, with a negligible performance penalty of 0.1 median mIoU across 5 seeds.

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

↑