Align JEPA supervision with leakage-free future targets#8
Open
mehulsuresh wants to merge 1 commit intoginwind:mainfrom
Open
Align JEPA supervision with leakage-free future targets#8mehulsuresh wants to merge 1 commit intoginwind:mainfrom
mehulsuresh wants to merge 1 commit intoginwind:mainfrom
Conversation
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.
Summary
This PR adds an opt-in JEPA supervision path for
lerobot_datasetsthat constructs future-shifted target clips and encodes them separately from the context clip.When
datasets.vla_data.video_target_shift_stepsis0, behavior is unchanged.When
video_target_shift_stepsis set to one encoder tubelet, the dataloader emits:VLA_JEPA.forward()then encodes those clips separately instead of deriving both context and target states from a single encoded video window.Paper Alignment
The paper describes VLA-JEPA as "leakage-free state prediction" and says future frames should be used only as supervision targets, not as inputs to the learner (paper, HTML).
This PR moves the implementation toward that setup:
video_target_shift_stepsis enabled