Home Knowledge Base Sandwich Transformer

Sandwich Transformer is a transformer variant that reorders self-attention and feedforward sublayers — placing attention sublayers in the middle of the network and feedforward sublayers at the top and bottom, creating a "sandwich" structure that improves perplexity.

How Does Sandwich Transformer Work?

Why It Matters

Sandwich Transformer is transformer with rearranged layers — the surprising finding that putting attention in the middle and FFN at the edges improves performance for free.

sandwich transformerefficient transformer

Explore 500+ Semiconductor & AI Topics

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