Comparing Architecture Families Fairly

Michael BrenndoerferNovember 17, 202664 min read

Learn how to compare Transformer, SSM, and hybrid architectures fairly with matched compute, bits per byte, roofline cost models, and clustered uncertainty.

Language AI HandbookAll chapters
Part 19 of 67Alternative Sequence and Generative Architectures
Chapter 138Comparing Architecture Families Fairly
Reading the full chapter · 16 sections · 64 min16 sections · 64 min

All 16 sections · 64 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Comparing Architecture Families Fairly

Part XIX has introduced five alternatives to the plain causal Transformer. Mamba reports parameter-matched language-modeling results and a linear-time selective scan (Gu and Dao, 2023). Jamba reports throughput advantages for specific hybrid serving configurations (Lieber et al., 2024). Long Range Arena provides a shared suite for efficient sequence models (Tay et al., 2020).

Each result depends on its baseline, tokenizer, hardware, kernel, data, and metric. Read those settings with the headline. A comparison at one context length or batch size can reverse at another.

Those results are real. They are also scoped to a particular parameter count, a particular data budget, a particular kernel implementation, and a particular evaluation task. The moment you change the denominator, the ranking can move. This chapter is about the denominator.

A comparison between architecture families is not a fact you look up. It is an experiment you design, and the design choices (what you hold fixed, what you let vary, how you count cost, how you split data, how you measure uncertainty) determine what the result means. Two labs can run honest experiments on the same two architectures and publish opposite conclusions, and both can be correct, because they asked different questions.

Change the factor the experiment is designed to study and disclose the other differences. Uncontrolled differences limit what a direct comparison can attribute to the architecture.

So the goal here is not to crown a winner. The goal is to give you a protocol you can defend: a predeclared workload matrix, an explicit compute accounting, a denominator you can justify, an uncertainty estimate clustered at the right level, and a reporting format that tells the reader which question each number answers.

The question, budget, kernel, split, and interval are minimum disclosures. Reproduction also requires the model configuration, data preparation, scoring definition, and executable implementation.

The notebook illustrates cost accounting, allocation search, and uncertainty on synthetic inputs. The cost model is real arithmetic: parameter counts, FLOPs, KV-cache bytes, roofline latency. The quality surface is synthetic and clearly labeled as such, because the point of the worked example is the shape of the reasoning, not a measurement of any particular model. Everything the notebook computes will be marked as illustrative, and everything a paper reports will be scoped to that paper.

The quality numbers are chosen to illustrate possible ranking changes. The example shows how to declare a question, account for cost, search across configurations, and report a frontier.

Why Architecture Comparisons Break

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.

Five Comparison Questions

Predeclare the primary comparison question and any additional matching constraints. One design can hold parameter count and corpus bytes fixed together and report prespecified secondary comparisons.

The reason to predeclare the question is that the question determines the experimental design. Iso-parameter and iso-compute require different searches, different reporting, and often different conclusions. If you do not commit to a question in advance, you will find yourself running several designs and reporting the one that looks best, which is a subtle and effective form of overfitting the benchmark.

Iso-parameter

Question: holding parameter count fixed, which family produces better predictions?

This controls model size as defined by the reported counting rule. Compute, data, and architectural assumptions need their own controls.

A size-matched comparison can motivate an inductive-bias hypothesis when data, training cost and evaluation conditions are controlled. State those conditions alongside the parameter counting rule.

There is a second trap inside it. "Iso-parameter" does not specify the data budget. If you also fix the token budget, you have fixed tokens rather than text, which reintroduces failure three. Always state whether the fixed budget is in tokens or in bytes.

Iso-data (iso-corpus)

Question: holding the training text fixed, which family produces better predictions, and at what compute cost?

This is the right question when your data is the binding constraint, for example when you are training on a fixed proprietary corpus that you cannot scale. Fix the corpus in bytes, let each family consume it with its own tokenizer, and report the compute each one needed.

Shorter tokens yield more modeled positions for the same text at the assumed tokenizer ratios. Measure the costs for the actual model, which may group positions before its expensive layers.

Iso-training-compute

Question: holding total training FLOPs fixed, which family reaches the best quality?

This is the Chinchilla-style question (Hoffmann et al., 2022). Lower work per position allows a different parameter and data allocation, which can change a parameter-matched ranking.

Search over model sizes and data allocations separately for each family. In the approximation below, multiply the per-position forward cost at the chosen size and sequence length by the number of training positions and the forward-to-training multiplier.

That per-family search is what distinguishes iso-compute from iso-parameter in practice. A naive iso-compute experiment might fix N across families, which quietly turns it back into an iso-parameter experiment with a compute constraint. The correct procedure searches over N for each family, because the family's FLOPs-per-token curve determines how much data it can afford at any given N. Two families with the same budget can therefore settle at very different sizes, and the comparison is between the resulting optima, not between the parameter grids.

Iso-quality

Question: to reach a fixed quality target, which family needs the least compute, memory, or money?

The answer gives the cost of reaching a specified target. Search a declared feasible set and say whether the cost is FLOPs, wall-clock time, memory, or another resource.

Note the asymmetry: iso-compute asks "what quality do I get for C?" and iso-quality asks "what cost do I need for quality q?" They can disagree, because the cost-quality curves are not parallel.

The disagreement is not a technicality. If one family has a steeper curve, it can lose at the budget you tested and win at the target you need. A paper that reports only iso-compute results implicitly assumes the reader's question is "what do I get for C," which is often not the reader's question at all. The reader's question is usually "what do I need to spend to hit q," and only an iso-quality search answers it.

Iso-inference-budget

Question: at a fixed latency, memory ceiling, or throughput target, which family serves the most useful work?

A deployment comparison needs an explicit workload and resource limit. A configuration that reaches the target accuracy can be useful if it also admits enough simultaneous sequences at the required context length. The serving example below computes that capacity on a fixed memory budget.

Training and inference have different cost drivers. Serving comparisons should report latency, concurrency and memory under the stated workload.

Scope the comparison

State each result with its workload, budget, quality criterion, and baseline. Rankings can change under different constraints.

The practical implication is that a fair comparison usually produces a table rather than a sentence. The table has rows for budgets and columns for metrics, and the reader selects the row that matches their situation. A single sentence cannot carry that information, which is why single-sentence claims about architecture superiority are almost always underspecified.

Quantities to Report Across Architecture Families

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.

Matched-Compute Experiments in Practice

Now to the core machinery. If you only ever run one kind of architecture comparison, make it the matched-compute one, and make it honest.

Matched-compute is the workhorse comparison because it answers the question most teams actually have: given a fixed training budget, which family gives the best model? Answering it well requires two things that are easy to get wrong. The first is an accurate FLOPs model. The second is a per-family search, because the optimal allocation of a fixed budget differs across families. We take them in order.

Where 6ND comes from, and when it stops being true

The standard training-FLOPs estimate for a dense Transformer is

C≈6 N DC \approx 6\,N\,D

where:

  • NN: the parameter count, i.e. the number of weights in the model
  • DD: the number of training tokens seen during training

The factor 6 comes from three passes: a forward pass costing about 2N2N FLOPs per token (each weight participates in one multiply and one add), a backward pass costing about 4N4N per token (two matmuls with respect to activations and weights), and nothing else. Summed over DD tokens, that is 6ND6ND.

The projection-only estimate is most useful when linear maps dominate. In a width-dd Transformer layer with full multi-head projections and a two-matrix feed-forward sublayer expanded to 4d4d, the linear maps contain about 12d212d^2 weights and cost about 24d224d^2 FLOPs per forward position. The attention products add about 4Ld4Ld FLOPs for a query that sees LL keys. At L=dL=d, those products add one sixth as much work as the linear maps. At about 128,000 keys and width 4,096, they add just over five times as much.

For a token that attends to LL keys, the ratio in this layer model is L/(6d)L/(6d). At width 4,096, it reaches one at 24,576 keys. During dense causal prefill, nn positions attend to (n+1)/2(n+1)/2 keys per position on average. Setting (n+1)/2=6d(n+1)/2=6d gives n=12d−1n=12d-1. At width 4,096 these are two distinct quantities: 24,576 keys for one query and 49,151 positions for the sequence-wide average.

Attention adds context-dependent work even below the crossover. At L=6dL = 6d, attention work equals the linear-map work in this example, so total forward FLOPs are twice the linear-map estimate.

PythonIn [5]
CollapseExpand
import numpy as np

crossover_context = np.logspace(3.0, 6.0, 240)
crossover_widths = np.array([2048, 4096, 8192])
attention_linear_ratio = crossover_context[None, :] / (
    6.0 * crossover_widths[:, None]
)
VisualizationOut [6]
CollapseExpand
Narrower layers reach equal attention and linear-map work with fewer keys per query.
Attention FLOPs divided by linear-map FLOPs for one query in a dense Transformer layer. The x-axis counts keys available to that query. At width 4,096, the ratio reaches one at 24,576 keys. The mean ratio across a causal prefill reaches one at 49,151 sequence positions.

