arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.17062cs.CV
收藏

Vote&Mix:用于高效视觉Transformer的即插即用令牌缩减方法

Vote&Mix: Plug-and-Play Token Reduction for Efficient Vision Transformer

Peking University(北京大学);ByteDance(字节跳动)

Shuai Peng, Di Fu, Baole Wei, Yong Cao, Liangcai Gao, Zhi Tang

AI总结:

本文提出即插即用且无需训练的令牌缩减方法VoMix,通过逐层令牌相似性投票与混合机制减少ViT计算冗余,在图像和视频任务上显著提升吞吐量且精度损失极小。

摘要:

尽管视觉Transformer(ViTs)在各种视觉任务中取得了显著成功,但它们常常受到大量计算成本的制约。在这项工作中,我们提出了Vote&Mix(VoMix),一种即插即用且无需参数训练的令牌缩减方法,可以无需任何训练直接应用于现成的ViT模型。VoMix通过逐层令牌相似性投票机制识别具有高度同质性的令牌,从而解决ViTs的计算冗余问题。随后,选定的令牌被混合到保留集合中,从而保留视觉信息。实验表明,VoMix在图像和视频上均显著改善了ViTs的速度-精度权衡。在没有任何训练的情况下,VoMix使现有ViT-H在ImageNet-1K上的吞吐量提高了2倍,使现有ViT-L在Kinetics-400视频数据集上的吞吐量提高了2.4倍,而top-1准确率仅下降0.3%。

英文摘要:

Despite the remarkable success of Vision Transformers (ViTs) in various visual tasks, they are often hindered by substantial computational cost. In this work, we introduce Vote\&Mix (\textbf{VoMix}), a plug-and-play and parameter-free token reduction method, which can be readily applied to off-the-shelf ViT models \textit{without any training}. VoMix tackles the computational redundancy of ViTs by identifying tokens with high homogeneity through a layer-wise token similarity voting mechanism. Subsequently, the selected tokens are mixed into the retained set, thereby preserving visual information. Experiments demonstrate VoMix significantly improves the speed-accuracy tradeoff of ViTs on both images and videos. Without any training, VoMix achieves a 2$\times$ increase in throughput of existing ViT-H on ImageNet-1K and a 2.4$\times$ increase in throughput of existing ViT-L on Kinetics-400 video dataset, with a mere 0.3\% drop in top-1 accuracy.

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

↑