Transformer components · component · 2015 · any domain
What it is
BatchNorm normalizes across the batch, LayerNorm and RMSNorm across features — stabilizing optimization and enabling higher learning rates.
When to use it
Non-negotiable in modern networks. Pre-norm placement is what makes deep transformers trainable.
Caveats
BatchNorm depends on batch statistics, so it breaks with small batches and behaves differently in training and inference. Where normalization is placed matters: post-norm is hard to train deep, while pre-norm is stable but can slightly reduce final quality.
Key ideas
RMSNorm drops the mean-centering for speed and is the LLM default
QK-norm prevents attention logit explosion at long context
Two things get called “ML architecture”: the classical statistical model families, and the neural
network wirings. Both are here, tagged by what they are and what data they eat.
Start from your problem
Architectures
Architecture Decision Wizard
Answer three questions — what your data looks like, how much of it you have, and what you need the
model to be good at — and the wizard names a primary architecture, a baseline to measure it against, and
an alternative worth trying, each with a link to its page in the catalog.
Every recommendation is an entry in the catalog of 198 architectures, so nothing here is a dead end:
step 1 asks about your data (tabular, text, images, time series, graphs, recommenders or control).
Step 1: What is your primary data modality?
Select the input format and problem structure:
Step 2: What is your dataset scale & compute constraint?
Select your deployment and training envelope:
Step 3: What is your primary objective?
Select the key property you need to optimize for:
Side-by-Side Model Comparison
Put up to three architectures next to each other and read their family, data domains, what each one is,
when to use it, its caveats and key ideas in one table. Start from a preset below — Transformer against
Mamba, the attention variants, the generative families, the reinforcement learning methods — or choose any
entries from the catalog.
The models you pick are kept in the address, so a comparison can be shared or bookmarked.
PRESETS:
The ML Architecture Timeline (1805–2026)
Track the evolutionary leaps across statistical learning, deep networks, attention mechanisms, and state-space foundation models.