atlas

Research map / Architectures and efficiency / Attention and transformers

Enhancing Vision Transformer: Amplifying Non-Linearity in Feedforward Network Module

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Efficient and robust vision transformers

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes an improved feedforward network (IFFN) module for vision transformers that uses arbitrary GeLU (AGeLU) units and a depthwise spatial enhancement to reduce hidden dimensions, cutting FLOPs and parameters by roughly 10-21% without loss of ImageNet accuracy.

Problem

The FFN module in vision transformers is rarely modified compared with self-attention, and the reason changes to it help is unclear; the goal is to reduce FFN computation without hurting classification accuracy.

Approach

Shows the FFN acts as a non-linearity generator whose degree equals the hidden dimension, then uses learnable-affine AGeLU functions concatenated in two halves (halving hidden width) plus a depthwise conv with BN and GeLU to restore non-linearity via spatial information.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace the original FFN with IFFNDeiT, Swin, PoolFormer, and LVT models · ImageNet-1kTop-1 accuracy (%): 72.2 -> 72.6; 79.9 -> 80.0; 81.8 -> 81.8; 81.2 -> 81.5; 83.2 -> 83.2; 83.5 -> 83.4; 77.2 -> 77.2; 80.3 -> 80.7; 81.4 -> Mixed
use channel-wise enhancement only instead of the full IFFN (ablation)DeiT-Ti · ImageNet-1kTop-1 accuracy (%): 72.2 -> 70.5Hurt
use spatial-wise enhancement only instead of the original FFN (ablation)DeiT-Ti · ImageNet-1kTop-1 accuracy (%): 72.2 -> 72.8Helped
combine channel-wise and spatial-wise enhancement (ablation)DeiT-Ti · ImageNet-1kTop-1 accuracy (%): 72.2 -> 72.6Helped
replace GeLU with SoftPlus within IFFN (ablation)DeiT-Ti · ImageNet-1kTop-1 accuracy (%): 71.6 -> 72.0Helped
replace GeLU with ELU within IFFN (ablation)DeiT-Ti · ImageNet-1kTop-1 accuracy (%): 71.1 -> 71.7Helped
replace GeLU with Swish within IFFN (ablation)DeiT-Ti · ImageNet-1kTop-1 accuracy (%): 72.0 -> 72.5Helped
increase the number of concatenated nonlinear functions from 2 to 4 (ablation)DeiT-Ti IFFN · ImageNet-1kTop-1 accuracy (%): 72.6 -> 68.6Hurt
replace the FFN with a direct sum of 4C GeLU functions (ablation)DeiT-Ti · ImageNet-1kTop-1 accuracy (%): 72.2 -> 50.4Hurt
replace the FFN with a direct sum of 4C AGeLU functions (ablation)DeiT-Ti · ImageNet-1kTop-1 accuracy (%): 72.2 -> 53.3Hurt
increase depthwise convolution kernel size from 1 to 5 (ablation)DeiT-Ti IFFN · ImageNet-1kTop-1 accuracy (%): 72.0 -> 72.8Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k COCO 2017 ADE20k

Benchmarks: ImageNet-1k COCO 2017 ADE20k

Metrics: top-1 accuracy FLOPs parameters Lipschitz bound

Baselines: DeiT Swin PoolFormer LVT SoftPlus ELU Swish

Builds on: GeLU ReActNet RPReLU VanillaNet series activation CMT inverted residual FFN Lipschitz SDP bound (Fazlyab et al.)

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy