experiment: MNIST hyper vs RAT on CPU with a matched budget #8

Closed
opened 2026-11-18 12:32:13 +00:00 by dsh · 1 comment
Member

Prior (recorded before the run): hyper is expected to win on sample quality at 49 tokens, because dagoBERT's T=80 A/B showed hyper better on CRPS/coverage and RAT ~1.41× slower. RAT must not be forced.

Protocol:

  • Matched 3,000 steps, batch 64, n_embd 64, n_layer 4, n_head 4, patch 4, lr 2e-4.
  • 100-step stopwatch gate; if >1.5 s/step, reduce both arms to 1,500 and record.
  • 64 samples, 50 DDIM steps, seed fixed; val epsilon MSE and x0 diagnostic.
  • Record wall time, peak RSS, params, MLflow run IDs, commit, sample grid paths.

Done: decision note in docs/findings/mnist-hyper-vs-rat.md, including the possibility that RAT wins.

Prior (recorded before the run): hyper is expected to win on sample quality at 49 tokens, because dagoBERT's T=80 A/B showed hyper better on CRPS/coverage and RAT ~1.41× slower. RAT must not be forced. Protocol: - Matched 3,000 steps, batch 64, n_embd 64, n_layer 4, n_head 4, patch 4, lr 2e-4. - 100-step stopwatch gate; if >1.5 s/step, reduce both arms to 1,500 and record. - 64 samples, 50 DDIM steps, seed fixed; val epsilon MSE and x0 diagnostic. - Record wall time, peak RSS, params, MLflow run IDs, commit, sample grid paths. Done: decision note in docs/findings/mnist-hyper-vs-rat.md, including the possibility that RAT wins.
dsh self-assigned this 2026-11-18 12:32:13 +00:00
Author
Member

Result (CPU, one seed, 49 tokens, 3,000 steps):

model heads params val x0-MSE wall samples
hyper softmax 4 239,617 0.0801 11.6 min blobs
RAT bidirectional 16 241,665 0.0629 18.8 min readable digits
hyper 96x6 (4k) 4 792,577 0.0746 36.5 min blobs with digits

The prior (hyper) lost. The operator's many-head note held: RAT-16 is 2.6x faster per step than RAT-4 (398 ms vs 1,033 ms) and produced the best loss/samples. Note RAT-16 has a smaller state than RAT-4, so this is not a memory-capacity story.

Best grid: docs/assets/mnist/rat_h16_final_64.png. Report: docs/findings/mnist-hyper-vs-rat.md and docs/experiments/2026-11-18-mnist.md. MLflow run 0493e9b66f6045cca4aecc2a88c053d8.

Caveats: one seed, 3k steps, MNIST, x0 T=200; no FID. Next: 6k-10k RAT-16, second seed, head sweep, CIFAR FID.

Result (CPU, one seed, 49 tokens, 3,000 steps): | model | heads | params | val x0-MSE | wall | samples | |---|---:|---:|---:|---:|---| | hyper softmax | 4 | 239,617 | 0.0801 | 11.6 min | blobs | | **RAT bidirectional** | **16** | **241,665** | **0.0629** | **18.8 min** | **readable digits** | | hyper 96x6 (4k) | 4 | 792,577 | 0.0746 | 36.5 min | blobs with digits | The prior (hyper) lost. The operator's many-head note held: RAT-16 is 2.6x faster per step than RAT-4 (398 ms vs 1,033 ms) and produced the best loss/samples. Note RAT-16 has a *smaller* state than RAT-4, so this is not a memory-capacity story. Best grid: docs/assets/mnist/rat_h16_final_64.png. Report: docs/findings/mnist-hyper-vs-rat.md and docs/experiments/2026-11-18-mnist.md. MLflow run `0493e9b66f6045cca4aecc2a88c053d8`. Caveats: one seed, 3k steps, MNIST, x0 T=200; no FID. Next: 6k-10k RAT-16, second seed, head sweep, CIFAR FID.
dsh closed this issue 2026-11-18 16:13:48 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ml-lab/wink#8
No description provided.