Repository navigation
grl-snam train: the robot at its real size on Austin, and an objective that is the task - #182
Merged
Merged
Conversation
… term that has one Truncate the backward every 7 rollout steps (--bptt-window) and let the collision term carry gradient (--col-grad). Neither changes a forward value; --bptt-window 0 --no-col-grad is the trainer before the fix and still reproduces the published coef_sdf.pt. --grad-terms-every records each loss term's gradient norm in the history (grad_norm.terms.<term>).
…nd the measure again The source (gradient_source.py), the pilot of each half of the fix, the five-seed retrain, every arm on held-out Austin pairs, the procedural city and arms-eval's cases, and learn-report. sdf_arms.py and objective_arms.py gain the constant_final arm (a constant at the final net's own mean coefficients).
…ve that is the task The physics constants are sim-unit numbers tuned at 20 m per unit; Austin's nav_sdf.npz is 300 m per unit, so the trainer simulated a 270 m/s robot with a 105 m barrier band and a 6 m collision margin. - train_sdf(metres_per_unit=20): the field is read in a 20 m sim frame (sdf_eval.in_frame, the same geometry in metres); pairs are drawn in the npz's frame as before and converted, so a held-out pair is the same place. meta records scale (the sim frame's) and sdf_scale (the npz's). - objective='task': the seek drive's carrot each step, the goal term the share of the possible progress toward arrival not made, the collision margin and temperature in metres (0.4 m), and leg_ticks=1000: each batch row drives one leg across steps until it arrives or times out. - pick='clean-reach': the held-out pick is reach with no penetration tick. - --metres-per-unit 0 --objective end-distance is the trainer before; with --bptt-window 0 --no-col-grad it still reproduces the published coef_sdf.pt bit for bit. - The scorers (sdf_arms.py, objective_arms.py, arms-eval objective-sdf --meta-from) drive every arm in the runs' frame; the demos read a prebuilt npz in the checkpoint's frame. - tests/test_sdf_train_frame.py fails on the trainer before (its robot drives at 270 m/s).
# Conflicts: # experiments/learning_proof/objective_arms.py # experiments/learning_proof/sdf_arms.py # grl_snam/cli.py # grl_snam/tools/sdf_eval.py # grl_snam/tools/train.py # tests/test_sdf_train_divergence.py
…t is the task, and the measure again Austin's nav_sdf.npz is 300 m per unit and the physics constants mean 20 m, so §§2-8 trained and scored a 270 m/s robot. In the 20 m frame the untrained net reaches 28.6% of the held-out test pairs (6.4% before). With the task objective the held-out objective beats every arm, held-out clean reach rises on every seed (+0.70 [+0.59, +0.86] points along the run) and every pick is after step 0; on the 1024 test pairs the gain against untrained is +0.6 [-0.2, +1.4] (seek drive) and +1.5 [-0.2, +3.2] (sim_world), the seek drive's matched by a constant at the net's own mean. The city ties; on coef's ice-band city the final nets reach more and penetrate less than every arm. §7's and §8's commands name the flags that give their trainer. Files in docs/learning-validation/world-units/ (local paths scrubbed).
transfix
marked this pull request as ready for review
November 15, 2026 00:56
…the geometry doc and the Ariadne README - README: what build-sdf's frame is and that train reads it at 20 m per unit; arms-eval objective-sdf scores in the run's frame and objective, --meta-from for arms from another frame. - docs/cvc-nav-and-grl-snam-guide.md: a gotcha on sim units vs the npz's frame and meta["scale"]. - docs/training-navigation-on-geometry.md: the SDF commands are grl-snam build-sdf / grl-snam train (scripts/build_sdf.py and train_sdf.py are gone), the file table points at grl_snam/, and a units note. - grl_snam/ariadne/README.md: --grl-policy drives in the frame its checkpoint records.
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.
Follow-up to #179. The change is measured at a6c3199; the branch merges
main(with #179's squash) on top. The record isdocs/learning-validation.md§9.Why
#179 fixed the divergence, but the retrain reached fewer held-out Austin goals than the untrained net. The cause is deeper than the collision margin.
d_hat0.35,vmax0.9, the carrot 1.8. libcvc's carrot machine hard-codes its own the same way.grl-snam sdfframes a map at ~10 units across its region, so Austin'snav_sdf.npzis 300 m per unit.What
--metres-per-unit 20(default). The field is read in a 20 m sim frame (sdf_eval.in_frame): the same geometry in metres, with a 3 m, 18 m/s robot and a 7 m barrier band.meta["scale"]is the sim frame's andmeta["sdf_scale"]the npz's.--objective task(default):--leg-ticks 1000: each batch row drives a whole 300-600 m leg across optimizer steps.--pick clean-reach(default): held-out reach with no penetration tick.--val-ticksnow defaults to 1000.--metres-per-unit 0 --objective end-distanceis the trainer before; with--bptt-window 0 --no-col-gradit reproduces the publishedcoef_sdf.ptbit for bit (checked).sdf_arms.py,objective_arms.py, andarms-eval --meta-from ARM. On §8's runs the new path takes the same settings and the same test pairs, bit for bit (checked). The demos andcaptureread a prebuilt npz in the checkpoint's frame.tests/test_sdf_train_frame.pyfails on grl-snam train: why the SDF retrain diverged, the fix, and the learning measure again #179's code (its robot drives at 270 m/s). It also covers frame invariance of the task objective, the arrival term, the pick and the persistent legs.The measure (§8.9 rerun: 5 seeds x 4000, the same split, all arms incl.
constant_final)learn-report+0.70 points [+0.59, +0.86]), and every pick is after step 0 (steps 700-2300; grl-snam train: why the SDF retrain diverged, the fix, and the learning measure again #179's were all step 0).sim_world+1.5 [-0.2, +3.2];constant_finalincluded.learn-report: 19/47 pass on the picks (11/47 in grl-snam train: why the SDF retrain diverged, the fix, and the learning measure again #179), 27/47 with--trained final(19/47).Do not republish
grl-snam-weightson these runs without an explicit go-ahead. No Austin gain is significant, and a checkpoint in the 20 m frame changes the demos' robot to its real size, which deserves its own check.