Video understanding, tracking, generation, and world models · Video self-supervision · VID025 · Training method
V-JEPA
Predicts missing video regions in a learned representation space rather than reconstructing pixels. A target encoder supplies latent targets, and a predictor uses visible context to estimate them, aiming to retain…
In CodeSplash
Documented in the Academy only. There's no Set up button.
- Availability
- Explained here
- Code example
- Component demo, not a trained model
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Predicts missing video regions in a learned representation space rather than reconstructing pixels. A target encoder supplies latent targets, and a predictor uses visible context to estimate them, aiming to retain predictable semantic structure.
Question / objective
Learn transferable video representations from automatically constructed targets or weak cross-modal supervision. This is a learning or inference objective, not a test of a statistical null hypothesis.
Method type and supervision
training-method · Video self-supervision. Self-supervised pretraining; cross-modal variants also use weak paired language supervision.
Architecture / computational structure
Context encoder, predictor and stopped-gradient moving-average target encoder.
Assumptions
Inputs must satisfy the temporal, modality and annotation protocol described below. Latent prediction is not automatically causal forecasting, nor a calibrated probability distribution over futures. Frozen-feature quality depends on the probe and what information the representation discards.
Formula / computational definition
is a schematic feature-prediction loss. stops gradients; the target encoder is updated by an exponential moving average.
Parameters and notation
Learned/estimated quantities: Encoder and predictor/projection weights are learned; target-network EMA values are state updates, and masks/negative policies are design choices. Symbols specific to the objective are defined with the equation. Hyperparameters and design choices: Mask geometry, target/predictor dimensions, target normalization, EMA schedule and clip sampling control training.
Fitting, fine-tuning, and adaptation
Evaluate frozen features first. Adapt a task head before altering the representation; predictor tuning for latent forecasting is distinct from classification adaptation. Use a separate adaptation validation split, monitor the target metric and retention of previously useful behavior, and save the exact preprocessing and training configuration.
How to use and calibrate
Fix the input protocol and target before fitting; choose design settings on held-out source videos, then freeze the evaluation procedure. Evaluate frozen probes, motion understanding and transfer under explicit data-overlap controls.
Example application
Learn reusable motion representations without reconstructing texture.
Interpretation / pitfalls
Watch out
An optimized training objective or a favorable example does not establish generalization. Evaluate frozen probes, motion understanding and transfer under explicit data-overlap controls. The example below isolates one mechanism and cannot substantiate a full-model benchmark claim.
Python and R code examples
Component: Compare latent predictions with fixed target-encoder features. Dependencies: NumPy in Python; base R in R; run the shared setup above. Python component: executed successfully. R component: unexecuted. No complete model training or pretrained inference was executed.
Full implementation route — Python: Reproduce the paper's encoder/predictor/target update, taking care that target gradients are disabled. R: Illustrate stop-gradient targets as fixed R arrays; use reticulate for differentiable training and frozen-feature extraction.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Component demo, not a trained model — Compare latent predictions with fixed target-encoder features.
Shared setup for this chapter
import numpy as np
def softmax(x):
z = np.asarray(x, dtype=float)
e = np.exp(z - z.max())
return e / e.sum()
target = np.array([[.2,.8],[.7,.3]]) # fixed: no gradients here
predicted = np.array([[.3,.7],[.6,.4]])
latent_l1 = np.abs(predicted-target).mean()
print("latent L1",latent_l1)
# A real autograd implementation must detach the target branch.
Component demo, not a trained model — Compare latent predictions with fixed target-encoder features.
Shared setup for this chapter
softmax <- function(x) {
e <- exp(x - max(x))
e / sum(e)
}
target <- rbind(c(.2,.8),c(.7,.3)) # fixed target features
predicted <- rbind(c(.3,.7),c(.6,.4))
print(mean(abs(predicted-target)))
# Real differentiable training must stop target-branch gradients.
Sources
- Source 1arxiv.org
From the CodeSplash reference, entry VID025.