Skip to content

nav: 32 validation seeds and zeroth-order fine-tuning on Jolt reach (P8b); P8d on the roadmap - #723

Merged
transfix merged 6 commits into
masterfrom
feat/p8b-val32
Oct 24, 2026
Merged

transfix merged 6 commits into
masterfrom
feat/p8b-val32

Conversation

@transfix

@transfix transfix commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

P8b's follow-up after #717 (Joe: "try 32 validation seeds", then "start the zeroth-order fine-tune on Jolt reach"), and the roadmap's next items ("add the four-wheel plant to the roadmap, you build it"; "ext-force port before P8c is fine, P8c after P8d").

32 validation seeds (now the selection test's default)

  • At 1e-4 every 10 steps, the 8-seed run's +1.9 held-out lead over the seed was mostly selection luck: with 32 seeds the dynamic policy leads the seed by +0.6 [-1.3, +2.7] and the point-mass one by +0.3 [-2.2, +3.0].
  • At 2e-4 every 30 steps the same checkpoints win (+2.6 [+0.3, +4.7] over point mass).
  • The smooth 32-seed validation curves rise 1.4 to 2.7 points at best, so the training loss moves Jolt reach by about a point.

Zeroth-order fine-tuning on Jolt reach

cvc::physics::es_finetune_on_plant (inc/cvc/physics/nav_es.h):

  • Antithetic evolution strategies over a policy's flat weights (coef_mlp::with_flat_weights, export_flat's inverse), with centred ranks and Adam.
  • Each iteration uses fresh city seeds, shared by the whole population. The centre is validated on 32 seeds, and the best is kept, the start included.
  • es_options::tail = 3 searches only the output bias, which shifts the coefficient basin.
  • The noise uses a portable Box-Muller, so runs repeat across standard libraries.
  • A batch reach_on_plant scores many policies on one thread pool.

Measured:

What Result
Leverage: the seed's basin halved or doubled per coefficient, 32 validation seeds 46.0% to 52.0% against the seed's 50.2%; random weight noise on the trained policy costs 0.7 to 4 points
ES over all 4,739 weights (40 x 16 pairs, sigma 0.02) never beat its start on validation
ES over the basin, from the trained policy / from the seed no gain / -0.1 [-2.3, +2.1] held out
A grid over the constant basin, best (alpha, beta, gamma) = (1, 9, 4) 55.4% on the 20 held-out seeds against the seed's 51.7%: +3.8 [+1.9, +5.7]

The grid's winner is one step from a cliff: a goal spring too strong for the damping collapses reach to about 20%. The policy's leverage on Jolt is mostly its basin. A learned, state-dependent policy that beats the seed is still open.

Tests:

  • NavCoefMlp.WithFlatWeightsInvertsExportFlat and NavPlant.EsFinetuneOnPlantMechanics run in the normal suite. The mechanics test checks that a batch scores what each policy scores alone, that the trace is right, and that reruns repeat exactly.
  • The heavy runs are NavPlantConvergence.EsFinetuneOnJoltReach (P8B_ES_*), CoefficientLeverageOnJoltReach and BasinGridOnJoltReach.

Roadmap

docs/roadmap/NAV-VEHICLE-PHYSICS-ROADMAP.md's P8 plan adds:

  • the external-force port, agreed with cvcdbg's DBG session for its comm-network trainer;
  • P8d, a two-track (four-wheel) dynamic plant: per-wheel contacts, mu and terrain height, spring-damper corners, Pacejka per tire, a VJP, and gates including the single-track limit.

The order is the port, P8d, then P8c.

…reach a point at most (P8b)

NavPlantConvergence.CheckpointSelectionOnJoltReach now validates on 32 seeds (P8B_SELECT_VAL).
At 1e-4 / 300 steps / every 10, the 8-seed run's held-out leads were mostly selection luck: with
32 seeds the dynamic policy leads the seed by +0.6 [-1.3, +2.7] and the point-mass one by +0.3
[-2.2, +3.0]. At 2e-4 / 300 / every 30 the same checkpoints win (+2.6 [+0.3, +4.7] over point
mass, +1.0 [-1.2, +3.4] over the seed). The smooth 32-seed curves rise 1.4 to 2.7 points at
best, so the next lever is the training signal itself. Recorded in NAV_TRAINING.md and the
roadmap.
…seed (P8b); P8d on the roadmap

cvc::physics::es_finetune_on_plant (nav_es.h): antithetic evolution strategies over a policy's
flat weights (coef_mlp::with_flat_weights, export_flat's inverse), centred ranks and Adam, fresh
city seeds an iteration shared by the population, the centre validated on 32 seeds and the best
kept. es_options::tail = 3 searches only the output bias (the coefficient basin). A batch
reach_on_plant scores many policies on one thread pool.

Measured (docs/NAV_TRAINING.md): ES over all weights and over the basin found nothing; the
trained policy sits near a local top and ES steps move reach less than the plant's chaos. The
leverage diagnostic shows the basin moves reach by about 4 points. A grid over the constant basin
finds (1, 9, 4), which reaches 55.4% on the gate's 20 held-out seeds against the seed's 51.7%:
+3.8 [+1.9, +5.7], one grid step from a cliff where reach collapses to about 20%.

The roadmap adds the external-force port and P8d (a four-wheel dynamic plant), in the order
Joe set: the port, P8d, then P8c.
…est, as the package jobs do

The recipe jobs ran every test, the Jolt convergence experiments included; with P8b's three more
(the ES fine-tune, the coefficient leverage, the basin grid) a Debug recipe ran past its 90 minutes
(DynamicTrainedPolicyAgainstPointMassOnJolt alone takes 25 of them in Debug). The libcvc recipe's
ctest now takes CVC_CTEST_EXCLUDE (build.sh, build.ps1), and ci-recipe.yml passes ci.yml's
STRESS_REGEX, the suites the package jobs already leave out.
@transfix
transfix merged commit 0001767 into master Oct 24, 2026
24 checks passed
@transfix
transfix deleted the feat/p8b-val32 branch October 29, 2026 20:52
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