MABViT —— 改进的注意力块增强 Vision Transformers
MABViT -- Modified Attention Block Enhances Vision Transformers
AI总结:
针对图像分类中 MLP 与注意力块并行导致性能下降的问题,提出在注意力块内对 Value tensor 引入基于 GLU 非线性的 MABViT 变体,在 ImageNet-1K 上以更少参数超越现有 S/16 和 B/16 变体,并在深层架构中展现更大潜力。
摘要:
近期研究表明,Gated Linear Units (GLU) 在增强 transformer 模型方面十分有效,尤其是在 Large Language Models (LLMs) 中。此外,在每个 Transformer 块内使用并行配置而非传统的串行方法,已被证明能在不显著影响性能的情况下加速 LLMs 的训练。然而,当 MLP 和注意力块在图像分类任务中并行运行时,我们观察到性能出现了明显下降。我们提出了一种新型的 transformer 变体,在注意力块内引入非线性以解决此问题。我们在 Value tensor 上实现了基于 GLU 的激活函数,这项新技术在 ImageNet-1K 数据集上以更少的参数超越了当前最先进的 Vision Transformers 的 S/16 变体 0.6%。它在使用一半参数的情况下也超越了 B/16 变体。此外,我们提供了 GELU 激活函数变体的结果以证实我们的主张。最后,我们展示了与标准架构相比,MABViT 变体在深层 transformers 中应用时展现出更大的潜力。
英文摘要:
Recent studies have demonstrated the effectiveness of Gated Linear Units (GLU) in enhancing transformer models, particularly in Large Language Models (LLMs). Additionally, utilizing a parallel configuration within each Transformer block rather than the conventional serialized method has been revealed to accelerate the training of LLMs without significantly impacting performance. However, when the MLP and attention block were run in parallel for the image classification task, we observed a noticeable decline in performance. We propose a novel transformer variant that integrates non-linearity within the attention block to tackle this problem. We implemented the GLU-based activation function on the Value tensor, and this new technique surpasses the current state-of-the-art S/16 variant of Vision Transformers by 0.6% on the ImageNet-1K dataset while utilizing fewer parameters. It also supersedes the B/16 variant while using only half the parameters. Furthermore, we provide results with the GELU activation function variant to confirm our assertions. Lastly, we showcase that the MABViT variants exhibit greater potential when utilized in deep transformers compared to the standard architecture.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。