In this approximation the forward matmul cost per position of one dense layer is 24d2+4Ld24d^2+4Ld for a query with LL allowed keys. Sum over layers and query positions. A threefold multiplier approximates training matmul work under the forward and backward accounting used here.

C≈3∑ℓ,q(24d2+4dLℓ,q)C \approx 3 \sum_{\ell,q} (24d^2 + 4dL_{\ell,q})

Here Lℓ,qL_{\ell,q} counts keys available to query qq in attention layer ℓ\ell. Under a window of width ww, this becomes min⁡(Lℓ,q,w)\min(L_{\ell,q},w). Use the SSM's own projection and scan costs for its layers. The toy comparison below uses a shared 24d224d^2 per-layer projection proxy and omits SSM-specific work. Its hybrid estimate adds attention work only in the selected layers.

Why this matters for the comparison

If you compute the training budget as 6ND6ND for every family, you will systematically underestimate the dense Transformer's cost at long context and therefore overestimate how much data it could have seen for the same money. Every downstream conclusion inherits the error.

Consider two ways a budget enters the comparison. At the same reported proxy budget, the dense run can get more actual compute because the proxy omits attention. At the same actual budget, the proxy can overstate the amount of dense training that fits. The loss ranking still depends on the realized allocations and on each model's loss curve.

Total versus active parameters

Jamba reports 52B total and 12B active parameters. Total count helps estimate resident weights at a given precision. The active count helps estimate projection work. Context, routing, and other operations also affect per-position FLOPs.

Report both counts and the model used to convert them to memory and work. Expert placement and routing can affect realized traffic and timing.

Chinchilla, and what it does and does not license

Hoffmann et al. fitted results from more than 400 dense language models at scales roughly spanning 70M to 16B parameters. Their estimates favor increasing parameters and training tokens at similar rates. The 70B Chinchilla run used 1.4T tokens, about 20 tokens per parameter. The 280B Gopher run used 300B tokens.

The result is scoped to the tested dense Transformer configurations, MassiveText mixture and horizon-matched learning-rate schedules. Estimate the feasible allocations separately for families with different costs or loss curves.

Treat the 20-to-one ratio as a reported design point. Test whether a different family has a similar allocation at the budget of interest.

The right way to use Chinchilla in a cross-family study is as a prior about the shape of the frontier: expect loss to fall as a power law in both NN and DD, and expect the optimal allocation to sit somewhere in the middle rather than at either extreme. Then re-fit the frontier for each family rather than importing the exponent.

For the frontier the optimal allocation is often written as

Nopt(C)∝Ca,Dopt(C)∝CbN_{\text{opt}}(C) \propto C^{a}, \qquad D_{\text{opt}}(C) \propto C^{b}

where:

  • CC: the fixed training compute budget in FLOPs
  • Nopt(C)N_{\text{opt}}(C): the parameter count that minimizes loss subject to the compute constraint
  • Dopt(C)D_{\text{opt}}(C): the training-token count at that optimum
  • a,ba, b: the fitted exponents, with a+b=1a + b = 1 when the FLOPs constraint is C≈6NDC \approx 6ND

The equal-proportion claim is the case a≈b≈0.5a \approx b \approx 0.5. Whether that case holds, and what the exponents are for a particular family, is an empirical question that the per-family re-fit answers.

The two allocation exponents govern how each fit trades off model size and training data. Different exponent pairs can produce the same optimized loss slope. Compare the fitted cost-quality frontiers across the budgets you intend to use, since the rankings can cross.

The protocol, in order

This sequence describes an empirical comparison. The notebook illustrates its cost accounting, allocation search and uncertainty steps on synthetic inputs.

  1. Predeclare the question. Pick one of the five questions above. Write it down before you run anything.
  2. Predeclare the workload matrix. The axes you will sweep, and the values you will use. Fixing these in advance prevents the silent search over evaluation conditions that inflates apparent wins.
  3. Fix the data. Give every family the same deduplicated training pool, a shared document-level split, and byte-identical held-out text. Fix the consumed training bytes for iso-data. For iso-compute, vary the training allocation within the declared search space.
  4. Build a per-family cost model. Parameter count, forward FLOPs per token as a function of context, bytes per token, KV-cache size, recurrent state size. Check it against a known configuration.
  5. Search, do not guess. For iso-compute, find each family's optimal (N,D)(N, D). For iso-quality, find each family's cheapest configuration meeting the target. Report the search space.
  6. Measure end-to-end. Wall-clock on the same hardware, same precision, same batch policy. Report both "best available kernel" and, if you must, "reference kernel" numbers separately and label them.
  7. Estimate uncertainty by resampling the right unit. Documents for quality, requests for latency.
  8. Report both an aggregate metric and at least one capability metric. Aggregate loss and long-range retrieval disagree, and the disagreement is the interesting part.

Declare the question and workload before model selection. If either changes, revisit the split, search, and interpretation wherever they depend on the revised design.

An Example Workload Matrix

Scale the design to the resources and workloads the study can support. Predeclaring the grid limits selective reporting within it. Rankings can still change outside the grid.

AxisValuesWhy
Training poolThe same deduplicated training pool, document split, and held-out textControls the available data and evaluation text. Consumed training bytes vary only if the comparison permits it.
Split80/10/10 at the grouped document level, with a cross-split overlap auditReduces known leakage
Training compute{1020,1021,1022}\{10^{20}, 10^{21}, 10^{22}\} FLOPsSamples the frontier at three prespecified budgets
Context at evaluation4, 32, 128 and 512 KiB of UTF-8 textConvert to positions for each tokenizer
Aggregate metricHeld-out bits per UTF-8 byteShared denominator across tokenizers
Capability metricLong-range retrieval accuracy at each contextCatches what the average hides
Inference targetTTFT ≤\le 1 s; ≥\ge 50 concurrent sequences at 128 KiBDeployment-relevant constraint
Precisionbf16 weights and activations, fp32 optimizer stateSame for all families
DecodingGreedy for retrieval, prespecified sampler and seeds for generationMakes the decoding procedure explicit
RepeatsThree training seeds per configuration, with a declared uncertainty procedureSeparates training replication from evaluation resampling

Express context in bytes, not tokens. A 128 KiB document is 32,768 tokens for a 4-bytes-per-token tokenizer and 131,072 tokens for a byte-level model. If you sweep "context length" in tokens, you are sweeping different amounts of text for different families, and the axis label lies.

The grid covers three compute budgets, four context lengths, and two metrics. Use a wider grid when the decision depends on regimes beyond these points.

Implementation Maturity Is a Confound You Must Control

FlashAttention illustrates the difference between attention arithmetic and execution cost. Tiling and online normalization reduce traffic to high-bandwidth memory. Backward recomputation can add FLOPs. Measure runtime for the selected kernel and workload.

That is not an architecture result. It is an engineering result, and it is exactly the kind of result that contaminates architecture comparisons if you are not careful.

Available kernel quality can differ across families. Measured timing reflects both what work the architecture needs and how the tested implementation executes it.

There are three practical consequences.

Use optimized kernels where practical and note which families use reference or fused implementations.

Report the kernel. A throughput number without a kernel name and version is not reproducible. State the library, the version, and whether the implementation is fused, chunked, or naive.

Algorithmic FLOPs count operations. Achieved FLOP/s depends on workload, hardware, and kernel. Bandwidth sets a ceiling at a given intensity. Better utilization can approach it, and reducing transferred bytes can change the intensity.

When measured performance falls below the roofline, investigate utilization, launch overhead, and actual traffic. The ceiling alone does not identify the cause.

Hardware Efficiency: The Roofline View

Arithmetic intensity is FLOPs performed per byte moved. It helps identify which idealized hardware ceiling is tighter.

Every accelerator has a ridge point: the intensity at which it stops being bandwidth-bound and becomes compute-bound. That ridge point is

Iridge=peak FLOP/speak bytes/sI_{\text{ridge}} = \frac{\text{peak FLOP/s}}{\text{peak bytes/s}}

where:

  • IridgeI_{\text{ridge}}: the arithmetic intensity at which an accelerator stops being bandwidth-bound and becomes compute-bound, in FLOP/byte
  • peak FLOP/s: the accelerator's peak floating-point throughput
  • peak bytes/s: the accelerator's peak memory bandwidth

For the NVIDIA H100 SXM, using the dense BF16 rate of about 9.89×10149.89\times10^{14} FLOP/s and the listed bandwidth of 3.35×10123.35\times10^{12} bytes/s puts the ideal ridge near 295 FLOP/byte. In a weight-streaming approximation, a 7B BF16 model performs about 14 billion multiply-add FLOPs and reads about 14 GB of weights for one token. This weight-only estimate is about 1 FLOP/byte. Actual decode also moves persistent state and other tensors, and feasible batching can amortize weight reads.

