Skip to content

Evaluate five-seed QFL and serve-box arms, then retune the InPlay decoder - #44

Draft
MaxLinCode wants to merge 8 commits into
codex/rally-boundary-qflfrom
codex/qfl-diagonal-followup
Draft

MaxLinCode wants to merge 8 commits into
codex/rally-boundary-qflfrom
codex/qfl-diagonal-followup

Conversation

@MaxLinCode

@MaxLinCode MaxLinCode commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Runs the matched QFL × diagonal serve-box factorial across the standard five seeds (1729–1733) and four held-out camera folds, with the production decoder frozen.
  • Finds no resolved model-side gain: QFL's only significant effect is more false starts during reviewed breaks; the diagonal serve-box arm is directionally best but its interval-F1 CI includes zero.
  • Re-tunes the decoder on those saved folds and confirms the frozen choice once on the November 27 holdout: interval F1 0.855 → 0.882, false starts/min 1.23 → 0.61, at ~2.7 frames later rally ends.
  • Recommends the decoder change (post-processing only) and no model change. The release manifest is not changed in this PR.

Full report: docs/qfl-diagonal-decoder-followup.md.

Model factorial

Seven-source development data, four camera-held-out folds, 25 epochs, batch 16, seeds 1729–1733 (80 fits). Arms: baseline, QFL, diagonal serve boxes, QFL + diagonal. Every fold uses the fixed production decoder (0.40 / 0.35 / 0.5 s / 0.3 s).

Arm Interval F1 End MAE (frames) False starts/min
baseline 0.8098 ± 0.0124 19.31 ± 0.61 0.77
QFL 0.8189 ± 0.0083 18.83 ± 0.53 1.15
diagonal 0.8207 ± 0.0094 18.48 ± 0.45 0.74
QFL + diagonal 0.8013 ± 0.0118 19.33 ± 0.98 0.95

Paired deltas vs baseline (n = 20, 95% CI):

  • QFL: ΔF1 +0.0091 [−0.0264, +0.0446]; Δ false starts/min +0.3715 [+0.0416, +0.7015].
  • Diagonal: ΔF1 +0.0109 [−0.0203, +0.0420]; Δ end MAE −0.83 frames (ns).
  • QFL + diagonal: ΔF1 −0.0085 [−0.0311, +0.0142].

The diagonal arm wins 14/20 fold-seed F1 comparisons and is the only consistently non-harmful model change, but the effect is not resolved (seed-level t₄ = 2.37, p ≈ 0.077).

Decoder factorial

Preregistered grid: max_gap_seconds {0.75, 1.0, 1.5, 2.0} × minimum_duration_seconds {0.3, 0.5}; threshold/hysteresis/edge settings fixed. Leave-one-camera-out selection within each seed; deployment config is the modal choice.

Development (production-recipe arm, 20 cells):

gap / min Interval F1 False starts/min End MAE
2.0 / 0.5 0.860 0.33 21.3
1.5 / 0.5 0.856 0.42 20.3
1.0 / 0.5 0.848 0.47 19.7
0.5 / 0.3 (production) 0.810 0.77 19.1

LOCO-selected vs production: ΔF1 +0.0446 [+0.0284, +0.0608], Δ false starts/min −0.3916 [−0.5197, −0.2635], Δ end MAE +1.86 frames [+0.40, +3.31]. Modal deployment choice: 2.0 s / 0.5 s (11/20).

Holdout, one shot with the frozen config:

Metric Production Frozen 2.0 / 0.5
Pooled interval F1 0.855 0.882
Match-macro interval F1 0.855 0.884
Precision 0.764 0.831
Recall 0.970 0.940
False starts/min 1.23 0.61
False splits 3 1
End MAE (shared 157) 25.45 28.11

Decision

Adopt max gap 2.0 s / minimum duration 0.5 s as a post-processing-only change, keeping threshold 0.40, continuation 0.35, and edge preservation. No retraining or checkpoint swap. The ~90 ms later rally ends are the tradeoff; 1.5 s / 0.5 s is the unconfirmed development compromise if latency is a hard constraint.

Dependencies

Stacked on #39 (codex/rally-boundary-qfl) and also carries the serve-box commit from #43 because the factorial needs both features. Please retarget to main after #39 and #43 land; do not merge standalone.

Validation

  • 24 passed in tests/test_rally_partitions.py, tests/test_rally_training_recovery.py, tests/test_rally_serve_boxes.py, tests/test_shortcut_diagnostic.py.
  • Added coverage that the frozen-decoder path never tunes on validation, writes test_decoder, and skips the all-source production fit.
  • Holdout scoring reproduces the frozen production reference before decoding the new config.
  • No production decoder defaults are changed by this PR.

Caveats: the holdout had already been used for model-arm comparisons, so this is a single frozen-decoder confirmation rather than a pristine second holdout. The decoder grid was informed by an earlier exploratory sweep, but the selection/deployment/confirmation rules were frozen before the factorial run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant