feat(eval): CIFAR-10 class-conditional config and FID harness #10

Open
opened 2026-11-18 12:32:15 +00:00 by dsh · 9 comments
Member

Scope:

  • CIFAR-10 class-conditional config (32×32×3, patch 4, 10 classes).
  • weval with optional [eval] extra (pytorch-fid, CPU torchvision).
  • Reference image export from the CIFAR test split; FID over at least 10,000 generated samples, sample count logged.
  • Compare against published tiny-diffusion numbers; state limitations.

Blocked on accelerator availability (tesseract runs). A short CPU smoke is allowed now; the reportable run waits.

Scope: - CIFAR-10 class-conditional config (32×32×3, patch 4, 10 classes). - `weval` with optional `[eval]` extra (`pytorch-fid`, CPU torchvision). - Reference image export from the CIFAR test split; FID over at least 10,000 generated samples, sample count logged. - Compare against published tiny-diffusion numbers; state limitations. Blocked on accelerator availability (tesseract runs). A short CPU smoke is allowed now; the reportable run waits.
dsh self-assigned this 2026-11-18 12:32:16 +00:00
Author
Member

CIFAR pipeline smoke done (PR #13): 32x32, 4x4 patches (64 tokens), class-conditional RAT-32, 3,000 steps, val x0-MSE 0.0427. Samples are color textures, not objects. This is explicitly not a CIFAR result and no FID has been computed. Loader verified 50k/10k; config examples/configs/cifar10_rat.yaml; report docs/experiments/2026-11-19-cifar10-smoke.md. Next: longer run + FID over >=10k samples, ideally on an accelerator.

CIFAR pipeline smoke done (PR #13): 32x32, 4x4 patches (64 tokens), class-conditional RAT-32, 3,000 steps, val x0-MSE 0.0427. Samples are color textures, not objects. This is explicitly not a CIFAR result and no FID has been computed. Loader verified 50k/10k; config `examples/configs/cifar10_rat.yaml`; report `docs/experiments/2026-11-19-cifar10-smoke.md`. Next: longer run + FID over >=10k samples, ideally on an accelerator.
Author
Member

First M2 signal (PR #15):

  • 10k RAT-32 attempt crashed at 4k on the bidirectional window (#14).
  • Hyper fallback 10k: val x0-MSE 0.0347, 249k params, 40 min CPU.
  • FID 160.36 over 10,000 generated samples vs 10,000 CIFAR-10 test images (InceptionV3, DDIM 50, seed 0). This is far from published small-diffusion numbers; baseline only.
  • Samples: stylized color/texture scenes, not objects. Grid docs/assets/cifar10/cifar_hyper_10k_64.png; report docs/findings/cifar10-first-fid.md; JSON docs/experiments/2026-11-19-cifar10-10k-fid.json.

Still open: RAT-vs-hyper CIFAR comparison (blocked by #14), longer/GPU budget, head sweep at 32x32.

First M2 signal (PR #15): - 10k RAT-32 attempt crashed at 4k on the bidirectional window (#14). - Hyper fallback 10k: val x0-MSE 0.0347, 249k params, 40 min CPU. - **FID 160.36** over 10,000 generated samples vs 10,000 CIFAR-10 test images (InceptionV3, DDIM 50, seed 0). This is far from published small-diffusion numbers; baseline only. - Samples: stylized color/texture scenes, not objects. Grid `docs/assets/cifar10/cifar_hyper_10k_64.png`; report `docs/findings/cifar10-first-fid.md`; JSON `docs/experiments/2026-11-19-cifar10-10k-fid.json`. Still open: RAT-vs-hyper CIFAR comparison (blocked by #14), longer/GPU budget, head sweep at 32x32.
Author
Member

RAT CIFAR is unblocked and has a first FID.

  • Chunked bidirectional scan fix (#14, closed): 64-token RAT now survives 10k steps.
  • RAT-32 CIFAR 10k: val 0.0351, FID 156.12 vs hyper 160.36 on the same 10k/10k protocol (about 2.6%, one seed).
  • Grids: cifar_rat_10k_64.png, cifar_hyper_10k_64.png; reports under docs/experiments/.

Still open for M2: CIFAR head sweep (h8/h16/h32), second seed, and a longer/GPU run for object-like samples. Neither model is competitive at 0.25M/10k CPU steps.

RAT CIFAR is unblocked and has a first FID. - Chunked bidirectional scan fix (#14, closed): 64-token RAT now survives 10k steps. - RAT-32 CIFAR 10k: val 0.0351, **FID 156.12** vs hyper 160.36 on the same 10k/10k protocol (about 2.6%, one seed). - Grids: `cifar_rat_10k_64.png`, `cifar_hyper_10k_64.png`; reports under `docs/experiments/`. Still open for M2: CIFAR head sweep (h8/h16/h32), second seed, and a longer/GPU run for object-like samples. Neither model is competitive at 0.25M/10k CPU steps.
Author
Member

CIFAR RAT head sweep at 10k done (PR #17):

heads ms/step (bench) wall val x0-MSE FID
8 568 114.4 min 0.0356 not run
16 350 71.7 min 0.0353 not run
32 356 59.7 min 0.0351 156.12

Head count changes speed much more than sample character: the 8/16/32 rows are nearly identical at this scale. h32 remains the CPU pick. One seed; wall times under variable laptop load. Grids and head_sweep_10k.png under docs/assets/cifar10/; report docs/experiments/2026-11-20-cifar10-head-sweep.md.

Still open for M2: second seed, h8/h16 FID, and a longer/GPU run for object-like samples.

CIFAR RAT head sweep at 10k done (PR #17): | heads | ms/step (bench) | wall | val x0-MSE | FID | |---:|---:|---:|---:|---:| | 8 | 568 | 114.4 min | 0.0356 | not run | | 16 | 350 | 71.7 min | 0.0353 | not run | | 32 | 356 | 59.7 min | **0.0351** | **156.12** | Head count changes speed much more than sample character: the 8/16/32 rows are nearly identical at this scale. h32 remains the CPU pick. One seed; wall times under variable laptop load. Grids and `head_sweep_10k.png` under `docs/assets/cifar10/`; report `docs/experiments/2026-11-20-cifar10-head-sweep.md`. Still open for M2: second seed, h8/h16 FID, and a longer/GPU run for object-like samples.
Author
Member

20k cosine run done (PR #18):

  • RAT-32, 20k steps, cosine 1e-3 -> 1e-4, 131.8 min.
  • val x0-MSE 0.0326 at 17k, 0.0347 at 20k (10k was 0.0351).
  • FID at 16k: 178.68, worse than the 10k run's 156.12 on the same 10k/10k protocol.
  • The 2k->6k progression is the big visual change; 6k->20k refines textures but does not produce objects. More steps improved regression loss and hurt FID.
  • The 10k checkpoint remains the best FID model. Checkpoint retention matters: 17k was best val but not saved.
  • Artifacts: cifar_20k_progression.png, cifar_rat_20k_step16k_64.png, report docs/experiments/2026-11-20-cifar10-20k-cosine.md, FID JSON.

Conclusion for M2: at 0.25M params the bottleneck is capacity/data/architecture, not step count. Next useful direction is a larger model or a better training budget, not another longer tiny run.

20k cosine run done (PR #18): - RAT-32, 20k steps, cosine 1e-3 -> 1e-4, 131.8 min. - val x0-MSE 0.0326 at 17k, 0.0347 at 20k (10k was 0.0351). - **FID at 16k: 178.68**, worse than the 10k run's **156.12** on the same 10k/10k protocol. - The 2k->6k progression is the big visual change; 6k->20k refines textures but does not produce objects. More steps improved regression loss and hurt FID. - The 10k checkpoint remains the best FID model. Checkpoint retention matters: 17k was best val but not saved. - Artifacts: `cifar_20k_progression.png`, `cifar_rat_20k_step16k_64.png`, report `docs/experiments/2026-11-20-cifar10-20k-cosine.md`, FID JSON. Conclusion for M2: at 0.25M params the bottleneck is capacity/data/architecture, not step count. Next useful direction is a larger model or a better training budget, not another longer tiny run.
Author
Member

Capacity result (PR #19):

model params val x0-MSE FID (10k) wall
4L x 64 baseline 250k 0.0351 156.12 59.7 min
4L x 96 548k 0.0330 149.60 102.7 min

Width is a lever: -4.2% FID, clear val gain. The visual difference is subtle.

The 6L x 96 depth control was stopped at 1k: ~1.5 s/step under current laptop load (~4h for 10k); its 1k val tied the width run. Depth remains open, not rejected. w128_4l, w96_6l, w64_6l configs are ready for a free CPU window.

Report docs/experiments/2026-11-20-cifar10-capacity.md; grids/FID JSON under docs/.

Capacity result (PR #19): | model | params | val x0-MSE | FID (10k) | wall | |---|---:|---:|---:|---:| | 4L x 64 baseline | 250k | 0.0351 | 156.12 | 59.7 min | | **4L x 96** | 548k | **0.0330** | **149.60** | 102.7 min | Width is a lever: -4.2% FID, clear val gain. The visual difference is subtle. The 6L x 96 depth control was stopped at 1k: ~1.5 s/step under current laptop load (~4h for 10k); its 1k val tied the width run. Depth remains open, not rejected. `w128_4l`, `w96_6l`, `w64_6l` configs are ready for a free CPU window. Report `docs/experiments/2026-11-20-cifar10-capacity.md`; grids/FID JSON under docs/.
Author
Member

Level 2/3 first runs (PR #21):

level algebra params budget val x0-MSE cost
1 complex 250k 3k 0.0426 60 min/10k
2 quaternion 500k 3k 0.0403 78 min
3 octonion 1M 1k batch32 0.0506 49 min

Both work, no NaN/collapse. Level 2 is better than level 1 at 3k but has 2x params; level 3 is ~14x level-1 step cost at batch64, so CPU-toy. Not parameter-matched; no algebra claim yet.

Report docs/experiments/2026-11-21-cifar10-levels.md; grids/comparison under docs/assets/cifar10/. Also filed alpha-channel future idea #20.

Level 2/3 first runs (PR #21): | level | algebra | params | budget | val x0-MSE | cost | |---:|---|---:|---|---:|---| | 1 | complex | 250k | 3k | 0.0426 | 60 min/10k | | 2 | quaternion | 500k | 3k | **0.0403** | 78 min | | 3 | octonion | 1M | 1k batch32 | 0.0506 | 49 min | Both work, no NaN/collapse. Level 2 is better than level 1 at 3k but has 2x params; level 3 is ~14x level-1 step cost at batch64, so CPU-toy. Not parameter-matched; no algebra claim yet. Report `docs/experiments/2026-11-21-cifar10-levels.md`; grids/comparison under docs/assets/cifar10/. Also filed alpha-channel future idea #20.
Author
Member

Param-matched level 1 vs level 2 (PR #22):

model level n_embd heads params val x0-MSE (3k) wall
baseline 1 64 32 250,369 0.0426 ~18 min
quaternion 2 44 22 245,259 0.0409 47.4 min

Level 2 is ~4% lower val at the same parameter count, but ~2.6x slower per step. One seed, 3k; signal not proof. Samples are visually close. Both 3k and 10k configs are in the repo; the decisive test is the 10k + FID run.

Report docs/experiments/2026-11-21-cifar10-param-matched.md; comparison docs/assets/cifar10/levels_param_matched_3k.png.

Param-matched level 1 vs level 2 (PR #22): | model | level | n_embd | heads | params | val x0-MSE (3k) | wall | |---|---:|---:|---:|---:|---:|---:| | baseline | 1 | 64 | 32 | 250,369 | 0.0426 | ~18 min | | **quaternion** | **2** | **44** | **22** | **245,259** | **0.0409** | 47.4 min | Level 2 is ~4% lower val at the same parameter count, but ~2.6x slower per step. One seed, 3k; signal not proof. Samples are visually close. Both 3k and 10k configs are in the repo; the decisive test is the 10k + FID run. Report `docs/experiments/2026-11-21-cifar10-param-matched.md`; comparison `docs/assets/cifar10/levels_param_matched_3k.png`.
Author
Member

Decisive param-matched 10k FID (PR #23):

model params val x0-MSE FID (10k) wall
level 1 complex 250,369 0.0351 156.12 59.7 min
level 2 quaternion 245,259 0.0342 170.04 163.5 min

Level 2 fits the regression loss better but produces worse samples and is ~2.7x slower. The 3k val edge did not survive. Level 1 remains the practical choice. The 4% val gap at 3k was early-budget noise; val x0-MSE is not sample quality.

Report docs/experiments/2026-11-21-cifar10-param-matched-10k.md; comparison docs/assets/cifar10/levels_param_matched_10k.png; FID JSON committed. This closes the level 2 question at equal params; level 2 would need a different LR/width/schedule to justify itself.

Decisive param-matched 10k FID (PR #23): | model | params | val x0-MSE | FID (10k) | wall | |---|---:|---:|---:|---:| | level 1 complex | 250,369 | 0.0351 | **156.12** | 59.7 min | | level 2 quaternion | 245,259 | **0.0342** | **170.04** | 163.5 min | Level 2 fits the regression loss better but produces worse samples and is ~2.7x slower. The 3k val edge did not survive. **Level 1 remains the practical choice.** The 4% val gap at 3k was early-budget noise; val x0-MSE is not sample quality. Report `docs/experiments/2026-11-21-cifar10-param-matched-10k.md`; comparison `docs/assets/cifar10/levels_param_matched_10k.png`; FID JSON committed. This closes the level 2 question at equal params; level 2 would need a different LR/width/schedule to justify itself.
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#10
No description provided.