Per-sequence resident memory limits the batch that fits on a device. Memory traffic per step affects latency and throughput. In an illustrative 50 GB state budget, a 100 MB state fits 500 sequences and a 20 GB state fits two before any other per-sequence overhead.

The roofline model is an upper bound. Arithmetic intensity helps identify which ceiling is tighter under its assumptions. Measure time separately to see how closely a kernel approaches that ceiling.

The diagonal gives the bandwidth ceiling and the plateau gives the compute ceiling. They meet at the ridge. The lower of the two sets the ideal performance bound.

PythonIn [7]
CollapseExpand
import numpy as np

roofline_intensity = np.logspace(-1.0, 4.0, 300)
peak_tflops = 9.89e14 / 1e12
ridge_intensity = 9.89e14 / 3.35e12
bandwidth_tflops = roofline_intensity * 3.35e12 / 1e12
roofline_throughput = np.minimum(peak_tflops, bandwidth_tflops)
VisualizationOut [8]
CollapseExpand
Roofline chart of throughput versus arithmetic intensity with ridge near 295 FLOP per byte.
Ideal H100 SXM BF16 roofline. The ascending region is bandwidth-limited and the plateau is compute-limited. The ridge is near 295 FLOP/byte. A batch-one weight-streaming estimate of about 1 FLOP/byte falls on the bandwidth-limited side. Actual decode can also move caches and other tensors.

When you report a throughput comparison, report it at a stated batch, a stated context, and a stated roofline position. Otherwise the reader cannot tell whether they are looking at an architecture property or a memory-bandwidth ceiling.

Memory: Two Very Different Problems

Report training and inference memory separately. They include different tensors as well as the weights.

State the measurement phase, precision, batch, sequence length and allocation placement.

Training memory

One all-resident mixed-precision Adam configuration uses about 16 bytes per parameter: two for the weight, two for its gradient, four for an fp32 master weight, and eight for the two fp32 moments. At 7B parameters that exceeds 80 GB before activations. Sharding, offloading, or changing the optimizer layout changes the budget.

On top of that sit activations, which scale with batch, sequence length, and depth, and which are the reason activation checkpointing exists. Attention activations are the interesting case. A naive implementation materializes an L×LL \times L score matrix per head per layer, which is quadratic. FlashAttention avoids materializing it, so its activation memory is linear in LL rather than quadratic, at the cost of recomputing some intermediates during the backward pass. This is a memory result achieved by an implementation, and again it is not an architecture property.

Eliminating the stored quadratic attention term can leave other activations or model state as the largest allocation. The outcome depends on the workload, optimizer, checkpointing and sharding.

Inference memory

At inference the picture changes completely. Optimizer state is gone. What remains is weights plus persistent state plus a modest activation workspace.

Weights are simple: NN times bytes per parameter. For a 7B model in bf16 that is 14 GB, and it does not depend on context length, batch size, or family.

For attention layers that share a cache layout, this formula gives the KV-cache bytes per retained position and sequence across those layers.

KV bytes per token=2×nlayers×dmodel×nkv headsnheads×bytes per element\text{KV bytes per token} = 2 \times n_{\text{layers}} \times d_{\text{model}} \times \frac{n_{\text{kv heads}}}{n_{\text{heads}}} \times \text{bytes per element}

where:

  • nlayersn_{\text{layers}}: the number of attention layers that store KV entries
  • dmodeld_{\text{model}}: query-head count times head width in this form. If KV head width differs, use the actual KV head width and count.
  • nkv headsn_{\text{kv heads}}: the number of key/value heads under grouped-query attention
  • nheadsn_{\text{heads}}: the number of query heads
  • bytes per element: the storage size of one cache entry (2 for bf16)
  • the leading factor 2 is for keys and values

Consider 33 attention layers, width 4,096 and two bytes per cached element. Full multi-head attention stores 540,672 bytes (528 KiB) per position. With one KV head per eight query heads and the same head dimension, grouped-query attention stores 67,584 bytes (66 KiB) per position. At 128,000 token positions the payloads are about 69.2 GB and 8.65 GB. Adding 14 GB for the weights of an illustrative 7B BF16 model exceeds an 80 GB budget with the first cache. The second leaves room before allocator and serving overhead. This illustration holds the number of token positions fixed. The serving workload below holds raw text bytes fixed and computes positions separately.

Grouped-query attention uses one eighth of the full-head KV payload in this example. With the same 14 GB of weights, the full-head case totals 83.21 GB and the grouped-query case totals 22.65 GB. The ratio is about 3.67 before allocator and workspace costs. Report the cache layout when comparing attention with a compressed-state model.

Give every family the same cache strategy

If your attention baseline uses full multi-head attention and your alternative uses a compressed state, you are comparing cache layouts as much as sequence-mixing mechanisms. Fix the KV-head ratio across attention-bearing families so the comparison isolates the layer type.

A selective state-space layer carries recurrent state. Its recurrent tensor has dinnerdstated_{\text{inner}} d_{\text{state}} elements. At dinner=2dmodeld_{\text{inner}}=2d_{\text{model}}, dstate=16d_{\text{state}}=16 and two bytes per element, that is 64dmodel64d_{\text{model}} bytes per layer and sequence. A layer that allocates dconvd_{\text{conv}} convolution-history entries per channel also stores dinnerdconvd_{\text{inner}} d_{\text{conv}} elements in a separate buffer. Sum the buffers across layers using their respective storage precisions. The serving proxy below uses the recurrent tensor as its only SSM-specific state term. A hybrid stores KV entries for its attention layers.

That is the entire memory argument for constant-state models, and it is sizable. It is also only a memory argument. Whether the compressed state carries enough information to do the task is a separate question, covered in the section on long-context quality.

Long-Context Quality

Supported context length is an input limit. Also report performance on tasks that rely on the additional context.

A single needle test answers one length and task design. Vary the length, templates and retrieval task to see where performance changes.

What LRA actually shows

Long Range Arena (Tay et al., 2020) was designed to fix a specific problem: efficient-attention papers were each evaluating on their own tasks, so results were not comparable. LRA standardized six tasks (long-list string manipulation, byte-level text classification, document retrieval, image sequence classification, path-finding, and a pathfinder variant) at sequence lengths from 1k to 16k, with a fixed training protocol.

In the original benchmark, no method led every task. The original configurations did not solve Path-X. The individual wins concern the other tasks.

The main benchmark uses small models and reports task accuracy. Appendix A.3.1 also tests Path-X by transferring models trained on Pathfinder, alongside training from scratch.

LRA scores describe performance on the benchmark's small-scale tasks under their reported training setups. Comparing language models at 128k context requires an evaluation of language-model quality at that length.

Advertised context versus effective context

A model can accept 128k tokens and fail to use them. The relevant measurement is not the maximum sequence length the position encoding permits, but the length at which quality on a length-dependent task still holds up. Evaluate at multiple lengths and control task difficulty where possible. For example, the number of distractors can grow with the haystack.

Report how targets and distractors change with length. Additional targets can add evidence or introduce interference, depending on the task and scoring rule.

Two things confound this and both must be controlled.

Position handling can confound a length sweep. Unadapted extrapolation can degrade performance. Report the lengths used in training and in evaluation, and use a supported positional strategy for each family.

Aggregate loss can hide failures on a sparse long-range subset. Report position or distance slices and test recovery of information at known distances.

State each positional adaptation with the context-length results.

Why a fixed-size state bounds what you can recover

Suppose the first token contains part of an identifier and a query for it arrives much later. Full attention can use that earlier location if it is inside the supported context. A recurrent model may have only its retained state available when the query arrives. A collision occurs if two histories with different identifiers leave the same state.

Suppose the complete history-dependent state accessible to the decoder has at most bb bits, including any convolution buffers. Fix the weights, history length, external context, and later query. If more than 2b2^b histories require distinct exact answers, two must leave the same state. They then induce the same answer distribution. Training can change which histories collide but cannot give this fixed implementation more than 2b2^b bit patterns.

This bound leaves open how well a trained model retains the information its workload needs. Test recovery directly on controlled retrieval tasks. A hybrid can give selected layers a separate attention path within their cache and context limits, with a corresponding memory cost.

Getting the Denominator Right: Bits per Byte

Hold the scored text and likelihood convention fixed before attributing a cross-tokenizer score difference.

The reason is that the metric determines what "better" means, and per-token metrics are not comparable across tokenizers. Once the metric is fixed to a shared denominator, the remaining comparisons become meaningful. Getting the denominator right is therefore the last and most important step in the protocol.

The derivation

