Repository navigation
fix(vla_jepa): pair rotary frequencies with adjacent coordinates - #4835
Maximellerbach merged 2 commits into
Conversation
Publish 18 original paired CUDA runs, unchanged raw archives and checkpoints, and frozen-checkpoint CPU diagnostics with exact feedback and dynamics-defect error decompositions. Preserve mixed outcomes and negative intervention findings. Component evidence accompanying huggingface#4835; production model code is unchanged. AI assistance was used for implementation, analysis and separate automated review. Signed-off-by: ShenHan <132526278+Han-Shen-math@users.noreply.github.com>
|
AI-assisted component validation and a mathematical diagnosis of mixed rollout results for this correction. Reproducible scripts, complete logs, frozen checkpoints, checksums and the derivation are published here: study package, report. I used the actual ActionConditionedVideoPredictor at pinned source commit Selected CUDA mathematical checks passed 8/8 for corrected and 2/8 for old (rotation, norm, same-position inner product, joint position shift, dim=2, reference input gradients, finite attention forward/backward and causal prefix). These are selected reference checks, not exhaustive backend or finite-difference gradcheck coverage.
All nine pairs improve the primary one-step metric. All three cross-fold seed means worsen the 15-step recursive feature metric. The corrected horizon mean already becomes worse at prediction 7, still within the trained eight-frame input length. Post-hoc CPU diagnosis uses all 18 frozen checkpoints, with no retraining. The exact decomposition For decoded position, the generator has the exact recurrence Eight-frame clipping retains relative degradation (+3.00%). Two-frame clipping and known-feature re-encoding flip the relative ranking, but are not established fixes: re-encoding worsens absolute position accuracy for both variants. All mixed/negative findings are retained. Mac regeneration has a different data hash from Windows. Original CUDA recursive horizons reproduce numerically to maximum absolute MSE difference |
|
Thanks for the review. The current revision links V-JEPA 2 #15 and #75 in both the helper and the training-compatibility notes, credits the original correction, and removes the added test block as requested. The diff is now limited to the helper and documentation. Existing CPU world-model checks and focused mathematical regressions passed during preparation; the final files also pass pinned Ruff and Prettier. Checkpoint-quality and robot-performance improvements remain unverified. The PR is now ready for review. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
Follow-up on #4835 (pairwise rotary frequencies in the VLA-JEPA world predictor), on the docs line saying pretrained Setup:
new / old = 1.47 (95 % CI 1.46 to 1.48), new − old = +0.556 (0.547 to 0.564). The new rotary is worse on 25 of 25 So continuing training from an existing checkpoint (the documented Suggestion: an opt-in config flag, for example Caveat: one checkpoint (a small SO-101 fine-tune), evaluated on its own training distribution. I could not run Reproduce (Jetson Orin NX, lerobot |
Summary / Motivation
VLA-JEPA rotates adjacent query/key coordinate pairs, but repeats the frequency vector as two complete blocks. The two coordinates of a pair therefore use different angles, breaking RoPE's norm and relative-position inner-product invariants. For example, rotating
[1, 2, 3, 4]at position 1 changes its norm from 5.4772 to 4.9628.Repeat each frequency twice and retain the position axis. This also fixes broadcasting for a single frequency. The change is confined to the training-only world predictor.
Related issues and source
This applies the known pairwise correction proposed by echosprint in V-JEPA 2 #15. V-JEPA 2 #75 documented the issue while retaining the original expansion for released-checkpoint compatibility. The source and compatibility rationale are linked in the production helper and documentation.
This is separate from #4116 (multi-horizon world-model training) and #4814 (action-noise handling).
What changed
How was this tested
During preparation of
7f9f6d1on Linux CPU/Python 3.12.14/PyTorch 2.9.1+cpu:tests/policies/vla_jepa/test_world_model.pytests passed with native imports.GPU execution, the complete repository test suite, full pretrained-checkpoint evaluation and closed-loop robot benchmarks were not run. The earlier broad local runs described in the initial body do not establish a full-suite pass for this final revision. The four upstream test/documentation/quality/security workflows require maintainer approval; hosted CI has not passed.
Checklist
Reviewer notes
Significant AI assistance was used for source analysis, implementation, testing and this description. Independent human review is not claimed. Ready for maintainer review of this scoped correction; pretrained model-quality and robot-performance improvements are unverified.