Activator: GLU Activation Function as the Core Component of a Vision Transformer

Abdullah Nazhat Abdullah, Tarkan Aydin
5/24/2024
cs.CV
transformer-attention

Official code: Abdullah-88/Activator (2 stars, Python, BSD-3-Clause, last commit 2024-08-06).

Abstract

The transformer architecture has driven many successes in a variety of tasks within the field of deep learning, in particular the recent advances in natural language processing (NLP) culminating with large language models (LLM). Adding to that success, transformer architecture has found widespread interest from computer vision (CV) researchers and practitioners, allowing for many advancements in vision-related tasks and opening the door for multitask and multi-modal deep learning architectures that share the same principle of operation.

Show full abstract

One drawback to these architectures is their reliance on the scaled dot product attention mechanism with the softmax activation function, which is computationally expensive and requires large compute capabilities for both training and inference. This paper investigates substituting the MLP and attention mechanism usually adopted for transformer architecture with an architecture based on incorporating a gated linear unit (GLU) activation function structure with the aim of reducing the computational cost. The equalized experimental assessments conducted in this work show that the proposed modification with the targeted reductions in computational complexity offers competitive performance compared to the selected baseline architectures. The results are significantly in support of the aims of this work, in which the focus was to extensively utilize GLU-based MLPs, establishing a more efficient but capable alternative to the traditional MLP and the attention mechanism as the core component in the design of transformer architectures.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause
20PythonMar 2, 20242 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{abdullah2024activator,
  title  = {Activator: GLU Activation Function as the Core Component of a Vision Transformer},
  author = {Abdullah Nazhat Abdullah and Tarkan Aydin},
  year   = {2024},
  eprint = {2405.15953},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.15953v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.15953.svg)](https://codeofpaper.com/paper/2405.15953)

Discussion