Let x1:Bx_{1:B} be a raw UTF-8 byte string. A tokenizer TT maps it to MM tokens t1,…,tMt_1, \dots, t_M. A model assigns pθ(ti∣t<i)p_\theta(t_i \mid t_{<i}). Its total surprisal on the string is

S=−∑i=1Mlog⁡2pθ(ti∣t<i)bitsS = -\sum_{i=1}^{M} \log_2 p_\theta(t_i \mid t_{<i}) \quad \text{bits}

where:

  • BB: the number of bytes in the raw UTF-8 string
  • MM: the number of tokens the tokenizer produces for that string
  • tit_i: the ii-th token
  • pθ(ti∣t<i)p_\theta(t_i \mid t_{<i}): the model's probability for token tit_i given the preceding tokens
  • SS: the total surprisal (negative log-likelihood) in bits

Bits per byte is simply

BPB=SB=MB⋅SM\text{BPB} = \frac{S}{B} = \frac{M}{B} \cdot \frac{S}{M}

where:

  • BPB\text{BPB}: the number of bits needed per UTF-8 byte, the shared-denominator metric
  • M/BM/B: the reciprocal of bytes per token
  • S/MS/M: the mean bits per token

The first factor is the reciprocal of bytes per token. The second is mean bits per token, which is log⁡2\log_2 of the per-token perplexity. So

BPB=log⁡2PPLtokenbytes per token\text{BPB} = \frac{\log_2 \text{PPL}_{\text{token}}}{\text{bytes per token}}

where:

  • PPLtoken\text{PPL}_{\text{token}}: exp of mean negative log likelihood in nats, or two raised to the mean in bits
  • bytes per token: the average number of UTF-8 bytes each token represents

At four bytes per position, token perplexity 1,024 gives 2.5 bits per byte. At one byte per position the same rate gives perplexity 22.52^{2.5}, about 5.66. The token perplexities differ by about 181 while surprisal per scored byte agrees.

A raw perplexity rank depends on tokenization. Converting to bits per byte requires the scored byte count, position count and compatible scoring conventions. The fixed byte denominator preserves segmentation's effect on assigned probabilities.

Match the Scored Text

Score the same UTF-8 bytes in each run. Fix normalization, whitespace policy, the context supplied to the model, which spans are scored, and how you handle the beginning and end of each document. Count every byte in the shared scored span. Exclude padding and model-control symbols from byte counts and disclose how their probabilities enter the numerator.

Report whether you scored the canonical tokenizer path or the marginal probability of the raw text. Canonical tokenization defines a deterministic sequence to score. Multiple token sequences can decode to the same text, so the likelihood of that one path may be lower than the sum over all such sequences. This distinction matters when you claim to compare normalized string probabilities.

Treat the tokenizer as part of the system. Its vocabulary and segmentation affect both the probability assigned to the scored path and the compute required to score it. Bits per byte allows a shared denominator while preserving those effects. Aggregate by summing total bits over the same held-out documents and dividing by their total scored bytes.

Report the Likelihood Estimator

A locally normalized autoregressive model gives a product of conditional probabilities for the observed sequence under the declared encoding and termination convention. A blockwise model can do the same if it specifies a normalized block factorization whose probabilities can be evaluated.

A diffusion or iterative-refinement sampler may also define a normalized distribution over its final outputs through the law of total probability. Exact observation probabilities can still be expensive to compute because many latent paths reach the same output. An evidence lower bound is a lower bound on log likelihood for the stated model and objective. Taking its negative and changing the logarithm base yields a corresponding upper bound on negative log likelihood in bits. Division by the positive count of scored bytes preserves the inequality.

Keep exact values, bounds and estimates labeled in the report. If a model or scorer supplies only a bound, state the objective and schedule. If you use importance sampling, describe the proposal and sample budget and report the uncertainty of the estimator. For a positive unbiased likelihood estimate with an integrable logarithm, Jensen’s inequality gives a downward bias in the log likelihood whenever the estimate varies. When likelihoods are unavailable or their definitions differ, use a shared task metric with a fixed decoding configuration and disclose how many attempts each model receives.

Contamination and Leakage

A comparison is only as good as its test set, and test sets leak.

Leakage is insidious because it does not announce itself. A contaminated test set produces a plausible number, often a flattering one, and the contamination is invisible unless you look for it. The defenses are therefore procedural: split at the right level, audit for overlap, vary the templates, and predeclare the selection.

Document-level splitting. Splitting at the sentence or paragraph level can leak information when fragments from one document land in different splits. Fragments from the same web page, book, or legal filing can share vocabulary, entities, and phrasing. Split so that every document lives entirely in one split. In this book's Part XX: Data Curation we cover the machinery for doing this at scale: exact and near-duplicate detection with Jaccard similarity and suffix arrays, MinHash for locality-sensitive hashing, and quality filtering thresholds.

Group the split at the level where related items could leak, such as source, conversation or document. Audit overlap when near-duplicates can cross groups.

An n-gram audit flags shared spans under a declared normalization and threshold. GPT-3's initial filtering attempted matches on 13 normalized words. Its retrospective audit used dataset-specific lengths capped at 13 and documented a filtering limitation. Report what your detector can miss.

When an audit flags similarities at or above a cutoff, lowering the cutoff keeps every already flagged item and can add others. This can catch more contamination and remove legitimate test examples too. Report the cutoff and how filtering changes test coverage.

Some synthetic retrieval evaluations reuse a small template collection. Hold out template families, vary needles and surrounding text, and disclose the generator.

Holding out templates tests transfer to new formats. Randomized targets and counterfactual needle replacements help test whether success depends on the relevant evidence.

Use validation data for configuration selection and reserve the test set for final evaluation. Report the number of tried configurations and contrasts and disclose any extra test use.

Multiplicity. Four alternatives versus one reference at four lengths on two metrics give 32 contrasts. Under all true nulls and 5% per-test error, expect 1.6 false positives. Independence would give about an 81% probability of at least one. A shared reference can induce dependence. Predeclare a primary contrast or report a multiplicity adjustment.

A Reproducible Protocol

This checklist describes the empirical protocol. The notebook illustrates accounting, allocation search, and document resampling.

  1. State the question. One of the five above, written before the experiment.
  2. State the cost model. Parameter formula, FLOPs per token as a function of context, bytes per token, KV-cache formula, state formula. Validate it against one configuration whose real numbers you know.
  3. State the data. Corpus identity, deduplication method, split unit, split ratios, and the exact byte count per split.
  4. State the workload matrix. Compute budgets, context lengths in bytes, metrics, decoding configuration, seeds.
  5. Search per family, do not fix globally. For iso-compute, find each family's (N,D)(N, D) optimum. Report the search grid.
  6. Measure end-to-end. Same hardware, same precision, same batch policy, kernel versions named.
  7. Resample the right unit. Documents for quality, requests for latency.
  8. Report the frontier, not the winner. A table of configurations on a cost-quality frontier is more useful than a ranked list.

Disclose the search space, data preparation, measurement conditions and uncertainty method so a reader can interpret the result.

Now let's build it.

Worked Example

The experiment below uses a synthetic corpus to check the reporting units. The cost model uses an analytical approximation. The quality curves and retrieval probabilities come from specified functions. There is no trained model or accelerator measurement behind the numbers.

Fix the text and workload

Create 2,400 synthetic records and split them into 1,920 training and 480 test records by identity. Their repeated phrases supply a fixture for byte counting and resampling. The quality surface uses no trained model or validation split. A real evaluation should group related records and reserve test data for final evaluation.

The cost calculation assumes four bytes per subword position or one byte per byte position. The quoted ratios are scenario inputs. A real study would tokenize the exact workload for every family. Each training sequence uses the same byte-length workload as the evaluation context in this example. Separate the two lengths when your training and evaluation workloads differ.

PythonIn [9]
CollapseExpand
SPEC = {
    "Dense attention": {
        "bytes_per_token": 4,
        "attn_frac": 1.0,
        "window": None,
        "floor": 1.20,
        "data_scale": 0.30,
        "length_penalty": 0.00,
    },
    "Windowed 4k": {
        "bytes_per_token": 4,
        "attn_frac": 1.0,
        "window": 4096,
        "floor": 1.25,
        "data_scale": 0.31,
        "length_penalty": 0.018,
    },
    "Selective SSM": {
        "bytes_per_token": 4,
        "attn_frac": 0.0,
        "window": None,
        "floor": 1.28,
        "data_scale": 0.33,
        "length_penalty": 0.016,
    },
    "Hybrid 1:7": {
        "bytes_per_token": 4,
        "attn_frac": 1 / 8,
        "window": None,
        "floor": 1.23,
        "data_scale": 0.31,
        "length_penalty": 0.006,
    },
    "Byte-level": {
        "bytes_per_token": 1,
        "attn_frac": 1.0,
        "window": None,
        "floor": 0.96,
        "data_scale": 0.46,
        "length_penalty": 0.00,
    },
}
FAMILY_NAMES = tuple(SPEC)
TRAIN_FLOP_MULTIPLIER = 3.0


