Thank you very much, Professor Hong, for this terrific introduction. I may not have to give my talk anymore. You explained most of the basic ideas there. It's a real pleasure to be here. It's my first time at NTU, my second time in Singapore. You will have to maybe excuse some of my hesitations. I just arrived from New York this morning after 24 hours on a plane. But hopefully, hopefully I will not fall asleep before you.
Okay. So as Professor Hong just said, I'll be talking about world models, which I believe is one of the foundations for future evolutions of AI systems. Okay. So first thing we should say is AI as it stands today, machine learning in particular, really sucks when we compare it with the performance of animals and humans in terms of learning. Our current AI systems require way more data than humans and animals, and that means we're missing something.
So obviously we have AI systems that all of us use every day. They can write code, prove theorems, and all kinds of amazing intellectual feats. But where is our domestic robot? Where is our level five self-driving car? Where is even a robot that can do what a house cat can do? As Professor Hong was saying, current AI systems, LLMs particularly, more generally generative architectures, are pretty bad at handling the real world, understanding natural signals such as images, videos, audio, sensor inputs of various types. Anything that is high-dimensional, continuous and noisy is really not handled very well by generative models. That's one point, one limitation.
And then the second limitation is we have agentic systems today, but those agentic systems need to be trained by imitation, by basically imitating humans who have accomplished those tasks before and trying to emulate them. Imitation learning is successful to some extent, but has been essentially a failure when it comes to autonomous driving. Why can't AI systems solve new problems zero-shot without being trained to solve them beforehand? I should say some systems can solve some problems zero-shot, but not really at the same level as humans and animals. Can they have common sense?
So those are big questions that have been with us for many years in AI. And the reason is something we've known for a long time called the Moravec paradox: that things that are intellectual tasks that appear to be complicated for humans, like, I don't know, computing an integral, playing chess or Go or something like that, it's relatively simple for computers in the end. Or maybe it is that humans are just not very good at them. Humans are pretty terrible at chess when we compare them to what machines can do. And machines are much better than humans at Go as well.
So that's the Moravec paradox. Why is it that machines are really good at intellectual tasks that we consider difficult, but can't do things that we don't even think of as being intelligent tasks because we take them for granted? Our cats can do them, our dogs can do them, a lot of animals can do fairly complex stuff that we can't reproduce with robots or machines more generally, at least not as efficiently. So this has been known since the late 1980s when Hans Moravec formulated this paradox.
And we'll have made progress in AI when we have, let's say, domestic robots that can accomplish new tasks for the first time without being trained to do them, like, say, a ten-year-old, like clearing up the dinner table, filling up the dishwasher. Right now, some robots can do this painfully, but with a lot of training and hand-holding, and they're not successful very often.
So this gives a sort of a slightly different picture of what intelligence really is. When we talk to an LLM or an AI assistant built around an LLM, of course they have all kinds of modules bolted on top of them that allows them to interpret images and other things, and run code and things like that. But when we talk to an AI assistant, we have the impression they are intelligent. Really, most of the time they are regurgitating known knowledge that they have accumulated in their memory. The reason why AI systems at the moment require such big memory capacity is that they store a lot of declarative knowledge.
But intelligence is not the accumulation of knowledge. There's this quote from Jean Piaget, a famous developmental psychologist, who said, "Intelligence is not what you know, it's what you do when you don't know. It's how you can invent new solutions when you're facing a new problem." So perhaps you should measure intelligence not with fixed benchmarks, but by the ability of a system to learn new skills, accomplish new tasks zero-shot, or learn new skills really quickly, by how long it takes to be able to accomplish a new task. How much training does it require? That's really what intelligence is. The shorter that time, the more intelligent the system is.
It's not just the performance on a given benchmark. You can always study for the test. So we should ask the question: what makes current artificial intelligence and human intelligence, or animal intelligence, different? And perhaps study how humans learn in the first few months and years of life.
So the chart that you see here is the age in months at which infants learn basic concepts about the world. Things like the difference between animate and inanimate objects, the notion of object permanence, very basic things like the fact that the world is three-dimensional. We can't measure that because babies learn that extremely quickly. The fact that babies know the difference between different object categories, like they know a table and a chair are different types of objects even though they don't know the name, right? So they form categories without being given the names of them.
And then it takes about nine months for babies to learn about intuitive physics. So things like gravity, the fact that objects that are not supported fall, for most of them. If you show a scenario depicted at the bottom here of a little car being on a platform and you push the car off the platform and it appears to float in the air, a six-month-old baby will barely pay attention. A ten-month-old baby will fixate with wide-open eyes, like the little girl you see at the bottom right, because by that age babies have learned that objects are supposed to fall.
So this violates their mental model of the situation. So it's pretty clear that babies learn models of the world that allow them to identify what is possible, what is not possible, what is surprising or not. And we should have this type of learning in machines.
So as I said, intelligence is not just a collection of skills nor an accumulation of declarative knowledge. It's the ability to accomplish new tasks and solve new problems with no prior training or minimal training. And that leads to an interesting statement, which is, you know, you hear a lot about artificial general intelligence. What people mean by this phrase is really human-level intelligence or superhuman intelligence. And this is based on the assumption that human intelligence is general.
But human intelligence is not general at all. If it were general, then you wouldn't be able to buy a gadget for very cheap in a toy store that can beat you at chess. Our intelligence is extremely specialized. We can learn things pretty quickly, which makes us adaptable. But there are things that we'll never learn if we don't learn them early, like learning a foreign language, speaking a foreign language without an accent, playing piano or violin, or all kinds of tasks that we need to learn when we're young.
So we're not particularly general, and which is why I really don't like this phrase AGI. I prefer human-level AI. That's a much better defined concept. Okay, but there is no question that at some point in the future, perhaps not too distant future, we will have machines that are smarter than humans in all domains where humans are smart. That there's very little doubt about that.
The question is when. It's not going to happen tomorrow. It's not going to happen next year or two years from now. It's going to take a while because it's going to require a few conceptual breakthroughs. And the people who are claiming today, or were claiming for the last five years, that AGI is just around the corner are deluded. They're as deluded as generations of AI researchers going back 70 years who believed that ten years after they were working, the smartest entity on the planet would be a machine. They were wrong. It's much more complicated than we think.
Okay, here's another reason why LLMs are not the ultimate path to human-level intelligence. LLMs are trained on human-produced text publicly available. The pre-training phase is trained on text that is publicly available mostly. There's also licensed text, but that's kind of a relatively small amount. There's also synthetic data, but that's usually in training. So publicly available text on the internet is about two times ten to the thirteen words, twenty trillion, twenty thousand trillion words.
Turn this into tokens, that's about three times ten to the thirteen tokens. Each token is about three bytes. So the arithmetic tells you that's about ten to the fourteen bytes in terms of raw training data. Okay, it's redundant. We want it to be redundant because that's what the redundancy is, what allows us to train an LLM in this case to predict the next word in a text. If there were no redundancy, that wouldn't be possible.
But compare this to a human child. A four-year-old trained on sensory data, let's say vision or touch, has been awake a total of about sixteen thousand hours in his or her life in the first four years, which by the way is a very small amount of video. It's about thirty minutes of YouTube uploads. We have two million optical nerve fibers going from the retina to the visual cortex. Each fiber carries about one byte per second. So if you do the arithmetic, that's about ten to the fourteen bytes in four years.
Compare this with the text that would take any of us about four hundred thousand years to read. Okay. So infants are trained with enormous amounts of data, but it doesn't look like a lot of data because it's high bandwidth. It comes through vision. It's highly compressed by the retina, by the way. It's highly redundant, probably more redundant than text, but again, we need redundancy if we want a system to learn the internal structure of the data. So that tells you we're not going to get to human-level intelligence by just training on text.
We probably need AI systems to be trained from high-bandwidth sensory data grounded in some world, can be a virtual world, but sort of, you know, high-bandwidth sensory input. Okay, so that's one thing we can state: we need to use the same type of learning we've been using for LLMs, but with video and other sensory data. That's called self-supervised learning.
Okay, the second thing we need to do is we need to build AI systems that perform inference of a different type than feed-forward propagation through a neural net. So on the left you see a diagram of a generative architecture. It perceives an input, perceives the world, runs this through some perception module, and then some prediction module that produces an action or intervention or an output or a piece of text, an answer, okay? And sends that to the world or the user. And that's the feed-forward propagation through a fixed number of layers in the neural net.
Now, if you have an LLM, you can cheat a little bit because you can run the LLM multiple times. You can coerce it to produce lots and lots of tokens, and you kind of trick it into using more computation by reusing the same LLM multiple times, right? That's called chain of thought. But it's still feed-forward propagation through a fixed number of layers in a neural net.
There is another type of inference which is in some ways intrinsically more powerful, and it is inference by optimization. Okay, so that's the diagram on the right where you observe the world, you get some idea of the state of the world, and then you have a search for an action or an output that is most compatible with the observation. Okay, so there's going to be an optimization process that is going to consider multiple imagined outputs or actions and then measure their degree of compatibility with the input or appropriateness.
Through this red square box, which you can think of as an objective function, it has two inputs and it has an implicit scalar output that is zero if the imagined action is a really good action for the corresponding input, and is a larger positive number if the action is not as good. Okay, so finding the optimal action comes down to an optimization process to minimize this objective function.
Once the system has found the optimal actions, then it outputs it to the world and the process repeats. Okay, that's an intrinsically different process of inference. It's very classical. Classical inference in classical AI involves a search, sometimes an optimization. Think of a SAT problem, for example. Think of probabilistic graphical models where inferring unknown variables basically consists in minimizing a negative log likelihood. It's the same thing.
And you could think of feed-forward propagation through a fixed number of layers in a neural net as akin to what psychology is called System One, which is the type of actions we're taking without really thinking about it because we're so used to taking those actions. We don't need to really plan ahead to be able to do it, like, you know, walking down the stairs or opening a door, things like this. You know, we can do this instinctively, reactively.
But there's also System Two, and this is when we use the power of our mind to imagine the consequences of our actions and then plan a sequence of actions that will produce a desired outcome. Okay, so what I'm describing, inference by optimization, is more like System Two, whereas classical inference in a feed-forward neural net is more like System One.
So I've been thinking about those problems for many years, and a bunch of different ideas kind of started to gel around 2022, and I kind of put this together in sort of a coherent view of where I think AI research would go over the next few years. I put this together in a paper titled "A Path Towards Autonomous Machine Intelligence," which is on OpenReview, so you can make comments on it, and the URL is in the QR code. There's various versions of this talk, earlier versions of this talk that you can watch on YouTube as well. But this one is the best one because it's the latest one.
Okay, so let's refine the architecture. I just described a little bit more. So we're observing the world. X of t is the sensor output at time t. We have a perception module that is going to extract an idea of the state of the world. We're going to call that s of t. And then this is going to go into the centerpiece of this architecture, the green module called the world model.
The role of the world model is that given the current state of the world, s of t, and given an imagined action, a of t, the world model predicts the resulting state of the world, s of t plus one, p for predicted. Okay. We feed that prediction to an objective function that tells us whether a particular task has been accomplished or not. And then by optimization we figure out an action that minimizes this objective according to the prediction of a world model. Once we find it, we output it to the world and do it again.
Now, if we have a world model that can predict the outcome of an action, we can use it multiple times to predict the outcome of a sequence of actions. So in an autoregressive fashion, right? So perceive the world, get an idea of the current state of the world, then run your world model multiple times for each action or short segment of action you imagine, and then plug this through an objective, a task objective that measures to what extent a task has been accomplished, as well as through a bunch of objectives that are safety guardrails.
So those would be terms in the objective function, or even hard constraints that guarantee that whatever the agent is doing is not going to hurt anyone or cause any trouble. Okay, so a system of this type, which I called objective-driven, cannot be jailbroken like an LLM because by construction the only thing it can do is minimize the task objective subject to the safety guardrails, and it can do nothing else.
And so if its world model is reasonably accurate and its guardrail objectives are good, then the system is intrinsically safe. You cannot jailbreak it like you can jailbreak an LLM. Why can you jailbreak an LLM? Because an LLM is merely fine-tuned to produce non-dangerous or non-toxic answers. And there can always be a gap between the training error and test error. So there's always going to be a prompt that the system has not been fine-tuned on that you can use to jailbreak it. Okay, not the case for this because you use optimization at runtime.
Okay, this type of inference by optimization using a world model is very classical in optimal control. I'm sure there are people in the room who are optimal control theorists or control engineers. This is called MPC. I mean, some version of this is called model predictive control. This is not a new idea at all. What is new here is that we're going to learn the world model from data. And the question is, how do you do that?
Ultimately, though, what we want are systems of this type that are hierarchical. What I mean by hierarchical is that there are a lot of complex actions that we cannot plan in terms of elementary actions. If I'm sitting in my office at NYU and I want to be in Paris tomorrow morning, I cannot possibly plan my entire trip in terms of elementary actions, which for humans are muscle control every twenty milliseconds or so. There's no way I can do this because first of all, it's way too long. Second of all, I just don't have the information that allows me to do this planning in detail.
So what do we do? We plan hierarchically. We go at a very abstract level. And at a very abstract level, I know that if I want to be in Paris tomorrow, I need to go to the airport and catch a plane. That's a two-step plan with very high-level actions. But what that gives me is a subgoal. My subgoal is to be at the airport. Now I can go down one level in the hierarchy and say, well, I'm in New York City. To go to the airport, I need to go on the street and hail a taxi. Now I have a sub-subgoal: being on the street.
In my office, I need to go to the elevator, push the button, walk out of the building. Now I have a sub-subgoal: going to the elevator, etc. Right? So we can go down this hierarchy until we get to a point where we can use System One, which probably comes down to standing up from my chair and picking up my bag and, you know, opening the door in my office, etc.
So we can have a hierarchical architecture of this type which basically has world models at every level. The lower-level models are very detailed, but they make predictions at very short term. The higher levels forget a lot of details about reality, about the phenomenon, but they make predictions longer term. Because those predictions are longer term and because the world is not entirely predictable, the representation needs to eliminate a lot of information, a lot of details about the world.
So to be able to get to the airport, I don't need to know exactly how long I'm going to have to wait for a taxi on the street. I know there's a lot of taxis in New York, so however I'm going to wait, it's probably going to be okay. Okay, so the ultimate prize is being able to train hierarchical world models and use them to do hierarchical planning. And I'll come to this at the end of the talk.
Okay, how are we going to train those world models? So a very natural and popular idea at the moment in the AI industry is to use a generative architecture. Let's say we want to train a system to understand how the world works. We give it a piece of a video, for example, and we train it to predict what's going to happen next in the video, perhaps conditioned on an action that we know is taking place in the video. Okay, that will give us some sort of world model.
Okay, but there is a problem with this, which is that we need to predict, because it's a generative model, we need to predict every detail in the video at the pixel level, and that's impossible. I've been working on trying to get systems to learn to predict videos for the better part of the last twenty years, and largely failing for the first fifteen of those twenty years because I was using a generative model.
So why is most of the information in the world impossible to predict? It's because the world is messy. If I take a camera and I point it at the left side of this room and I slowly rotate and I stop here and I ask the system to generate a model to predict what's going to happen next in the video, it's probably going to predict the camera is going to continue rotating and that there are, you know, people sitting in chairs and the room seems pretty full. At some point there's going to be a wall, etc. There's absolutely no way it can predict what all of you look like. The information is just not there. It's impossible.
If the video is the dash cam of a car driving on the road, maybe it can predict to some extent what the other cars are going to do. Not exactly, but to some extent. But there's no way it can predict the random motion of the leaves on the trees that border the road, or other details of this type, or how the pedestrian about to cross the street is dressed. I mean, most of the information in a video is unpredictable. It's not just a little piece of it that's unpredictable. Most of it is completely unpredictable. There's only a small portion that's predictable.
And in fact, when you train a system to try to predict what's going to happen in video, if you do point prediction like with MSE, you get blurry predictions. You can use all kinds of tricks. You can use latent variable models, you can use diffusion. If you use diffusion, you get systems that can produce realistic-looking videos, but they just make up, they invent what the future of this video is, and that invention is with probability one wrong. There's no way it's going to recover what all of you look like exactly, right? Or even approximately.
So when you train a system to come up with details that it just cannot come up with, you kind of kill it a little bit. So my solution to this is this architecture called JEPA, Joint Embedding Predictive Architecture. And it's a non-generative architecture. So everybody is talking about generative AI, and I'm telling the world, forget about generative AI. That makes me super popular.
Okay, so on the left here you see the diagram of a generative architecture. Observe X. Observe A, let's say an action. And from X and A, predict Y. Okay, so Y could be the future of a video, it could be a missing part in an input, it could be, let's say, a view of a scene where X is another view of a scene, it could be a nice photo where X is a degraded version of that photo. There's a lot of different scenarios where this could be used.
Okay, but I just told you that predicting at the pixel level was a bad idea. So look at the architecture on the right. That's a JEPA. So the JEPA, the main difference is that the Y variable is also run through an encoder, and the prediction takes place at the representation level. Okay, so feed X to an encoder that produces SX, feed Y to an encoder that produces SY, and now predict SY from SX and possibly A, the action.
Okay, very different. Well, it doesn't look that different, but it's actually conceptually extremely different. But let me explain why a little bit. And let me tell you also why it's kind of difficult to train those things and why they haven't been so popular until fairly recently. Okay, when you train a generative architecture, it's easy. You just, it's like supervised learning, right? You give an output to the system and you correct the parameters of the system so that the output you get gets closer to the output you want. Super easy.
In a JEPA, you have the issue with a joint embedding architecture whether there is a predictor or not. The one on the left does not have a predictor. The one on the right does. Then you have an issue, which is that if you just minimize the prediction error, the system can choose to ignore the input completely and produce constant representations for X and Y, and now your prediction error is zero all the time. And that's a terrible thing because the system doesn't do anything useful for you.
That's called a representation collapse, and in JEPA you need to avoid it. You need to find ways to avoid that collapse. That's where things become interesting and complicated. But let me tell you why we absolutely want to do this, why we don't want to use generative models, is because this idea that to understand the world, we need to have abstract representations of the world that ignore a lot of details about the world is something that all of science is based on.
Okay, in principle, I could simulate, I could not, but in principle I could simulate this entire room at the level of particle physics or at the level of quantum field theory. Okay, and I will simulate the brain process, the thinking process of everyone in this room. And if I could run this simulation...
long enough, I could predict if in 30 seconds Professor Hong would scratch his nose. Okay, because of simulated sprint, which I have no doubt is probably fairly complicated to simulate, but in principle that would be possible. But of course it's completely impractical, right? We can't run quantum simulations at that scale, first of all, and we don't know the structure of the brain of each one of us or the precise atomic composition of each one of us. So in practice that's impossible.
And that's true of many physical systems. So if I give you a box full of air at room temperature and I tell you I'm going to warm up this box by 10 degrees C, 10 Kelvin, you can predict very precisely by how much the pressure inside that box will increase because of the law of ideal gas, PV equals nRT. Right? That's a very abstract representation of the state of that box, because the state of that box is the position and velocities of all the molecules inside of that box, all the air molecules.
And in principle, you could make that prediction by simulating each air molecule. But first of all, that simulation would be very inaccurate, would very quickly diverge from reality. In fact, it's impossible to do it because those molecules will interact with the walls of the box, which depend on basically the rest of the universe. So there's no way you can make that simulation accurate. But because you found an abstract representation of the state of that box with just a few numbers — pressure, number of molecules, temperature — then you can make predictions. In fact, that's what science is based on.
We invent abstractions that allow us to make predictions for larger systems at the level they can be studied at the lower level. So from quantum field we can invent abstractions like particles, atoms, molecules in the living world, protein organelles, cells, organisms, individuals, societies, ecosystems. Each level in this hierarchy is a different level of abstraction at which we describe the world that ignores many details about the level below and allows us to make longer-term predictions on bigger systems. Right? So the way to interpret what is going on in this room at the moment has to do with psychology and not so much with particle physics. That's the right level of description, perhaps.
What that means is that, you know, there are things that chemists know that atomic physicists don't know. There are things that biochemists know that chemists don't know. There are things that biologists know that biochemists don't know, etc., etc., right? And so every level has its own representation, its own knowledge, its own models, and ignores a lot of details about the level below. So this is a kind of semi-philosophical justification for why we need JEPA and why generative models are a terrible idea.
So in the end, the world models we're going to build are not going to be things like simulators or digital twins, because they're going to make their predictions at an abstract level and perhaps at multiple levels of abstraction. So we can do hierarchical planning.
If we had such a world model, action-conditioned world model, given the state of the world at time t and an action I imagine taking, can I predict the next state of the world? We could apply this to the control of complex objects for which we can train a world model from data. And this is useful for complex systems whose behavior is difficult to reduce to a small number of equations.
Okay, let's think about a whole turbojet, for example, or a whole chemical plant, or a patient. Okay, we need phenomenological models of a patient to be able to treat them. We can't just simulate biochemistry in all of its details for an entire patient or a robot. It's easy enough to simulate the dynamics of a robot as long as this robot does not interact with the external world in complex ways. So easy enough to plan a humanoid robot to make kung fu moves, because the kung fu moves are made in free space and the only interaction with the world is just, you know, the feet and the hands on the ground.
When it becomes complicated is when the robot needs to manipulate something or interact with the real world or figure out what sequence of actions to do to accomplish a task. And so for that we probably need a world model. So this idea of using model-based, like, you know, predictive models to plan is very old. It goes back to the late 50s in the USSR and early 60s in the West. And, you know, it's not a new concept at all. What's new again is learning the model. So how are we going to train those JEPA world models?
We're going to train them on triplets of observation, action, and next observation, basically if it's temporal, or we're going to train them on, you know, y being a perfect object, a being a corruption, and x being a corrupted version of y. Okay, we're going to predict the representation of y from the representation of x.
But we're going to need to avoid this collapse problem. So there's several ways to do this, but the best way I know is to have some loss function that we apply to the outputs of the encoders that measures the information content in some ways of what comes out of the encoder, and we try to maximize the information content. Okay, in machine learning we minimize cost. So here I put a minus sign in front of I of Sx and Sy, which is the information content according to some measure.
And there are several methods to do this that are approximations. There are different approximations of how you measure information. The bad news is that there is no perfect way to measure information content, because information is to some extent in the eye of the beholder first, but also because our definitions of information are based on knowing the distribution of data, and we don't have a distribution for what comes out of our encoder. We just have samples.
And so to turn samples into a useful measure of information, we have to make some assumptions about the underlying distribution that those samples come from. And what that gives us is unfortunately an overestimate of information content. And that's really bad news because we want to maximize information, and the only thing we can come up with are upper bounds on information. We would need a lower bound, so we can push it up and be guaranteed the information goes up. But instead we have upper bounds. So what do we do?
We maximize an upper bound and we cross our fingers, basically. Okay, so how do we do that? Let's say we run a batch of samples through one of those encoders. We're going to get a matrix out of it where each row is the representation for a single sample. Okay? And the matrix is just the representation vectors for every sample in the batch. And each column is a single variable, the values of a single variable over all the samples. Okay. How do we make a matrix of this type informative?
Basically, we want to make all the rows different from each other. That's one way. The second way is we want to make the columns different from each other, and not just different in an easy way. We want to make them independent of each other. In fact, we want to make them completely independent of, you know, any group of variables should be independent of any other group of variables. And that's a very difficult thing to achieve. But we have actually, we have a way.
Okay, so the methods that make the samples different from each other are called sample contrastive, and the methods that make the variables different from each other are called dimension contrastive. And so the sample contrastive methods are somewhat popular. You may have heard of a set of techniques called CLIP. So CLIP is, at least until recently, a very standard way of training vision pipelines for LLMs. You have a vision encoder to which you feed images, and also a text encoder to which you feed descriptions.
And you train those two encoders so that the representations for an image and the corresponding description are close to each other, but also that the description of an image and a description that does not correspond to that image are far away from each other. So that's sample contrastive. It has some shortcomings, and so I've become much more a fan of the dimension contrastive methods.
So one of them is called VICReg, that means variance-covariance regularization. It simply consists in making sure, having a cost function that tries to make sure each column has variance one and the columns are uncorrelated. Basically, they're orthogonal vectors or as orthogonal as possible. It works okay. It's not perfect. There are two other methods that are much more interesting. One called SIGMA and the other one called DINO. DINO I'm not going to describe in a lot of detail, but the results are really impressive.
DINO I was only very peripherally involved in it. It's carried out by a research group at Meta in Paris. But they're both based on a similar idea. You take this matrix, and each row of this matrix, each sample, you run it through an expander that projects it into a higher-dimensional space. For some methods, this expander can be linear. For others, it's a very simple single linear projection plus a softmax on top of it for normalization. And for VICReg, it's actually a whole neural net with a few layers.
But let's talk about the clustering method. So the clustering-based method takes each representation vector, projects it against many dimensions, and then runs the resulting dot products. The vectors are normalized, so they are like cosine similarity. So run those dot products through a softmax function that takes the exponential and normalizes by the sum of the exponential. So you get something that's akin to a probability distribution on the output that you could think of as the probability that the input vector is close to a particular prototype in the list of projections.
Okay. And then what you do is you have a cost function that tries to make this output distribution as peaky as possible. In other words, as close to a one-hot as possible. That will create a term that will repel the prototypes, the directions in which you project it, will repel them from each other. And there's another term that makes sure that all the prototypes are used.
So there's a version of this used in DINO, there is another version called in an earlier paper called MSN, Masked Siamese Network, and this works really well and it scales and it produces some of the best representations of images today. But I'm going to talk about SIGMA, which I think is a really interesting concept. So this is a paper by Randall Balestriero and me. I might have had the original idea, but Randall did all the work. He's an assistant professor at Brown University now.
And SIGMA means Sliced Isotropic Gaussian Regularization. And the idea is the following. What we'd like is we would like all the variables in the matrix to be independent of each other. And a good way to achieve this is to make the joint distribution of those variables joint Gaussian with the same variance, like all of those should have the same variance, and the joint distribution should be Gaussian. That means the joint distribution has maximum entropy for a given variance and basically is maximally informative.
So of course that's kind of very difficult to do, but there is a wonderful theorem that tells you if you take a distribution and you project that distribution along many, many, many directions. Okay, take one projection against one dimension, you get a marginal distribution, right? If for many dimensions all of those projections, the marginals are all Gaussians, then the joint distribution is Gaussian.
So what that means is that what we can do is very hard to force a distribution known by a bunch of samples to be Gaussian, but it's pretty easy to do for a single, for one-dimensional distribution. What we're going to do is that we're going to take our samples from a training set. They are vectors. They're represented by those red dots here. We're going to project them against many dimensions. And along each dimension, we're going to measure the empirical distribution.
We could do this with the cumulative distribution. It's simpler. What we do actually is compute some Fourier transform of it. We get a characteristic function. We can compute in a differentiable manner. We can compute the distance between that distribution and the Gaussian and propagate gradients to each sample. Tell each sample how they should move in that direction, in the orthogonal direction to the projection, so that the distribution becomes more Gaussian. And if we do this with sufficiently many directions randomly picked, randomly at each step, the theorem tells us your joint distribution is going to be joint Gaussian. Therefore the variables will be independent, which is great.
And it does work. So if you start with points in a particular distribution and you use this principle to turn the distribution into a joint Gaussian, you do get joint Gaussian. This is a 2D projection of a much higher-dimensional distribution, I think in dimension 24.
So we've trained world models with this. This is a fairly recent paper from earlier this year called L1W1 model. I'm not responsible for the name, by the way. Okay, there's at least two of us in the co-authors whose names start with L. So at least I can redirect the responsibility on the other co-author, Quentin. But this is basically a world model that is trained using SIGMA regularization. It's a JEPA action-conditioned trained with SIGMA.
So the architecture I just described, SIGMA prevents collapse, and the system is trained with simulated robotics data, and we can use it to kind of plan action sequences for sort of various toy problems. It's not perfect, but it's pretty cool. Code is really simple. You can play with it. Doesn't require a thousand GPUs. Doesn't require many GPUs at all, actually.
And, you know, it's pretty good on some benchmarks, and there's a theoretical result that was published also recently, early in the summer, that shows that if the underlying data, the sort of way the data is generated, the training data, is that there is an underlying joint Gaussian distribution, but what you're observing is basically a complex nonlinear continuous transformation of those inputs, you can show that with an appropriately complex encoder regularized with SIGMA, SIGMA will actually recover the underlying joint Gaussian up to a rotation.
Okay, so that's an interesting theoretical result, and it kind of works in practice. But of course the real world is not Gaussian. If I take pictures of all of us, okay, so let's say I take one person from this room and take a video of the face of that person talking, making faces, turning their head, etc., and I do the same for everyone, there will be as many disconnected manifolds as there are people in this room. So obviously there's not going to be Gaussian, right? Because it's a bunch of disconnected manifolds, one manifold for each of us. The intrinsic dimension of that manifold will be the number of muscles we have in our face, which is less than 100.
So the world is not Gaussian. So that's the shortcoming of SIGMA. It cannot discover the underlying topology and geometry. I mean geometry, yes, but not the underlying topology of the data. Okay, so once we have a way to train a JEPA, we can use it to recognize images, to make predictions, so we can use it for planning, and I'm going to show you a few examples.
So training through multi-view, this is the way some of the best image representation systems in existence today are trained, a very good one, so based on distillation. I'm not going into the details of how this works, but there are two encoders. They kind of share the same weights, but not exactly. The encoder on the right uses a version of the weights of the encoder on the left that is being slowed down. You can think of it as an exponential moving average of the weights over time of the encoder on the left. And for some mysterious reasons, that prevents collapse. Okay, those are called distillation methods.
A good example is the JEPA method which produces good representations for images. Another example, and this works really well for a lot of applications including medical imaging and various other things. This is a paper by a group at the Weizmann Institute who use this to learn representations of DXA X-rays, which are a particular type of X-ray used to identify things like osteoporosis and things like this. And it turns out you can use those representations to extract all kinds of useful information about a patient from those images that we didn't suspect actually was present in those images.
I must say I deserve almost no credit for any of this work. This was done mostly by the group at the Weizmann Institute. They put my name on it because I gave them the idea of using JEPA, but that's it. And the other method I was telling you about, DINO. So this is done by a group at MetaFAIR in Paris, and they use one of those clustering-based methods combined with distillation to learn image representations. This is probably the best generic image representation system in existence.
If you need to extract features from an image and you don't know how to do that, just download DINOv3 and then use that as input to a supervised downstream head, and that will probably do a good job for you. This has been applied to all kinds of images: astronomical images, medical images, bio, like microscopic images, and things like that.
Okay, but let's go to the action-conditioned world model and let's see if we can use them for planning. So there was an early experiment we did which was to use a pre-trained encoder, you know, v3 or v2 actually, and then train a predictor that is action-conditioned, and then use this predictor as the world model and see if we can apply this to planning tasks. So we call this DINO world model, and it's kind of a simple form because, you know, we don't need to train the JEPA end to end. We assume we have a pre-trained encoder, so we don't have any collapse issue. That was solved by the people who trained the DINO encoder.
And this kind of works pretty well. So here's an example. You start from a random initial condition, and you have three target states here at the top. And what you see at the bottom is a sequence of actions that was planned by this DWM model. So that starting from the random configuration on the left, we get as close as possible to the configurations shown on the top row. And it's interesting because the dynamics of that environment is fairly complex. Okay, there's other examples where the dynamics is simpler, like a double pendulum or push T or moving from one room to another, or etc. But this kind of works.
So the big challenge is to see if we can train a world model end to end using JEPA, perhaps regularized with SIGMA, and I already showed you an example which is L1W1 model, but that's kind of small scale. So here is another example. This is V-JEPA. So there's V-JEPA, V-JEPA 2, and V-JEPA 2.1. This is work that was done by a team at MetaFAIR. Most of the people who have worked on this now work at AMI Labs.
And this is trained on video. So you take a video snippet, and the pre-training consists in corrupting that video snippet by blocking a whole chunk of it, and then training a JEPA to predict the representation of the full video from the representation of the corrupted one, the partially masked video. We do this masking, we don't do temporal prediction because it turns out the results are better if you do spatial prediction like this than if you do short-term temporal prediction.
Okay, so this is using the distillation method and exponential moving average, some version that uses some criterion to prevent collapse as well. And this produces pretty interesting results. In particular, we have results that show that those systems have acquired some level of common sense. If we show them a video where something impossible occurs, like someone throws a ball and the ball disappears in midair, or changes shape to a cube, or stops. Okay? Or you have a scenario where you have two screens and there is a ball that rolls behind the first screen and then reappears behind the second screen, and you haven't seen it go through in between the two screens.
Then any impossible video like this, internally the prediction error of the system will shoot through the roof. The system has been fine-tuned to make temporal prediction using a frozen encoder. And the prediction goes up when something impossible occurs. So that indicates those systems have learned some level of common sense, a little bit like the little girl I was showing earlier in the talk.
Okay, so we pre-trained the V-JEPA using video that are corrupted, and then we fine-tune it using action-condition. We fine-tune a predictor that is action-condition using robot data, right? State of the robot at time t, action, state of the robot at time t plus one, extracted from video.
And this kind of works for relatively simple pick-and-place kind of tasks where we have a starting configuration, a target configuration. And with the world model, the system is able to plan a sequence of actions to basically bring the world to the final state, which includes having grabbed the cup and moved it to a place. So this is not a very complex task, but the interesting thing is that you train this generic system and it works with pretty much any robot and any point of view, which is pretty cool.
Since then there's been a little bit of progress at the end of last year with V-JEPA 2.1 that has slightly better performance on planning tasks and also on other tasks. So here is an interesting thing which some psychologists and cognitive scientists are interested in. We've trained this system purely to fill in missing information in a video at the representation level.
But what we see is that system has learned very basic things about the world. It's learned that the world is three-dimensional because when we take the representation learned by the system and we train a supervised head on top of that representation to predict depth in an image, it does a really good job at predicting depth. And the system has only been trained with monocular video. It's never been told the world is three-dimensional. It doesn't have any hardwired structure that tells you the world is three-dimensional, yet it's learned the notion of depth.
It knows that every location in the world needs to have a depth, and probably from the fact that the best way to explain how our view of the world changes when we move our head is by the fact that every point in the world has a depth. That's what explains parallax motion. So we don't need to hardwire this in the brain.
You know, some people claim that basic notions about the world like that are hardwired in the human brain at birth, you know, through the genome. I think it's useless because you can learn this concept extremely quickly just by observing the world. So there's no point encoding this in the genome.
This system also does a really good job at segmentation. You train a head to do object segmentation. It works pretty cool, pretty well. It's never been told what an object is. It's just been trained on video.
So what you have here is, let me back up a little bit. What you have here is a system that has been trained purely by self-supervised learning to predict either what happens next in a video or to fill up missing parts in a video at the representation level. And this is very much like training an LLM to predict the next word in a text, except here it's non-generative. So the system simultaneously learns an abstract representation and learns to predict, and it doesn't work if you attempt to train a generative model on video, doesn't work very well.
Okay, so back to this idea of hierarchical models. Can we make that work? So we have early results about this, a very recent paper by Jean Turpin, who are two students working with me. Basil T. is co-advised by Jean Ponce in Paris, Michael Rabbat who is at AMI Labs, and Randall as I mentioned at Brown University, also affiliated with AMI Labs.
And here is the experiment that Wonkuk Jeong ran. He trained a three-layer, a three-level hierarchical JEPA. So this, the first level learns a representation, a pretty high-bandwidth representation of the input on short segments of video, and it's trained to predict the next views in the video, the next frames in the video, and they're regularized using either SIGMA or VICReg depending on the version. So it's JEPA style, very much like L1W1 model.
Okay, but then on top of it, you train a second level where now the prediction, instead of, there's a new encoder that learns a more abstract representation. And now the prediction, instead of being a fraction of a second in the future, is something like a second in the future. And then the third level is like two seconds in the future. Okay? So every time you go up one level, you train the system to make a longer-term prediction on longer segments of video, but using as input the representation learned by the previous level. Okay, so you get a hierarchical JEPA at the end.
And what you observe here, what those pictures are, they are reconstructions of images. So we train a separate decoder. It's not used during the training of the JEPA. It's just for visualization. And we train it to reconstruct the input. What you see is that at the low level, the system reconstructs the, this is a little four-legged ant-like animal which is supposed to navigate in a maze.
The location in the maze is encoded by the background color. So the system knows where it is in the maze by the color. And what you see is the animal in the first three frames at the bottom is very well reconstructed with the legs and everything. You go to the second level, and there the first three frames, which are predicted longer-term, do not encode the legs very accurately, and then if you go to the third level, the legs practically disappear.
Okay, and the reason is because a few seconds in the future you don't know where the legs are going to be, and it doesn't really matter. What matters is the position of the body of the ant, and that is reconstructed properly. So the system spontaneously learns a good hierarchical representation where details are eliminated as you go up the hierarchy.
So this describes a hierarchical planning process where you start by the top, you plan a sequence of actions to get to the goal, which is depicted on the right. Then you view the first state in that planned sequence as a sub-goal for the level below. Level below plans a sequence of actions, okay, two or three actions, and then the first predicted state serves as a goal for the level below, etc. Right? In this case there are three levels, and what you can show is that for a given amount of computing resources, the hierarchical model succeeds much more often than the non-hierarchical ones or the ones with fewer hierarchical levels, as shown on the chart on the right.
This is a video that kind of shows this. So here is a depiction of this little ant at various levels. Level one, two, three, four. And as you see, the legs become blurrier and blurrier as you go up the layers.
What's interesting as well is that when you plot the distance in representation space from one point here represented by the star and any point inside of the maze, at the low level you get accurate distances locally. So as long as you don't move too far away from the star, the distance in representation space represents the time it would take to go from a point to the star. But far away from the star, level one is completely inaccurate.
So if you are at the top left of the maze, there's no indication from the cost function at level one that will direct you towards the star. There's no gradient, right? The red areas don't become more yellow as you move away from the top left, for example, or the bottom left. Level two, it's a little smoother, and then level three, it basically becomes a value function. So the distance in representation space at level three, the gradient of that distance basically indicates the direction towards the goal. Okay? And that's really what we want because that's what facilitates planning.
So that's kind of a first step towards realizing this dream of hierarchical planning, which I think is really crucial if you want to get machines that operate properly. And I think the ability for a system to anticipate the consequences of its actions is absolutely crucial if we want to build agentic systems that are reliable and safe.
Current agentic systems do not predict the consequences of their actions. They are only relatively safe because they've been fine-tuned to death. But there is always a gap, a generalization gap between the performance on the training set and on new situations. And so I think the only reasonable way to build agentic systems is to have them use world models and do planning like I described.
Okay, so coming to my conclusion, a bunch of recommendations for AI scientists, particularly in academia, which is: abandon generative models, okay, in favor of those joint embedding architectures. I also have this recommendation of abandoning probabilistic models because when you're doing those predictions in representation space, the appropriate framework in which to understand this is energy-based models, which I didn't have time to explain at all. I have an entire other lecture on this.
But basically, probabilistic modeling in high-dimensional continuous spaces are impractical. They lead to mathematical intractability. Abandon sample contrastive methods in favor of those information maximization based on, you know, SIGMA or some other criterion that perhaps will improve performance. I've been saying for 15 years, abandon reinforcement learning or at least minimize its use because it's so inefficient in terms of samples.
So if you are interested in making progress towards human-level AI, do not work on LLMs. I mean, it's a recommendation I don't need to tell you in academic context because to work on LLM and make significant contributions you have to have a few thousand GPUs at your disposal, and almost nobody in academia has that. So just that reason should be enough. And so work on things where you can make significant contributions. What that means is AI for the physical world, for the real world. AI that can predict the consequences of its actions. AI that can plan. AI that can plan hierarchically.
And I hope that you will use some of the methods I described here and perhaps improve them. We're working on various open source code bases at AMI Labs that will come out at some point. But there's already plenty of code out there that you can use to play with. The topic of JEPA is becoming increasingly popular, extremely quickly.
If you type, as of two weeks ago, if you type joint embedding predictive architectures in double quotes on Google Scholar, you would get something like 3,700 hits. And only a few months ago it was 3,000, and only a year ago it was 1,000. So that topic is becoming extremely popular very quickly, particularly by researchers that are interested in physical AI, in AI for science, and in robotics, and that means a lot of people in China in particular. And so thank you very much for your attention, and I welcome your questions.