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

FlexiViT:适用于所有贴片尺寸的一种模型

FlexiViT: One Model for All Patch Sizes

Google Research(谷歌研究院)

Lucas Beyer, Pavel Izmailov, Alexander Kolesnikov, Mathilde Caron, Simon Kornblith, Xiaohua Zhai, Matthias Minderer, Michael Tschannen, Ibrahim Alabdulmohsin, Filip Pavetic

摘要:

视觉Transformer通过将图像切片为面片来将图像转换为序列。这些补丁的大小控制着速度/精度的权衡,较小的补丁会以更大的计算成本获得更高的精度,但改变补丁大小通常需要重新训练模型。在本文中,我们证明了在训练时简单地随机化补丁大小会导致一组权重,这些权重在广泛的补丁大小范围内表现良好,从而可以在部署时根据不同的计算预算定制模型。我们广泛地评估了所得到的模型,我们称之为ViT,在广泛的任务,包括分类,图像-文本检索,开放世界检测,全景分割,和语义分割,得出的结论是,它通常匹配,有时优于,在一个单一的补丁大小在其他相同的设置训练的标准ViT模型。因此,VIPViT训练是ViT的一个简单的插入式改进,它可以轻松地将计算自适应功能添加到依赖于ViT骨干架构的大多数模型中。代码和预训练模型可在https://github.com/google-research/big_vision上获得

英文摘要:

Vision Transformers convert images to sequences by slicing them into patches. The size of these patches controls a speed/accuracy tradeoff, with smaller patches leading to higher accuracy at greater computational cost, but changing the patch size typically requires retraining the model. In this paper, we demonstrate that simply randomizing the patch size at training time leads to a single set of weights that performs well across a wide range of patch sizes, making it possible to tailor the model to different compute budgets at deployment time. We extensively evaluate the resulting model, which we call FlexiViT, on a wide range of tasks, including classification, image-text retrieval, open-world detection, panoptic segmentation, and semantic segmentation, concluding that it usually matches, and sometimes outperforms, standard ViT models trained at a single patch size in an otherwise identical setup. Hence, FlexiViT training is a simple drop-in improvement for ViT that makes it easy to add compute-adaptive capabilities to most models relying on a ViT backbone architecture. Code and pre-trained models are available at https://github.com/google-research/big_vision

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

↑