arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.03035cs.CVcs.AI
收藏

GTP-ViT:通过基于图的Token传播实现高效的Vision Transformers

GTP-ViT: Efficient Vision Transformers via Graph-based Token Propagation

The University of Queensland(昆士兰大学);Renmin University of China(中国人民大学);CSIRO Data61(澳大利亚联邦科学与工业研究组织Data61)

Xuwei Xu, Sen Wang, Yudong Chen, Yanping Zheng, Zhewei Wei, Jiajun Liu

AI总结:

本文提出基于图的Token传播方法(GTP),通过将次要token信息传播至重要token以保留信息并降低计算复杂度,在DeiT模型上减少26%计算量且精度仅降0.3%。

摘要:

Vision Transformers (ViTs) 彻底改变了计算机视觉领域,但由于计算需求高,在资源受限设备上部署仍然具有挑战性。为了加速预训练的 ViTs,人们开发了 token 剪枝和 token 合并方法,旨在减少计算中涉及的 token 数量。然而,这些方法仍然存在一些局限性,例如剪枝 token 导致的图像信息丢失,以及 token 匹配过程的低效。本文引入了一种新颖的基于图的 Token 传播(GTP)方法,以解决在高效 ViTs 中平衡模型效率与信息保留的挑战。受图摘要算法启发,GTP 精心地将不太重要的 token 的信息传播到在空间和语义上更连接且更重要的 token 上。因此,剩下的少数 token 作为整个 token 图的摘要,使该方法能够降低计算复杂度,同时保留被消除 token 的基本信息。结合创新的 token 选择策略,GTP 能够高效识别需要传播的图像 token。大量实验验证了 GTP 的有效性,证明了效率和性能的提升。具体而言,GTP 在不进行微调的情况下,将 DeiT-S 和 DeiT-B 的计算复杂度降低了高达 26%,在 ImageNet-1K 上仅有 0.3% 的准确率下降,并且在各种骨干网络上以更快的推理速度显著超越了最先进的 token 合并方法。源代码可在 https://github.com/Ackesnal/GTP-ViT 获取。

英文摘要:

Vision Transformers (ViTs) have revolutionized the field of computer vision, yet their deployments on resource-constrained devices remain challenging due to high computational demands. To expedite pre-trained ViTs, token pruning and token merging approaches have been developed, which aim at reducing the number of tokens involved in the computation. However, these methods still have some limitations, such as image information loss from pruned tokens and inefficiency in the token-matching process. In this paper, we introduce a novel Graph-based Token Propagation (GTP) method to resolve the challenge of balancing model efficiency and information preservation for efficient ViTs. Inspired by graph summarization algorithms, GTP meticulously propagates less significant tokens' information to spatially and semantically connected tokens that are of greater importance. Consequently, the remaining few tokens serve as a summarization of the entire token graph, allowing the method to reduce computational complexity while preserving essential information of eliminated tokens. Combined with an innovative token selection strategy, GTP can efficiently identify image tokens to be propagated. Extensive experiments have validated GTP's effectiveness, demonstrating both efficiency and performance improvements. Specifically, GTP decreases the computational complexity of both DeiT-S and DeiT-B by up to 26% with only a minimal 0.3% accuracy drop on ImageNet-1K without finetuning, and remarkably surpasses the state-of-the-art token merging method on various backbones at an even faster inference speed. The source code is available at https://github.com/Ackesnal/GTP-ViT.

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

↑