Repository navigation
fix(coef_train): align native-surrogate default lr to the M10 corrected barrier - #63
Merged
Merged
Conversation
…ed barrier train_native() hardcoded the surrogate refinement lr at 2e-4 — the pre-M10 value — which OVERRODE the C++ coef_trainer's own default when dispatching to the native backend. The M10 barrier fix (#61) made the IPC barrier steeper (b'' gains +1/d^2), so 2e-4 now overshoots and DEGRADES the trained policy: on the city scene (seed 0), trained reach falls 71% -> 26%. Retuned to 5e-5, matching libcvc's coef_train.h default (1e-4..1e-5 all recover; 5e-5 is mid-band). The bicycle path keeps its own 1e-5. The torch imitation trainer (lr=1e-3) and scripts/train_on_geometry.py (lr=3e-4) are different regimes not covered by the surrogate sweep and are left unchanged pending their own validation. See the training guide's corrected-barrier section.
Merged
transfix
added a commit
that referenced
this pull request
Sep 8, 2026
Two fixes since v0.2.0, both parts of the M10 IPC-barrier correction: - #61: the IPC wall-barrier FORCE is now the true gradient of the barrier b(d) = -(d-d_hat)^2 * log(d/d_hat). The shipped force carried a spurious (d-d_hat)+1 factor that opened an attraction band inside d_hat; corrected to the analytic derivative -(2*(d-d_hat)*log(d/d_hat) + (d-d_hat)^2/d), verified against autograd. - #63: the native-surrogate trainer default lr retuned 2e-4 -> 5e-5. The corrected (steeper) barrier made the old rate overshoot and DEGRADE the policy (city seed-0 trained reach 71% -> 26% at 2e-4; 1e-4..1e-5 recover). Fixes only, pre-1.0 -> patch bump. Version lives in pyproject.toml; the three cvcpkg columns mirror it in upstream_version and the package.files dist-info path. cvc_revision stays 1 (a new upstream version restarts its revision count, and 0.2.0 was already revision 1).
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.
train_native()hardcoded the surrogate refinement lr at the pre-M102e-4, overriding the C++coef_trainerdefault when dispatching to the native backend. The M10 barrier fix (#61) made the barrier steeper, so2e-4overshoots and degrades the policy — city seed-0 trained reach 71%→26%. Retuned to 5e-5 (matching libcvccoef_train.h; 1e-4..1e-5 all recover). Bicycle keeps its own1e-5. The torch imitation (1e-3) andtrain_on_geometry.py(3e-4) regimes are left for their own sweep.