arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.02411cs.CVcs.LG

NiNformer:一种具有由 Token Mixing 生成的门控函数的 Network in Network Transformer

NiNformer: A Network in Network Transformer with Token Mixing Generated Gating Function

Bahcesehir University(巴切塞希尔大学)

Abdullah Nazhat Abdullah, Tarkan Aydin

AI总结:

本文提出 NiNformer 计算块替代标准 ViT 块,通过引入 Network in Network 结构和由 token mixing 生成的动态门控函数来降低计算与数据需求,在图像分类任务上优于基线架构。

摘要:

注意力机制是 transformer 架构的主要组件;它推动了深度学习在跨越许多领域和涵盖多项任务上的重大进展。在计算机视觉中,注意力机制首先被引入到 Vision Transformer ViT 中,随后其应用扩展到了视觉领域的许多任务中,例如分类、分割、目标检测和图像生成。虽然注意力机制具有极强的表达能力和出色的性能,但它也存在缺点,即计算成本高昂,并且需要相当大规模的数据集才能进行有效优化。为了解决这些缺陷,文献中提出了许多设计来减轻计算负担并缓解对数据规模的要求。视觉领域中此类尝试的例子包括 MLP-Mixer、Conv-Mixer、Perceiver-IO,以及许多具有不同优缺点的其他尝试。本文引入了一个新的计算块作为标准 ViT 块的替代方案。新提出的块通过用 Network in Network 结构替换常规的注意力层来降低计算需求,从而通过由 token mixing 过程生成的逐元素门控函数的动态学习,增强了 MLP-Mixer 的静态方法。大量实验表明,在应用于视觉领域图像分类任务的多个数据集上,所提出的设计比基线架构提供了更好的性能。

英文摘要:

The attention mechanism is the primary component of the transformer architecture; it has led to significant advancements in deep learning spanning many domains and covering multiple tasks. In computer vision, the attention mechanism was first incorporated in the Vision Transformer ViT, and then its usage has expanded into many tasks in the vision domain, such as classification, segmentation, object detection, and image generation. While the attention mechanism is very expressive and capable, it comes with the disadvantage of being computationally expensive and requiring datasets of considerable size for effective optimization. To address these shortcomings, many designs have been proposed in the literature to reduce the computational burden and alleviate the data size requirements. Examples of such attempts in the vision domain are the MLP-Mixer, the Conv-Mixer, the Perciver-IO, and many more attempts with different sets of advantages and disadvantages. This paper introduces a new computational block as an alternative to the standard ViT block. The newly proposed block reduces the computational requirements by replacing the normal attention layers with a Network in Network structure, therefore enhancing the static approach of the MLP-Mixer with a dynamic learning of element-wise gating function generated by a token mixing process. Extensive experimentation shows that the proposed design provides better performance than the baseline architectures on multiple datasets applied in the image classification task of the vision domain.

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

↑