Comparing Architecture Families Fairly › Quantities to Report Across Architecture Families

Michael BrenndoerferNovember 17, 20263 min read
Language AI HandbookAll chapters
Part 19 of 67Alternative Sequence and Generative Architectures
Chapter 138Comparing Architecture Families Fairly › Quantities to Report Across Architecture Families
Reading section 4 of 16 · Quantities to Report Across Architecture Families · 3 minSection 4 of 16 · 3 min

Section 4 of 16 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

The earlier chapters in this Part established a vocabulary that makes cross-family comparison much cleaner if we keep using it. Four quantities are easy to conflate and must stay separate.

The four quantities constrain different parts of the comparison.

Transient workspace includes temporary activations, attention tiles and scan intermediates. Its size depends on the kernel and tensor shapes, which may vary with batch size, sequence length and layer width. A tiled kernel can reuse a fixed-size buffer for sequences of different lengths.

Workspace is the easiest of the four to overlook because it is invisible in the final model. It matters during training, where it can dominate memory, and it matters during inference, where it sets the batch size a device can sustain. It is also the quantity most improved by implementation work rather than by architecture change, which is why it is a frequent source of confounded comparisons.

Persistent state is what a decoder retains across generation steps. A full-history attention cache stores key and value representations for prompt and generated positions. A selective SSM can retain fixed-size recurrence and convolution buffers. A hybrid can retain both.

Per-sequence state can limit concurrency after weights and workspace fit. The serving proxy below assumes independent sequences with no prefix sharing. Real capacity also depends on cache layout and the sharing policy.

The structural receptive field describes which history positions can influence an output. Full causal attention can read the key and value representations of each admitted position. One local attention layer reads within its window. Stacked local layers can relay information farther through intermediate positions.

Recurrent updates can carry information from arbitrarily old positions in principle. Under a fixed bit budget, different histories can map to the same state. Structural reach, retained information, and measured retrieval are separate quantities.

Decoder passes count model evaluations per output unit. For blockwise and diffusion samplers, report the actual count for the chosen schedule, including refinement and cache updates.

Decoder passes are the quantity that makes inference cost comparisons across families tricky, because the unit of output differs. When each pass emits one content position, a byte-level model emits one byte per pass. A subword model that averages several bytes per position can then have lower cost per byte at the same cost per pass. A diffusion model's cost depends on a schedule you select, so its cost is partly a design choice rather than a property of the trained weights.

At the toy tokenizer ratios, one-position-at-a-time byte generation takes four times as many evaluations to produce the same number of bytes. A selective SSM's small state does not determine retrieval accuracy. A diffusion model can define a normalized output probability even when exact evaluation requires marginalizing many latent paths. Its serving cost depends on the sampling schedule.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy