The Rabbit Hole / AI / Model architectures
Google DeepMind · Architecture mapDiffusionGemma 26B-A4B
A Gemma 4 mixture of experts that writes text by denoising a block of 256 random tokens in parallel, instead of one token at a time.
DiffusionGemma 26B-A4B (it), June 2026 · Gemma release timeline
Inside DiffusionGemma 26B-A4B
Inside grouped-query attention · Local layers (all except every 6th)
Earlier prompt dimmed · active canvas bright · dashed regions contain cached entries.
Inside grouped-query attention · Global layers (6, 12, 18, 24, 30)
Earlier prompt dimmed · active canvas bright · dashed regions contain cached entries.
Model-specific details
- Local layers (all except every 6th) · 25 repetitions
- Sliding-window attention over the cached prompt (last 1,024 tokens) plus the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.
- reads the prompt cache
- During denoising the decoder never writes the cache. It holds the prompt and the blocks already committed, and is read-only.
- Global layers (6, 12, 18, 24, 30) · 5 repetitions
- Full attention over the cached prompt and the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.
- reads the prompt cache
- During denoising the decoder never writes the cache. It holds the prompt and the blocks already committed, and is read-only.
- Attention and positions
- The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.
- Memory
- The cache holds the prompt and the committed blocks, written by the causal encoder pass. It is read-only while the canvas is being denoised; the canvas keys and values are recomputed at every step and thrown away.
How it writes a block
- Starts with 256 random vocabulary tokens and refines the whole block over several passes.
- Canvas tokens attend to the prompt and to every position in the block. The prompt is cached once; the finished block is added to the cache before the next block starts.
- Each pass samples replacements, accepts confident tokens and adds fresh noise to the others. Previous probabilities also feed the next pass through self-conditioning.
The backbone
The Gemma 4 26B-A4B stack has 30 layers: 25 local and 5 global. Each layer combines a dense network with 128 experts. The released instruction-tuned checkpoint has 25.2B parameters, 3.8B active, and supports up to 262,144 tokens.
How it scores
AA Intelligence Index
Version 4.3.2 · higher is better · checked 2026-11-01. Separate from Epoch ECI.
| Checkpoint / size | Result | Evaluation |
|---|---|---|
| DiffusionGemma 26B A4B | 10 | AA Index 4.3.2Best evaluated setting |
Explore the components
- Embeddings: giving every token a meaning
- Residual connections: when more layers made things worse
- A whole LLM, layer by layer
- RMSNorm: keeping a token's scale under control
- Text diffusion: writing a block of tokens by cleaning up noise
- Sliding-window attention (SWA): a cache that stops growing
- Grouped-query attention (GQA): sharing keys and values in groups
- QK normalisation (QK-Norm) and soft-capping
- RoPE: position as a rotation
- Transformer layers: attention is only half of what you need
- Vision encoders: how can image patches join the text?
- Mixture of experts (MoE): a big model that uses only part of itself
- Routing: selecting experts and weighting their work
- The KV cache: why LLMs remember every key and value
- Attention, from scratch
Sources for this map
- DiffusionGemma 26B-A4B model card
- Hugging Face config.json (official Google file)
- transformers: diffusion_gemma modelling and generation code
- DiffusionGemma launch post (Google, 10 June 2026)
- Gemma 4 26B A4B config.json (the text configuration this model matches)
- Context length: up to 256K tokens (model card; config max_position_embeddings 262144)