Yann LeCun on Machine Learning
The Future of AI: World Models, Joint Embedding Architectures, and the Path Beyond LLMs
Limitations of Current AI Systems
Supervised and Reinforcement Learning Are Insufficient
The dominant paradigms in machine learning — supervised learning and reinforcement learning — fall far short of the learning efficiency seen in humans and animals. Supervised learning requires massive labeled datasets. Reinforcement learning requires many trials and is extremely sample-inefficient. In contrast, humans and animals learn vast amounts of knowledge without explicit supervision or trial-and-error reinforcement, especially in the first months of life.
The Data Paradox: Text vs. Visual Experience
A striking comparison illustrates the gap:
Large language models (LLMs) like Llama 3 are trained on about 1014 bytes of text — roughly 30 trillion tokens. It would take a human ~400,000 years to read that amount.
A 4-year-old child has been exposed to about 1014 bytes of visual data through the optic nerve (2 million fibers × 1 byte/second × 16,000 wake hours). That is the same order of magnitude.
The key difference: visual data is far more redundant, which is actually an advantage for learning structure. But the similarity in scale implies that training solely on text will never achieve human-level AI, despite claims to the contrary by some industry leaders. The child learns rich physical and conceptual knowledge from that data without labels, while even the largest LLMs lack grounded understanding of the real world.
Autoregressive Generation and Hallucination
Current LLMs generate tokens one by one using autoregressive prediction: each token depends on the preceding ones. This process is fundamentally flawed:
Fixed computation per token: The model devotes the same amount of computation to every token, regardless of difficulty. The "chain of thought" trick (asking the model to output reasoning steps) is a hack that increases tokens, not genuine reasoning.
Divergent generation: If at any step the token choice leaves the "correct" subtree of possible completions, there is no way to return. The probability of a sequence of n tokens being correct drops exponentially with n (roughly (1−ϵ)n). This is a key source of hallucination.
No abstract planning: Humans formulate an abstract idea of the answer and then verbalize it. LLMs lack this internal "thought" step.
Despite these limitations, LLMs are popular because their architecture (e.g., the GPT-style decoder) scales extremely well: they can be trained efficiently on massive data with a simple next-token prediction objective.
What Is Missing for Human-Level Intelligence
Current AI lacks several essential capabilities that humans and animals possess:
Mental models of the world (world models) that allow prediction of consequences of actions
Persistent memory (beyond the immediate context window)
Planning of complex action sequences to achieve goals
Reasoning that allocates more computation to harder problems
Controllability and safety (built-in guardrails, not afterthoughts)
World Models and Learning Like a Baby
Intuitive Physics in Infants
Human infants learn fundamental concepts about the physical world long before they can speak:
Object permanence (by ~5-6 months)
Object categories (distinguishing tables, chairs, cats, dogs without knowing names)
Intuitive physics (gravity, inertia, conservation) — by ~10 months, infants show surprise when a pushed cart appears to float unsupported.
This learning is self-supervised and unsupervised, relying on massive visual experience. No current AI system matches this ability. The evidence: we still lack domestic robots and Level 5 self-driving cars, while we have systems that pass the bar exam. Tasks that are "intellectually challenging" for humans (chess, solving integrals, generating plausible text) turn out to be algorithmically simpler than the common-sense physical reasoning that a 10-year-old performs effortlessly.
The Data Efficiency Gap
A 10-year-old can learn to clear a dinner table on the first try. A teenager learns to drive in 10–20 hours. In contrast, self-driving cars require millions of hours of training data, detailed maps, and multiple sensors. This suggests we are missing a fundamental principle in how machines learn about the physical world.
Inference by Optimization: An Alternative to Feedforward Computation
Limitations of Fixed-Layer Architectures
Current neural nets perform inference by forward propagation through a fixed number of layers (e.g., a transformer decoder). This is computationally limited. Many important problems (planning, logical inference, constraint satisfaction) are naturally solved by optimization — searching over possible outputs to minimize some cost.
Energy-Based Models for Inference
A more powerful inference paradigm uses an energy function:
Given an input x and a candidate output y, a learned function E(x,y) (a "big neural net" with a scalar output) measures incompatibility.
Inference: fix x, then search over y to minimize E(x,y):
y∗=argminyE(x,y)This is inference by optimization. It supports zero-shot learning: finding novel solutions to problems without being trained on those solutions.
This parallels the psychological distinction between System 1 (fast, instinctive decisions) and System 2 (slow, deliberate reasoning using a mental model). Current LLMs are pure System 1 — they produce output in one forward pass with no iterative search.
Why Inference by Optimization Matters
Planning, SAT solving, logical inference, shortest-path — all are optimization problems.
Allows the system to spend more computation on harder problems (the optimizer can run longer).
Provides a natural framework for safe AI (guardrails can be hardwired as additional cost terms that the optimizer must satisfy).
Self-Supervised Learning for Visual Representations
From Generative to Joint Embedding Architectures
A natural idea for learning world models from video is to train a generative model to predict future frames at the pixel level — analogous to next-token prediction in language. However, pixel-level prediction is impossible for natural video because:
Many plausible futures exist (nondeterminism). A single prediction collapses to a blurry average of all possibilities.
Many details are unpredictable (e.g., exact textures, object positions). The best the model can do is a blur or a hallucinated guess.
Using latent variables can generate multiple crisp predictions for simple scenes, but it doesn't scale to natural videos.
The solution: predict in representation space, not pixel space. This leads to the Joint Embedding Predictive Architecture (JEPA).
JEPA: Key Idea
Instead of predicting pixels:
Encode both the current observation x and a future observation y into abstract representations sx and sy (using an encoder).
Train a predictor to predict sy from sx (possibly conditioned on actions or latent variables).
The representation space can discard irrelevant, unpredictable details, making prediction feasible.
This mirrors how humans understand the world: we don't represent every photon; we abstract away details. The entire purpose of science is to find representations that enable prediction by ignoring unnecessary complexity (e.g., predicting planetary orbits requires only 6 numbers per planet, not all surface details).
Contrastive Methods vs. Regularized Methods
Training a JEPA requires preventing collapse (the encoder learning a constant output). Two families of approaches:
Contrastive methods: Generate "negative samples" (pairs that are not compatible) and push their energy up. Problem: number of needed negatives grows exponentially with the dimension of the representation space. Not scalable.
Regularized methods: Add a regularization term that limits the volume of low-energy space. When you push down energy on training samples, the rest of the space automatically rises because there is limited low-energy capacity. These are preferred.
Distillation-Based Self-Supervised Learning: DINO and V-JEPA
A highly successful class of regularized methods uses a "teacher-student" setup with an exponential moving average (EMA) of weights:
Two encoders (same architecture) with different weights: the "student" (updated by gradient descent) and the "teacher" (updated as EMA of student weights).
The teacher receives a transformed/corrupted version of the input; the student receives the original or a different transformation.
The predictor minimizes the distance between student's prediction and teacher's representation, but gradients do not flow through the teacher.
This setup mysteriously avoids collapse. It is not a proper minimization of any single loss function (no monitorable decrease), but it works extremely well. Examples:
DINO (self-supervised for images): Produces generic representations that surpass supervised learning for many visual tasks (object recognition, depth estimation, medical imaging, etc.). It achieved this milestone only in 2023–2024.
Video-JEPA (V-JEPA): Extends the idea to video. It learns video representations and even acquires some intuitive physics — when shown an impossible event (e.g., a ball disappearing mid-air), the prediction error spikes.
Training World Models with JEPA
Once a JEPA encoder (e.g., DINO) is trained, it can be used as the perception module for a world model that predicts future representations conditioned on actions:
Input: current image, action (e.g., robot motor commands)
Output: predicted representation of next image
This predicted representation is compared with the actual encoded representation (via planning or training).
This enables model-predictive control (MPC) for planning: given a goal image, search over action sequences to minimize the distance between the predicted final representation and the goal representation. The system can accomplish tasks zero-shot — without ever being trained on that specific task. Examples include pushing objects to target locations and robot navigation to a visual goal.
Hierarchical Planning: The Unsolved Challenge
Need for Abstraction Levels
To plan complex real-world actions (e.g., going from New York to Paris), it is impossible to plan at the level of millisecond muscle movements. Instead, humans use a hierarchy of world models:
High-level actions: "take a taxi to the airport", "catch a plane"
Mid-level actions: "go to the elevator", "press the button"
Low-level actions: "stand up, turn left, take 3 steps"
Each level has its own representation, timescale, and world model. The planning proceeds top-down: subgoals are generated, then refined until reactive actions suffice.
Current Status
Training a system to learn the appropriate levels of abstraction automatically is completely unsolved.
Hierarchical planning with learned world models remains an open problem.
It is a prime research direction for those interested in advancing AI toward human (or even "cat") level intelligence.
Towards a Cognitive Architecture
Putting It All Together
A future AI system (sometimes called a cognitive architecture) would combine:
Perception module (e.g., DINO encoder)
Memory (analogous to hippocampus)
World model (in prefrontal cortex analogy) — a predictive model that takes current state and imagined actions and outputs predicted future state representations
Task-specific cost functions (some intrinsic, like survival; others learned, like "get coffee")
Guard rail cost functions (safety: e.g., do not harm humans)
Optimizer that searches over action sequences to minimize a weighted combination of costs, using the world model to evaluate outcomes
Because the entire system is built on optimization, it inherently respects constraints (the optimizer cannot escape guardrails). This contrasts with LLMs, where safety is attempted via fine-tuning but can be bypassed.
Key Training Principles
Abandon generative models for continuous signals (pixel prediction). Use joint embedding predictive architectures instead.
Prediction in representation space not input space.
Use energy-based framework to understand inference and learning.
Regularized methods (e.g., distillation, variance-covariance regularization) are preferred over contrastive methods.
Minimize reinforcement learning — use it only as a last resort, because it is extremely sample-inefficient. Planning with a learned world model is far more efficient.
Recommendations and Research Directions
Abandon Generative Models for Physical World Understanding
Generative models that predict pixels (or raw signals) are doomed for continuous, high-dimensional data because of the intractability of distributions and the impossibility of deterministic prediction.
Work on JEPA and its variants for video, robotic control, and any domain involving natural signals.
Embrace Energy-Based Models
Treat learned systems as energy functions that define compatibility between variables.
Inference becomes optimization — this is more powerful and flexible than feedforward prediction.
Move Beyond LLMs for General Intelligence
LLMs are excellent for sequences of discrete symbols (language, code) but cannot ground understanding in the physical world.
The path to human-level (or even animal-level) AI requires world models learned from massive unlabeled sensory data.
Open Problems
Hierarchical representation learning and planning — how to automatically discover levels of abstraction.
Preventing collapse in self-supervised learning — explain theoretically why distillation methods work and make them more reliable.
Scaling JEPA to complex, long-horizon planning with latent variables for nondeterminism.
Integrating memory into world models (not just current perception).
Safe and controllable AI through hardwired guardrails in the optimization objective.
Summary of Key Concepts
JEPA (Joint Embedding Predictive Architecture): Predicts representation of future states rather than raw pixels, eliminating unpredictable details.
World model: A learned function that predicts future representations given current state and imagined action sequence.
Inference by optimization: Instead of a single feedforward pass, search over outputs to minimize an energy function.
Energy-based model (EBM): A scalar function that measures incompatibility between variables; training shapes the energy landscape.
Contrastive vs. regularized methods: Two families to prevent collapse; regularized methods (distillation, covariance regularization) scale better.
DINO: A distillation-based self-supervised method for images that surpasses supervised learning.
V-JEPA: Video version that learns intuitive physics.
Hierarchical planning: Unsolved but essential for complex, long-horizon tasks.
Zero-shot task accomplishment: Using a world model and planning to solve tasks without task-specific training.
Takeaway: Current AI excels at discrete symbol processing (language) but fails at grounded physical understanding. The next breakthrough requires shifting from pixel-level generative models to representation-level predictive architectures, from autoregressive generation to optimization-based inference, and from massive supervised data to self-supervised learning from raw sensory streams.

Ask anything
We've read this whole study set, so questions about it get the best answers.