def model_shape(n_params):
    """Smooth width and layer-count proxies for this toy stack."""
    d_model = (128.0 * n_params / 12.0) ** (1.0 / 3.0)
    return d_model, d_model / 128.0


def average_causal_keys(sequence_positions, window):
    """Mean count of allowed keys, including the current position."""
    active_window = (
        sequence_positions
        if window is None
        else min(sequence_positions, window)
    )
    return active_window - active_window * (active_window - 1) / (
        2.0 * sequence_positions
    )


def fwd_flops_per_token(family, n_params, ctx_bytes):
    """Estimate matmul work per position during a causal prefill."""
    d_model, n_layers = model_shape(n_params)
    spec = SPEC[family]
    positions = max(1, round(ctx_bytes / spec["bytes_per_token"]))
    attended = average_causal_keys(positions, spec["window"])
    attention_work = spec["attn_frac"] * 4.0 * attended * d_model
    return n_layers * (24.0 * d_model**2 + attention_work)


def train_flops(family, n_params, train_bytes, ctx_bytes):
    train_tokens = train_bytes / SPEC[family]["bytes_per_token"]
    return (
        TRAIN_FLOP_MULTIPLIER
        * train_tokens
        * fwd_flops_per_token(family, n_params, ctx_bytes)
    )


def bpb_true(family, n_params, train_bytes, ctx_bytes):
    """Synthetic quality surface. Coefficients are assumptions, not estimates."""
    spec = SPEC[family]
    cap_term = 0.22 * (7e9 / n_params) ** 0.30
    data_term = spec["data_scale"] * (8e10 / train_bytes) ** 0.50
    length_term = spec["length_penalty"] * max(0.0, np.log2(ctx_bytes / 4096))
    return spec["floor"] + cap_term + data_term + length_term


topics = [
    "The spare part arrived on Tuesday.",
    "La pièce de rechange est arrivée mardi.",
    "代替部品は火曜日に届きました。",
    "El repuesto llegó el martes.",
]
rng = np.random.default_rng(20261117)
documents = [
    (f"Record {i:04d}. " + (topics[i % len(topics)] + " ") * repeats).strip()
    for i, repeats in enumerate(rng.integers(2, 70, size=2400))
]
training_ids, test_ids = np.split(rng.permutation(len(documents)), [1920])
train_bytes = np.array(
    [len(documents[i].encode("utf-8")) for i in training_ids]
)
test_bytes = np.array([len(documents[i].encode("utf-8")) for i in test_ids])
assert len(set(training_ids).intersection(test_ids)) == 0
assert len(test_bytes) == 480 and np.min(test_bytes) > 0

The Synthetic Quality Surface

The synthetic loss adds four terms: a family floor, a capacity term that falls with parameter count, a data term that falls with training bytes, and a family-specific context term based on log context bytes above 4 KiB. The context coefficient is zero for both full-attention fixtures.

Synthetic retrieval declines with context at fixed parameter count. The two full-attention fixtures have smaller length coefficients. A separate factor approaches one as the parameter count increases.

PythonIn [10]
CollapseExpand
RETRIEVAL = {
    "Dense attention": (4.0, 0.05),
    "Windowed 4k": (1.0, 0.60),
    "Selective SSM": (1.5, 0.50),
    "Hybrid 1:7": (2.5, 0.35),
    "Byte-level": (3.6, 0.08),
}


def retrieval_accuracy(family, n_params, ctx_bytes):
    """Synthetic long-range retrieval accuracy: deliberately not the average loss."""
    k, slope = RETRIEVAL[family]
    z = k - slope * np.log2(ctx_bytes / 4096.0)
    capacity_gate = 1.0 - np.exp(-n_params / 3e8)
    return capacity_gate / (1.0 + np.exp(-z))

The two metrics are constructed to disagree. A competitive aggregate loss can coexist with poor retrieval.

Step 6: the reference configuration

Evaluate every family at the same parameter count and amount of text: 7B parameters, 80 GB of training text, and 128 KiB of context. The resulting training FLOPs can differ.

PythonIn [11]
CollapseExpand
REF_N = 7e9
REF_BYTES = 8e10
REF_CTX = 131072

reference_rows = []
for fam in FAMILY_NAMES:
    reference_rows.append(
        dict(
            family=fam,
            bytes_per_token=SPEC[fam]["bytes_per_token"],
            tokens_for_ref_ctx=int(REF_CTX / SPEC[fam]["bytes_per_token"]),
            bpb=bpb_true(fam, REF_N, REF_BYTES, REF_CTX),
            retrieval=retrieval_accuracy(fam, REF_N, REF_CTX),
            train_flops=train_flops(fam, REF_N, REF_BYTES, REF_CTX),
        )
    )

reference_df = pd.DataFrame(reference_rows).set_index("family")
Out[12]:
  bytes_per_token tokens_for_ref_ctx bpb retrieval train_flops
family          
Dense attention 4.0 32,768 1.720 0.98 1.38e+21
Windowed 4k 4.0 32,768 1.870 0.12 9.68e+20
Selective SSM 4.0 32,768 1.910 0.27 8.40e+20
Hybrid 1:7 4.0 32,768 1.790 0.68 9.08e+20
Byte-level 1.0 131,072 1.640 0.96 1.21e+22

Read the table in two passes. First the denominator: a 128 KiB document is 32,768 tokens for the subword families and 131,072 for the byte model, a fourfold difference in sequence length for identical text. Second the two metrics: the dense model and the byte model post nearly identical retrieval scores, the hybrid sits in the middle, and the windowed and constant-state models fall far behind at this length, even though their bits-per-byte numbers are only modestly worse.

That gap between "modestly worse average" and "much worse capability" is the single most important thing to report, and it is invisible if you publish only the loss column.

Step 7: iso-token versus iso-byte

Now the first real comparison, and the one where the answer flips cleanly. Hold the parameter count at 7B and hold the token budget fixed at 20 billion tokens. Every subword family sees 80 GB of text. The byte model sees 20 GB.

PythonIn [13]
CollapseExpand
FIXED_TOKENS = 2e10
FIXED_BYTES = 8e10
COMPARE_CTX = 131072

iso_token_rows = []
iso_byte_rows = []
for fam in FAMILY_NAMES:
    bpt = SPEC[fam]["bytes_per_token"]
    iso_token_rows.append(
        dict(
            family=fam,
            bpb=bpb_true(fam, REF_N, FIXED_TOKENS * bpt, COMPARE_CTX),
            train_flops=train_flops(
                fam, REF_N, FIXED_TOKENS * bpt, COMPARE_CTX
            ),
        )
    )
    iso_byte_rows.append(
        dict(
            family=fam,
            bpb=bpb_true(fam, REF_N, FIXED_BYTES, COMPARE_CTX),
            train_flops=train_flops(fam, REF_N, FIXED_BYTES, COMPARE_CTX),
        )
    )

iso_token_df = pd.DataFrame(iso_token_rows).set_index("family")
iso_byte_df = pd.DataFrame(iso_byte_rows).set_index("family")
Out[14]:
bpb @ iso-token bpb @ iso-byte TFLOPs @ iso-token TFLOPs @ iso-byte
family
Dense attention 1.72 1.72 1.384735e+09 1.384735e+09
Windowed 4k 1.87 1.87 9.676706e+08 9.676706e+08
Selective SSM 1.91 1.91 8.400000e+08 8.400000e+08
Hybrid 1:7 1.79 1.79 9.080919e+08 9.080919e+08
Byte-level 2.10 1.64 3.018892e+09 1.207557e+10

In these synthetic curves the byte model scores 2.10 bits per byte under the matched-token budget and 1.64 under the matched-byte budget. Matching tokens gives it one-quarter as many raw bytes. Matching raw bytes gives it four times as many positions as the subword model and increases attention work per position for the same text.

This is why the protocol insists on stating whether the fixed budget is in tokens or bytes. "We matched the data budget" is not a specification until you say which units.

Step 8: iso-compute

Iso-compute asks a harder question: fix total training FLOPs, and let each family choose its own parameter count and data budget. That requires a search, because the optimum is different for each family.

PythonIn [15]
CollapseExpand
N_GRID = np.logspace(8.0, 11.5, 30)
B_GRID = np.logspace(8.7, 11.5, 30)


