NiNformer: A Network in Network Transformer with Token Mixing Generated Gating Function
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 47 of its 58 references that are in the map. First posted on arXiv 4 Mar 2024.
Builds on
47 of 58 references.
References · 47
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2023Segment Anythingcited by 8,158
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023Mistral 7Bcited by 3,065
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
35 more
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2022DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detectioncited by 1,306
- 2021Transformers in Vision: A Surveycited by 1,009
- 2020Efficient Transformers: A Surveycited by 784
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
- 2016Language Modeling with Gated Convolutional Networkscited by 688
- 2021Transformer in Transformercited by 632
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 616
- 2019Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecastingcited by 606
- 2013Network In Networkcited by 600
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
- 2022MaxViT: Multi-Axis Vision Transformercited by 476
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2022Unified-IO: A Unified Model for Vision, Language, and Multi-Modal Taskscited by 420
- 2021A Survey of Transformerscited by 399
- 2021Pay Attention to MLPscited by 367
- 2019Axial Attention in Multidimensional Transformerscited by 350
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
- 2020Sparse Sinkhorn Attentioncited by 250
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2022Patches Are All You Need?cited by 201
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
- 2019Blockwise Self-Attention for Long Document Understandingcited by 158
- 2022On The Computational Complexity of Self-Attentioncited by 137
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2019Star-Transformercited by 94
- 2021A Practical Survey on Faster and Lighter Transformerscited by 73
- 2021Poolingformer: Long Document Modeling with Pooling Attentioncited by 60
- 2020Transformer on a Dietcited by 4
Built on by
Not cited yet.