Blog Post
JEPA: Predicting in Representation Space
MAE predicts pixels. Contrastive methods match views. JEPA predicts representations of target regions from context regions — in an abstract space where irrelevant details have already been discarded.
Views: –5 min readCite
The complaint with pixel-level reconstruction is that it forces the model to spend capacity on things that do not matter. To predict the exact RGB values behind a mask, a model has to commit to the precise texture of the fur, the particular fall of the light, the sensor noise in that corner of the frame — none of which is what makes a dog a dog. These details vary endlessly across images of the same content and carry almost no transferable signal, yet a pixel loss grades the model on getting them right. The argument Yann LeCun has pressed is that the prediction target is in the wrong space: a good representation should be invariant to that irrelevant variation, and so should the thing you ask the model to predict.
The architecture
JEPA — Joint Embedding Predictive Architecture, laid out in LeCun's 2022 position paper — keeps the predict-the-missing-part framing and moves the target into latent space. It has two branches. A context encoder maps a context region to an embedding ; a target encoder maps a target region — a different part or view of the same input — to an embedding . A predictor then tries to produce the target's embedding from the context's, conditioned on a variable that encodes where the target sits relative to the context.
The training objective is to make that prediction match the target encoder's output, measured directly in representation space rather than pixel space.
The is a stop-gradient: the target encoder is not updated by this loss, only read from, and that asymmetry is what keeps the whole thing from falling into the trivial solution.
Why it doesn't collapse
The collapse danger is the same one that haunts every joint-embedding method: if both encoders are free to move, the loss is minimized by mapping everything to a constant, at which point and agree at zero cost and the representation is useless. JEPA blocks this on two fronts. First, the target encoder is a stop-gradient copy of the context encoder — typically an exponential moving average of it — so the loss cannot reshape the targets to meet the predictor halfway; the targets are a moving but non-cooperating reference. Second, the predictor is conditioned on , the position of the target relative to the context, so it is being asked a specific question — predict the representation of that region, not just a region. A constant output cannot answer a location-conditioned question, so the degenerate solution stops being a solution. This is a sharper anti-collapse mechanism than BYOL's bare predictor-plus-stop-gradient, precisely because the positional conditioning gives the model something it cannot fake.
What changes versus MAE
The difference from a masked autoencoder is one variable: the target. MAE's target is pixels, living in input space, so the model is graded on reconstructing the raw signal and inherits all the texture-and-lighting burden that comes with it. JEPA's target is , a learned representation produced by the target encoder — and because that encoder is itself trained, it is free to discard pixel-level noise and keep only what is stable and semantic. The predictor never sees pixels; it learns to reason about abstract content, mapping the representation of a context to the representation of a neighbor. The model predicts what is there, not what it looks like down to the texel.
What changes versus contrastive learning
The difference from contrastive methods is structural rather than about the target's space. Contrastive learning enforces a global relation: the whole-image embedding of crop one should match the whole-image embedding of crop two. That collapses each view to a single vector and discards the spatial layout in the process — the same invariance cost Part 2 traced. JEPA instead poses a local, structured prediction: given the representation of a context region, predict the representation of a particular target region at a known relative position. Because the prediction is tied to specific locations, the spatial relationships between regions survive in the representation rather than being averaged away. You get the semantic abstraction of a learned target without paying the contrastive method's spatial tax.
One idea, many modalities
What makes JEPA more than a single model is that the recipe — context encoder, target encoder, location-conditioned predictor, loss in latent space — is modality-agnostic. I-JEPA instantiates it on images, predicting the representations of masked image regions from a visible context block. V-JEPA carries it to video, predicting the representations of masked spatiotemporal regions, which forces the model to encode how scenes evolve over time. A-JEPA applies the same structure to audio, and the template extends to whatever modality you can carve into context and target. Each is the same bet placed on a different signal: predict abstract representations of the missing part, not its raw form. Parts 5 and 6 of this series take the image and video cases apart in detail — I-JEPA first, then V-JEPA and what predicting in latent space across time has to do with learning a world model.