def iso_compute_point(family, budget, ctx_bytes):
    """Best (N, train_bytes) for a family at a fixed training-FLOPs budget."""
    fwd = np.array([fwd_flops_per_token(family, n, ctx_bytes) for n in N_GRID])
    train_b = (
        budget * SPEC[family]["bytes_per_token"] / (TRAIN_FLOP_MULTIPLIER * fwd)
    )
    scores = np.array(
        [bpb_true(family, n, b, ctx_bytes) for n, b in zip(N_GRID, train_b)]
    )
    i = int(np.argmin(scores))
    return dict(
        n_params=float(N_GRID[i]),
        train_bytes=float(train_b[i]),
        bpb=float(scores[i]),
    )
PythonIn [16]
CollapseExpand
BUDGET = 1e22

iso_compute_rows = []
for fam in FAMILY_NAMES:
    point = iso_compute_point(fam, BUDGET, COMPARE_CTX)
    iso_compute_rows.append(
        dict(
            family=fam,
            n_params=point["n_params"],
            train_bytes=point["train_bytes"],
            bpb=point["bpb"],
            retrieval=retrieval_accuracy(fam, point["n_params"], COMPARE_CTX),
        )
    )

iso_compute_df = pd.DataFrame(iso_compute_rows).set_index("family")
Out[17]:
n_params_B train_GB bpb retrieval
family
Dense attention 11.265 380.982 1.528 0.977
Windowed 4k 11.265 523.868 1.652 0.119
Selective SSM 11.265 591.813 1.672 0.269
Hybrid 1:7 11.265 553.524 1.569 0.679
Byte-level 1.610 197.773 1.594 0.956

At this budget several subword families choose the same coarse grid point, around 11.3 billion parameters, with different training byte budgets. The model with one byte per position chooses a smaller grid point. These allocations are outcomes of the chosen synthetic functions and the grid.

The dense and byte configurations exceed 0.90 on the synthetic retrieval metric. The other three configurations fall below that target even where their corpus-level loss is competitive. A study for an application that retrieves distant evidence would need a task metric that actually measures that use case.

Let's make that concrete by asking for the cheapest configuration that hits a quality target, and seeing how the answer changes with the target.

PythonIn [18]
CollapseExpand
def min_compute_for_target(family, target, ctx_bytes):
    """Cheapest (N, train_bytes) reaching a bits-per-byte target."""
    best = None
    for n in N_GRID:
        fwd = fwd_flops_per_token(family, n, ctx_bytes)
        for b in B_GRID:
            value = bpb_true(family, n, b, ctx_bytes)
            if value <= target:
                cost = (
                    TRAIN_FLOP_MULTIPLIER
                    * fwd
                    * b
                    / SPEC[family]["bytes_per_token"]
                )
                if best is None or cost < best["train_flops"]:
                    best = dict(
                        n_params=float(n),
                        train_bytes=float(b),
                        bpb=float(value),
                        train_flops=float(cost),
                    )
    return best


def min_params_for_retrieval(family, target, ctx_bytes):
    """Smallest parameter count reaching the retrieval target on this grid."""
    for n in N_GRID:
        if retrieval_accuracy(family, n, ctx_bytes) >= target:
            return float(n)
    return None
PythonIn [19]
CollapseExpand
BPB_TARGET = 1.85
RETRIEVAL_TARGET = 0.90
RETRIEVAL_REPORT_BYTES = REF_BYTES

target_rows = []
for fam in FAMILY_NAMES:
    bpb_point = min_compute_for_target(fam, BPB_TARGET, COMPARE_CTX)
    retrieval_n = min_params_for_retrieval(fam, RETRIEVAL_TARGET, COMPARE_CTX)
    target_rows.append(
        dict(
            family=fam,
            flops_for_bpb=None
            if bpb_point is None
            else bpb_point["train_flops"],
            retrieval_at_bpb_target=(
                None
                if bpb_point is None
                else retrieval_accuracy(fam, bpb_point["n_params"], COMPARE_CTX)
            ),
            params_for_retrieval=retrieval_n,
            bpb_at_retrieval_target=(
                None
                if retrieval_n is None
                else bpb_true(
                    fam, retrieval_n, RETRIEVAL_REPORT_BYTES, COMPARE_CTX
                )
            ),
        )
    )

target_df = pd.DataFrame(target_rows).set_index("family")
Out[20]:
zettaflops_for_bpb retrieval_at_bpb_target params_for_retrieval_B bpb_at_retrieval_target
family
Dense attention 0.408 0.882 0.924 1.904
Windowed 4k 0.793 0.119 NaN NaN
Selective SSM 1.009 0.269 NaN NaN
Hybrid 1:7 0.340 0.668 NaN NaN
Byte-level 2.304 0.868 0.924 1.824

On this grid, hybrid attention reaches 1.85 bits per byte with the least modeled training compute. The retrieval search minimizes parameter count. Only dense subword and dense byte reach 0.90. Their companion BPB assumes the reference 80 GB text budget because the retrieval function does not depend on training bytes. An empty result means no point on the grid met the target.

Reporting rule

Name the target metric and the resource being minimized. Report the companion metric at the selected configuration with its workload assumptions.

Step 9: make the budget visible

The plot below shows the same cost model as a continuous function of context length. Log-log axes, because the interesting difference is a ratio, and the y-axis is expressed per byte of text rather than per token so that the tokenizer cannot hide.

VisualizationOut [21]
CollapseExpand
Log-log line chart of forward FLOPs per byte against context length in bytes for five architecture families.
Log-log line chart of forward FLOPs per UTF-8 byte of text as a function of evaluation context, at 7B parameters. Dense attention grows linearly per byte once the quadratic term dominates, while sliding-window attention and the selective SSM stay nearly flat. In this toy dense byte model, more positions per byte increase the cost at every length shown. The denominator gives the amount of raw text processed.

Dense attention’s modeled prefill work per byte rises as sequence length increases. For windowed attention, the mean number of eligible keys approaches the window width as positions with shorter prefixes make up less of the sequence. The constant-state fixture’s projection cost per position is flat across the plotted lengths.

The byte model in this example uses dense attention and four times as many positions for the same raw byte count. Both the linear work per byte and the attention work per byte are higher than in the four-bytes-per-position dense example. A real byte model can change the attention graph by grouping neighboring positions into patches.

Matched Tokens and Matched Bytes

The chart below makes the disagreement explicit. Each family is bar-plotted under two different budget conventions, and the bars are annotated so the value is readable without consulting the axis.

VisualizationOut [22]
CollapseExpand
Grouped bar chart comparing bits per byte under matched-token and matched-byte budgets for five architecture families.
Grouped bar chart of bits per UTF-8 byte at 7B parameters for two matched budgets: matched tokens and matched corpus bytes. The byte-level model is worst under iso-token and best under iso-byte, a reversal of the ranking that shows both results are correct answers to different questions.

Step 11: iso-compute frontiers

This budget sweep solves for training bytes at each tested parameter count. The earlier BPB target search uses a finite grid in both parameters and training bytes. Its minimum is a separate search result.

VisualizationOut [23]
CollapseExpand
At 128 KiB the hybrid leads at the lowest plotted budgets. The dense byte model has the lowest bits per byte at the largest budget.
Line chart of best achievable bits per byte at each training-compute budget, with each family optimizing its own parameter and data allocation, evaluated at 128 KiB of context. Lower is better, and the vertical position of a curve reflects family quality while its horizontal position reflects family cost. The curves are conditional on the stated toy workload and assumptions.

At a stated budget, a vertical gap measures quality difference. At a stated quality, compare costs where both plotted curves reach the target. This reading depends on the sweep's feasible set and resolution.

The vertical and horizontal differences in this figure are outcomes of the synthetic cost and quality functions. Interpret an empirical frontier within its measured workload, implementation and quality criteria.

Measure Uncertainty at the Document Level

Compare two models on the same documents. For document ii, multiply the difference in document-level bits per byte by its byte count BiB_i. These differences in total bits sum in the numerator. Dividing by ∑iBi\sum_i B_i gives the difference in corpus-level bits per byte. The arithmetic mean of per-document differences answers a separate question about the typical document. Both can be reported if you name the weighting.

Resample document pairs with replacement and recompute the ratio in every bootstrap sample. Independent documents are the assumed sampling units in this demonstration. Cluster by a higher-level unit such as source or conversation when documents share content or collection conditions.

PythonIn [24]
CollapseExpand
unc_rng = np.random.default_rng(4242)


def paired_bootstrap_ci(diff, byte_counts, n_boot=5000):
    """Return the corpus-level estimate and its percentile interval."""
    idx = unc_rng.integers(0, len(diff), size=(n_boot, len(diff)))
    bits = diff * byte_counts
    estimates = bits[idx].sum(axis=1) / byte_counts[idx].sum(axis=1)
    lo, hi = np.percentile(estimates, (2.5, 97.5))
    return bits.sum() / byte_counts.sum(), lo, hi


def simulate_document_scores(true_bpb, shared_difficulty, doc_bytes):
    interaction = unc_rng.normal(0.0, 0.03, size=len(doc_bytes))
    measurement = unc_rng.normal(0.0, 0.55 / np.sqrt(doc_bytes))
    return true_bpb + shared_difficulty + interaction + measurement


