Grooves carry the category, not the class: influence functions on VQ-tokenised CIFAR

This is the scale-up of the MNIST grooves study to a real image dataset with a learned tokeniser. Each CIFAR-10 image is compressed by a small VQ-VAE into an 8×8 grid of 64 discrete codes; a decoder-only transformer models that code stream autoregressively (tied embeddings, cross-entropy — the same "language model whose language is images" recipe); and we probe its loss landscape with the same sorted estimator, gated on reproducibility. Four findings, and the third is the interesting one:

§1Setup

The tokeniser is a compact VQ-VAE (f=4 conv encoder/decoder, 512-entry codebook, EMA updates with dead-code restarts) trained on CIFAR's 50k images; all 512 codes stay live. Its reconstructions are blurry but class-faithful — which matters, because everything downstream sees only the codes, so whatever the VQ discards is invisible to the influence analysis.

tokeniser
VQ-VAE f=4, codebook 512 (512/512 live), 32×32×3 → 8×8 = 64 codes
model
decoder-only transformer d256 · 6 layers · 8 heads (~5M params), 64 tokens, vocab 512, tied embeddings
training
AdamW 3e-4, cosine, 40 epochs → 290.5 nats/image (4.54 nats/token, ≈6.55 of 9 bits/token); 1.9% train/eval gap
BIF
devinterp SGLD (localised, γ=100), 8 chains × 2,600 draws, ε per-checkpoint, two independent runs, gated on agreement r ≥ 0.9
ground truth
per-class AdamW fine-tune → ΔNLL on 510 class-balanced probes
code & artefacts
arcadia-impact/small-abstraction-test-{logs, mnist-ar} on HF; VQ under cifar-vq/
Eight CIFAR images (top) and their VQ-VAE reconstructions (bottom): blurry but the ship, frogs, car and airplane remain recognisable.
Fig. 1 · VQ-VAE reconstructions — blurry but class-faithful. The AR model and the BIF only ever see the 64-code grids, not the pixels.
Five rows of free samples from the AR model at epochs 1, 5, 10, 20, 40, decoded through the VQ; from patchy code-noise to coherent blobby scenes with backgrounds and central objects.
Fig. 2 · Free rollouts (sampled codes, VQ-decoded) across training — from code-noise to coherent, if blobby, scenes: natural backgrounds with central objects, a white horse and a car legible by epoch 40.

§2The estimator flips: this landscape is well-conditioned

On MNIST-pixel the naive full-window covariance estimator was broken — sharp minima forced a tiny SGLD step, the chain's loss level wandered on the timescale of the whole run (a slow "common mode"), and only a block-centring high-pass rescued reproducibility. Here the opposite holds: raw covariance already reproduces at r ≈ 0.96 at every checkpoint, and block-centring is a slight net negative (~0.94). The VQ-token landscape is flat enough that the chain mixes well and there is no slow common mode to filter — so the fix that MNIST couldn't live without just discards a little signal here.

Dumbbell chart: at epochs 2,5,10,20,40 the raw covariance seed-agreement sits around 0.96, slightly above block-centred around 0.90-0.94; both well above the 0.9 gate.
Fig. 3 · Seed-to-seed agreement, raw vs block-centred, per checkpoint. Raw ≥ block everywhere — the mirror image of MNIST. The raw-vs-block ranking is a read-out of how sharp the minimum is; here it says "flat and well-mixed."

The raw-vs-block ranking is a free diagnostic of the minimum's geometry. A learned tokeniser on a real dataset gives the AR model a far better-conditioned loss landscape than raw MNIST pixels did.

§3Grooves: real, but weak and fading

Same-class probes still co-fluctuate more than cross-class probes at every checkpoint, and every cell clears the reproducibility gate. But the effect is an order of magnitude smaller than MNIST's: within-class loss correlation sits at ~0.022 (MNIST was ~0.14), over a near-zero cross-class baseline. And where MNIST's grooves deepened toward convergence, CIFAR's fade — the fractional contrast falls from ~2.8 at epoch 2 to ~1.4 by epoch 20 and stays there.

Left: within-class, between-class and difference correlation curves across epochs; within stays ~0.022 while between rises, so the difference shrinks. Right: fractional contrast falling from 2.8 to 1.4.
Fig. 4 · The groove signal (within − between correlation) is positive throughout but weak, and shrinks with training as the cross-class baseline creeps up. Absolute correlations are ~6× smaller than MNIST's.

§4Ground truth: the BIF still predicts fine-tuning

Despite the weak grooves, the influence-function reading holds: fine-tune a fresh copy on one class for 20 steps, and the BIF's class-row prediction correlates with the actual per-probe ΔNLL — mean per-class r = +0.36 at epoch 5 and +0.40 at epoch 40, sign correct 10/10 at both. So the grooves are meaningful (they predict a real behavioural effect); they just don't line up with the ten-way label taxonomy, as §5 shows.

