Skip to content

Nav: roll back to the best checkpoint once training has climbed (Jolt Humvee, +2.0 held out) - #950

Merged
transfix merged 6 commits into
masterfrom
feat/nav-train-rollback
Nov 1, 2026
Merged

transfix merged 6 commits into
masterfrom
feat/nav-train-rollback

Conversation

@transfix

Copy link
Copy Markdown
Owner

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_coll 20 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 to train()). 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.
  • Armed only once the run has climbed. Rollback waits until the best checkpoint is more than the margin over the first one. Before the climb, validation dips under the seed's level (0.40 to 0.36 by step 150 at w_coll 10). Without arming, the rollback sweep sent both w_coll 10 runs back to the seed at half the learning rate, and they never climbed (held out 42.8% and 40.5%).
  • The Jolt experiment (nav_plant_test, CVC_JOLT_TRAIN_EXPERIMENT=1) takes JOLT_EXP_ROLLBACK and JOLT_EXP_ROLLBACK_SCALE.
  • Results are written up in docs/NAV_TRAINING.md, with checkpoint_every and 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.

arm (training seed) held out selected step validation: selected / step 1000 rollbacks
w_coll 10 (1) 70.9% 650 0.71 / 0.69 2
w_coll 10 (2) 73.2% 575 0.69 / 0.68 1
w_coll 20 (1) 73.8% 350 0.72 / 0.72 3
w_coll 20 (2) 72.5% 575 0.71 / 0.69 2

Pooled, the four runs reach 72.6% against #942's w_coll 10 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. By w_coll:

  • w_coll 20: +2.5 [+0.7, +4.3]
  • w_coll 10: +1.5 [−0.4, +3.3]

Rollback does not raise the peak: w_coll 20 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).

…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.
@transfix
transfix deleted the branch feat/jolt-exp-results November 1, 2026 15:21
@transfix transfix closed this Nov 1, 2026
@transfix transfix reopened this Nov 1, 2026
@transfix
transfix changed the base branch from feat/jolt-exp-results to master November 1, 2026 15:23
…back

# Conflicts:
#	docs/NAV_TRAINING.md
#	src/cvc/tests/nav_plant_test.cpp
@transfix
transfix merged commit 8e4651e into master Nov 1, 2026
27 checks passed
@transfix
transfix deleted the feat/nav-train-rollback branch November 1, 2026 19:09
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