shared_difficulty = unc_rng.normal(0.0, 0.10, size=len(test_bytes))
baseline_point = iso_compute_point("Dense attention", BUDGET, COMPARE_CTX)
baseline_scores = simulate_document_scores(
    baseline_point["bpb"], shared_difficulty, test_bytes
)

forest_rows = []
for family in FAMILY_NAMES:
    if family == "Dense attention":
        continue
    point = iso_compute_point(family, BUDGET, COMPARE_CTX)
    comparison_scores = simulate_document_scores(
        point["bpb"], shared_difficulty, test_bytes
    )
    diff = comparison_scores - baseline_scores
    mean, lo, hi = paired_bootstrap_ci(diff, test_bytes)
    mean_small, lo_small, hi_small = paired_bootstrap_ci(
        diff[:40], test_bytes[:40]
    )
    forest_rows.append(
        {
            "family": family,
            "mean": mean,
            "lo": lo,
            "hi": hi,
            "mean_small": mean_small,
            "lo_small": lo_small,
            "hi_small": hi_small,
        }
    )
forest_df = pd.DataFrame(forest_rows).set_index("family")
VisualizationOut [25]
CollapseExpand
Forest plot of paired differences in bits per byte with 95 percent bootstrap confidence intervals at two test-set sizes.
Paired difference in corpus bits per byte relative to dense attention at 1e22 training FLOPs. The 95% intervals resample paired documents and recompute the byte-weighted ratio. Filled markers use all 480 documents and open markers use the first 40. The smaller subset gives wider intervals in all four comparisons shown.

Pairing cancels shared document difficulty in the simulator. The contrasts reuse the same realized dense-baseline scores, and the intervals describe each contrast separately under the document-sampling assumptions. Report model selection and leakage controls separately.

Step 13: inference budgets

The serving proxy takes the larger of modeled compute and memory time. It charges one weight read per batch and models the full 60 MB per-sequence activation reserve as traffic once per step. Measure resident footprint and traffic separately on a real serving system.

PythonIn [26]
CollapseExpand
HBM_BYTES = 80e9
HBM_BW = 3.35e12
PEAK_FLOPS = 9.89e14
EFF_BW = 0.60
EFF_FLOPS = 0.45
WEIGHT_BYTES = 2.0
KV_SHARE = 0.25
ACT_BYTES_PER_SEQ = 6e7


def attn_context(family, ctx_tokens):
    window = SPEC[family]["window"]
    return ctx_tokens if window is None else min(ctx_tokens, window)


def kv_bytes_per_token(family, n_params):
    d_model, n_layers = model_shape(n_params)
    return 4.0 * n_layers * d_model * SPEC[family]["attn_frac"] * KV_SHARE


def state_bytes_per_seq(family, n_params):
    d_model, n_layers = model_shape(n_params)
    return 64.0 * n_layers * (1.0 - SPEC[family]["attn_frac"]) * d_model


def bytes_per_sequence(family, n_params, ctx_tokens):
    attended = attn_context(family, ctx_tokens)
    return (
        kv_bytes_per_token(family, n_params) * attended
        + state_bytes_per_seq(family, n_params)
        + ACT_BYTES_PER_SEQ
    )


def decode_step(family, n_params, ctx_tokens, batch):
    d_model, n_layers = model_shape(n_params)
    attended = attn_context(family, ctx_tokens)
    a = SPEC[family]["attn_frac"]
    per_seq = bytes_per_sequence(family, n_params, ctx_tokens)
    bytes_moved = WEIGHT_BYTES * n_params + batch * per_seq
    flops = (
        batch
        * n_layers
        * (
            a * (24.0 * d_model**2 + 4.0 * attended * d_model)
            + (1.0 - a) * 24.0 * d_model**2
        )
    )
    t_mem = bytes_moved / (HBM_BW * EFF_BW)
    t_flop = flops / (PEAK_FLOPS * EFF_FLOPS)
    return dict(
        step_seconds=max(t_mem, t_flop),
        bytes_moved=bytes_moved,
        flops=flops,
        intensity=flops / bytes_moved,
    )


