vjepa_vitl16_224
Video ViT encoders trained by predicting masked spatio-temporal features in latent space, with no pixel reconstruction.
Video · 485 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Video
- Parameters
- 305.5M
- Operations
- 485
- Framework
- PyTorch
- Recurrent
- No
- Published
- Transactions on machine learning research (arXiv 2024)
- Cited by
- 870 (as of 22 November 2026)
- Authors
- Adrien Bardes, Quentin Garrido, Jean Ponce and others
- License
- CC-BY-NC-4.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m11159
- Graph hash
- 2786112c761d80fd323f7aa6e1a866b188c18986d1881f80987919591289a6c9
- Skeleton hash
- 90036261a3e911ae1a41ea15a342858c157654c8fb8aa1ae6a92649cc988b414
- Architecture hash
- 6490aa0f0150db610ccd4fdaee0af155ec0663700503a7c75b2c56d5d92edbe4
- Diagram SHA-256
- 622f86bb6e87fd1861aedbd71ae35badb8e2233226b9d598455a75dc81686be0
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
ViT-L/16 encoder processing the video at a spatial resolution of 224, trained with a batch size of 3072.
V-JEPA is a collection of vision models trained solely with a feature prediction objective, without pretrained image encoders, text, negative examples, reconstruction or other sources of supervision. The models are trained on 2 million videos collected from public datasets and are evaluated on downstream image and video tasks. The authors report that predicting video features leads to versatile visual representations that perform well on both motion and appearance-based tasks with a frozen backbone.
The architecture is made up of an encoder, which computes the representation of the inputs, and a predictor, which predicts the representation of y from the representation of x. The predictor is conditioned on a variable z indicating the transformation between x and y, which enables distinct predictions for various transformations of x. Training first obtains the input of the x-encoder by dropping tokens from the video clip, and the x-encoder outputs an embedding vector for each input token. The x-encoder outputs are concatenated with learnable mask tokens carrying positional embeddings of the masked spatio-temporal patches, and the predictor outputs an embedding vector for each mask token. The predictor outputs are regressed to the prediction targets, the output of the y-encoder, using an L1 loss. The target encoder is an exponential moving average of the encoder with a stop-gradient, a collapse prevention strategy used earlier for image pretraining.
To process a video with a transformer, the clip is split into a 3D grid of spatio-temporal patches, each a 16 by 16 pixel block spanning 2 consecutive frames, and these tokens are processed directly by the stack of transformer blocks. Two mask types are used: short-range masks, the union of 8 randomly sampled target blocks covering 15% of each frame, and long-range masks, the union of 2 blocks covering 70% of each frame. Pretraining uses VideoMix2M, which combines HowTo100M, Kinetics-400/600/700 and Something-Something-v2 with validation overlap removed, giving approximately 2 million videos. A ViT-L/16, a ViT-H/16 and a ViT-H/16 at 384 resolution are trained on VideoMix2M, each taking a clip of 16 frames sampled with a frameskip of 4. Unlike generative methods with a pixel decoder, V-JEPA has a predictor that makes predictions in latent space.
Key idea. Self-supervised video representation learning by predicting masked spatio-temporal feature targets in latent space with an L1 loss, where the targets come from an exponential-moving-average y-encoder and a predictor conditioned on the masked positions. The largest model, a ViT-H/16 trained only on videos, obtains 81.9% on Kinetics-400, 72.2% on Something-Something-v2 and 77.9% on ImageNet1K.
- v-jepa
- video joint-embedding predictive architecture
- jepa
- feature prediction
- x-encoder
- y-encoder
- predictor
- exponential moving average
- multi-block masking
- videomix2m
- vit-l/16
- vit-h/16
- attentive probe
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{bardes2024revisitingfeaturepredictionlearning,
title={Revisiting Feature Prediction for Learning Visual Representations from Video},
author={Adrien Bardes and Quentin Garrido and Jean Ponce and Xinlei Chen and Michael Rabbat and Yann LeCun and Mahmoud Assran and Nicolas Ballas},
year={2024},
eprint={2404.08471},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2404.08471},
}