↑↓ move Enter open ⌘K find from any page 256 of 256 tabs
Loading the recorded run…

What V-JEPA 2 is

V-JEPA 2 learns about the world by watching video, with no labels and no actions. It is a joint-embedding predictive architecture (JEPA): hide parts of a clip, and train a network to predict the latent representations of the hidden parts from the visible ones. It never predicts pixels, so it does not spend capacity on details no one could predict, such as the exact texture of a leaf, and learns the parts that are predictable, such as how objects move. Assran et al. pretrained it on over a million hours of internet video, then trained an action-conditioned predictor, V-JEPA 2-AC, on less than 62 hours of robot video from DROID and used it to plan.

The page follows that path on one DROID episode, a robot arm told to put the orange rubber duck into the pot. Its four parts are the page's four numbered sections: the encoder, the JEPA objective, V-JEPA 2-AC, and one step of planning.

Tubelets and the encoder

The ViT-L encoder (24 layers, width 1,024, 16 heads of 64 dimensions) reads 16 frames at 256 × 256. A 3-D convolution whose kernel equals its stride cuts the clip into non-overlapping tubelets of 2 frames × 16 × 16 pixels, and maps each one, 2 × 16 × 16 × 3 = 1,536 numbers, to a vector of 1,024: 8 × 16 × 16 = 2,048 tokens. No position vector is added. Position enters only inside attention, through 3-D rotary position embeddings (RoPE): parts of each head's query and key are rotated by angles proportional to the token's time slice, row and column, so that depends on the offset between two tokens rather than on where they are.

Each layer is a standard transformer block: self-attention over all 2,048 tubelets, then an MLP of width 4,096, each added to a residual stream. The Where 24 layers look card shows, for the duck or the pot, how much weight each head of each layer puts on other time slices or on the same patch.

The JEPA objective

Pretraining hides most of the clip with masks made of blocks that run through all time slices, such as 8 blocks of 15 % of the frame or 2 blocks of 70 %. The context encoder sees only the visible tubelets (512 of the 2,048 under the first mask, 608 under the second). A narrower predictor (12 layers, width 384) receives their latents plus a learned mask token at every hidden position and predicts each hidden tubelet's latent. The targets come from a target encoder, a copy of the encoder whose weights are an exponential moving average of the context encoder's, run on the whole clip, layer-normalised and given no gradient. The loss is the mean L1 distance over the hidden set :

If both sides were trained freely, the encoder could make the task trivial by mapping every clip to the same vector. The stop-gradient, the slowly moving target and the separate predictor prevent that collapse, as they do in BYOL. The Error per hidden tubelet panel shows this loss tubelet by tubelet for one recorded pretraining forward pass; the recorded losses are 0.587 under the short-range mask and 0.605 under the long-range one.

V-JEPA 2-AC: the latent state under robot actions

For planning, the giant encoder (ViT-g, 40 layers, width 1,408, 1.01 billion parameters) is frozen and encodes each frame on its own into 256 latent tokens. V-JEPA 2-AC adds a 24-layer predictor that takes, for each of 8 frames, an action token, a state token (the arm's end-effector pose and gripper) and the frame's 256 latents. Block-causal attention lets frame read frames and their actions, and the predictor's output at frame is its guess of frame 's latents. An action is the change of end-effector pose and gripper from one frame to the next. Following the paper, the predictor is trained with a teacher-forced loss and a short rollout loss in which it feeds on its own predictions.

The Error by step chart compares three runs on this episode: teacher-forced (each step from the real latents), rolled out through the recorded actions, and rolled out with every action set to zero. Teacher-forced errors fall from 0.385 to 0.305 over the 7 steps, while the rollout's grow from 0.385 to 0.414. With zero actions the rollout's error stays within 0.005 of the one with the real actions, so on this episode the actions change the predictions little.

Planning one step

V-JEPA 2-AC plans towards an image goal. Encode the current frame and the goal frame, roll the predictor through a candidate sequence of actions, and score the sequence by an energy, the mean L1 distance between the predicted final latent and the goal's:

The page minimises it with the cross-entropy method (CEM): sample 400 two-action plans from a Gaussian, keep the 10 with the lowest energy, refit the Gaussian's mean and spread to them, and repeat for 10 iterations, with the rotations held at 0. The goal is the frame 2 actions later. The search finds a plan the model rates closer to the goal than what the robot actually did (energy 0.3676 against 0.3863), but it is not what the robot did, and the Energy chart shows how little the whole search lowers the energy. A real controller would execute the first action and plan again from the next frame.

Where it came from

LeCun's 2022 position paper proposed joint-embedding predictive architectures as a route to world models. I-JEPA (2023) applied the idea to images, predicting the latents of masked blocks; V-JEPA (2024) to video; V-JEPA 2 (2025) scaled the data and model and added the action-conditioned predictor. TD-MPC2, the first tab, also plans in a latent space, but learns it from rewards; the pixel world models later in this explainer (DIAMOND, Oasis, Matrix-Game) generate the next frame itself.

Papers

  1. V-JEPA 2: Self-Supervised Video Models Enable Understanding, Prediction and Planning Mido Assran et al. · arXiv 2025 The encoders and V-JEPA 2-AC this tab records, and planning with the cross-entropy method towards image goals.
  2. Revisiting Feature Prediction for Learning Visual Representations from Video Adrien Bardes et al. · arXiv 2024 V-JEPA: masked feature prediction on video with multi-block masks and an EMA target encoder.
  3. Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture Mahmoud Assran et al. · CVPR 2023 I-JEPA: predicting the latents of masked image blocks instead of their pixels.
  4. Bootstrap your own latent: A new approach to self-supervised Learning Jean-Bastien Grill et al. · NeurIPS 2020 A predictor against a moving-average target network, the setup that keeps JEPA training from collapsing.
  5. RoFormer: Enhanced Transformer with Rotary Position Embedding Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, Yunfeng Liu · arXiv 2021 Rotary position embeddings, applied here along time, rows and columns.
  6. DROID: A Large-Scale In-The-Wild Robot Manipulation Dataset Alexander Khazatsky et al. · RSS 2024 The robot dataset V-JEPA 2-AC is trained on and the episode this tab shows.
  7. The Cross-Entropy Method for Combinatorial and Continuous Optimization Reuven Rubinstein · Methodology and Computing in Applied Probability 1999 The cross-entropy method: sample, keep the best, refit the sampling distribution, repeat.

See also