The method taught

Intuition: stencils, then sliding stencils

BloodMNIST is photographs of single cells, centre-cropped and shrunk to 28 × 28 RGB. The classes differ by colour, size and nucleus shape. A linear softmax on pixels gives each class one template image; a cell is called whatever template it overlaps best. A convolution is a small learned stencil applied at every position (weight sharing), so features need not be relearned per location, and stacking layers lets later filters combine earlier ones. Counted from model.py, the linear model has 18,824 parameters and the anchor CNN 19,912, so the first comparison spends the same budget two ways.

The load-bearing math

Training minimizes softmax cross-entropy, with augmentation stated as a prior: each training image is replaced by a random member of its dihedral orbit (four rotations, each with or without a flip; exact pixel permutations at 28 pixels).

Batch normalization standardizes each channel per mini-batch, then learns a scale and shift back. At evaluation the batch statistics are replaced by population statistics. The way those are obtained turns out to be the study's most expensive lesson (section 6).

The primary metric is macro-F1, an unweighted mean of per-class F1 scores, each read off the confusion table. Accuracy is a prevalence-weighted mean of recalls. Macro-F1 is a ratio of sums per class, not a mean over items, so a bootstrap of it must recompute it on every re-draw.

Two noises, one keep bar

Fit noise is how much a score moves when the seeds are redrawn: the instability of the fitting procedure. Item noise is how much it moves had the development images been another draw from the same smears: the precision of the ruler. A seed array shrinks the first, not the second, because every seed is scored on the same images. The keep bar is therefore set from an item bootstrap of the anchor's pinned confusion tables:

Here is the macro-F1 on bootstrap re-draw of the development items. The measured bar is 0.0438, and the half-range term, not twice the standard deviation, is the one that binds.

Histogram of 1000 bootstrap macro-F1 values for the anchor with the range arrow

The from-scratch pieces

The study is run through a notary: every candidate is a three-seed array (seeds 0, 1, 2), and the decision is made on the seed mean against the bar. The weight-sharing idea is one line: the same filter is applied at every position,

and a third conv-pool block raises the receptive field from 8 to 18 pixels, about the whole cell, which is why depth was a candidate lever and not just more capacity.