Comparing Architecture Families Fairly › Why Architecture Comparisons Break

Michael BrenndoerferNovember 17, 20266 min read
Language AI HandbookAll chapters
Part 19 of 67Alternative Sequence and Generative Architectures
Chapter 138Comparing Architecture Families Fairly › Why Architecture Comparisons Break
Reading section 2 of 16 · Why Architecture Comparisons Break · 6 minSection 2 of 16 · 6 min

Section 2 of 16 · 6 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Five failure modes recur in architecture comparisons and can occur together.

The failure modes are worth learning individually because each one has a distinct signature and a distinct fix. Once you can recognize them, a paper's claims become much easier to place: you can usually identify within a minute which of the five the authors controlled for and which they left implicit. That diagnosis is often more informative than the result itself.

Failure one: the denominator is unstated

"The SSM is 5× faster" needs a baseline and workload. Streaming weights can dominate short-context dense decode at batch one. At long context the attention cache and recurrent state can lead to different feasible batches. A speedup requires measuring both systems under the stated workload.

The underlying issue is that "speed" is not a property of a model in isolation. It is a property of a model running on a particular machine under a particular workload. A throughput number without the workload attached is like a car's top speed quoted without saying whether it was measured uphill, downhill, or on a flat track. The number might be accurate and still tell you nothing about the situation you care about.

Specify the baseline, hardware, batch policy, context, precision, kernel, and timing unit.

Failure two: matched parameters are not matched compute

Matching parameters leaves context-dependent work free to vary. For the dense layer proxy below, at width 4,096 and 32,768 causal prefill positions, attention and projection together cost about 1.67 times the projection-only work. This ratio describes the specified layer proxy.

At a fixed parameter count, models can still process different numbers of attention pairs. In the dense-layer example, extra attention work grows as queries can see more keys. The size of the compute gap depends on each model’s attention pattern and other operations.

Report the training budget and each family's per-position cost as a function of sequence length.

Failure three: matched tokens are not matched text

Suppose a BPE tokenizer averages four bytes per content position on a corpus. With 100 billion content positions, that tokenizer covers about 400 GB, and a direct byte model covers 100 GB. A 32k vocabulary alone does not determine the byte ratio. "Iso-token" comparisons between tokenizations are comparisons between data budgets in disguise, and the sign of the bias depends on which side you put the tokenizer.

Matching tokens matches tokenizer output positions. It also matches optimizer update counts when each update processes the same number of positions, including packing and gradient accumulation.

Match the corpus when the comparison asks about modeling the same text. Report the resulting position counts and compute separately from optimizer update counts.

Failure four: implementation maturity is a hidden variable

FlashAttention computes the same dense attention function with tiled operations and online softmax. It avoids materializing the full score matrix in high-bandwidth memory and recomputes some intermediates during backward. Timing gains depend on the workload.

Kernel and implementation maturity can change over time and vary across software stacks. A tuned kernel can use the hardware more efficiently than a reference implementation. Record the implementation and version for each model so readers can interpret timing differences.

The fix is to give every family its best available kernel, or, if you cannot, to report the maturity gap explicitly and label the result accordingly. A throughput number without a kernel name and version is not reproducible, and a comparison between a tuned kernel and a naive one is not a comparison between architectures.

Failure five: the evaluation target hides what matters

Aggregate loss pools scores over all target positions. Long-range retrieval can depend on a small subset of them. Its performance can fall even when the aggregate improves.

A subset's contribution to total surprisal depends on both how often it occurs and how much loss it contributes per position. Report dedicated capability measurements alongside the aggregate.

The fix is to report at least one aggregate metric and at least one capability metric, chosen before the experiment, and to show they can disagree. The disagreement is usually the most informative part of the result.

The comparison is the contribution

A fair architecture comparison is a scientific artifact in its own right. It needs a predeclared question, a fixed evaluation set, a cost model with stated assumptions, and an uncertainty estimate. Without those, the reported delta between two families is not evidence about the architectures. It is evidence about two training runs.

The comparison is easier to reuse when its controls and remaining differences are explicit.

The matrix below places the five comparison questions against the five failure modes. A dark cell means the comparison question leaves a failure mode exposed. For example, matching one quality metric can hide a capability loss, and a serving budget sets no capability target. The display is a planning aid, not a score.

PythonIn [3]
CollapseExpand
import numpy as np

failure_modes = [
    "Unstated denominator",
    "Parameters not compute",
    "Tokens not text",
    "Implementation maturity",
    "Hidden capability target",
]
comparison_questions = [
    "Iso-parameter",
    "Iso-data",
    "Iso-compute",
    "Iso-quality",
    "Iso-inference-budget",
]
# 1 means the question leaves the failure mode exposed by default.
failure_matrix = np.array(
    [
        [1, 1, 1, 1, 1],
        [0, 1, 0, 1, 1],
        [0, 0, 1, 1, 1],
        [0, 0, 1, 1, 1],
        [0, 1, 1, 1, 1],
    ],
    dtype=float,
)
VisualizationOut [4]
CollapseExpand
Five-by-five heatmap. Every comparison question can leave a capability target hidden, including iso-quality and iso-inference-budget.
Heatmap of five comparison questions against the five failure modes. Dark cells mark a failure mode that the question leaves exposed, so the protocol must disclose it rather than assume the question controls it. No single question neutralizes every failure mode, which is why the design must state its assumptions explicitly.

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