← Latest papers
💻 computer science

Dynamic LeJEPA: Maximum Entropy Representations for Sequential Prediction and Latent Planning with Theoretical Guarantees

This paper resolves the paradox of domain-knowledge degradation in Joint-Embedding Predictive Architectures by proving that maximum-entropy encoders are theoretically optimal and that physics constraints must be applied to the decoder rather than the encoder, while simultaneously exposing a critical failure mode where offline latent planning can be easily exploited by models that do not genuinely support downstream control.

Original authors: Mohsen Mostafa

Published 2026-10-20
📖 6 min read🧠 Deep dive

Original authors: Mohsen Mostafa

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of artificial intelligence, researchers are trying to teach machines to understand how the physical world works. They want robots and self-driving cars to predict what will happen next, not just by memorizing pictures, but by building an internal mental model of cause and effect. To do this, they use a system that acts like a compressed map of reality, turning complex sensory data into a simpler, abstract representation. The hope is that if the machine understands the underlying rules of physics—how gravity pulls, how joints move, or how a car turns—it can plan its actions more safely and efficiently. For years, the standard advice has been to force these rules directly into the machine's internal map, believing that this "physics-informed" guidance would help the AI learn faster and better.

However, a new study has discovered that this intuitive approach is actually harmful. The researchers found that when you try to force physical laws into the machine's internal representation, the system breaks down, losing its ability to understand the world accurately. Instead, they proved mathematically and demonstrated through rigorous testing that physical rules should be kept at the very end of the process, used only to interpret the final output, while the internal map itself must remain completely free and flexible. This discovery resolves a long-standing mystery about why previous attempts to build smarter robots failed, offering a clear blueprint for how to construct these systems correctly.

The study, led by Mohsen Mostafa, focuses on a specific type of AI architecture designed to predict the future state of a system based on its current state and actions. Imagine a robot arm trying to thread a needle. The AI takes a picture of the scene and the robot's current position, compresses this information into a hidden code, and then tries to predict where the robot will be a moment later. The goal is to create a "world model" that can simulate the future inside the computer before the robot actually moves. The researchers were investigating a paradox: when they added rules about how the robot's joints should move or how the camera should see the world directly into the part of the AI that creates the hidden code, the system performed worse. When they removed those rules, the system worked better. This seemed counterintuitive, as one would expect that giving the AI more information about the laws of physics would help it.

To solve this puzzle, the team developed a series of mathematical proofs showing that the internal code, or "embedding," works best when it is as random and spread out as possible, a state known as maximum entropy. They proved that if you constrain this code with physical rules, you force it into a narrow shape that cannot represent the full variety of the world. It is like trying to fit a complex, three-dimensional object into a flat, rigid box; the object gets crushed, and you lose the details. The math showed that the prediction part of the system, which guesses the future, can handle any kind of physics without hurting the internal code, but the code itself must remain unconstrained. The only place where physical rules are safe to apply is at the very end, in the "decoder," which translates the hidden code back into a prediction of what the robot sees or does.

The researchers tested this theory across two very different real-world scenarios: autonomous driving and robotic manipulation. They used data from the nuScenes dataset, which contains thousands of hours of driving footage, and the MimicGen dataset, which features a bimanual robot attempting to thread a needle. In both cases, they ran hundreds of experiments, training the AI with different configurations. They compared systems where the physics rules were applied to the internal code against systems where the rules were applied only to the final output. The results were consistent and statistically significant. In every single test, the system that kept the internal code free and applied physics only at the end produced a much better, more reliable representation of the world. The systems that tried to force physics into the code suffered from a "collapse," where the internal map became too simple and lost the ability to distinguish between different situations.

One of the most surprising findings came from the robotic threading task. The researchers discovered a hidden failure mode that had gone unnoticed in previous studies. They found that even when the AI appeared to be working correctly on the surface, it could be "collapsing" in a way that was invisible to standard checks. The AI was finding a shortcut where it satisfied the basic rules of the game without actually learning the complex relationships needed for control. This happened because the task was so simple that the AI could bypass the system. To catch this, the team developed a new diagnostic tool that looked deeper into the AI's internal signals, revealing that the "smart" system was actually hollow. This discovery warns that simply checking if an AI can predict the next frame is not enough; one must also ensure the internal representation is rich and diverse.

The study also tackled a critical question about whether these better representations actually lead to better control. The researchers built a planning system that used the trained AI to figure out the best sequence of moves to reach a goal. They expected that the AI with the correct physics placement would plan better than the others. However, they found a subtle trap. The planning system was able to find action sequences that scored perfectly on the AI's internal cost function but were actually far from the true, correct path. It was as if the AI had learned to game the scoring system rather than solve the problem. This happened across all versions of the model, regardless of how they were built. The researchers concluded that while their new design principle creates a much better internal map, proving that this map leads to better real-world control requires testing the robot in a live environment, not just in a computer simulation.

This work provides a definitive answer to a problem that has plagued the field of robotics and autonomous driving. It shows that the intuition to inject domain knowledge into AI is correct, but the target was wrong. Physics belongs in the decoder, where it helps interpret the world, but never in the encoder, where it destroys the system's ability to learn. By following this rule, engineers can build world models that are theoretically sound and empirically robust. The study also serves as a cautionary tale for the field, highlighting that offline tests can be misleading and that true validation requires seeing how the system performs when it interacts with the real world. The code and data for these experiments have been made public, allowing other researchers to verify these findings and build upon this new foundation for creating intelligent machines.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →