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

AdaViT:用于高效视觉Transformer的自适应令牌

AdaViT: Adaptive Tokens for Efficient Vision Transformer

NVIDIA(英伟达)

Hongxu Yin, Arash Vahdat, Jose Alvarez, Arun Mallya, Jan Kautz, Pavlo Molchanov

摘要:

我们介绍了A-ViT,一种自适应地调整视觉Transformer(ViT)的推理成本的方法,用于不同复杂度的图像。A-ViT通过自动减少视觉Transformer中的令牌数量来实现这一点,这些令牌在推理过程中在网络中进行处理。为此,我们重新制定了自适应计算时间(ACT),延长停机时间以丢弃冗余的空间标记。视觉Transformer的吸引人的架构属性使我们的自适应令牌减少机制,以加快推理,而无需修改网络架构或推理硬件。我们证明了A-ViT不需要额外的参数或子网络来停止,因为我们基于原始网络参数来学习自适应停止。我们进一步引入了分布式先验正则化,与先验ACT方法相比,它可以稳定训练。在图像分类任务(ImageNet 1 K)上,我们证明了我们提出的A-ViT在过滤信息丰富的空间特征和减少整体计算方面具有很高的效率。所提出的方法将DeiT-Tiny的吞吐量提高了62%,DeiT-Small的吞吐量提高了38%,而精度仅下降了0.3%,大大优于现有技术。项目页面https://a-vit.github.io/

英文摘要:

We introduce A-ViT, a method that adaptively adjusts the inference cost of vision transformer (ViT) for images of different complexity. A-ViT achieves this by automatically reducing the number of tokens in vision transformers that are processed in the network as inference proceeds. We reformulate Adaptive Computation Time (ACT) for this task, extending halting to discard redundant spatial tokens. The appealing architectural properties of vision transformers enables our adaptive token reduction mechanism to speed up inference without modifying the network architecture or inference hardware. We demonstrate that A-ViT requires no extra parameters or sub-network for halting, as we base the learning of adaptive halting on the original network parameters. We further introduce distributional prior regularization that stabilizes training compared to prior ACT approaches. On the image classification task (ImageNet1K), we show that our proposed A-ViT yields high efficacy in filtering informative spatial features and cutting down on the overall compute. The proposed method improves the throughput of DeiT-Tiny by 62% and DeiT-Small by 38% with only 0.3% accuracy drop, outperforming prior art by a large margin. Project page at https://a-vit.github.io/

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

↑