Skip to content

CIP-0003 Phase 4 tuning: faster fit_minibatch, chi option, multi-seed and multi-init comparisons - #47

Merged
lawrennd merged 4 commits into
mainfrom
cip0003-phase4-tuning
Nov 28, 2026
Merged

lawrennd merged 4 commits into
mainfrom
cip0003-phase4-tuning

Conversation

@lawrennd

Copy link
Copy Markdown
Member

Summary

  • fit_minibatch no longer recomputes the bound after every parameter write: about 1.8x faster per step.
  • New chi option on DoublyStochasticDeepGP (also via DeepGP(..., inference_method='doubly_stochastic')): hidden-layer kernels start at variance chi/(L-1), as in GPc CIP-0035. Default stays None; it gave no benefit on V8. One test added.
  • V8, oil and CMU scripts: multi-seed runs, converged collapsed baseline (L-BFGS restarts), and four collapsed initialisations per seed chosen by bound.
  • Results and caveats are recorded in backlog/features/2026-11-27_uncollapsed-whitened-core.md.

Findings

  • V8 gate met on all three seeds (L=2: RMSE 0.20 to 0.21; L=3: 0.21 to 0.22; L=1: 0.77).
  • Oil: doubly stochastic 1-NN error 0.03 and reconstruction RMSE 0.18 to 0.20 on every seed; best collapsed run by bound is 0.27 to 0.53 and 0.65 to 1.00. Even the best collapsed run by any metric reconstructs at 0.48.
  • CMU (one seed): collapsed 0.31 to 0.50 across initialisations, doubly stochastic 0.281, with natgrad 0.265.
  • The collapsed bound did not rank runs by quality. A collapsed model trained with the original staged recipe is not tried.

Test plan

  • pytest deepgp (124 passed locally)
  • CI on Python 3.11, 3.12, 3.13

@lawrennd
lawrennd merged commit 3d3771c into main Nov 28, 2026
3 checks passed
@lawrennd
lawrennd deleted the cip0003-phase4-tuning branch November 28, 2026 07:57
@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.30%. Comparing base (76f8fdf) to head (9135264).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   85.13%   85.30%   +0.16%     
==========================================
  Files          25       25              
  Lines        1561     1565       +4     
  Branches      205      206       +1     
==========================================
+ Hits         1329     1335       +6     
+ Misses        184      183       -1     
+ Partials       48       47       -1     
Flag Coverage Δ
unittests 85.30% <100.00%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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