Home Knowledge Base gMLP

gMLP is the gated MLP architecture that injects spatial interaction through a Spatial Gating Unit while keeping the model attention free - it multiplies one feature branch by a learned spatial projection of another branch, creating content-aware modulation without softmax attention.

What Is gMLP?

Why gMLP Matters

gMLP Block Structure

Channel Split:

Spatial Projection:

Elementwise Gate:

How It Works

Step 1: Patch embeddings enter gMLP block, channel split is performed, and gate branch is transformed across tokens.

Step 2: Gate output modulates value branch by elementwise multiplication, then residual addition and feedforward layers continue.

Tools & Platforms

gMLP is an efficient middle ground between plain MLP mixing and full attention complexity - its spatial gating unit delivers adaptive context flow with a compact compute profile.

gmlp for visioncomputer vision

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.