Repository navigation
Nav: roll back to the best checkpoint once training has climbed (Jolt Humvee, +2.0 held out) - #950
Merged
Merged
Conversation
…out reach Jolt and the single-track model train the Humvee to the same held-out reach on Jolt at w_coll 10 (70.3-70.8% against 70.8-72.0%, Jolt minus dynamic -0.9 [-2.6, +0.8]); the collision weight is what moved it. The experiment's defaults are now that run, and with JOLT_EXP_OUT it writes each arm's per-seed held-out reach for seed-by-seed comparisons.
On macOS (package-macos release-grpc jobs) the held-out calibration closes the dissipation to 0.152 against a 0.15 bound and its calibrated step's twist is 1% over the uncalibrated one's, and the gradient check's beta and gamma (a quarter of alpha there) flip sign against Jolt's finite differences while the gradient as a whole agrees (ratio 0.92). The calibration's margins are 0.2 and 5%; the per-bias checks apply to components at least a third of the largest (all three on Windows), and the whole-gradient check is unchanged.
train_config::rollback_drop (off by default): a checkpoint that scores more than the margin under the best so far sends training back to the best checkpoint's parameters and Adam moments, and scales the learning rate by rollback_lr_scale from there. The Jolt experiment takes it as JOLT_EXP_ROLLBACK / JOLT_EXP_ROLLBACK_SCALE and prints the rollbacks.
Before the jump, validation on the Jolt Humvee dips under the seed's level (w_coll 10: 0.40 -> 0.36 by step 150), and a rollback there sends the run back to the seed at half the learning rate; neither w_coll 10 run of the rollback sweep ever made the jump (held out 42.8% / 40.5% against 70.4% without rollback). A fall past the margin now rolls back only once the best checkpoint is more than rollback_drop over the first one.
Four runs with rollback_drop 0.03 (w_coll 10 and 20, training seeds 1 and 2) hold their peak to step 1000 and pool to 72.6% held-out reach against 70.6% without (+2.0 [+0.3, +3.7]); the hyperparameter table gains checkpoint_every and the rollback fields.
…back # Conflicts: # docs/NAV_TRAINING.md # src/cvc/tests/nav_plant_test.cpp
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.
Stacked on #942 (base
feat/jolt-exp-results).On the Jolt Humvee, every training run climbs from about 0.40 to about 0.70 validation reach in about 100 steps, then falls back toward the seed's level. In the v6 screen,
w_coll20 was down to 0.44 by step 1000. Results so far have rested on checkpoint selection alone. This PR keeps training at the peak.train_config::rollback_drop/rollback_lr_scale(off by default; they need a fitness passed totrain()). A checkpoint that scores more than the margin under the best goes back to the best checkpoint's parameters and Adam moments, and the learning rate is scaled down from there.w_coll10). Without arming, the rollback sweep sent bothw_coll10 runs back to the seed at half the learning rate, and they never climbed (held out 42.8% and 40.5%).nav_plant_test,CVC_JOLT_TRAIN_EXPERIMENT=1) takesJOLT_EXP_ROLLBACKandJOLT_EXP_ROLLBACK_SCALE.docs/NAV_TRAINING.md, withcheckpoint_everyand the rollback fields added to the hyperparameter table.Measured
Windows MSVC Release. Rollback 0.03, lr halved at each rollback, checkpoints every 25 steps on 32 validation seeds. Held out: 20 seeds × 48 Jolt Humvees × 1000 ticks.
w_coll10 (1)w_coll10 (2)w_coll20 (1)w_coll20 (2)Pooled, the four runs reach 72.6% against #942's
w_coll10 seeds 1 and 2 at 70.6%: +2.0 [+0.3, +3.7]. The interval is a paired bootstrap over the held-out seeds, averaged over the training seeds. Byw_coll:w_coll20: +2.5 [+0.7, +4.3]w_coll10: +1.5 [−0.4, +3.3]Rollback does not raise the peak:
w_coll20 seed 1 selects the same step-350 policy as without it. What it changes is that the last checkpoint stays within 0.03 of the best, where without it validation fell back toward the seed's level (0.40–0.46).Tests
NavCoefTrain.RollbackReturnsToTheBestCheckpoint: a fall past the margin restores the best checkpoint; a fall within it does not; until the rollback, the run matches the same run without one.NavCoefTrain.RollbackIsArmedOnlyAfterTheRunClimbs: falls before the best is a margin over the start are left alone. This test fails without the arming (it rolls back at step 5).