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

Vision Transformer 可以有多轻量

How Lightweight Can A Vision Transformer Be

Data Science and Artificial Intelligence Lab (DSAIL)(数据科学与人工智能实验室(DSAIL));Health Services Research Unit(卫生服务研究单位);Singapore General Hospital(新加坡中央医院)

Jen Hong Tan

AI总结:

本文提出利用 Mixture-of-Experts (MoE) 精简 vision transformers,通过共享参数、深度缩放及分组查询注意力等策略,在仅 0.67M 参数规模下实现了具竞争力的性能。

摘要:

本文探索了一种使用 Mixture-of-Experts (MoE) 来精简而非增强 vision transformers 的策略。MoE 层中的每个专家都是一个 SwiGLU 前馈网络,其中 V 和 W2 在该层内共享。未采用复杂的注意力或卷积机制。应用了深度方向的缩放,以逐步减少隐藏层的大小,并在各阶段增加专家数量。使用了分组查询注意力。我们在小数据集上研究了该方法有无预训练的情况,并探讨了迁移学习在此规模下是否有效。我们发现,该架构即使在 0.67M 参数规模下也具竞争力。

英文摘要:

In this paper, we explore a strategy that uses Mixture-of-Experts (MoE) to streamline, rather than augment, vision transformers. Each expert in an MoE layer is a SwiGLU feedforward network, where V and W2 are shared across the layer. No complex attention or convolutional mechanisms are employed. Depth-wise scaling is applied to progressively reduce the size of the hidden layer and the number of experts is increased in stages. Grouped query attention is used. We studied the proposed approach with and without pre-training on small datasets and investigated whether transfer learning works at this scale. We found that the architecture is competitive even at a size of 0.67M parameters.

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

↑