def max_batch(family, n_params, ctx_tokens, usable=0.85):
    free = HBM_BYTES * usable - WEIGHT_BYTES * n_params
    per_seq = bytes_per_sequence(family, n_params, ctx_tokens)
    return max(0, int(free // per_seq))


def prefill_seconds(family, n_params, ctx_tokens):
    d_model, n_layers = model_shape(n_params)
    attended = average_causal_keys(ctx_tokens, SPEC[family]["window"])
    a = SPEC[family]["attn_frac"]
    flops = (
        ctx_tokens
        * n_layers
        * (
            a * (24.0 * d_model**2 + 4.0 * attended * d_model)
            + (1.0 - a) * 24.0 * d_model**2
        )
    )
    return max(
        flops / (PEAK_FLOPS * EFF_FLOPS),
        WEIGHT_BYTES * n_params / (HBM_BW * EFF_BW),
    )
PythonIn [27]
CollapseExpand
CTX_BYTES_GRID = np.array([2048, 8192, 32768, 131072, 524288, 1048576])

serving_rows = []
for fam in FAMILY_NAMES:
    for ctx_bytes in CTX_BYTES_GRID:
        ctx_tokens = ctx_bytes / SPEC[fam]["bytes_per_token"]
        batch = max_batch(fam, REF_N, ctx_tokens)
        step = decode_step(fam, REF_N, ctx_tokens, batch) if batch else None
        tokens_per_s = batch / step["step_seconds"] if step else float("nan")
        serving_rows.append(
            dict(
                family=fam,
                ctx_bytes=int(ctx_bytes),
                ctx_tokens=int(ctx_tokens),
                prefill_estimate_s=prefill_seconds(fam, REF_N, ctx_tokens)
                if batch
                else float("nan"),
                max_seqs=batch,
                decode_bytes_per_s=tokens_per_s * SPEC[fam]["bytes_per_token"],
                intensity=step["intensity"] if step else float("nan"),
            )
        )

serving_df = pd.DataFrame(serving_rows)
Out[28]:
ctx_tokens prefill_estimate_s max_seqs decode_bytes_per_s intensity
family
Dense attention 32768 1.699 11 1369.198 5.476
Windowed 4k 32768 1.187 86 10174.560 20.589
Selective SSM 32768 1.031 784 92708.960 161.434
Hybrid 1:7 32768 1.114 85 10051.521 20.340
Byte-level 131072 14.818 2 79.707 3.435

At 128 KiB of context the serving proxy admits 11 dense subword sequences, 2 dense byte sequences and 784 recurrent sequences under its simplified memory budget. These are capacity estimates before serving-system overhead. The throughput column reports the modeled aggregate decode rate at each admitted batch.

The effective ridge is about 221 FLOP per byte, above the intensity of every admitted decode case in this grid. At 128 KiB, the windowed, recurrent and hybrid fixtures fit 86, 784 and 85 sequences, respectively. Their single-sequence prefill estimates are 1.19, 1.03 and 1.11 seconds. Check the one-second time-to-first-token target by measuring complete requests at the intended serving concurrency.

VisualizationOut [29]
CollapseExpand
The windowed and recurrent capacity curves plateau. Dense byte capacity reaches zero at 512 KiB and 1 MiB.
Maximum modeled concurrent sequences on an 80 GB accelerator at 7B parameters. The windowed curve plateaus once the key window fills and the recurrent curve is flat. At 512 KiB and 1 MiB no dense byte batch fits.
VisualizationOut [30]
CollapseExpand
The recurrent and windowed throughput curves plateau. The dense byte series ends before its first infeasible context.
Modeled aggregate UTF-8 bytes per second at each feasible batch. Recurrent throughput is flat in the estimate, and windowed throughput plateaus once the window fills. At 512 KiB and 1 MiB the dense byte model has no feasible batch and no throughput estimate.

Bytes per second aligns the output units. Per-position throughput can also be interpreted with the measured byte-per-position rate and the stated workload.

Step 14: the denominator trap, made visible

Consider the same 400-byte text on two canonical paths, one with 100 subword tokens and one with 400 byte tokens. Give each path 1,000 bits of total surprisal. This sets equal path BPB. Marginalizing over alternative tokenizations can give a different string-level likelihood.

PythonIn [31]
CollapseExpand
TEXT_BYTES = 400
TOTAL_BITS = 1000.0

scenarios = [
    dict(name="Subword (4 B/token)", n_tokens=100, vocab=32_000),
    dict(name="Byte-level (1 B/token)", n_tokens=400, vocab=256),
]

denominator_rows = []
for s in scenarios:
    bits_per_token = TOTAL_BITS / s["n_tokens"]
    denominator_rows.append(
        dict(
            tokenizer=s["name"],
            n_tokens=s["n_tokens"],
            bits_per_token=bits_per_token,
            per_token_perplexity=2.0**bits_per_token,
            bits_per_byte=TOTAL_BITS / TEXT_BYTES,
        )
    )

uniform_rows = []
for s in scenarios:
    bits_per_token = np.log2(s["vocab"])
    uniform_rows.append(
        dict(
            tokenizer="Uniform over vocab: " + s["name"],
            bits_per_token=bits_per_token,
            per_token_perplexity=2.0**bits_per_token,
            bits_per_byte=bits_per_token * s["n_tokens"] / TEXT_BYTES,
        )
    )

denominator_df = pd.DataFrame(denominator_rows + uniform_rows).set_index(
    "tokenizer"
)
Out[32]:
n_tokens bits_per_token per_token_perplexity bits_per_byte
tokenizer
Subword (4 B/token) 100.0 10.00 1024.00 2.50
Byte-level (1 B/token) 400.0 2.50 5.66 2.50
Uniform over vocab: Subword (4 B/token) NaN 14.97 32000.00 3.74
Uniform over vocab: Byte-level (1 B/token) NaN 8.00 256.00 8.00

The two paths score 2.5 bits per byte. Their token perplexities are 1,024 and about 5.66, a ratio of about 181.

For the same fixture, a uniform distribution over 32,000 subword symbols incurs about 3.74 bits per byte at four bytes per position. A uniform distribution over 256 byte symbols uses 8 bits per byte. The numbers describe these token sequences and scenario assumptions, including the contribution of the segmentation rule.

VisualizationOut [33]
CollapseExpand
Grouped bar chart on a log scale comparing bits per token, per-token perplexity, and bits per byte for four model and tokenizer combinations.
Three scores for four model and tokenizer combinations on the same 400-byte string. The matched-surprisal canonical paths both give 2.5 bits per byte with a roughly 181-fold difference in token perplexity. The uniform baselines have different vocabulary sizes and counts of scoring positions.

The middle group ranks these token paths differently even though the two scored paths for the same 400 bytes incur the same total surprisal. The bits-per-byte group shows that equivalence. Read each axis group in its own units.

Limitations and Impact

The protocol in this chapter is a reporting discipline, not a measurement. Everything we computed after the corpus generation came from formulas: the FLOPs from layer equations, the memory from cache arithmetic, the latency from a roofline, and the quality from a hand-specified surface. The formulas are standard and the constants are realistic, but a roofline is not a benchmark. Real decode throughput on a real serving stack depends on kernel fusion, paged attention, continuous batching, speculative decoding, and a dozen other engineering choices that no analytic model captures. Treat the timing figures as a way to reason about orders of magnitude and as a template for what to report, not as predictions for any specific deployment.

The synthetic curves depend on chosen coefficients and the search grid. In the plot, hybrid attention gives the lowest bits per byte at the first two budgets. Dense subword attention leads at the next eleven, and dense byte attention leads at the largest plotted budget. Different costs or loss surfaces can move these crossings or remove them.

The target table and the fixed-budget frontier also use different search domains. The frontier derives a continuous training-byte budget for each grid point in parameter count. The target table searches a fixed training-byte grid capped at about 316 GB. At ten zettaFLOPs, the selected subword allocations in the fixed-budget sweep all exceed that cap.

The protocol transfers when the workload, cost model and quality definitions are established for the new setting.

Chinchilla estimates allocations for one tested dense family. The 20-token-per-parameter ratio describes its 70B design point. FlashAttention evaluates a new execution schedule for the same mathematical function, with different IO and recomputation. Mamba compares perplexities at reported model scales on The Pile and reports throughput with fixed generation lengths and varying batch sizes. Jamba reports 52B total and 12B active parameters and scopes throughput to its serving configurations. LRA compares small models on its task suite.

None of these papers is wrong. Each is scoped, and the scope is the part that gets lost when results are summarized into "family X is faster."

Choosing from a headline measured on an unrelated workload can miss the deployment constraints. Predeclaring the workload and cost units reduces the risk of repeating an evaluation after discovering a mismatch.

Report the question, budget, data split, implementation and uncertainty. Include the configurations and executable procedure needed to reproduce the experiment.

Looking ahead, the data questions become unavoidable once you start comparing families at scale. Part XX: Data Curation covers the machinery that makes a fixed corpus actually fixed: crawling, boilerplate removal, language identification, exact and near-duplicate detection with MinHash and suffix arrays, quality filtering, PII removal, and data mixing. A comparison between two families trained on two differently filtered corpora is not a comparison between the families. And Part XXIII: Scaling Laws will formalize the scaling-law machinery we used informally here, including the question of whether a loss surface fitted on one family transfers to another at all.

Summary

Architecture comparisons fail in five predictable ways: an unstated denominator, matched parameters that are not matched compute, matched tokens that are not matched text, implementation maturity masquerading as architecture, and an evaluation target that hides the capability that matters.

There are five distinct questions, and they have different answers:

  • Iso-parameter fixes a count of parameters. Report the data, workload, kernels and compute used to interpret quality differences.
  • Iso-data fixes the corpus in bytes and reports the compute each family needs to consume it.
  • Iso-training-compute fixes FLOPs and searches each family's feasible parameter and data allocations. Its ranking can differ from a parameter-matched ranking.
  • Iso-quality fixes a quality target and searches for the cheapest configuration, which requires a frontier rather than a point.
  • Iso-inference-budget fixes a serving constraint such as latency, memory, or throughput for a stated workload.

Account for costs by family. The 6ND proxy omits attention work that grows with eligible keys. Total parameters help estimate resident weights and active parameters help estimate projection work. Tokenizer and state assumptions affect work and serving capacity. At four and one bytes per position, 128 KiB represents 32,768 and 131,072 positions respectively.

Corpus bits per byte normalizes total surprisal by the byte count of the shared text. Report normalization, special tokens, termination, the treatment of alternative tokenizations and the estimator. A diffusion model can define a normalized distribution while leaving its exact marginal likelihood expensive to evaluate. Label any variational bound or estimate alongside its method.

Resample paired documents or requests when those units are independent. If related items share a source, use a cluster that captures that dependence. Report held-out selection and sensitivity separately from sampling uncertainty.

Report the configurations that meet each workload's constraints and their measured cost and quality. Those points let readers choose a model for their own workload.

Quiz

Ready to test your understanding? Take this quick quiz to reinforce what you've learned about comparing architecture families fairly.

Comparing Architecture Families Fairly

Question 1 of 80 of 8 completed
The chapter's failure mode 'matched parameters are not matched compute' describes which effect?
Join the discussionAsk a question or share what you learned.

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!

A different angle
All writing
Language AI Handbook · Vol. 6

Blockwise and Semi-Autoregressive Generation

Explore semi-autoregressive block generation, blockwise parallel decoding, and exact speculative sampling with acceptance and residual repair rules.

42 min read
Language AI Handbook · Vol. 6

Token-Free and Byte-Level Language Models

Explore token-free byte-level language models: UTF-8 encoding, byte factorization, patching architectures like ByT5, CANINE, MEGABYTE, BLT, and fair evaluation.

54 min read
Language AI Handbook · Vol. 6

Diffusion Language Models

Learn how masked diffusion language models corrupt text with absorbing masks, bound likelihood, sample in parallel, and evaluate quality and compute.

45 min read

About the author

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@misc{brenndoerfer2026comparingarchitecture, author = {Michael Brenndoerfer}, title = {Comparing Architecture Families Fairly}, year = {2026}, url = {https://mbrenndoerfer.com/writing/comparing-architecture-families-fairly}, organization = {mbrenndoerfer.com}, note = {Accessed: 2026-11-25} }
APAAcademic
Michael Brenndoerfer (2026). Comparing Architecture Families Fairly. Retrieved from https://mbrenndoerfer.com/writing/comparing-architecture-families-fairly
MLAAcademic
Michael Brenndoerfer. "Comparing Architecture Families Fairly." 2026. Web. November 25, 2026. <https://mbrenndoerfer.com/writing/comparing-architecture-families-fairly>.
CHICAGOAcademic
Michael Brenndoerfer. "Comparing Architecture Families Fairly." Accessed November 25, 2026. https://mbrenndoerfer.com/writing/comparing-architecture-families-fairly.
HARVARDAcademic
Michael Brenndoerfer (2026) 'Comparing Architecture Families Fairly'. Available at: https://mbrenndoerfer.com/writing/comparing-architecture-families-fairly (Accessed: November 25, 2026).
SimpleBasic
Michael Brenndoerfer (2026). Comparing Architecture Families Fairly. https://mbrenndoerfer.com/writing/comparing-architecture-families-fairly
Newsletter

Stay up to date

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

Unsubscribe at any time. Privacy policy