ModelRefs / Model Architecture — AI Glossary
Model Architecture — AI Glossary
The structural design of a neural network, including layer types, normalization, positional encoding, and attention variant.
Overview
Model architecture choices—decoder-only vs. encoder-decoder, attention variant (MHA/GQA/MQA), normalization (LayerNorm/RMSNorm), activation (SwiGLU/ReLU), positional encoding (RoPE/ALiBi)—determine parameter efficiency, training stability, and inference speed. Architecture is increasingly standardized; differentiation now centers on data curation and scale.
Reference details
| Topic | architecture |
|---|---|
| Last reviewed | 2026-06-24 |
Related terms
How it works
- Architecture fixes the structural choices before any training: stack type, attention variant, normalisation placement, activation, and positional encoding.
- Each choice has a measurable consequence — attention variant sets KV-cache size, activation sets parameter count at a given width, positional encoding sets how far context extrapolates.
- These choices are largely irreversible after pretraining, because the weights were learned inside them.
- They determine inference cost as much as capability: two models of identical parameter count can differ severalfold in cache footprint and therefore in achievable concurrency.
- Published architectures converge because the trade-offs are empirical, which is why current frontier models look structurally similar.
Example: Why the attention variant decides concurrency
At 32 attention heads, a full multi-head cache stores keys and values for all 32. Grouped-query attention sharing one key-value pair across 8 heads stores 4 sets instead — an eightfold reduction in cache per token. Since concurrent requests are usually capped by cache memory rather than compute, that is roughly eight times the concurrent sequences on the same device. One architectural decision, made before training, sets the serving economics for the model's whole life.
Commonly confused with
Frequently reduced to parameter count, which is a single number describing none of this. Two 7B models can differ in cache footprint, context extrapolation and training stability because of choices parameter count does not express. It is also not the same as model family or size: a family shares an architecture across sizes, and architecture is the shared part. Nor is it configuration — temperature and context length are set per request, while these choices were fixed before pretraining and cannot be changed after.
When to use it
Reach for it when:
- Explaining why two models of similar size differ in serving cost or context behaviour.
- Reasoning about KV-cache footprint, which the attention variant determines.
- Understanding which properties were fixed before training and cannot be tuned later.
Reach for something else when:
- As a synonym for parameter count or model size.
- Describing per-request settings, which are configuration.
- Explaining learned behaviour such as refusal or instruction-following, which comes from training.
Continue your research
Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Model Architecture — AI Glossary.
Frequently asked questions
What is Model Architecture?
The structural design of a neural network, including layer types, normalization, positional encoding, and attention variant.
What concepts are related to Model Architecture?
Closely related concepts include transformer, decoder only, encoder decoder.