feat(ai): tiny-AI 3-arch LOSO evaluation harness + Research-0023#176
Merged
feat(ai): tiny-AI 3-arch LOSO evaluation harness + Research-0023#176
Conversation
cc95505 to
1f1f03a
Compare
8 tasks
Extends PR #165's `eval_loso_mlp_small.py` to score `mlp_small`, `mlp_medium`, and `linear` regressors on their respective LOSO folds in one pass. New `ai/scripts/eval_loso_3arch.py` reuses the `_load_session` external-data workaround + `_load_clip` per-clip cache loader from the PR #165 helper. Headline results on the Netflix corpus (9 folds × 30 epochs each, mean ± std across folds): arch params mean PLCC mean SROCC mean RMSE mlp_small 257 0.9808 ± 0.0214 0.9848 ± 0.0176 14.907 ± 2.218 mlp_medium 2 561 0.9727 ± 0.0202 0.9794 ± 0.0156 10.848 ± 2.302 linear 7 0.3679 ± 0.0773 0.4861 ± 0.0975 57.868 ± 5.867 Confirms ADR-0203's earlier single-split finding under proper LOSO: * mlp_small wins on ranking (default `vmaf_tiny_v1.onnx` stays). * mlp_medium wins on absolute fit (~27 % RMSE reduction; alternate `vmaf_tiny_v1_medium.onnx` stays for absolute-VMAF-agreement users). * linear is a clear sanity floor (PLCC 0.37 → 6 features carry strong non-linear signal that linear can't capture). Does not ship. FoxBird is the per-fold outlier on both MLPs (lowest PLCC ≈ 0.93 on both arch). Same outlier on both arch rules out arch-specific overfitting; it's a corpus-distribution issue. T6-1a (Netflix Public Dataset access) is the natural unblocker. Per-fold tables + cross-arch observations + reproducer in docs/research/0023-loso-3arch-results.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1f1f03a to
1db3e4b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends PR #165's
eval_loso_mlp_small.pyto score all three ADR-0203 architectures (mlp_small,mlp_medium,linear) on their respective LOSO folds in one pass. Newai/scripts/eval_loso_3arch.pyreuses the_load_sessionexternal-data workaround +_load_clipper-clip cache loader from PR #165 — no helper duplication.Headline results (Netflix Public corpus, 9 folds × 30 epochs each)
mlp_smallmlp_mediumlinearConfirms ADR-0203's earlier single-split finding under proper LOSO:
mlp_smallwins on ranking — defaultvmaf_tiny_v1.onnxstays.mlp_mediumwins on absolute fit (~27 % RMSE reduction) — alternatevmaf_tiny_v1_medium.onnxstays for absolute-VMAF-agreement users.linearis a clear sanity floor (PLCC 0.37 → 6 features carry strong non-linear signal). Does not ship.FoxBird is the per-fold outlier on both MLPs (lowest PLCC ≈ 0.93 on both arch). Content-distribution mismatch within the existing 9-source Netflix Public corpus, not arch-specific overfitting. The corpus is the full Netflix Public Dataset already at
.workingdir2/netflix/— so the unblocker for that variance is a different / larger training corpus (KoNViD-1k, BVI-DVC, AOM-CTC source sets), not "more Netflix Public".What changed
ai/scripts/eval_loso_3arch.pydocs/research/0023-loso-3arch-results.mdCHANGELOG.mddocs/rebase-notes.mdDeep-dive deliverables (ADR-0108)
docs/research/0023-loso-3arch-results.mddocs/rebase-notes.mdentry 0072Test plan
pre-commit run --fileson touched files — passedpython ai/scripts/eval_loso_3arch.py— reproduces the headline numbers (PLCC 0.9808 / 0.9727 / 0.3679 across the three arch)_load_sessionhelper🤖 Generated with Claude Code