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

DiT:具有动态令牌路由的高效视觉Transformer

DiT: Efficient Vision Transformers with Dynamic Token Routing

Meituan(美团)

Yuchen Ma, Zhengcong Fei, Junshi Huang

AI总结:

本文提出动态视觉Transformer DiT,通过数据依赖的令牌路由策略为图像令牌自适应选择缩放和特征变换路径,在降低计算成本的同时提升分类、检测与分割性能。

摘要:

近年来,在许多密集网络中,图像令牌共享相同的静态数据流。然而,图像中目标之间的差异带来了挑战,例如空间尺度的大幅变化以及视觉实体识别的困难。在本文中,我们提出了一种数据依赖的令牌路由策略,为动态视觉Transformer精心设计图像令牌的路由路径,称为DiT。所提出的框架为每个令牌生成一条数据依赖的路径,以适应目标的尺度和令牌的视觉判别性。在前馈过程中,设计了可微分的路由门来选择图像令牌的缩放路径和特征变换路径,从而实现多路径特征传播。通过这种方式,可以精细调节目标尺度和图像表示的视觉判别性所带来的影响。此外,通过对路由门施加预算约束以及特征提取的提前停止,可以进一步降低计算成本。在实验中,我们的DiT在ImageNet分类、目标检测、实例分割和语义分割上,相较于许多最先进方法取得了优越的性能和良好的复杂度/精度权衡。特别是,DiT-B5在ImageNet上以10.3 GFLOPs获得了84.8%的top-1准确率,比具有相似计算复杂度的最先进方法高出1.0%。这些广泛的结果表明,DiT可以作为各种视觉任务的通用骨干网络。

英文摘要:

Recently, the tokens of images share the same static data flow in many dense networks. However, challenges arise from the variance among the objects in images, such as large variations in the spatial scale and difficulties of recognition for visual entities. In this paper, we propose a data-dependent token routing strategy to elaborate the routing paths of image tokens for Dynamic Vision Transformer, dubbed DiT. The proposed framework generates a data-dependent path per token, adapting to the object scales and visual discrimination of tokens. In feed-forward, the differentiable routing gates are designed to select the scaling paths and feature transformation paths for image tokens, leading to multi-path feature propagation. In this way, the impact of object scales and visual discrimination of image representation can be carefully tuned. Moreover, the computational cost can be further reduced by giving budget constraints to the routing gate and early-stopping of feature extraction. In experiments, our DiT achieves superior performance and favorable complexity/accuracy trade-offs than many SoTA methods on ImageNet classification, object detection, instance segmentation, and semantic segmentation. Particularly, the DiT-B5 obtains 84.8\% top-1 Acc on ImageNet with 10.3 GFLOPs, which is 1.0\% higher than that of the SoTA method with similar computational complexity. These extensive results demonstrate that DiT can serve as versatile backbones for various vision tasks.

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

↑