# JEPA predicts useful representations instead of pixels

Markdown copy of https://realalpha.app/s/jepa-predicts-useful-representations-instead-of-pixels/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Yann LeCun](https://realalpha.app/builders/yann-lecun/) · Yann LeCun is chief AI scientist at Meta and professor at NYU. · Founded world-model lab AMI Labs after leaving Meta, where he was chief AI scientist and founded FAIR.
- Host: [Brian Keating](https://realalpha.app/people/brian-keating/) · Host, Into the Impossible With Brian Keating
- Show: Into the Impossible With Brian Keating
- Episode: [Yann LeCun: AI Doomsday Fears Are Overblown Ep. 473](https://realalpha.app/v/u7e0YUcZYbE/), Dec 29, 2024
- Moment: 17:13 to 24:03 of the episode (7 min), playing on https://realalpha.app/s/jepa-predicts-useful-representations-instead-of-pixels/; the episode from there: https://realalpha.app/v/u7e0YUcZYbE/?t=1033

## Quote

> “if you train the system to make one single prediction, the best thing you can do is **predict the average of all** the plausible futures that may happen.”
> — [Yann LeCun](https://realalpha.app/builders/yann-lecun/) at [18:26](https://realalpha.app/v/u7e0YUcZYbE/?t=1106) · Into the Impossible With Brian Keating

## Takeaways

1. Predicting every pixel averages possible futures into a blur.
2. JEPA predicts an embedding of the future from the past.
3. Useful representations preserve what supports prediction and discard unpredictable detail.

## About this segment

Yann LeCun explains why pixel-level video prediction collapses into blurry averages, then introduces JEPA's learned representations. The approach could help AI model the world in ways useful for planning and science.

From “Yann LeCun: AI Doomsday Fears Are Overblown [Ep. 473]”, Dec 29, 2024. [Watch the full episode](https://realalpha.app/v/u7e0YUcZYbE/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[17:19](https://realalpha.app/v/u7e0YUcZYbE/?t=1039) we couldn't do it. Is that what's missing from, is that why it fails sort of sense it's missing some core insight that Einstein's genius had to come up with or something else? No, it's something else okay what is that it's much more pedestrian unfortunately it's the fact that uh to predict a continuous high dimension continuous uh signal like an image or a video it's very difficult to represent a probability distribution over all possible images right you can when you're predicting a word um you don't know exactly which word comes comes after a sequence but you can approximately say that you know it's not going to be gibberish if it's actual language right and you know if you have a verb there's probably a compliment that comes after things like that right so you can't do this with video so if you show a video

[18:11](https://realalpha.app/v/u7e0YUcZYbE/?t=1091) if you train a system to predict what happens in a video right you show it a segment in video then you stop the video you ask it predict what happens next and then of course you show it what happens next and then you train it to actually predict this. It doesn't work very well. I mean, I've been working on this for the better part of the last 15 years and it really doesn't work. Yeah, I trust you.

[18:30](https://realalpha.app/v/u7e0YUcZYbE/?t=1110) And the reason it doesn't work is that if you train the system to make one single prediction, the best thing you can do is predict the average of all the plausible futures that may happen. And that's basically a blurry image. Because, you know, even if we take videos like our video right now of us speaking, you know, I could be saying a word or another. I could be moving my head one side or the other.

[18:54](https://realalpha.app/v/u7e0YUcZYbE/?t=1134) I could be moving my hands one way or another. And so if the system has to make one prediction and we train it to minimize the prediction error, it's just going to predict the average of all the things that could happen. You're going to see blurry versions of my hands, blurry versions of my face, very blurry versions of my mouth. And that's not a good prediction. And so that just doesn't work. Basically, self-supervised learning by reconstruction or prediction does not work for natural signals.

[19:20](https://realalpha.app/v/u7e0YUcZYbE/?t=1160) Okay, so now I'm coming to this idea of JEPA. Okay, so JEPA stands for Joint Embedding Predictive Architecture. So what's an embedding? An embedding is a representation for a signal, right? You take an image, and you don't care about the precise value of all the pixels. What you care about is some representation, which is going to be a list of numbers, a vector, that represents the content of the image, but does not represent all the details about it.

[19:46](https://realalpha.app/v/u7e0YUcZYbE/?t=1186) Okay, that's an embedding. And joint embedding is that if you take an image and you take a corrupted version of that image, or let's say a slightly transformed version of the image, different viewpoint, for example, the content... of the image doesn't change. And so the embedding should be the same. So a joint embedding architecture is trained by, it's basically a big neural net, and you train it in such a way that when you show it two versions of the same image, of the same thing, you produce the same embedding.

[20:15](https://realalpha.app/v/u7e0YUcZYbE/?t=1215) You force it to produce the same embedding. Okay, the same output, essentially. And then the P, the predictive, is let's say a version of the image is a frame in a video and the corrupted version is the frame before. So now what you need to do is predict the next frame from the previous frame or predict the next few frames or previous few frames. And that's called a JEPA. So a joint embedding, predictive architecture, right?

[20:41](https://realalpha.app/v/u7e0YUcZYbE/?t=1241) You have two embeddings, one that takes the future of the video, one that takes the past. And then you have a predictor that tries to predict the representation of the future of the video from the representation of the past of that video. When you use this type of architecture to train a system to learn representations of images, it works really well. There's a number of different techniques that my colleagues and I and many other people have come up with over the last few years to do this.

[21:09](https://realalpha.app/v/u7e0YUcZYbE/?t=1269) And it works really well. So we can learn good representations of images. We're starting to get good representations of video, but it's very recent. But then what you can imagine is now that you have this principle that I was talking about for Jupyter, where you have data about Jupyter or And then you ask the system, find a good representation of all the data you have, eliminating all the stuff you can't predict so that you can make predictions in representation space. So eliminate all the stuff you cannot predict, the weather on Jupiter, you know, like all kinds of details that you really would not be able to predict.

[21:41](https://realalpha.app/v/u7e0YUcZYbE/?t=1301) and eliminate all that and just find a representation such that you can make predictions at a certain horizon within that space. And in my opinion, that's really the essence of kind of understanding the world that you do when you do physics, right? You're trying to find a model of a phenomenon, eliminating all the stuff that is irrelevant, and then finding a good set of relevant variables that allows you to make predictions.

[22:06](https://realalpha.app/v/u7e0YUcZYbE/?t=1326) That's really what science is all about. Is there an analog in that that is subjective? So you speak about temperature of a model and things like that. Do you have to still specify parameters like that? Not particularly in this context, because when you have this kind of architecture, or at least the simple one I described, you eliminate the stochasticity. to use a penaltic term in the prediction.

[22:33](https://realalpha.app/v/u7e0YUcZYbE/?t=1353) You're basically, I mean, when the system is trained to do this, it trains itself simultaneously to find a good representation of the input that preserves as much information as the input as possible, but at the same time, it's still predictable. So if you have phenomena in the input that is unpredictable, like chaotic behavior, you know, random things that you just can't predict, you know, individual motion of particles and stuff like that, you know, from thermal fluctuation, it's not going to keep this kind of information it's going to eliminate this and just keep whatever relevant parts of the input are useful for prediction so let's take a chamber full of gas and we can measure all kinds of stuff about it including the position of all the particles which is an enormous amount of information

[23:20](https://realalpha.app/v/u7e0YUcZYbE/?t=1400) which you can't predict because you have to know how every particle interacts with the walls and the heat baths and everything So you can't really make any prediction of that. And probably the systems spontaneously will say, well, I'm not going to be able to predict the trajectory of each particle, but I can measure pressure, volume, maybe number of particles, and temperature. And look, when I compress, the heat goes up.

[23:47](https://realalpha.app/v/u7e0YUcZYbE/?t=1427) So PV equals NrT or something. That's really the essence, I think, of where perhaps machine learning connects with science. or physics in particular. Another aspect of this,