Per-class correlation between BIF prediction and fine-tuning effect at epochs 5 and 40, positive for essentially all ten CIFAR classes at both.
Fig. 5 · Probe-level r between the BIF's prediction and the actual fine-tuning effect, per fine-tuned class — positive across the board at both checkpoints.

§5The headline: the category, not the class

Now the goal — recover the abstraction without labels. Clustering the checkpoint-ensembled BIF into ten groups gives ARI ≈ 0.04 against the CIFAR classes: chance. Clustering the VQ-decoded pixels directly does no better (0.06). The fine ten-class taxonomy is simply not what this loss landscape is organised by.

But split into two clusters and ask about the superordinate animate/inanimate divide, and the BIF lands ARI ≈ 0.29 — one cluster 85% animal, the other 68% vehicle — while clustering the pixels gets only 0.09. The grooves carry the animal/vehicle abstraction three times better than appearance does, even though neither can resolve the individual classes. The loss geometry has organised the data by broad semantic category, not by the human label set.

Left: adjusted Rand index bars — BIF and pixel 10-way clustering both near 0.05; BIF k=2 vs animal/vehicle at 0.29 versus pixel k=2 at 0.09. Right: the two BIF clusters are 85% animal and 68% vehicle respectively.
Fig. 6 · Left: fine ten-class recovery is at chance for both the BIF and a raw-pixel baseline; but the coarse animal/vehicle split is recovered by the BIF (0.29) far better than by pixels (0.09). Right: the two top-level BIF clusters are animal- and vehicle-majority.

The loss-landscape grooves encode a coarse animate/inanimate abstraction that is not salient in pixel space — but not the fine ten-class taxonomy. On CIFAR the model grooves by category, not by class.

The cluster hierarchy below makes this concrete, and it's worth actually poking at. Hover any cluster to see sixteen of its member images; click to pin, click away or Esc to dismiss. The green/orange rail on each node marks animal- vs vehicle-majority. As you sweep k from 2 rightward, the top split holds its animal/vehicle character (the rails stay sorted) while the per-class colours inside the nodes stay stubbornly mixed — you can watch, image by image, that a cluster is "animals on grass" or "vehicles on grey" long before it is ever "cats" or "trucks." The ARI-vs-class under each column stays near zero throughout; the structure the eye sees in the images is categorical, not class-level.

k = 2 ARI 0.06 k = 3 ARI 0.04 k = 4 ARI 0.04 k = 6 ARI 0.04 k = 8 ARI 0.06 k = 10 ARI 0.04 k = 12 ARI 0.04 animal-majority vehicle-majority hover a cluster to see its images · click to pin
Fig. 7 · Interactive cluster hierarchy of the CIFAR BIF, k = 2…12 (ARI under each column is against the ten fine classes — near chance throughout). Node rails: green = animal-majority, orange = vehicle-majority. Hover for member images.

§6What it means, and the honest limits

Two readings, and I can't fully separate them from this experiment. The optimistic one: the loss landscape encodes a genuine superordinate abstraction (animate vs inanimate) that sits above the label set, which is exactly the kind of structure the natural-abstractions hypothesis predicts should be robust — and it's more semantic than pixels, so it isn't just background colour. The deflationary one: "animal vs vehicle" still correlates with coarse scene statistics (foliage/ground vs sky/road/water), and a 512-code f=4 VQ throws away exactly the fine detail (a cat's face, a truck's wheels) that would distinguish classes within a category — so the fine-class failure may be as much the tokeniser's information loss as a fact about the landscape.

claimstatusevidence
grooves exist, reproducibleyesgated r 0.90–0.94
BIF predicts fine-tuningyesr +0.36/+0.40, sign 20/20
coarse animal/vehicle recoveredyes, > pixelsARI 0.29 vs 0.09
fine ten-class recoveredno (chance)ARI 0.04
grooves deepen with trainingno — they fadecontrast 2.8 → 1.4

The clean next test that would separate the two readings is a better tokeniser (more codes, or f=2 for 256 tokens) rather than a bigger transformer — if fine-class structure appears once the codes preserve within-category detail, the failure was the tokeniser; if it stays coarse, the landscape genuinely grooves by category. A larger AR model is the cheaper thing to try first, but I'd expect the tokeniser to be the binding constraint here.

Code · small-abstraction-test (VQ tokeniser, token-AR generalisation, replica-batched bf16 SGLD sampler).
Artefacts · HF small-abstraction-test-logs (all SGLD traces, BIF matrices, the 40-epoch checkpoint set) · small-abstraction-test-mnist-ar (VQ tokeniser under cifar-vq/).
Compute · 1× H100 ≈ 4.5 h ≈ $15 (tokeniser + 40-epoch train + five gated BIF cells at 8×2,600 draws + fine-tune). Pod deleted after verified upload.